I’m looking for a new server at the moment and a fitting virtualization solution. On my recent server I’m using VMware server but don’t what this one anymore as it is very very slow.
I have the opportunity to work on a cluster which is using Proxmox with OpenVZ which is amazingly fast. How does Xen as DomU compare to that? Which one would you recommend?
The new machine’s going to be a Core i7 with 12 GB RAM. I’d like to either use Debian 6 or Ubuntu 10.04, but I’d prefer Ubuntu. Debian 5 is too old meanwhile and I hate using backports. The same’s for the guest systems, I’m not planning to use any Windows or something like that on this machine. So the disadvantage of not having the possibility to use KVM is ok.
I found this thread here regarding this matter but it’s pretty old, so I’d rather ask again ;-).
Which virtualization platforms should I choose, Xen or OpenVZ?
I am a fan of OpenVZ. I am also a Proxmox user.
OpenVZ is "just" a hardened chroot (with fine grained control and networking). The kernel is the same in the "containers" and on the host itself.
OpenVZ is lightweigth because of its design. It works perfectly fine as long as you need linux guests only. If your hardware supports hw virtualization you can use KVM (which is also in Proxmox) and you can do "full" virtualization and run wider range of operating systems.
I would not recommend Xen. You can get most features with KVM which is much more easier.
UPDATE
@ulf: In performance openvz is way better because there is almost no performance overhead. It is native system calls with a few more "security check". But as I said if the guest is not linux it is not an option. If one wants sophisticated networking it is doable, but it can be a pain.
When using Xen there is another layer (the hypervisor itself) involved which just passes over most of the calls verbatim most of the time, but does some translation/emulation for the others.
http://magazine.redhat.com/2007/08/23/automated-failover-and-recovery-of-virtualized-guests-in-advanced-platform/
try above link may help you :)
Proxmox is very good IMO, and has a lighter-weight implementation of libvirt than other KVM platforms.
I have no specific experience with OpenVZ but am quite familiar with Solaris Zones which are similar in concept. OS level virtualization (Solaris Zones, Linux OpenVZ, BSD Jails) is inherently much faster and lightweight than any hardware level virtualization (vmware, kvm, xen, virtualbox) as you haven't to run one OS instance per virtual machine. All processes have access to the native drivers instead of relying on virtualized ones.
OpenVZ is lightest, followed by Xen and KVM/VMware are the heaviest.
On the other hand, I've had problems with OpenVZ (very flaky during NFS, not really isolated etc.) and Xen, while KVM is very simple and adequately performant.
Your slow logins via SSH are potentially attributed to dns lookups. Try turning off useDNS in sshd and see if your login times improve. In addition to this, also turn off any ident lookups that might be affecting this.
I know this might be a stretch, but I've run into this problem many times on non-virtualized systems.