[問題] lxcbr0開機後沒起來
我用的是Ubuntu 12.04 Server
灌好LXC 沒動過他的設定 有定期作系統更新
但最近重開機後 lxcbr0這個介面都不會自己起來
還要手動 sudo /etc/init.d/lxc-net restart
這個介面才會出現
--
網路上找到一篇 在/etc/defaults/lxc裡面
加上參數USE_LXC_DNSMASQ="false"
重開機後lxcbr0就出現了!!
下面是原文:
http://www.mail-archive.com/lxc-users@lists.sourceforge.net/msg03815.html
That contained a hint indeed:
dnsmasq: failed to create listening socket for 192.168.122.1: Address
already in use
A look into lxc-net.conf shows that it buggers out when it cant start
dnsmasq and removes the bridge completely. So at starttime named is some
milliseconds faster to aquire the bridge interface and makes dnsmasq
fail. Bridge removed, named kicked in the ass. So you do a restart later
everything works fine.
I just added USE_LXC_DNSMASQ="false" to the lxc defaults and the
corresponding if statement to lxc-net.conf. Works now even on boot time.
Cheers,
Groupie
---
他有稍作說明造成這種狀況的原因
不過我還是看不太懂 有看懂的大大願意為小弟解惑嗎 感恩
※ 編輯: nuclex 來自: 114.32.84.139 (01/22 19:20)
推
01/22 19:27, , 1F
01/22 19:27, 1F
推
01/22 19:41, , 2F
01/22 19:41, 2F