nat的default网络重新开启
2016-04-11 22:09
501 查看
解决问题,3ks
博客地址:http://blog.csdn.net/qq_21398167原博文地址:http://blog.csdn.net/qq_21398167/article/details/47777113
[root@localhost Desktop]# virt-install -n centos -r 2048 --vcpus=2 -f /root/Documents/centos6.5.img -c /root/Desktop/CentOS-6.4-x86_64-minimal.iso
ERROR Network not found: no network with matching name 'default'
查阅资料,说是因为 default 网络不存在
回想了一下 确实是因为我开始在捣鼓openstack 的时候 用命令删除了 default
因为在不同的环境下 default.xml 的存放路径不同 ,这里笔者以自己的 centos7 为例
[root@localhost Desktop]# find / -name "default.xml"
/etc/libvirt/storage/default.xml
/etc/libvirt/storage/autostart/default.xml
/usr/share/backgrounds/default.xml
/usr/share/libvirt/networks/default.xml
/usr/share/gutenprint/5.2/xml/escp2/inputslots/default.xml
/usr/share/ibus-m17n/default.xml
/opt/qtcreator-2.8.1/share/qtcreator/styles/default.xml
发现有很多这样的 xml 我们选择与network 和libvirt 有关的 执行
[root@localhost Desktop]# virsh net-define /usr/share/libvirt/networks/default.xml
Network default defined from /usr/share/libvirt/networks/default.xml
[root@localhost Desktop]# virsh net-start default
Network default started
启动成功 查看
[root@localhost Desktop]# virsh net-list
Name State Autostart Persistent
----------------------------------------------------------
default active no yes
博客地址:http://blog.csdn.net/qq_21398167原博文地址:http://blog.csdn.net/qq_21398167/article/details/47777113
[root@localhost Desktop]# virt-install -n centos -r 2048 --vcpus=2 -f /root/Documents/centos6.5.img -c /root/Desktop/CentOS-6.4-x86_64-minimal.iso
ERROR Network not found: no network with matching name 'default'
查阅资料,说是因为 default 网络不存在
回想了一下 确实是因为我开始在捣鼓openstack 的时候 用命令删除了 default
因为在不同的环境下 default.xml 的存放路径不同 ,这里笔者以自己的 centos7 为例
[root@localhost Desktop]# find / -name "default.xml"
/etc/libvirt/storage/default.xml
/etc/libvirt/storage/autostart/default.xml
/usr/share/backgrounds/default.xml
/usr/share/libvirt/networks/default.xml
/usr/share/gutenprint/5.2/xml/escp2/inputslots/default.xml
/usr/share/ibus-m17n/default.xml
/opt/qtcreator-2.8.1/share/qtcreator/styles/default.xml
发现有很多这样的 xml 我们选择与network 和libvirt 有关的 执行
[root@localhost Desktop]# virsh net-define /usr/share/libvirt/networks/default.xml
Network default defined from /usr/share/libvirt/networks/default.xml
[root@localhost Desktop]# virsh net-start default
Network default started
启动成功 查看
[root@localhost Desktop]# virsh net-list
Name State Autostart Persistent
----------------------------------------------------------
default active no yes
相关文章推荐
- [Java拾遗二]Tomact及Http 部分总结.
- Linux下的socket网络编程
- TCP的三次握手建立连接与四次挥手释放连接
- linux 下使用 tc 模拟网络延迟和丢包
- POJ 1274 The Perfect Stall 网络流 二分图匹配
- Java_SE11-TCP通信,UDP通信
- 【线性规划与网络流 24题】已完成(3道题因为某些奇怪的原因被抛弃了QAQ)
- sigmoid
- android 使用OkHttp上传多张图片
- 使用java开源工具httpClient及jsoup抓取解析网页数据
- Python网络爬虫——模拟登陆爬取网站数据并加载到excl表格里
- acdream oj 1211 有上下界的网络流
- 计算机网络面试
- 使用HttpClient连接池进行https单双向验证
- 【C#】 知乎用户网络爬虫
- 4.传输控制协议(TCP):进程到进程的通信
- 流媒体传输协议(rtp/rtcp/rtsp/rtmp/mms/hls)
- Convolutional Neural Networks卷积神经网络 (该博主一系列都很好)
- 检测网络状态
- Java网络连接-URLConnection类的使用