lxcbr0開機後沒起來 - Linux

Table of Contents

我用的是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/[email protected]/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)
CP64:啟動時間差造成的錯誤? (歪頭 01/22 19:27
soem:看來是這樣沒錯 01/22 19:41

All Comments

Ula avatarUla2013-01-24
啟動時間差造成的錯誤? (歪頭
Audriana avatarAudriana2013-01-28
看來是這樣沒錯