nat的default网络重新开启

解决问题,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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值