Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using VirtualBox OSE on Ubuntu 10.04.

I have a Windows 7 guest VM which I use almost exclusively for MS Outlook to access my Exchange mailbox. If I click a URL in Outlook it obviously opens in IE in the guest VM, is there any way to have it perform a redirect of some sort?

If I click a URL inside the VM, I want it to load in my default browser in the Ubuntu host.

share|improve this question
No, dont really think so. (Security is one point in using a VM, and this would totally ruin that point I guess if a VM can manipulate the OS this easily. VirtualBox is one hell of a software, but still does at least this much.) – Shiki May 12 '10 at 8:11
I figured it was a long shot, was hoping someone had a dirty hack to make this work.... guess not. :-) – ThatGraemeGuy May 12 '10 at 8:25
I don't agree it would have to be a security hole. I filed a bug to add a URL handler to Guest Additions. If you are trying to host Malware in a VM, then you wouldn't install Guest Additions to begin with (it gives access to video, etc.). – The Doctor What Jun 6 '11 at 14:36
up vote 1 down vote accepted

If there was such a way, it would be an enormous security hole.

The most you can do is use the Shared Clipboard: With Guest additions installed, the clipboard of your guest OS can be shared with your host OS.

share|improve this answer
I have been using shared clipboard (when I remember) but it is a little tedious. – ThatGraemeGuy May 12 '10 at 8:35
@Graeme Donaldson: I don't believe there's any other way. – harrymc May 12 '10 at 12:24
Sure, the Guest Additions could add a URL handler. The Guest Additions already has out-of-band communication with the VirtualBox and the Host. – The Doctor What Jun 6 '11 at 14:37

Theoretically yes. You could have a stub handler within the guest send a message to a daemon running on the host which actually invokes the proper application. I've never seen such a setup myself though.

share|improve this answer
I'm almost tempted to throw one together in ruby. On Linux I'd use gnome-open and listen only on the virbr0 interface. On windows, I'd probably still use ruby to send the message. – The Doctor What Jun 6 '11 at 14:43

If you're using Google Chrome as your browser on both OSs, push browser may help:

It's basically an extension that lets you send tabs from one device to another, currently supporting Chrome and iOS devices. In your situation, you'd click the link in Outlook, it'd open in Chrome in the VM, you'd click the push browser icon, and the tab would open in Chrome on your ubuntu machine.

share|improve this answer

I had the same idea as Ignacio Vazquez-Abrams and I implemented it.

So the first part of this is an HTTP server that listens to requests on the machine where you want to open the browser. On an incoming request it opens (in a browser) the URL given as an argument of a POST request.

Pick one:

You should add this script to startup, it's supposed to run in the background.

The second part is something that invokes the request.

Pick one:

You should designate this script as your default browser. How to do that is... a separate question. You can search for something like "windows set custom executable as default browser".

It can also be used as a command line tool: ./ ''

The Python scripts should work on all major systems with any reasonably recent Python version (I suspect 2.6+, 3.1+).

On Windows, if you don't want a Python script to run in a command window, you should change its extension to .pyw. Use Task Manager if you want to stop it (look for pythonw.exe).

VirtualBox network adapter should be set to NAT (default setting). More about the IP address here. The choice of port is arbitrary, feel free to change 1337 to something else everywhere.

The server is secure because it listens only to connections from localhost. VirtualBox makes it work somehow. But if you want this to work remotely, specify the listening IP address as '' or '' instead of 'localhost'.

share|improve this answer
After all these years, finally someone has done this. Great job, Oleh Prypin. This is working perfectly. It should be upvoted. – shivams May 17 at 11:19

I'm in the same situation. Here's my better than nothing solution:

I created the script ~/bin/pburl that contains:


set -eu

exec gnome-open $(xclip -out -selection clipboard)


What this does is takes any URL you have in your clipboard and opens it as a URL using gnome's default url-handler (Chrome in my case).

My usage is:

  1. In Outlook (on the Guest) I "copy hyperlink".
  2. I click on the desktop or a non-VM window.
  3. I press control-space which launches Synapse and type pburl.

Presto! The URL opens.

It's not as good as just clicking would be, but it does shorten the whole copy-open-browser-paste routine.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .