networking on xp host and debian guest

Discussions related to using VirtualBox on Windows hosts.
Post Reply
BabySnakeSwe
Posts: 18
Joined: 5. Nov 2008, 16:10
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Ubuntu 8.10, win xp
Contact:

networking on xp host and debian guest

Post by BabySnakeSwe »

Hi!

I want to be able to surf from my host (xp) to the guest (debian).

I saw this article:
http://opensourceexperiments.wordpress. ... ista-host/

Tried to make it that way, but it didn't quite work. I'm not sure what ip-adress etc to use in the guest. The windows host gets ip adress via dhcp. From my host i get this from ipconfig:

Connection-specific DNS Suffix . : bredbandsbolaget.se
IP Address. . . . . . . . . . . . : internet IP
Subnet Mask . . . . . . . . . . . : 255.255.240.0
Default Gateway . . . . . . . . . : ISP

Is this something i need to use in the guest? When i used the default settings in the guest, i.e to get ip via dhcp, there was a clash with the host ip.
If anyone has some pointers, that would be great!

thanks!
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

To access your Guest from the Host, you need a Host Interface. It's described in the manual. You don't need a bridge, because you aren't using a router for internet, so you probably won't get an IP ready for internet in the Guest. Set the proper IP addresses on the interfaces on the Host and Guest and that should do it. You need to check your firewall too to make sure that nothing is blocked. There is enough information for this on the forum, it's been asked several times.

I removed your IP address, as it's not a good idea to post your internet IP.
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.
BabySnakeSwe
Posts: 18
Joined: 5. Nov 2008, 16:10
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Ubuntu 8.10, win xp
Contact:

Post by BabySnakeSwe »

ok thanks for some info :)

So now my host has a "host interface". Do i need to go in to the network settings for the guest and set something manually?

Based on the adress info i posted earlier.. should the guest have a similar network setting, or another network?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

The IP configuration for the Guest <> Host communication has to be in the private range. See Wikipedia for the ranges you can use. Don't set the same ending number on both sides of course.
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.
BabySnakeSwe
Posts: 18
Joined: 5. Nov 2008, 16:10
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Ubuntu 8.10, win xp
Contact:

Post by BabySnakeSwe »

Sory, but just to clarify...
Should I change my win host lan settings (Network connections) to something in the private range? I changed mine to ip: 10.0.0.1, mask:255.255.255.0

Under network connections (still in win host) there is now a host interface. I made this to ip: 10.0.0.2, mask: 255.255.255.0

I then started the linux guest, but i can't reach it using 10.0.0.2. I tried changing its network setttings to ip: 10.0.0.2, mask: 255.255.255.0, but then there was a ip conflict with the win host. What settings do i need to do in the guest?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

Your physical LAN need to stay what it was, so you have your internet back. On the Host Interface, you set 10.0.0.1, then on the Guest you set 10.0.0.2. That's the kind of setup you need. You are free to use other addresses, as long as they are in the private range specified in the wiki article.
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.
BabySnakeSwe
Posts: 18
Joined: 5. Nov 2008, 16:10
Primary OS: Mac OS X Leopard
VBox Version: OSE other
Guest OSses: Ubuntu 8.10, win xp
Contact:

Post by BabySnakeSwe »

thanks for your support :D
drosenstark
Posts: 23
Joined: 25. Nov 2008, 01:17

Setting IP Addresses for Guest and Host?

Post by drosenstark »

Hi Sasquatch, you say

The IP configuration for the Guest <> Host communication has to be in the private range. See Wikipedia for the ranges you can use. Don't set the same ending number on both sides of course.

I get an address for the host (169.254.x.x) but how do I give an address to the Linux guest? Do I need to arbitrarily make up an adapter?

If so, how can I do that in Ubuntu?

THANKS
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

Please see the documentation of your system. There are also plenty of examples here.
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.
drosenstark
Posts: 23
Joined: 25. Nov 2008, 01:17

Thanks But No Thanks

Post by drosenstark »

Thanks, but "use the Internet to look for help" doesn't really help much!

Check out my post -- http://compileyouidontevenknowyou.blogs ... thing.html -- where I explain (briefly) how to solve my problem.
Post Reply