Monday, December 31, 2007

VMWare and Ubuntu Linux 7.10

I wanted to get an install of XP on my Ubuntu box and so downloaded VMWare server (its free) from here and found a howto here which I will quote throughout this post.

The first step is to load some of the Ubuntu modules you'll need to compile the vmserver via aptitude. Run the following command
sudo aptitude install linux-headers-`uname -r` build-essential (which requires your install cd)


Next install xinetd
sudo aptitude install xinetd
Per the instrustions from hotowforge, I went to the following site and downloaded the latest any-to-any patch. You'll need this patch in the middle of your install. http://www.vmware.com/community/thread.jspa?messageID=76957&tstart=0

Untar the vmserver tarball you downloaded.

tar -xvzf

Change directory into the resultant directory (there will be only one) and run

sudo vmware-install.pl

I accepted the defaults with the possible exception of the default vmware file location (you'll want it on a partiton with some space) and the following question you show answer NO to.

Before running VMware Server for the first time, you need to configure it by invoking the following command: "/usr/bin/vmware-config.pl". Do you want this program to invoke the command for you now? [yes]

Answer NO. You will then exit the installation script.

Now you'll want to run the patch you downloaded. Untar that file and descend into the resulting directory.

sudo ./runme.pl

Again, accept the defaults. The script modifies the installed vmware software. At the end you will again be asked to run the vmware-config. Answer YES this time.

After that completes, start vmware with the command
vmware
If you did everything right, the vmware console should appear. At this point you'll need to create a new virtual machine. If your machine once ran a microsoft product, you can reinstall on the new virtual machine but you'll need the license code off the old box. Alternately, you can install a new copy of Ubuntu or any other operating system supported by VMWARE.

So, to create a new guest OS you tell the vm server to create it, give it resource such as disk and memory. A note here is to use the defaults the first time you create an instance and, if you us FAT file system as a backup, allow vm server to split the created disk into 2 GB chunks.

After you have the VM created, put your OS install CD in and tell the instance to boot. It should read the CD and install the whatever OS you've selected. Follow the normal install procedure for that OS. The only additional step I recommend is to install vmtools into the new image once its up and running and has all the patches you wish to install.

Vmtools allows you to resize the screen above 460x680 and allows you to cut and paste between host and virtual machine.

All in all it was a fairly painless process outside of the OS install.

No comments: