最初的错误:
这个一看就是 kvm自己建的网络没了,ifconfig 后果然没了virbr0
然后尝试 virsh net-start default,又得到dnsmasq的错误:
去syslog 看下仔细的日志 vi /var/log/sys
google了下 发现你要是单独安装dnsmasq和libvirt就会出现这个鸟问题....
具体的扯皮在https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/231060
两边的人都不愿意改....但是提供了解决方案:
顺便这个bug的状态一直是in-progress..........
Error starting domain: internal error Network 'default' is not active.
这个一看就是 kvm自己建的网络没了,ifconfig 后果然没了virbr0
然后尝试 virsh net-start default,又得到dnsmasq的错误:
error: Failed to start network default
error: internal error Child process (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-lease-max=253 --dhcp-no-override) exited with status 2.
去syslog 看下仔细的日志 vi /var/log/sys
Aug 28 19:27:16 ezzze dnsmasq[4357]: failed to create listening socket for 192.168.122.1: Address already in use
Aug 28 19:27:16 ezzze dnsmasq[4357]: FAILED to start up
google了下 发现你要是单独安装dnsmasq和libvirt就会出现这个鸟问题....
具体的扯皮在https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/231060
两边的人都不愿意改....但是提供了解决方案:
Following advice in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=505522
We could for example have:
/etc/dnsmasq.d/libvirt
bind-interfaces
except-interface=<virtual bridge>
and libvirt would start its dnsmasq using --interface=<virtual-bridge>
顺便这个bug的状态一直是in-progress..........