Tuesday, July 25, 2006

Installing ubuntu on Windows VMWare

Once you have all Ubuntu's ISO, do a checksum on it..
md5sum ubuntu-5.10-install-i386.iso
126751a2dc5528c2f9044d9e4ee36d61 *ubuntu-5.10-install-i386.iso

type MD5SUMS

7fbe948be484ba2f4740ab6113890652 ubuntu-5.10-install-amd64.iso
126751a2dc5528c2f9044d9e4ee36d61 ubuntu-5.10-install-i386.iso
8886a26a1da1daa3669ed6e1253bd93b ubuntu-5.10-install-powerpc.iso
8523ee4b5490c9b77ac4ec5e5a12b2f5 ubuntu-5.10-live-amd64.iso
49f36f8aef009d6403360de23b5a47d4 ubuntu-5.10-live-i386.iso
752c8d641ca486955c7747cac1c8a305 ubuntu-5.10-live-powerpc.iso

Then, create a 2GB virtual disk..
C:\Program Files\Qemu>qemu-img.exe create -f vmdk Ubuntu.vmdk 2G
Formating 'Ubuntu.vmdk', fmt=vmdk, size=2097152 kB

C:\Program Files\Qemu>start

Afterthat, create a folder Ubuntu under "My Virtual Machines", a sub folder of "My Documents" and move the Ubuntu.vmdk into the folder.

The content for the ubuntu.vmdk file..
virtualHW.version = "3"
ide0:0.present = "TRUE"
ide0:0.filename = "Ubuntu.vmdk"
memsize = "256"
MemAllowAutoScaleDown = "FALSE"
ide1:0.present = "TRUE"

#ide1:0.fileName = "auto detect"
#ide1:0.deviceType = "cdrom-raw"

ide1:0.fileName = "ubuntu-5.10-install-i386.iso"
ide1:0.deviceType = "cdrom-image"

ide1:0.autodetect = "TRUE"
floppy0.present = "FALSE"
ethernet0.present = "TRUE"
usb.present = "TRUE"
sound.present = "TRUE"
sound.virtualDev = "es1371"
displayName = "Ubuntu"
guestOS = "Ubuntu"
nvram = "Ubuntu.nvram"
MemTrimRate = "-1"

ide0:0.redo = ""
ethernet0.addressType = "generated"
uuid.location = "56 4d 5c cc 3d 4a 43 29-55 89 5c 28 1e 7e 06 58"
uuid.bios = "56 4d 5c cc 3d 4a 43 29-55 89 5c 28 1e 7e 06 58"
ethernet0.generatedAddress = "00:0c:29:7e:06:58"
ethernet0.generatedAddressOffset = "0"

tools.syncTime = "TRUE"
ide1:0.startConnected = "TRUE"

uuid.action = "create"

checkpoint.vmState = ""

Save it. Double click it to execute it..

In the menu, select first option: "Erase entire disk: IDE1 master (hda) - 2.1 GB VMware virtual IDE". Make sure that the description you see is similar before you press Enter. The installer creates and ext3 and swap partition that suits your (virtual) machine configuration. After roughly 20 minutes the first installation stage is finished, and the installer tries to reboot the virtual system. If you see "[4295504.601000] Restarting system." , just reboot it manually by selecting the Reset option in the Troubleshoot submenu.

Remember, if you want to use the CD player you have to delete the following two files from Ubuntu.vmk after you close the VMware Player:

ide1:0.fileName = "ubuntu-5.10-install-i386.iso"
ide1:0.deviceType = "cdrom-image"and uncomment the following 2 lines by removing the # sign:

#ide1:0.fileName = "auto detect"
#ide1:0.deviceType = "cdrom-raw"

Your Ad Here