大网数据广告活动
服务器运维问答

libvirt network error - no 'default' network device found

· 52CE 我爱测

My original purpose is to create centos image for openstack. Although I did directly with kvm, still wondering about error. Was using this manual for my task. After this command: # virt-install --virt-type kvm --name centos-6.4 -…

问题原文

原帖链接 · holms · CC BY-SA 3.0

My original purpose is to create centos image for openstack. Although I did directly with kvm, still wondering about error.

Was using this manual for my task.

After this command:

# virt-install --virt-type kvm --name centos-6.4 --ram 1024 \
--cdrom=/data/isos/CentOS-6.4-x86_64-netinstall.iso \
--disk /tmp/centos-6.4.qcow2,format=qcow2 \
--network network=default \
--graphics vnc,listen=0.0.0.0 --noautoconsole \
--os-type=linux --os-variant=rhel6

I got an error:

ERROR    Error in network device parameters: Virtual network 'default' does not exist: Network not found: no network with matching name 'default'

Needless to say that I'm using RDO. By default I don't have any pre-configured network devices for libvirt. Question is which networking devices are available? Or if there's none, how to create one? Maybe RDO has different approach on libvirt networking?

社区高分解答

原帖链接 · Илья Cepгеевич · CC BY-SA 3.0

list files in

/etc/libvirt/qemu/networks/

and

/etc/libvirt/qemu/networks/autostart/

if empty - create it

useful commands:

virsh net-start default

or

virsh net-autostart default

and

virsh net-destroy default
virsh net-undefine default
service libvirtd restart

for detailed explanation read wiki: http://wiki.libvirt.org/page/Networking

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2013-08-28)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。