linux
2009’s Virtualization Techniques Compared
Hi folks, before we get started a small explanation of my setup and why I want to replace it.
My small home server runs Xen 3.3 with Ubuntu Intrepid, a Debian Xen kernel and the guests on LVM devices. Guest OSs vary from Debian over Solaris to Windows. I built the server last year, but sadly I’m already running out of HDD space and want to upgrade soon. I also want to re-install the Dom0 because Intrepid doesn’t run very well: USB doesn’t work with all devices, there are some bugs in the start-up scripts and I have trouble with the ttys.
A lot has changed since I last fiddled with virtualization so I used this weeks bad weather to compare the current status of all those virtualization systems.
Because there are so many different needs, there are many specialized solutions for desktop and server virtualization. Open-Source, free or commercial ones.
I use VirtualBox on my workstation because it’s free, fast, easy to use and runs very very well. I’ve used the VMware products earlier on Linux and Windows until they became too feature-rich, slow and sometimes even buggy for me. But this post is not about desktop virtualization, it’s about open-source (or free) server virtualization.
VMware Server, VMware ESXi, Microsoft Hyper-V, VirtualBox, Xen and KVM are the ones I’ve tried. There is also Virtuozzo, OpenVZ, UML and so on, but these are more like chroots on steroids. Continue reading to see what I liked and what I didn’t like about them.
Linux hates me!
I started using Linux back in 2004 with SuSE Linux 9.0 and I liked it. When I upgraded to 9.1 (or 10.0? don’t know…) I got a bit disappointed, which is why I switched the distro. I installed Debian Stable (Sarge at that time), but I found the KDE version coming with Debian Sarge to be pretty old (or older than the SuSE 9.0 ones…I have versionitis you know), which is why I upgraded to SID. I knew that SID isn’t meant to run on production systems, but I got tired of the dependency problems ‘n stuff pretty soon… I then installed Gentoo on my Desktop and kept Debian Stable on my server which worked very well for more than two years. I mean… first time installation of Gentoo was a pain in the ass on my AMD Athlon XP 1800+ and upgrades (especially KDE upgrades) were annoying, but the system ran well and the rolling-updates were cool. I also learned a lot about the Linux internals like the kernel itself, using command line and editing config files… all the basic stuff which helped me quite a lot with OpenBSD and MacOS later on.
Everything worked well until I got p*ssed off by the compiling times. So I upgraded the hardware to a Quad-Core CPU and 8Gb RAM and installed Gentoo AMD64. Maybe that was a mistake: Flash didn’t work without hacks, Java browser plugin didn’t work, KDE applications crashed more often than on the old installation, GUI applications felt sluggish and the compiling times were not as good as I expected them to be (never figured out why).
Stop reading now if you don’t want to hear me bitching! Read more…
My Backup Strategy
Now that a new year is here I really need to finish some points of my To-Do list! Here we go…
As I said few weeks ago, maybe a little bit delayed, here comes how I backup all my stuff. This post is not a how-to. It’s just a configuration example. If you want a howto use this link.
Read more…
How-To: Run Xen in Ubuntu Intrepid without compiling a Kernel by yourself
Update: Also read my Article about current Virtualization Techniques
I got some strange errors when I tried to run OpenSolaris on Hardy as a HVM domain. These errors were fixed in 3.3, but Ubuntu Hardy doesn’t have Xen 3.3 and there were no backports at that time (don’t know if there are ones now) so I upgraded to Ubuntu Intrepid an then noticed that Canonical has dropped Xen Dom0 support. Great! Why the heck did they drop Xen? Because KVM is cooler? Or because they didn’t want to blame themselves by releasing another totally buggy self-patched Dom0 kernel?
I mean they didn’t even manage to provide a working one later on so the community had to…and thats a LTS release? WTF?
O.K. well… You want Xen 3.3 with it’s improvements? You don’t want to switch the distro? You don’t want to compile on your own? Here’s how I did it with Ubuntu Intrepid:
I used the Xen 3.3 Hypervisor and Utils coming with Intrepid and then stole a Dom0 kernel from Debian. Debian has linux-image-2.6.26-1-xen-amd64 and linux-modules-2.6.26-1-xen-amd64. I installed both packages and by now everything works great.
O.K. I called this post How-To so here comes how to install the Debian packages on Ubuntu. I will only show you how to install them by hand, you could also add the Debian repos to your sources.list and use pinning.
wget http://ftp.de.debian.org/debian/pool/main/l/linux-2.6/linux-modules-2.6.26-1-xen-amd64_2.6.26-10_amd64.deb wget http://ftp.de.debian.org/debian/pool/main/l/linux-2.6/linux-image-2.6.26-1-xen-amd64_2.6.26-10_amd64.deb sudo dpkg -i linux-modules-2.6.26-1-xen-amd64_2.6.26-10_amd64.deb sudo dpkg -i linux-image-2.6.26-1-xen-amd64_2.6.26-10_amd64.deb wget http://ftp.de.debian.org/debian/pool/main/l/linux-2.6/linux-modules-2.6.26-1-xen-amd64_2.6.26-12_amd64.deb wget http://ftp.de.debian.org/debian/pool/main/l/linux-2.6/linux-image-2.6.26-1-xen-amd64_2.6.26-12_amd64.deb sudo dpkg -i linux-modules-2.6.26-1-xen-amd64_2.6.26-12_amd64.deb sudo dpkg -i linux-image-2.6.26-1-xen-amd64_2.6.26-12_amd64.deb
Or find the latest using these links: modules kernel
That’s it. There are no other depends. Just reboot. The new kernel should now be the default one. But keep in mind that this is just a workaround.
If I should ever reinstall this Xen-Server: I WILL NOT USE UBUNTU ANYMORE! All these annoying stupid errors… Maybe Debian or CentOS. I mean… I like Ubuntu, it’s a great beginner distro and even lets the nerds control everything they want, but what Canonical delivered the last few months just sucks. All these annoying bugs they added by patching arround: Non-working sound, A buggy KDE4. O.K. you could say that’s all desktop related stuff, but on my server for example I had some very strange XFS errors with the Ubuntu-Server kernel that just disappeared with the (also newer, maybe that’s the point) Debian kernel.
How-To: Encode Videos for iPhone or iPod on any Unix using ffmpeg
Imagine what? I’m a big fan of the iPhone/iPod touch for mobile entertainment and since I’m also a big fan of the commandline, I of course want to use ffmpeg for video conversion.
But… I’ve been looking for a working ffmpeg config for serveral months now. There were issues with Medibuntu’s version of ffmpeg for Ubuntu Hardy (or at least I had a lot of issues), there were issues with iTunes’ crazy restrictions, there are dozens of (non) working ffmpeg configs on the web… so I just want to share my config with you. Read more…
Search this Site
Blogroll
Archives
- March 2010 (2)
- February 2010 (1)
- January 2010 (4)
- December 2009 (3)
- November 2009 (3)
- October 2009 (1)
- August 2009 (3)
- July 2009 (1)
- June 2009 (4)
- May 2009 (3)
- April 2009 (5)
- March 2009 (7)
- February 2009 (3)
- January 2009 (10)
- December 2008 (9)
- November 2008 (8)
Hi, my name is Chris. I am a wannabe photog, traveler & geek that is again a student and lives in Hesse, Germany. 



