VirtualBox: Install Windows XP using pbx boot 2008-06-24Posted by claudio in Uncategorized.
Tags: GNU/Linux, Linux, Sun, Ubuntu, VirtualBox, Virtualization, WindowsXP
VirtualBox is a great product for a developer (or even a regular user) to run several OSes simultaneously. I run Linux on my laptop, but I need a Windows partition with certain software and updates to connect to the work network. A virtual machine is a fine solution. Specially when running in seamless mode (only the program is open in your Linux desktop and not the complete Windows desktop).
Installing Windows from cd on a VirtualBox instance is really easy. However, I need a *specific* windows installation that can only be installed from a Windows PXE server at work. Sadly, the virtualbox open source edition delivered with Ubuntu 8.10 is unable to do this. This is what I did:
1. Get virtualbox from here (choose binaries and not the OSE edition)
2. Install it (the name of the binary depends on you OS and version, I am running Ubuntu Hardy on x64). Answer positively to all the questions.
$ sudo dpkg -i /home/claudio/Desktop/virtualbox_1.6.2-31466_Ubuntu_hardy_amd64.deb
3. Configure your OS:
$ sudo /etc/init.d/vboxdrv setup
$ sudo vi /etc/group
==> add your user to the vboxusers group
4. Create a bridge ethernet setup:
$ sudo apt-get install bridge-utils
$ sudo vi /etc/network/interfaces
=> add this:
iface br0 inet dhcp
$ sudo /etc/init.d/networking restart
$ sudo VBoxAddIF vbox0 claudio br0
=> use the username of the user running the Virtual Machine instead of my name.
5. Start VirtualBox (Applications – System Tools – Sun xVM VirtualBox; type “VirtualBox &” in a console if not yet added to the menu).
6. Create a Windows virtual machine (follow the “New” Wizzard).
7. Select the new virtual machine, right click, select Settings. In General, second tab, enable the “Network” boot option. In Network, choose type “Host” and put vbox0 in the interface field.
8. Boot the VM and follow the PXE instructions (I had to type F12 to continue)