lxd init에서 dnsmasq 오류 발생 - 주소가 이미 사용 중임

lxd init에서 dnsmasq 오류 발생 - 주소가 이미 사용 중임

데스크탑 우분투 18.04에서 lxd를 시도할 때 다음 오류가 발생합니다.

 sudo lxd init                         
Would you like to use LXD clustering? (yes/no) [default=no]: 
Do you want to configure a new storage pool? (yes/no) [default=yes]: 
Name of the new storage pool [default=default]: 
Name of the storage backend to use (btrfs, ceph, dir, lvm, zfs) [default=zfs]: dir
Would you like to connect to a MAAS server? (yes/no) [default=no]: 
Would you like to create a new local network bridge? (yes/no) [default=yes]: 
What should the new bridge be called? [default=lxdbr0]: 
What IPv4 address should be used? (CIDR subnet notation, “auto” or “none”) [default=auto]: 
What IPv6 address should be used? (CIDR subnet notation, “auto” or “none”) [default=auto]: none
Would you like LXD to be available over the network? (yes/no) [default=no]: 
Would you like stale cached images to be updated automatically? (yes/no) [default=yes] 
Would you like a YAML "lxd init" preseed to be printed? (yes/no) [default=no]: 
Error: Failed to create network 'lxdbr0': Failed to run: dnsmasq --strict-order --bind-interfaces --pid-file=/var/snap/lxd/common/lxd/networks/lxdbr0/dnsmasq.pid --except-interface=lo --no-ping --interface=lxdbr0 --quiet-dhcp --quiet-dhcp6 --quiet-ra --listen-address=10.139.93.1 --dhcp-no-override --dhcp-authoritative --dhcp-leasefile=/var/snap/lxd/common/lxd/networks/lxdbr0/dnsmasq.leases --dhcp-hostsfile=/var/snap/lxd/common/lxd/networks/lxdbr0/dnsmasq.hosts --dhcp-range 10.139.93.2,10.139.93.254,1h -s lxd -S /lxd/ --conf-file=/var/snap/lxd/common/lxd/networks/lxdbr0/dnsmasq.raw -u lxd: Failed to run: dnsmasq --strict-order --bind-interfaces --pid-file=/var/snap/lxd/common/lxd/networks/lxdbr0/dnsmasq.pid --except-interface=lo --no-ping --interface=lxdbr0 --quiet-dhcp --quiet-dhcp6 --quiet-ra --listen-address=10.139.93.1 --dhcp-no-override --dhcp-authoritative --dhcp-leasefile=/var/snap/lxd/common/lxd/networks/lxdbr0/dnsmasq.leases --dhcp-hostsfile=/var/snap/lxd/common/lxd/networks/lxdbr0/dnsmasq.hosts --dhcp-range 10.139.93.2,10.139.93.254,1h -s lxd -S /lxd/ --conf-file=/var/snap/lxd/common/lxd/networks/lxdbr0/dnsmasq.raw -u lxd: dnsmasq: failed to create listening socket for 10.139.93.1: Address already in use

명령을 실행하기 전에 dnsmasq가 10.139.93.1에서 수신 대기하지 않는지 확인할 수 있는지 확인했습니다. 위 명령어 실행 후 10.139.93.1에서 실행되므로 오류는 존재하지만 자해된 것으로 보입니다.

답변1

자해한 것처럼 보일 수도 있지만, lxd는 실제로 다른 dnsmasq 프로세스를 실행하려고 하며, 명령을 실행한 후 표시되는 dnsmasq 인스턴스는 새로 생성된 lxd 브리지를 매우 빠르게 변경하는 시스템/기존 dnsmasq 인스턴스일 가능성이 높습니다. 소켓이 켜져 있습니다. lxd init명령으로 생성된 lxd 브리지

libvirt에는 동일한 문제가 있지만 실제로 파일이 중요한 줄로 시작하도록 하여 (우분투에서) /etc/dnsmasq.d/libvirt-daemon문제를 해결합니다.except-interface=...

lxd에는 동일한 것이 필요합니다. 다음 행을 추가하면 믿습니다 /etc/dnsmasq.d/lxd.

except-interface=lxdbr0

관련 정보