Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
1  
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
add comment

4 Answers

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
1  
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
add comment

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
add comment

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

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

#!/bin/bash

set -eu

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

# EOF

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
add comment

If you're using Google Chrome as your browser on both OSs, push browser may help: http://pushbrowserapp.com/

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.