Access the virtual host from the physical host by putty

Discussions related to using VirtualBox on Windows hosts.
Post Reply
judi
Posts: 2
Joined: 5. Aug 2009, 17:45
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Solaris 10

Access the virtual host from the physical host by putty

Post by judi »

Hi all,

I have installed the Sun virtualbox 2.2.2 in my windows XP, I hosted a solaris 10 virtual machine in it.

i want to access the solaris virtual host from my physical windows host by putty.what all the network settings i need to setup in the virtual box software and what rage of ip address to the virtual Host

Please some body help me in this

Thanks..........
Judi
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Re: Access the virtual host from the physical host by putty

Post by TerryE »

Either
  • use a bridged network in which case you can putty to whatever IP address the guest VM picks up. If you want to know it without interrogating your guest, then you can write a guest script to interrogate the network config and write its IP address to a guestproperty using VBoxControl, or
  • use NAT and port redirection, redirecting say, host:2222 to guest:22.
(Use the bold for search keys to posts which discuss these techniques.)
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
judi
Posts: 2
Joined: 5. Aug 2009, 17:45
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Solaris 10

Re: Access the virtual host from the physical host by putty

Post by judi »

Thanks Terry,

can you assist me, how to set up bridge network, iam very new to this
Techno.Scavenger
Posts: 100
Joined: 11. Nov 2007, 22:04

Re: Access the virtual host from the physical host by putty

Post by Techno.Scavenger »

In Sun Virtual Box GUI, select an item. Then do Settings | Network | Adapter 1 | Attached To = Bridged Adapter. Not sure if this is the same as VB 2.x but at least this is how it is shown in VB 3.x.
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Re: Access the virtual host from the physical host by putty

Post by TerryE »

Yup read the section in the UG on Bridged Networking. What this does is to enable the Guest VM to emulate its own NIC with its own MAC address through the designated host NIC. To all intents and purposes as far as the network is concerned the VM is just anoher system on it, which then acquires its address through whatever DHCP service you have running. On my home system I do fix my VMs' IP addresses but do so through the web interface to my ADSL router's DHCP function and allocated a fixed IP to the MAC address of the VMs virtual NIC.

When you so this as far as the PuTTY on the host is concerned, you are just connecting to another PC on the LAN. If you use your VM on a Laptop and want to connect to it from the host laptop then either use NAT and port redirection or use a host network (where the host provides the DHCP function and you don't need to be connected to a network). The UG explains all this and the sections aren't that long :-)
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
Post Reply