[libvirt-users] Can I set up VMs in a "Flat" network?

sean darcy seandarcy2 at gmail.com
Wed Sep 15 21:35:07 UTC 2010


Our small network is 10.10.11.0/24, gateway 10.10.11.252. dhcp is set up.

I'm using virt-manager to install VM's with kvm-qemu on an F14 host -
10.10.11.100.

qemu-kvm-0.13.0-0.6.rc1.fc14.x86_64
libvirt-0.8.3-2.fc14.x86_64

I'd like all the VM's to be on the same network as the physical
machines with an address range of 10.10.11.110-10.10.11.130.

I have virt-net set up. ifconfig on the host:

br0       Link encap:Ethernet  HWaddr 00:30:67:6A:2C:5E
          inet addr:10.10.11.100  Bcast:10.10.11.255  Mask:255.255.255.0
          inet6 addr: fe80::230:67ff:fe6a:2c5e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2792310 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4310569 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:571898900 (545.4 MiB)  TX bytes:5394989297 (5.0 GiB)

eth0      Link encap:Ethernet  HWaddr 00:30:67:6A:2C:5E
          inet6 addr: fe80::230:67ff:fe6a:2c5e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2908711 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4462246 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:629708224 (600.5 MiB)  TX bytes:5402914301 (5.0 GiB)
          Interrupt:44 Base address:0xe000

lo       .........................

virbr0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:219830 errors:0 dropped:0 overruns:0 frame:0
          TX packets:640662 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:142081963 (135.4 MiB)  TX bytes:777889995 (741.8 MiB)


 On virt-manager I've tried a "Routed" network, but that doesn't work:

libvirtError: internal error Network 10.10.11.1/255.255.255.0 is
already in use by interface br0


Can this be done? How?

sean




More information about the libvirt-users mailing list