Network Issue between KVM and OpenVZ

mfa2004

Renowned Member
Feb 20, 2009
20
0
66
First off, allow me to congratulate the team for a wonderful product. Great work!

What I am trying to do is to set-up KVM machines and OpenVZ machines in one box. Everything seems to work out of the box. I did encounter a problem though ... I could not communicate (ping for instance) to the KVM guest from either the host ProxMox box, nor from any of the OpenVZ containers.

The OpenVZ guests can communicate with any other physical machines in the LAN ... and the KVM guests can also communicate with any other physical machines in the LAN. But I can not make the KVM guest communicate with the OpenVZ guests ... and vice-versa.

What should I do to make these machines communicate with each other?

Thanks in advance!
 
Thanks for the prompt reply ...

Please see below for the contents of /etc/network/interfaces ...

# network interface settings
auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

auto bond0
iface bond0 inet manual
slaves eth0 eth1
bond_miimon 100
bond_mode active-backup

auto vmbr0
iface vmbr0 inet static
address 192.168.64.40
netmask 255.255.252.0
gateway 192.168.64.254
bridge_ports bond0
bridge_stp off
bridge_fd 0
 
The configuration looks fine. Please can you try to debug with 'tcpdump' to see where packets gets lost?
 
Thanks Dietmar.

Now that I know that it SHOULD work, I will try to find out what may be causing this ... I will post whatever findings I get ...
 
I was able to trace that the problem had NOTHING to do with the configuration ... rather it was the network drivers I used inside the KVM Guest (E1000) ... when I switched to using VIRTIO, everything worked as expected!

Again, kudos on a job well done .... thanks to the Proxmox VE team!
 
Hello,

had same situation yesterday.

No Connections between openvz and kvm machines when kvm container uses e1000 network drivers.
(Connections to lan are working) Changing to virio, eleminates the problem.

Dietmar, are you able to reproduce? Do need further information?


Thanks in Advance

Andreas
 
pls post you pveversion -v.
 
~$ pveversion -v
pve-manager: 1.5-7 (pve-manager/1.5/4660)
running kernel: 2.6.24-9-pve
pve-kernel-2.6.24-9-pve: 2.6.24-18
pve-kernel-2.6.24-8-pve: 2.6.24-16
qemu-server: 1.1-11
pve-firmware: 1.0-3
libpve-storage-perl: 1.0-10
vncterm: 0.9-2
vzctl: 3.0.23-1pve8
vzdump: 1.2-5
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1
 
Interesting... Having a like problem between my KVM and OpenVZ guest. My OpenVZ and KVM guests both have an ethernet interface bound to vmbr1 (config below). My KVM guest is also using virtio for network adapter.

auto vmbr1
iface vmbr1 inet manual
bridge_ports none
bridge_stp off
bridge_fd 0

"tcpdump -i vmbr1" on pve confirms that ICMP traffic is coming both hosts, I can even see where arp requests are sent and responded to with the appropriate MAC addresses for the opposite host.

No firewalls setup on either guest.

I did have a drink earlier so maybe I'm just missing something obvious. Thanks for any suggestions!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!