Page 1 of 1
SSH, HTTP and other ports. Windows host, Ubuntu guest
Posted: 5. Oct 2008, 11:52
by BulleT
Hi guys.
I have a VirtualBox with Windows XP as a host and ubuntu Linux as a guest. I want to access Linux with ssh and host a web page on it.
Can somebody help me enable those ports somehow ?
I'm sorry if the thing was discussed before, i tryed the search button but nothing appeard.
Thank you!
Adrian

Posted: 5. Oct 2008, 12:45
by Sasquatch
You can use the Manual for this. The example in the manual shows how to set up Port Forwarding for SSH when using NAT. You can do the same for WWW.
Posted: 5. Oct 2008, 12:53
by BulleT
Thank you i thing i got it.
Edit:::
Smth bad has happened after i restarted ubuntu
00:00:00.468 Power up failed (vrc=VERR_NO_DIGITS, hrc=E_FAIL (0X80004005))
It wont start

Posted: 5. Oct 2008, 13:45
by Sasquatch
What commands did you use, and what is in your <machine>.xml file for extra data?
Posted: 5. Oct 2008, 13:58
by BulleT
<ExtraData>
<ExtraDataItem name="GUI/SaveMountedAtRuntime" value="yes"/>
<ExtraDataItem name="GUI/LastCloseAction" value="powerOff"/>
<ExtraDataItem name="GUI/LastWindowPostion" value="108,30,640,522"/>
<ExtraDataItem name="GUI/Fullscreen" value="off"/>
<ExtraDataItem name="GUI/Seamless" value="off"/>
<ExtraDataItem name="GUI/AutoresizeGuest" value="off"/>
<ExtraDataItem name="VBoxInternal/Devices/e1000/LUN#0/Config/guestssh/Protocol" value="TCP"/>
<ExtraDataItem name="VBoxInternal/Devices/e1000/LUN#0/Config/guestssh/HostPort" value="2222"/>
<ExtraDataItem name="VBoxInternal/Devices/e1000/LUN#0/Config/guestssh/GuestPort" value="22"/>
</ExtraData>
Posted: 6. Oct 2008, 21:39
by Sasquatch
Ok, what NIC type are you using for the Guest? You set the port forward for the first NIC if it's an Intel/PRO1000 card. If you use the PCNet adapter, you can to change your command. Use pcnet instead of e1000 or change the NIC. Keep in mind that it's possible that your Linux Guest will create a new NIC because of a different driver.