How to connect to a remote VM using vagrant?

1

1

I have two Windows 7 machines in my local network.

One Windows 7 with Virtual Box (running Ubuntu) installed.

Is it possible to connect to the Ubuntu from another machine by using vagrant ?

Znatz

Posted 2013-05-02T15:56:46.963

Reputation: 113

Answers

1

So essentially you are trying to access/manage a VirtualBox VM on a remote host with Vagrant? Nope, that's not possible currently with the existing Vagrant-VirtualBox provider :( Though there are solutions for other platforms like EC2 https://github.com/mitchellh/vagrant-aws/ that accomplish roughly the same...

cmur2

Posted 2013-05-02T15:56:46.963

Reputation: 126

Yes, that's what I want. Thank you. Is it possible to connect to it through ssh ? – Znatz – 2013-05-02T23:38:33.410

Where do you want to connect to via ssh? – cmur2 – 2013-05-03T07:51:31.503

Sorry for my English. I have 2 PCs (A and B) in local network. A has Virtual Box installed. The guest system is Ubuntu. What I want is to connect Ubuntu via ssh from B. I finally figure out how to do it now. By setting the virtual machine network type to bridged, make Ubuntu visible in the local network. I am able to ssh it from B now. Thanks a lot ! – Znatz – 2013-05-03T12:43:38.647

1

In your vagrant file, use a bridged network type then you can access it from another machine. This line for example:

config.vm.network :public_network

user114447

Posted 2013-05-02T15:56:46.963

Reputation: