[問題] lxcbr0開機後沒起來

看板Linux作者 (core)時間13年前 (2013/01/22 18:44), 編輯推噓2(200)
留言2則, 2人參與, 最新討論串1/1
我用的是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
文章代碼(AID): #1G_crpdi (Linux)