Page 1 of 1

Setting up a server with VirtualBox.

Posted: 17. Mar 2012, 20:23
by .aur8l
Hello to everyone.

I m pretty used to VirtualBox, and already successfully created VMs. I had the idea of creating a server hosted on a virtual machine. My host system is Windows 7 based. The guest is Ubuntu 11.10. I use bridged mode for networking (associated to my host ethernet card). The guest ip adress is fixed in my home network and access the web fine. Finally, the guest responds to ping from any machine in my network.
However, if I try to ssh from the outside world to the guest, it can t be accessed. I pkayed a kittle with port forwarding and all but it won t work. I understand the problem is more network than vb related but still, anyone can help?

Thanks!

Re: Setting up a server with VirtualBox.

Posted: 17. Mar 2012, 21:11
by Perryg
You would probably need to port forward on your router to get this to work.

Re: Setting up a server with VirtualBox.

Posted: 18. Mar 2012, 02:48
by BillG
I agree with Perry. Since you are using bridged networking, your server will look just like another machine on the LAN to your router. You will need to set up port forwarding on that device to forward traffic to the LAN IP address of your server to reach it from outside (using the router's public IP).

Re: Setting up a server with VirtualBox.

Posted: 18. Mar 2012, 11:57
by .aur8l
And I do agree with you two. I forwarded the 2222 port on my router to the guest ip adress 22 port. I try to access it via the public p of my network... Still, connection refused... No guess on this one.

Re: Setting up a server with VirtualBox.

Posted: 18. Mar 2012, 13:11
by .aur8l
edit : errr, can't connect to the internet on the guest... I can still access TO it from the outside world (on SSH).
edit2 : the problem occured after setting a fixed ip adress to the guest... please, anyone ?

Made it !
Played with prot forwording on the router AND on the VM settings. Switched to NAT mode also. Successfully connected to the guest through ssh by accessing my public ip.
Probably will write a tutorial on this one. It's very strange none have been released yet !