Use of uninitialized value in split at /usr/share/perl5/PVE/QemuServer/Cloudinit.pm line 115.
generating cloud-init ISO
org.freedesktop.DBus.Error.ServiceUnknown: The name uk.org.thekelleys.dnsmasq.lan was not provided by any .service files
kvm: -netdev type=tap,id=net0,ifname=tap9000i0,script=/usr/libexec/qemu-server/pve-bridge,downscript=/usr/libexec/qemu-server/pve-bridgedown,vhost=on: network script /usr/libexec/qemu-server/pve-bridge failed with status 2816
start failed: QEMU exited with code 1

问题是使用dnsmasq服务分配内网ip导致的,报错为

an 16 18:27:48 PVE systemd[1]: Starting dnsmasq@lan.service - dnsmasq (lan) - A lightweight DHCP and caching DNS server...
Jan 16 18:27:48 PVE systemd-helper[2389093]: dnsmasq: failed to create listening socket for 10.10.10.1: Address already in>
Jan 16 18:27:48 PVE dnsmasq[2389093]: failed to create listening socket for 172.16.10.1: Address already in use
Jan 16 18:27:48 PVE dnsmasq[2389093]: FAILED to start up
Jan 16 18:27:48 PVE systemd[1]: dnsmasq@lan.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
Jan 16 18:27:48 PVE systemd[1]: dnsmasq@lan.service: Failed with result 'exit-code'.
Jan 16 18:27:48 PVE systemd[1]: Failed to start dnsmasq@lan.service - dnsmasq (lan) - A lightweight DHCP and caching DNS s>

解决方法禁用dnsmasq自启动,因为pve会自动启动dnsmasq,如果开机自动启动就会冲突

systemctl disable dnsmasq

标签: pve, dnsmasq

添加新评论