How do I remotely access a virtual Ubuntu Machine?

4

1

What is the easiest (no configuration on router, firewall, etc) way to access Ubuntu (virtual machine inside a Ubuntu real machine) from outside my network?

Long version:

I don't really know how my home network works (2 or 3 routers, 6 computers, my father control the network).

But what I need is to be able to see (and use (click,write)) on the Virtual Machine (running Ubuntu) inside my own machine (running Ubuntu). I'd rather not mess with the network (weird equilibrium). I think it's possible, but I don't know what works best and is the easiest to implement.

Ps.: Using VirtualBox. I thought that there was a new program (new to Ubuntu, ported from Windows) that would go over all the port forwarding stuff (Am I wrong? )

Ps2.: Would it be easier to access my first machine (the host for the virtual machine) from outside? I so, I don't mind doing this from Ubuntu (not messing with VirtualBox)

Jhonny Bigodes

Posted 2011-01-20T14:20:17.480

Reputation: 63

Answers

4

Teamviewer is a remote access tool with zero configuration and it supports linux. I've found this tool to be the easiest way to control desktops from outside my network.

bruno077

Posted 2011-01-20T14:20:17.480

Reputation: 867

That's the one thanx – Jhonny Bigodes – 2011-01-20T17:26:39.013

0

It depends on what you are using for the virtual machine.

Can you ssh to that physical machine? Are you using virtual box?

If so look at this: http://mydebian.blogdns.org/?p=148

Your VM software needs to forward a port to your physical machine.
Then you can either ssh to your physical machine and then to your VM or you can, if setup correctly, directly connect to your VM from the outside(as long as the router is forwarding you some ports to use for ssh).

madmaze

Posted 2011-01-20T14:20:17.480

Reputation: 3 447

Also if you are using Virtual Box 4(newest) see the documentation here: http://www.virtualbox.org/manual/ch06.html

– madmaze – 2011-01-20T14:45:51.990

0

I would say hands down the easiest way is to set up port forwarding. I know a number of very talented CS grads that find this prohibitively difficult, and I'm not sure why. Just go to the port forwarding page in your router, and figure it out from there. It's just a few key strokes. Then use SSH with X forwarding.

You did say that you didn't want to change your network, so if there's a really great reason for this other than learning curve, ignore this post. In general, I would look to the built in linux tools before relying on a third party gui tool.

JFA

Posted 2011-01-20T14:20:17.480

Reputation: 115