VirtualBox

From OLPC
Revision as of 16:36, 16 June 2010 by 76.111.93.119 (talk) (Caveats: rm note about PUEL, it doesn't apply./)
Jump to: navigation, search
modify 

Emulation with VirtualBox

VirtualBox is an emulator released under dual-license as either GPL or commercial software. It runs on either Mac, Win32 or Linux host machines, allowing you to run OLPC images within the virtual machine.

Compatibility

  • Official OLPC build 557 is known to work under VirtualBox with both sound and networking (tested on Linux AMD64 host).
  • Official OLPC build 625 is known to work under VirtualBox with networking (tested on Ubuntu Gutsy Linux AMD64 host). aptitude install virtualbox virtualbox-ose-modules-2.6.22-14-generic

Caveats

  • TamTam's CSound library does not appear to be working with build 557.
  • On Linux, VirtualBox setup requires a package of kernel modules

Setup

The VMWare/VirtualBox images are converted from the official images using a simple downloading script. You can either download and convert the official images yourself or use a pre-converted image.

Downloading a Pre-converted Image

Pre-converted images are made available periodically to support those who do not have Qemu's tools installed on their workstations. Choose the .zip file for the version you require.

The pre-converted images do not include VirtualBox Machines. Once you have unzipped the downloaded file, continue working from "Create a new VirtualBox Machine" below...

Building an Image from Scratch

  • Download an official devel-ext3 image (<thefile>.img.bz2)
  • bunzip2 <thefile>.img.bz2 - or - ( Windows: bzip2 -d <thefile>.img.bz2 using bzip2.exe from http://www.bzip.org/downloads.html )
  • VBoxManage convertdd <thefile>.img <thefile>.vdi
  • VBoxManage registerimage disk /full/path/to/directory/<thefile>.vdi

Create a new VirtualBox Machine

  • OS Type Linux 2.6
  • Base Memory 512 (recommended for development work, 256 more closely simulates an XO)
  • Boot disk, "Existing", choose
    • <thefile>.vdi (if using hand-built image)
    • <thefile>.vmdk (if using pre-built image)

Edit "Machine" Settings:

  • Choose "Audio", "Enable Audio",
    • "ALSA Audio Driver" (for linux hosts)
    • "DirectSound Driver" (for Windows hosts)

by kupito

Configure

Once you have booted the machine, you will need to specify a name for yourself and choose an XO colour. You will then need to configure the collaboration server. To do this, pull up the developer's console (<alt>+<=>), and use the "vi" or "nano" editor to change the configuration file ~/.sugar/default/config /home/olpc/.sugar/default/config to change the "server=" line to "server=olpc.collabora.co.uk".

If the GUI does not come up after choosing XO color: ctrl-alt-f2 to get to command prompt, login as root, make the change above and then reboot.

When this is done, reboot. The virtual XO should now have networking and sound support and should show you a network view with other XOs logged on.

See Also

  • VMWare is an emulation system with similar performance and usage
  • Qemu is an Open Source emulation system