Is it possible to setup host machine browser as default guest system browser

So I want to be redirected to my host system browser when I click some link in guest system.

Note that I don't want to have browser on guest system at all.

Host: Windows 7

Guest: GNU/Linux & KDE

Use case: I have 2 monitors, one is for Linux (Running in VirtualBox) but I want to have one browser for both so when I click on some link in Linux IRC client I want this link to be opened in running browser on host system.


Another answer due to some clarifications below.

As you said, you can create a little script and set it as your default browser in your KDE settings. To make these things in the easiest way possible, you should simply send the firefox command to your host machine over SSH. Here's a link describing how to setup a SSH server on Windows 7, http://codeoptimism.com/2010/10/08/SSH-on-Windows-7-the-full-awesome-implementation

Then the script would be as simple as that (don't forget to allow execution) :

#!/bin/sh
ssh [email protected] '/c/Program\ Files/Mozilla\ Firefox/firefox.exe $1'

Run this command before using it as your default web browser, as you would have to add the machine in your known hosts list. You will have to set up a public key authentication too, so it doesn't prompt the password.

KDE4 shoud let you specify the script's path to be run each time you click on a link.


There aren't any popular solutions online for that, but I think you could try to create two plugins (with Greasemonkey, NPAPI or FireBreath), and it would be a little harder since your host machine is Windows 7 as I don't know any way to execute a command remotely like using SSH.

  • One for your host system, that listens to a port for incoming connections, and get the order to navigate through a link you will click in your guest system's web browser.

  • Another one for your guest system, which will connect to your listener and send a packet containing the link to go through.

If you feel alright with this solution and ready to start, I suggest you to ask StackOverflow if you need some help while doing it.

Good luck.