[opensuse] How to access openSUSE server hosted in VirtualBox
![](https://seccdn.libravatar.org/avatar/9c06031aaadda145089b2480338feb86.jpg?s=120&d=mm&r=g)
Hi, I have VirtualBox on my notebook (running openSUSE 13.1) hosting for testing purposes openSUSE 13.1 server. I wonder how to configure network VB's and hosted's OS networking to be able to access server services from hosting computer. All my trials failed: I lost network on server and I can't connect it. I don't need to access hosted system from outer network. Any advice? All the best, Vojtěch -- Vojtěch Zeisek Komunita openSUSE GNU/Linuxu Community of the openSUSE GNU/Linux http://www.opensuse.org/ http://trapa.cz/
![](https://seccdn.libravatar.org/avatar/6aa40149a7b6a786f9ae89f4027863dc.jpg?s=120&d=mm&r=g)
Le 22/01/2014 17:59, Vojtěch Zeisek a écrit :
Hi, I have VirtualBox on my notebook (running openSUSE 13.1) hosting for testing purposes openSUSE 13.1 server. I wonder how to configure network VB's and hosted's OS networking to be able to access server services from hosting computer. All my trials failed: I lost network on server and I can't connect it. I don't need to access hosted system from outer network. Any advice? All the best, Vojtěch
* disable your firewalls on your Host and guest ! (or try without it) * Go in the VirtualBox manager, * Menu File, Preferences (or CTRL-G) * "Network", then click on "+" on right * Edit its properties, Choose your Host IP adress as 192.168.10.1 * close * right click on your virtual machine, "Settings" (or CTRL-S) * Network, Adapter 1 : "Attached to NAT". Use it for repositories access. * Network, Adapter 2 : "Host only Adapter" * On your Guest use "yast2 lan" to set 192.168.10.2 Ok ? Dsant, from France -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/9c06031aaadda145089b2480338feb86.jpg?s=120&d=mm&r=g)
Thank You for straightforward howto. Dne St 22. ledna 2014 19:00:27, Dsant napsal(a):
Le 22/01/2014 17:59, Vojtěch Zeisek a écrit :
Hi, I have VirtualBox on my notebook (running openSUSE 13.1) hosting for testing purposes openSUSE 13.1 server. I wonder how to configure network VB's and hosted's OS networking to be able to access server services from hosting computer. All my trials failed: I lost network on server and I can't connect it. I don't need to access hosted system from outer network. Any advice? All the best, Vojtěch
* disable your firewalls on your Host and guest ! (or try without it)
* Go in the VirtualBox manager,
* Menu File, Preferences (or CTRL-G) * "Network", then click on "+" on right * Edit its properties, Choose your Host IP adress as 192.168.10.1 * close
It is host only network, right? No need to configure DHCP?
* right click on your virtual machine, "Settings" (or CTRL-S) * Network, Adapter 1 : "Attached to NAT". Use it for repositories access.
In hosted systém I assigned DHCP to this interface. I'm not able to connect from hosted server to anywhere. When I try to access some IP address, I get error about unreachable network, when I connect to hostname, I get error about unknown host. I don't know what is wrong
* Network, Adapter 2 : "Host only Adapter"
* On your Guest use "yast2 lan" to set 192.168.10.2
Static IP is set for second network interface connecting only to host. Nice, I can connect from the host to the server.
Ok ?
Not at all, but step forward. ;-)
Dsant, from France
All the best, Vojtěch -- Vojtěch Zeisek Komunita openSUSE GNU/Linuxu Community of the openSUSE GNU/Linux http://www.opensuse.org/ http://trapa.cz/
![](https://seccdn.libravatar.org/avatar/6aa40149a7b6a786f9ae89f4027863dc.jpg?s=120&d=mm&r=g)
Le 23/01/2014 15:53, Vojtěch Zeisek a écrit : > Thank You for straightforward howto. > > Dne St 22. ledna 2014 19:00:27, Dsant napsal(a): >> Le 22/01/2014 17:59, Vojtěch Zeisek a écrit : >>> Hi, >>> I have VirtualBox on my notebook (running openSUSE 13.1) hosting for >>> testing purposes openSUSE 13.1 server. I wonder how to configure network >>> VB's and hosted's OS networking to be able to access server services from >>> hosting computer. All my trials failed: I lost network on server and I >>> can't connect it. I don't need to access hosted system from outer >>> network. Any advice? All the best, >>> Vojtěch >> * disable your firewalls on your Host and guest ! (or try without it) >> >> * Go in the VirtualBox manager, >> >> * Menu File, Preferences (or CTRL-G) >> * "Network", then click on "+" on right >> * Edit its properties, Choose your Host IP adress as 192.168.10.1 >> * close > It is host only network, right? No need to configure DHCP? > >> * right click on your virtual machine, "Settings" (or CTRL-S) >> * Network, Adapter 1 : "Attached to NAT". Use it for repositories access. > In hosted systém I assigned DHCP to this interface. I'm not able to connect > from hosted server to anywhere. When I try to access some IP address, I get > error about unreachable network, when I connect to hostname, I get error about > unknown host. I don't know what is wrong > >> * Network, Adapter 2 : "Host only Adapter" >> >> * On your Guest use "yast2 lan" to set 192.168.10.2 > Static IP is set for second network interface connecting only to host. Nice, I > can connect from the host to the server. > >> Ok ? > Not at all, but step forward. ;-) > >> Dsant, from France > All the best, > Vojtěch > I understand, of course if you want to connect to a server behind a NAT, you have to use "port forwarding" in "network properties" :) Which service do you want to run ? Dsant, from France -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/9c06031aaadda145089b2480338feb86.jpg?s=120&d=mm&r=g)
Dsantnapsal(a): >Le 23/01/2014 15:53, Vojtěch Zeisek a écrit : >> Thank You for straightforward howto. >> >> Dne St 22. ledna 2014 19:00:27, Dsant napsal(a): >>> Le 22/01/2014 17:59, Vojtěch Zeisek a écrit : >>>> Hi, >>>> I have VirtualBox on my notebook (running openSUSE 13.1) hosting >for >>>> testing purposes openSUSE 13.1 server. I wonder how to configure >network >>>> VB's and hosted's OS networking to be able to access server >services from >>>> hosting computer. All my trials failed: I lost network on server >and I >>>> can't connect it. I don't need to access hosted system from outer >>>> network. Any advice? All the best, >>>> Vojtěch >>> * disable your firewalls on your Host and guest ! (or try without >it) >>> >>> * Go in the VirtualBox manager, >>> >>> * Menu File, Preferences (or CTRL-G) >>> * "Network", then click on "+" on right >>> * Edit its properties, Choose your Host IP adress as 192.168.10.1 >>> * close >> It is host only network, right? No need to configure DHCP? >> >>> * right click on your virtual machine, "Settings" (or CTRL-S) >>> * Network, Adapter 1 : "Attached to NAT". Use it for repositories >access. >> In hosted systém I assigned DHCP to this interface. I'm not able to >connect >> from hosted server to anywhere. When I try to access some IP address, >I get >> error about unreachable network, when I connect to hostname, I get >error about >> unknown host. I don't know what is wrong >> >>> * Network, Adapter 2 : "Host only Adapter" >>> >>> * On your Guest use "yast2 lan" to set 192.168.10.2 >> Static IP is set for second network interface connecting only to >host. Nice, I >> can connect from the host to the server. >> >>> Ok ? >> Not at all, but step forward. ;-) >> >>> Dsant, from France >> All the best, >> Vojtěch >> > > >I understand, of course if you want to connect to a server behind a >NAT, >you have to use "port forwarding" in "network properties" :) >Which service do you want to run ? It isn't behind nat. On laptop moving among varous networks I run VirtualBox. There I run testing server (mostly web services). I wish to connect to the hosted server from hosting computer. When I set up on host-only adapter in VB and used it as second network device in server, it works. On the hosted server I have 2 network devices: one connected to VB'S NAT providing DHCP and so on. Point is to use it to acces on-line repositories etc. It is default VB's settings and in another hosted systems, it works. Second device has static IP and is connected directly to the host. This one works. >Dsant, from France Have a nice day, Votěch -- Vojtěch Zeisek http://trapa.cz/cs -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/28fb60f36a5c05d6e95d00be1c0c257c.jpg?s=120&d=mm&r=g)
Le 22/01/2014 17:59, Vojtěch Zeisek a écrit :
Hi, I have VirtualBox on my notebook (running openSUSE 13.1) hosting for testing purposes openSUSE 13.1 server. I wonder how to configure network VB's and hosted's OS networking to be able to access server services from hosting computer. All my trials failed: I lost network on server and I can't connect it. I don't need to access hosted system from outer network. Any advice? All the best, Vojtěch
http://dodin.info/wiki/index.php?n=Doc.OpenSUSE-small-ThirdEdition as a summary if your (virtual) network is configurer, you should find it easily jdd -- http://www.dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Dsant
-
jdd
-
Vojtěch Zeisek