XP guest on Ubuntu host - Seperate nic cards?

Discussions related to using VirtualBox on Linux hosts.
Post Reply
rcassettyjr@gmail.com
Posts: 1
Joined: 14. May 2008, 20:07

XP guest on Ubuntu host - Seperate nic cards?

Post by rcassettyjr@gmail.com »

If I want to run XP as a guest on Ubuntu 8.04 can I have the virtual machine use a separate NIC card with a static IP assigned to it? The Host will also have a static IP. The machine has a built in nic card and a PCI one I added.

Thanks

Bob
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 setup do you want to build? You can use NAT if you will use only Internet on the Guest. If you want the Guest to be part of you network, you have to use Host Interface with bridging as described in the manual. Then you can set static addresses to each interface (the bridge on the Host and the Guest NIC in the VM).
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.
thomasjohansen
Posts: 16
Joined: 9. May 2008, 09:39
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: ubuntu, w2000, xp
Location: Denmark, Koege

Post by thomasjohansen »

Have an extra question to this topic.

It's kinda beginner question:

to do a bridging from host to guest (HIF) with a static ip for both guest and host, is it necessary to have two physical nic's?

Both host and guest must be accessible in the lan.


thx in advange
Thomas
DracoZA
Posts: 12
Joined: 13. May 2008, 15:25
Location: South Africa

Post by DracoZA »

No you only need one physical adapter, however you will have to setup Host networking for your guest to have its own network configuration.

You can in theory have several unique guests with each having its own IP.
thomasjohansen
Posts: 16
Joined: 9. May 2008, 09:39
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: ubuntu, w2000, xp
Location: Denmark, Koege

Post by thomasjohansen »

thx for the quick answer.

I actually just ordered a dual nic card few minuts ago, but was able to cancel it after i read your post. :lol:

thx again.


Thomas
Post Reply