Archive

Posts Tagged ‘Windows’

Embedding Windows in Linux with VirtualBox

February 10th, 2009 3 comments

I am obviously a big fan of Linux and use it at home as well as in my office. But in both places I still require Windows for two reason:

  • At home I require it for gaming. Wine is ok, but can still be a major pain in the ass with configuration and lesser known games.
  • In the office I am obliged to use Microsoft Office. I prefer LaTeX, but compared to OpenOffice the 2007 version of MsOffice is the big winner in my opinion.  But since working under Windows otherwise is out of question for me (I am way more productive with Linux/Gnome), a dual-boot like I use for gaming is no option.

So, in my office, I use VirtualBox to embed Windows inside my Linux desktop. Formerly I used VMware, which admittedly is more powerful, but provides a less appealing user interface and, at that time, did not provide the seamless mode, which I will make use of. To give an impression, here is a screenshot of my desktop:

Using VirtualBox to embed Windows inside Gnome

Using VirtualBox to embed Windows inside Gnome

I will not go through the installation process, as it’s pretty self-explanatory. But what VirtualBox additionally offers is the aforementioned seamless mode (default combination: Right-CTRL + L), which gives you the taskbar over your normal gnome panel. This is really nice, since it allows easy access and switching between Windows and Linux applications. While Alt-Tab is not used optimally (it only lets you access applications of one OS at a time), you can switch between Windows and Linux applications by pressing Right-CTRL before using Alt-Tab.

Another great feature is embedding any host folder (e.g. your home folder) directly inside the Windows explorer as seen on the screenshot. This is achieved by setting a shared folder in Devices->Shared Folders and then adding a network drive. This is as simple as right-clicking on My Computer (unsure about the name, I only have German Windows 😉 ) and adding the drive. From now it’s possible to modify and share files between host and virtual machine without any hassle.

Also, I configured cups to allow web access to the printers configured in Linux, so the Windows VM could easily print by using these. But I haven’t configured this yet since my last installation, so I cannot give a howto right now 😉 .

I hope you enjoy the progress of free VMs like VirtualBox as much as I do, as it allows Windows apps, that are sadly still required, to be used inside your Linux without a hassle and with nice integration. I hope that Alt-Tab is improved, then the whole thing would feel like a natural part of your Linux desktop. Additionally, VirtualBox now has Direct3D support (which I haven’t tested yet), so maybe one day we will be able to even do gaming inside our Linux distributions without any more need for a dual boot.

Update:

For all this, you need to install the Guest additions. You can find these in the menu devices.