Articles

Run GUI from virtual machine

In howto on Jan 22, 2016 by theoryl Tagged: , , ,

To run GUI applications such as Firefox from within a VirtualBox guest using Vagrant, do

vagrant ssh -- -X

Make sure X11 server has been installed on the guest VM, and that /etc/sshd_config has the line:

X11Forwarding yes

Also make sure the environment variable DISPLAY is set:

echo $DISPLAY

Typically it’s set to something like localhost:0.0 or localhost:10.0.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: