[libvirt-users] howto setup linux guest with 2 nics

Jan Paulini jan at paulini.eu
Fri Aug 6 08:39:57 UTC 2010


hi,

i have the following situation. my host system is running debian lenny 
and kvm. i have 2 ethernet interfaces of which i like to use eth0 for 
administration of the server itself without traffic from any guest 
systems. eth1 is connected to a different switch where i have numerous 
vlans. i have successfully setup a guest running virt-install using a 
bridge interface on the host system. here the debian config for br1 
which i used:

auto eth1.700
iface eth1.700 inet manual

auto br1
iface br1 inet manual
         bridge_ports eth1.700
         bridge_fd 9
         bridge_hello 2
         bridge_maxage 12
         bridge_stp off

i was now looking into the xml file for the guest hoping to find a way 
to use 2 ethernet interfaces for the guest one on br1 and another on br2 
where br2 would be configures as br1 above on the host, just in a 
different vlan. how can i do that ? the network section of the xml fine 
lookes like this:

<interface type='bridge'>
<mac address='54:52:00:xx:xx:xx'/>
<source bridge='br1'/>
<model type='virtio'/>
</interface>

is there possibly a way of installing a guest with virt-install to give 
the guest eth0 and eth1 which are in different vlans on the hosts eth1 ?

thanks for your help !
Jan




More information about the libvirt-users mailing list