Hi,
I was checking by starting with a common setup I ususlly use adapting towards 
your case step by step.

uvt-simplestreams-libvirt sync --source http://cloud-images.ubuntu.com/daily 
release=xenial arch=s390x label=daily
uvt-simplestreams-libvirt query
uvt-kvm create --memory 2048 --cpu 4 --password=ubuntu --template 
template-s390x.xml kvmguest-xenial release=xenial arch=s390x label=daily
cat template-s390x.xml
<domain type='kvm'>
  <os>
    <type>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <devices>
    <interface type='network'>
      <source network='default'/>
      <model type='virtio'/>
    </interface>
    <console type='pty' tty='/dev/pts/3'>
         <source path='/dev/pts/3'/>
    <target type='sclp' port='0'/>
    <alias name='console0'/>
    </console>
  </devices>
</domain>
virsh dumpxml kvmguest-xenial
[...]
    <interface type='network'>
      <mac address='52:54:00:1b:de:4e'/>
      <source network='default' bridge='virbr0'/>
      <target dev='vnet0'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0002'/>
    </interface>
[...]

Ok, so far things are fine - I have a bridge
brctl show virbr0
bridge name     bridge id               STP enabled     interfaces
virbr0          8000.5254006ec370       yes             virbr0-nic
                                                        vnet0

The guest is connecte to that.
The bridge is the default libvirt way of handling default network (nat).
The guest gets a dhcp (from host) address on that net 192.168.122.241 in my 
case.
This gets to the Host just nice and works to get to the outside as well via the 
host.

Changing the guest to a static IP in guest e/n/i
auto eth0
iface eth0 inet static
    address 192.168.122.241/24
    gateway 192.168.122.1

Still working fine.

Changing that to a guest linked to a bride looks like
    <interface type='bridge'>
      <source bridge='br0'/>
      <mac address='52:54:00:fa:ae:a8'/>
      <model type='virtio'/>
      <address type='ccw' cssid='0xfe' ssid='0x0' devno='0x0002'/>
    </interface>

Unfortunately my net setup here is very demaning with vlan only.
Could one send me 10 extra OSAs so we can autotagging by the switch :-) ?
It is just very complex to get bridge, onto only one Host interface that has 
vlan required to be set up correctly.
So before doing all that I'd like to ask a few questions:

But to go on I think it is time to ask you how exactly you
1. defined the bridge and host networking in your case (exact commands to set 
up your bridge + brctl show on the bridge + host ifconfig -a and route)
2. connected the bridge to your guest (see my xml example above, how does yours 
look like?)
3. is it a hard requirement that there is only one Host network device?

** Changed in: bridge-utils (Ubuntu)
       Status: New => Incomplete

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

Title:
  KVM guest cannot use br0 created by brctl on Ubuntu16.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1626826/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to