Saturday, November 6, 2010

Create a Windows Virtualbox Session

Here is how to create a Windows Virtualbox session. You will have to have Virtualbox installed as well as a licensed copy of Windows installed as a guest virtual machine. Obviously some of you may want to pirate Windows. This is not a tutorial on how to go about cracking the latest copy of Windows, and has only been tested on Windows XP Professional.

1. Create the following file and place it in your /usr/bin
#!/bin/bash

VBoxSDL -fullscreen -vm "Name-of-your-Windows-VM"

The inverted commas are important.  Replace the contents with the name of your VM in Virtualbox, (that's the name that appears when you boot up Virtualbox)

Now name the file  something like winxp, move to /usr/bin
and make the file executable:
chmod +x /usr/bin/winxp

2. Add a new file to usr/share/xsessions

Name it something like xp.desktop and paste in the following code:
[Desktop Entry]

Encoding=UTF-8

Name=Windows XP Pro

Comment=This session will run XP VirtualBox

Exec=/usr/bin/winxp

Type=Application

You can change and comment these lines to suit your session, the important line is the exec part which will execute the script you created.

Log out and change your session from Ubuntu Desktop to Windows XP Pro

No comments:

Post a Comment