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?
list files in
and
if empty - create it
useful commands:
or
and
for detailed explanation read wiki: http://wiki.libvirt.org/page/Networking
This is actually expected behaviour it seems .. something to do with how NAT forwarding is set-up by default. The system expects a 'default' network, bound to virbr0. So, if you delete that network, virt-install would no longer run as expected.
You probably can work around this if you are willing to poke around the innards of libvirt config files, and modify all relevant configuration file defaults. The error message can also be made more useful and explanatory ..
To recreate the network, first move off the network currently assigned to virbr0, and then:
Of course, you can also recreate the 'default' network via the virt-manager or other GUI ..
See more details here
List available networks and specify the one you need:
You can use
virt-manager
GUI too.You can start the default network by doing:
Simply requires, as above:
This will populate the files required... then execute the command:
...then if the network isn't active
You may be missing the
libvirt-daemon-config-network
RPM. It doesn’t seem to be a dependency of the main packages you need to install to get KVM running.Try installing it and trying again.