[one-users] ebtables hook script for kvm hosts

Gavin netmatters at gmail.com
Mon Aug 31 08:47:57 PDT 2009


Hi there,

In the following documentation an example of using ebtables with Xen
is presented:-

http://www.opennebula.org/doku.php?id=documentation:rel1.4:nm

According to the guide, a script is provided for Xen, but 'It can be
easily modified to do the same with KVM/Libvirt'.

Now for the life of me I cannot find the kvm equivalent for xm domid
or xm network-list.

When I try to list the networks on a kvm host using virsh net-list,
all that shows up is the 'default', not any of the networks that are
actually configured and working on the running vm's:-

root at node02:~# virsh list
Connecting to uri: qemu:///system
 Id Name                 State
----------------------------------
 12 one-123              running
 13 one-124              running
 14 one-125              running
 15 one-126              running

root at node02:~# ping 192.168.108.101
PING 192.168.108.101 (192.168.108.101) 56(84) bytes of data.
64 bytes from 192.168.108.101: icmp_seq=1 ttl=64 time=5.27 ms
64 bytes from 192.168.108.101: icmp_seq=2 ttl=64 time=0.130 ms
64 bytes from 192.168.108.101: icmp_seq=3 ttl=64 time=0.122 ms

root at node02:~# virsh net-list
Connecting to uri: qemu:///system
Name                 State      Autostart
-----------------------------------------
default              active     yes

Is anyone using ebtables with kvm, any suggestions ??

Is kvm the way to go still because it's starting to look more and more
like Xen is still the platform of choice ??

Thanks in advance,
Gavin



More information about the Users mailing list