SSH, HTTP and other ports. Windows host, Ubuntu guest

Discussions related to using VirtualBox on Windows hosts.
Post Reply
BulleT
Posts: 3
Joined: 5. Oct 2008, 11:48

SSH, HTTP and other ports. Windows host, Ubuntu guest

Post 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 :oops:
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post 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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
BulleT
Posts: 3
Joined: 5. Oct 2008, 11:48

Post 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 :|
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

What commands did you use, and what is in your <machine>.xml file for extra data?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
BulleT
Posts: 3
Joined: 5. Oct 2008, 11:48

Post 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>
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post 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.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Post Reply