Intro
This article is about how to get your AA1 image running in VirtualBox. This is useful, when you need to support a Acer AA1, but cannot have your own. These notes here are a brain dump after the implementation and might be wrong or incomplete. You’ve been warned.
Making the copy
For making the copy there aren’t many alternatives. One of them if booting Knoppix. Knoppix can be configured to automatically provide something called a Knoppix Terminal-Server. It allows you to netboot other machines into Knoppix. It is important that you do not deactivate root access on the terminal machines.
- Mount the hard drive through GUI or by doing mount /media/sda1
- Open a root shell and run the command: rsync -az /media/sda1 remote.server:/space/ or create a tar archive with: cd /media/sda1; tar c | ssh remote.server “cat – > sda1.tar”
- Make a note of the partitioning scheme: parted /dev/sda print > /media/sda1/part.txt
- Unmount /media/sda1
Restoring the copy in VirtualBox
Restoring could be done similarly than making the copy.
- You create a new virtual machine and assign it 8GB hard disk drive.
- You assign a Knoppix CD as a CD-ROM image and boot into the new machine
- You partition the hard drive according to the specs previously saved in part.txt, create the filesystems with mke2fs and mount them in their right places
- You restore the backup either by: rsync -az remote.server:/space/sda1/ /media/sda1/ or by cd /media/sda1; ssh remote.server cat sda1.tar | tar x
Adjusting the copy for booting in VirtualBox
- Compiling a new kernel with the IDE driver build in
- Adjusting the kernel parameters to point the kernel directly to the root partition
- the IDE/ATAPI driver
- PIIX4 PCI driver
- the AHCI driver, if not already activated
Now edit /boot/grub/grub.conf and point it to bzImage-IDE instead of bzImage. Also append root=/dev/sda1 to the kernel command line and comment the line mentioning the initrd file. Now in theory your system should be bootable. A sample grub.conf is attached to this article.
But you won’t see anything yet, because the Xorg driver needs to be reconfigured. The Xorg configuration file is /etc/X11/xorg.conf. The section for Monitor0 is best replaced with the same section from /etc/X11/xorg.conf as it was detected by the Knoppix running in that virtual machine. That gives you a generic configuration for your monitor. In the Videocard0 section, the driver has to be changed from “intel” to “vesa”. In “Screen0” we change the first default video mode from 1024×600 to 1024×768. A xorg.conf is attached to this article, but instead of replacing the sections they have been renamed.