The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. September 21, 2019, 06:05:23 AM

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Networking in virtualbox  (Read 1996 times)
nop_90
Global Moderator
Lifer
*****
Offline Offline

Posts: 2203


View Profile
« on: June 05, 2009, 08:17:09 PM »

I am using the latest version of virtualbox 2.24
I am running ubuntu

I have a guest OS windows XP
I want to be able to connect to the guest OS from host.
How the fuk do i set this up ?

Thanx
Logged
vsloathe
vim ftw!
Global Moderator
Lifer
*****
Offline Offline

Posts: 1669



View Profile
« Reply #1 on: June 05, 2009, 08:50:12 PM »

The OS tools make it so you can share directories from your host OS to your guest OS.
Logged

hai
nop_90
Global Moderator
Lifer
*****
Offline Offline

Posts: 2203


View Profile
« Reply #2 on: June 05, 2009, 10:18:27 PM »

@vsloathe
thanx i already have that u misunderstand.

I have a host OS ubuntu
windoze guest OS

i want it so i can ping ip address of guest OS, ssh in it etc.

What type of networking do i set up ?
How do i set the ip routes
Logged
dimitry12
Rookie
**
Offline Offline

Posts: 27



View Profile
« Reply #3 on: June 06, 2009, 09:19:25 AM »

look into help under nat section ("6.4.1. Configuring port forwarding with NAT"), there are commands for VB to establish port forwarding (so your host is like router with NAT and guest is behind that router), though ICMP still doesn't work with NAT of course
Logged
nop_90
Global Moderator
Lifer
*****
Offline Offline

Posts: 2203


View Profile
« Reply #4 on: June 06, 2009, 11:29:41 PM »

@dimitry yah you are right pings do not work
anyway this is what i ended up doing

https://help.ubuntu.com/community/VirtualBox/Networking
I have a wireless so i used method down at botton.

Here is part they left out.
After u bring up the tap0
when u do an IP config u will have something like this

tap0      Link encap:Ethernet  HWaddr 6e:af:b4:2f:54:82 
          inet addr:192.168.10.200  Bcast:0.0.0.0  Mask:255.255.255.255
          inet6 addr: fe80::6caf:b4ff:fe2f:5482/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:406 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

On the guest OS set the IP to 192.168.10.201 (in this example)
Now from host u can connect to guest and vice versa

This is useful as shit Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!