You are not logged in.
Hi. I've used this tutorial and have net-define'ed a network from this xml, but when i try to net-start it, i get the following error:
virsh # net-start default
error: Failed to start network default
error: internal error Network is already in use by interface virbr0
At first i though that some other network has already been defined and auto-started, so i've checked net-list
virsh # net-list --all
Name State Autostart
-----------------------------------------
default inactive no
Here is the output from $ ip a show dev virbr0
4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
link/ether ce:1e:b4:54:83:83 brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
I became curious, and found out that dnsmasq was running
$ ps -ef | ack dnsm | ack -v ack
nobody 12333 1 0 13:04 ? 00:00:00 dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/default.pid --conf-file= --except-interface lo --listen-address 192.168.122.1 --dhcp-range 192.168.122.2,192.168.122.254 --dhcp-leasefile=/var/lib/libvirt/dnsmasq/default.leases --dhcp-lease-max=253 --dhcp-no-override
With that i thought that everything works just fine, and i should try to configure a virtual machine to use the default network.
EDIT:
Looks like $ virsh edit fedora and /etc/libvirt/qemu/fedora.xml contain different things. I am pretty confused.
/etc/libvirt/qemu/fedora.xml
virsh edit fedora
virsh # list --all
Id Name State
----------------------------------
- fedora shut off
virsh # start fedora
error: Failed to start domain fedora
error: internal error Network 'default' is not active.
How can it be started and not started at the same time?
Last edited by blin (2011-12-18 14:51:49)
PS1='[$(date +%H:%M:%S) - \H] \n[$(pwd)]\$ '
Offline
Well, it turns out, i shoulde have run virsh as root, that way everuthing works fine.
PS1='[$(date +%H:%M:%S) - \H] \n[$(pwd)]\$ '
Offline