Archive for the ‘Virtualization’ Category

Sun xVM VirtualBox is released!

Sunday, May 4th, 2008

VirtualBox 1.6 is out. Note that now you can use Mac OS X and Solaris as a host platform. Naturally, having Mac OS X support excites me.

I tried installing a Ubuntu 8.04 server guest. Found a tiny issue - 64-bit guests aren’t supported yet :( So I pulled in the 32-bit ISO, and that installed just fine. Note that PAE support for guests exist now, and this is a good step in the right direction.

Sun’s building an OpenxVM community, which currently focus on xVM and xVM VirtualBox. It also harnesses technologies like Open Service Tag. All in all, I think a lot of MySQL users should be interested in virtualization, as there is a growing amount of hardware out there with many, many cores available for use.

Installing Ubuntu 8.04 server and getting past the kernel not booting
This is more of an Ubuntu problem, than a VirtualBox problem, but I faced an issue:

The kernel requires the following features not present on the CPU
0:6
Unable to boot - please use a kernel appropriate for your CPU

Turns out, the problem was the wrong kernel was installed. Rescue Ubuntu, and install linux-generic. For reference, look at Unable to boot 8.04 Alpha 3 Server install on laptop and also the fix.

VirtualBox on Fedora 8

Wednesday, January 2nd, 2008

I managed to get my old Vista image created on Ubuntu Gutsy, to see if it would run under KVM on Fedora 8. Turns out I get a similar blue screen of death. Looks like it might be the splash screen of Windows causing KVM/QEMU to bork. Decided that it might be time to try VirtualBox.

No Fedora 8 RPMS are provided, so the Fedora 7 RPM will have to suffice. First snag? Lacking kernel-devel (by default, you now get kernel and kernel-headers). After installing that, its a simple sudo /etc/init.d/vboxdrv setup. Ensure that the user you’re running as, is also a member of the group vboxusers (you have to do this manually).

Starting up innotek VirtualBox is now a breeze. Though I have a feeling I have to run the setup everytime I get a new kernel (which is a problem in Fedora land, as there’s a rapid pace of development). This feeling was confirmed quite quickly, as I had a new kernel release almost immediately from the time I trialled this to the time I wrote this. At first glance, its an ugly application (Qt based).

Setting up a VM requires no KVM support, so in Fedora, this means removing kvm_intel and kvm from the running kernel. Good thing they’re modules, eh?

Setting up Window Vista was a breeze. Allocating it 1GB of RAM on my 2GB machine, seemed OK, as long as Firefox with multiple tabs weren’t running. Vista does something quirky - it pre-allocates all the RAM, probably by writing zeroes, and thus makes use of 1GB of RAM even before it starts. Oh well. At least I have Windows, and it performs, relatively well, so I can test software.

Networking? Much has been written about this, in fact, there’s even a ticket #504 for this. In fact, it was easy - Devices -> Install Guest Additions. Then get Windows to probe for new hardware, and add the network card. Very simple, quite unlike my KVM experience. If you for some reason want to mount the image itself, its located at /usr/share/virtualbox/VBoxGuestAdditions.iso.

Technorati Tags: , , , , ,

How to clone a virtual machine with VMWare Server

Sunday, October 14th, 2007

There didn’t seem like a clear way to make a copy (or clone) of a virtual machine with VMWare Server. Not with the 1.0.3 build-44356 which comes standard with the Ubuntu Commercial repository (one of the good virtues of Ubuntu).

So, I fired up the console, and did:
cp -ax Centos\ 5/ Centos\ 5-new

It took 4m5.643s to copy this on my laptop hard disk (only 1.5GB). I loaded it into VMWare, via their Open a virtual machine option, renamed it in the inventory, powered my new virtual machine on and was asked if I’d like to create a new UUID for it. I’d advise you to create one, and once that was done, my virtual machine is ready to go.


Create a new UUID, and you’re set

Exactly what I like. Not re-installing CentOS everytime. Just create a “golden” image and start cloning from there. Maybe with some slack/puppet integration in the future, if I end up using a lot of VMs.

Technorati Tags: , , , , , , , , ,