Ubuntu Server "minimal virtual machine"
Posted: 2. May 2011, 01:40
Booting an Ubuntu Server CD, in the main installation menu, you can press F4 and select "Install a minimal virtual machine" before beginning the installation to choose a VM-optimized version of Ubuntu Server.
Before installation:
- In the VM settings, enable the "PAE/NX" processor feature.
- Do not use a SATA boot drive! Installation will appear to work, but you'll get a missing drive error on first boot. IDE, SCSI, and SAS all work fine, best I can tell. (If you create a Linux/Ubuntu VM using the wizard, the boot drive will be SATA by default, but you can move it to a different controller before booting the installation CD.)
After installation:
- Install the package acpid to be able to shutdown the VM from VirtualBox.
- If you want to use Guest Additions, while following the excellent Howto: Install Linux Guest Additions + Xorg config you'll need to install the linux-headers-virtual package instead of linux-headers-generic. You'll still get a "fail!" message when it tries to install the Window System additions, but that's to be expected.
Just how minimal is it? My little one has 80 MB memory, 1 MB video, no absolute pointing device, no audio, no USB. With 32-bit 11.04, the "Basic Ubuntu server" and "SSH server" software packages, and the Guest Additions, it weighs in at around 1 GB on the boot drive. At idle, "free" says 71296 total mem, 39940 used/31356 free.
I haven't measured the performance of the F4 "minimal virtual machine" versus using the standard installation. One advantage, though, is that you won't get the annoying piix4 smbus warning message on bootup, so you won't need this workaround.
Before installation:
- In the VM settings, enable the "PAE/NX" processor feature.
- Do not use a SATA boot drive! Installation will appear to work, but you'll get a missing drive error on first boot. IDE, SCSI, and SAS all work fine, best I can tell. (If you create a Linux/Ubuntu VM using the wizard, the boot drive will be SATA by default, but you can move it to a different controller before booting the installation CD.)
After installation:
- Install the package acpid to be able to shutdown the VM from VirtualBox.
- If you want to use Guest Additions, while following the excellent Howto: Install Linux Guest Additions + Xorg config you'll need to install the linux-headers-virtual package instead of linux-headers-generic. You'll still get a "fail!" message when it tries to install the Window System additions, but that's to be expected.
Just how minimal is it? My little one has 80 MB memory, 1 MB video, no absolute pointing device, no audio, no USB. With 32-bit 11.04, the "Basic Ubuntu server" and "SSH server" software packages, and the Guest Additions, it weighs in at around 1 GB on the boot drive. At idle, "free" says 71296 total mem, 39940 used/31356 free.
I haven't measured the performance of the F4 "minimal virtual machine" versus using the standard installation. One advantage, though, is that you won't get the annoying piix4 smbus warning message on bootup, so you won't need this workaround.