![Juju bootstrap 无法在本地环境中启动网络](https://linux22.com/image/812986/Juju%20bootstrap%20%E6%97%A0%E6%B3%95%E5%9C%A8%E6%9C%AC%E5%9C%B0%E7%8E%AF%E5%A2%83%E4%B8%AD%E5%90%AF%E5%8A%A8%E7%BD%91%E7%BB%9C.png)
我已按照以下说明进行操作https://juju.ubuntu.com/CharmSchool并重启了5次......
我似乎无法做juju-bootstrap
(本地)这是输出:
amith@amith-desktop:~$ juju bootstrap
2011-11-24 17:08:05,708 INFO Bootstrapping environment 'local' (type: local)...
2011-11-24 17:08:05,710 INFO Checking for required packages...
2011-11-24 17:08:06,593 INFO Starting networking...
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-leasefile=/var/lib/libvirt/dnsmasq/default.leases --dhcp-lease-max=253 --dhcp-no-override) status unexpected: exit status 2
Command '['virsh', 'net-start', 'default']' returned non-zero exit status 1
2011-11-24 17:08:07,217 ERROR Command '['virsh', 'net-start', 'default']' returned non-zero exit status 1
有没有什么解决办法?
答案1
看起来您可能已经在该机器上安装了 DNS 服务器,这会阻止 dnsmasq 绑定到所需的端口/接口。Dnsmasq 为桥接网络上的容器提供 dhcp/dns。绑定到所有接口/端口的本地缓存代理可能会干扰它。