您的位置:首页 > 理论基础 > 计算机网络

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: