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!
Setting up a server with VirtualBox.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Setting up a server with VirtualBox.
You would probably need to port forward on your router to get this to work.
-
BillG
- Volunteer
- Posts: 5106
- Joined: 19. Sep 2009, 04:44
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows 10,7 and earlier
- Location: Sydney, Australia
Re: Setting up a server with VirtualBox.
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).
Bill
Re: Setting up a server with VirtualBox.
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.
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 !
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 !