VMware/Convert

From OLPC
Jump to navigation Jump to search
modify 

If for some reason the pre-converted VMWare/VirtualBox images are not appropriate for you (for instance because you want a release that is not provided as a VMWare image), you can follow these instructions to create your own. We don't actually do this ourselves (we have a script that does the operations automatically), but here are the basic steps involved...

  • Download an official devel-ext3 image (<thefile>.img.bz2)
  • bunzip2 <thefile>.img.bz2
  • use the qemu-img function from Qemu to convert the image into a vmdk file
    • qemu-img convert <thefile>.img -O vmdk <thefile>.vmdk
    • (in OS X, the output format goes first; try: /Applications/Q.app/Contents/MacOS/qemu-img convert -O vmdk <thefile>.img <thefile>.vmdk)

Now create a new VMWare "Machine" (if you have a commercial VMWare client):

  • "New Virtual Machine", "Typical", OS Type "Other Linux 2.6.x kernel"
  • Network Address Translation (NAT) networking (recommended, try others if you like)
  • Disk configuration (irrelevant, we're going to overwrite it)

If you do not have a commercial VMWare client, you can manually create an olpc.vmx file:

#!/usr/bin/vmware
config.version = "8"
virtualHW.version = "3"
memsize = "128"
ide0:0.present = "TRUE"
ide0:0.fileName = "olpc.vmdk"
ide1:0.present = "TRUE"
ide1:0.fileName = "/dev/cdrom"
ide1:0.deviceType = "atapi-cdrom"
floppy0.fileName = "A:"
ethernet0.present = "TRUE"
ethernet0.connectionType = "nat"
usb.present = "TRUE"
sound.present = "TRUE"
sound.virtualDev = "es1371"
displayName = "OLPC"
guestOS = "other26xlinux"

ethernet0.addressType = "generated"
uuid.location = "56 4d d1 99 5c 64 a3 6f-ef c7 aa 86 a8 cc ed 46"
uuid.bios = "56 4d d1 99 5c 64 a3 6f-ef c7 aa 86 a8 cc ed 46"
tools.remindInstall = "TRUE"
ethernet0.generatedAddress = "00:0c:29:cc:ed:46"
ethernet0.generatedAddressOffset = "0"

checkpoint.vmState = "olpc.vmss"

ide0:0.redo = ""

Start VMWare Player, open this .vmx file. Allow VMWare to create a new UUID.

Edit "Machine" Settings:

  • Memory 512MB (recommended for development work, 256 more closely simulates an XO)
  • Remove the auto-generated hard-disk
  • Add a new hard disk, "Existing Disk Image", choose <thfile>.vmdk
  • Ensure that audio is enabled

You should now be able to work with the image in VMWare