HOWTO: Setup Headless Sun xVM VirtualBox 2.0 on Ubuntu Server 8.10 – Windows XP The steps are not too difficult but I did have to find a few places for information. Search on the forum turn up nothing on this subject so hopefully this HOWTO would be helpful to someone out there. Note: This is not using the OSE version. Background: Clarification of terms used: This setup was done on a fresh install of Ubuntu Server 8.10 with openssh-server installed. All the following steps are done by SSH into the host from a remote (I’m using Windows for now).
1. Get required packages
We are using the non-OSE version here. The manual from http://www.virtualbox.org/wiki/Downloads is also very useful. 2. Installation
This will generate a bunch of dependencies. Fix them with
3. Decide on user, disk files location First decide which user you want to run VirtualBox. Add this user to the vboxusers group.
By default VirtualBox creates the directory .VirtualBox on the user home directory and put all the config and disk file there. In my setup, I put the disk files in /var/vbox as I had created a large partition for this purpose. 4. Install a guest OS You will need an iso for the guest OS install CD. Copy or download it to the host. We will use windowsxp.iso -create a vm
-config vm
-create a disk
-add disk to vm
-register an install iso
-mount iso on vm
-start the vm with port
If you are running just 1 guest, the -p 3389 is optional. For more than 1 guest, it has to listen to different port. 5. Connect from remote Since my desktop is still Windows, I use Remote Desktop Connection. (On XP, Start>All Programs>Accessories>Communications) For Mac, use http://www.microsoft.com/mac/products/remote-desktop/ Just fill in the IP of your host (or IP:port if not the default) and you should see the Windows installation waiting for you. Other useful commands:
6. Install the Guest additions You will need the latest ‘VBoxGuestAdditions.iso that is located here:
Now just move it in /var/vbox/ since all our images are here.
Don’t forget to register your image!
Now we will mount it on the guest OS
Now you should see it in you Guest OS! | ||
| | ||