How I created the container:

(root) $ apt-get install lxc
(root) $ lxc-create -t ubuntu -n lxc1
(root) $  /etc/libvirt/lxc/lxc1.xml      # see above

(root) $ virsh -c lxc:///
start lxc1


Host net config

$ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

Libvirt net

(root) $ virsh
# net-list
 Name                 State      Autostart     Persistent
----------------------------------------------------------
 default              active     yes           yes

# net-edit default

<network>
  <name>default</name>
  <uuid>a10ff044-4795-4906-a492-08fc3785bafd</uuid>
  <forward mode='nat'>
    <nat>
      <port start='1024' end='65535'/>
    </nat>
  </forward>
  <bridge name='virbr0' stp='on' delay='0'/>
  <mac address='52:54:00:89:8d:a9'/>
  <ip address='192.168.122.1' netmask='255.255.255.0'>
    <dhcp>
      <range start='192.168.122.101' end='192.168.122.254'/>
    </dhcp>
  </ip>
</network>

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1331276

Title:
  Starting lxc container from libvirt disconnects host network

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1331276/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to