VirtualBox: Windows XP Guest in Windows XP Host

What if you in a travel & hardly needs to get work in a networking situation? A virtual machine (VM) installed in your system can do that. This situation also affected when you only have 1 PC but you must have at least 2 PC to get work, just like me as I have a laptop but need 2nd PC in order to support my jobs. Rather than spending money to buying extra PC/laptop, I considered to using a VM over my laptop. It’s more valuable, practice & easy to carry as you will have 2 working PC in a single system. Think about it!

The needs of 2 PC’s using Windows XP – for example – can help a programmer to debug their windows client/server based application which using a networking utilization. Why I choose VirtualBox? It’s as simply as that it’s free, lightweight & robust. This article is my continued part of my first experience about VirtualBox behavior in DHCP server & comparison between VirtualBox & QEMU. As seen on the title, I used both of Windows XP as the host & guest OS in an interoperability of networking (a static address LAN, indeed). I’m planning in the next session using Linux as the host OS. May this document brings more benefit.

First of all, download the latest VirtualBox application from the website. I used VirtualBox 1.4.0 to did this experience. Okay, let assumed that you have already a Windows XP system fresh installed as the guest OS. A good start on how to installing it you may find on my previous article. Now is the time to configure the networking in both systems. Open the VM settings, click on a Network session. On the Host Interface group box, click the green plus folder to create the virtual host interface network.

As automatically, the VM will create the default network adapter named by VirtualBox Host Interface 1 on the host OS.

Assigned the IP address with a static one. For example, you may configured it with & default subnet mask to Note that this configuration becomes the host OS IP address. Next, press OK button to activating the changes.

Then, start the guest OS. For more resources, install the VBoxAddition library comes within VirtualBox setup. It would bring additional device driver e.g: configurable display adapter resolution & mouse integrating between hosts & guest OS.

Set the guest OS IP address with & default subnet mask to Note that this configuration becomes the guest OS IP address. Now, back to host OS, run DOS command from Start Menu :: Run & ping to the guest OS. It should now responding.

Make sure that the guest OS also brings the same reply with pinging to the host OS.

That’s the sign that your both host & guest systems are being operating well. Now, it’s up to you, whether you like to create a map network drive or something else to support your own jobs.

It’s done. Now you have fully 2 Windows systems runs with active networking right on a single computer.



Eko Wahyudiharto
PS: If you've benefit from this blog,
you can support it by making a small contribution.

Enter your email address:

Delivered by FeedBurner

Post a Comment Bookmark and Share


  1. Anonymous Anonymous said,

    Sunday, September 23, 2007 3:59:00 AM

    Thank you very much for this nice and helpful How To!

  2. Blogger robert said,

    Sunday, May 11, 2008 2:12:00 AM

    I was hoping your write up would be my solution to what I guessed was my lack of understanding, but I still have an issue.

    I have setup the HOST IP/Mask and the GUEST IP/MASK as stated but I cannot "pink" the GUEST. the LAN adapter connection shows that no packets are coming in.

    Are you setting up the static IP on a 2nd adapter on the GUEST or the original LAN adapter? I'm wondering if that has any effect.

    Additionally, I am setting up gateways on these machines too as the host is (obviously) connected to the internet via my router/gateway. Is this effecting it as I'm assuming the GUEST is going to need this info to connect to the net.


    Please email at if I don't get an automated response.

  3. Blogger Eko Wahyudiharto said,

    Monday, May 12, 2008 9:31:00 AM

    @robert: What is actually your VirtualBox version is? The version 1.4.x is quite well to make a networking environment since there was TUN/TAP adapter built-in.

    Basically, you have to enabling the VirtualBox host network adapter interface. After you do so, then set the static IP/mask on both VirtualBox adapter interface (Host) & real LAN adapter for the guest OS.

    There was no need to set the real LAN adapter on host OS. That's it.

  4. Blogger Jerry.. said,

    Thursday, July 31, 2008 1:33:00 PM

    This comment has been removed by the author.

  5. Blogger Jerry.. said,

    Thursday, July 31, 2008 2:13:00 PM

    My Virtual Box version is 1.6.2.Both my Guest and Host OS are Windows 2003.
    Followed the steps what you suggested, but still not able to communicate between Guest and host.

    Don't know where i'm going wrong.Struggling it with couple of days.

    If you have any idea, please let me know..

    Thanks in Advance.


  6. Anonymous ulimhd said,

    Thursday, August 28, 2008 10:18:00 AM

    Hello, Pak Eko.

    I already followed your guide to enable networking on my XP client on Vista host.

    my XP client can ping the host. But, Vista cannot ping back to XP. And so, I still can't connect my XP client to the internet.

    what should I do to make it work?

    FYI, i'm using VirtualBox 1.6.2.


  7. Blogger Eko Wahyudiharto said,

    Thursday, August 28, 2008 10:44:00 AM

    @ulimhd & @jerry : Just make sure that your both host & client doesn't have any firewall enabled.

  8. Anonymous ulimhd said,

    Thursday, August 28, 2008 2:55:00 PM

    Pak Eko,

    Thank you for the reply.

    I already solve my problem.

    Apparently, I have to change my setting to NAT, not "Host Interface" as stated in your article.

    After changing to NAT, and set my XP client IP to DHCP, I manage to connect my XP client to internet.

    This article is a big help for me to start. Makasih banyak, Pak!

  9. Anonymous Anonymous said,

    Wednesday, January 28, 2009 6:22:00 PM

    Thanks. It works. Please can you suggest how to forward a request from outside to the guest xp - I want to access guest xp using мтс from outside.

  10. Anonymous alex said,

    Tuesday, September 15, 2009 11:19:00 AM

    good idea, how to connect guest to word /LAN ?

  11. Blogger samir_haddad16 said,

    Saturday, June 19, 2010 5:48:00 PM

    Hello.. I have just a little question. Can i use wireless network in virtualbox? My Host is windows xp and guest is windows xp also.

    thank you in advance. I'll wait for the reply.

  12. Blogger Aleena said,

    Monday, March 14, 2011 9:17:00 PM

    This seems to be a great site which offers Headset Adapter, Headset Adaptor, PC Headset To Iphone Adapter, RJ11 To RJ 9 Adapter, Phone Headset Adapter, Xbox 360 Headset Adapter, Computer Headset, PC Headset etc. and i would surely like to try their service...i had been relying on earlier and they too offered good stuff.

  13. Blogger danielmark said,

    Thursday, March 17, 2011 12:49:00 PM

    This is really good and very informative post. Really very helpful.
    Windows VPS Hosting

  14. Blogger Yanto said,

    Tuesday, July 19, 2011 5:42:00 PM

    I am using Virtualbox 3.2.6, can this apply to Win95 guest? so far I am using NAT, no Host Interface in my Virtualbox, but still can't connect to XP host. Any suggestion?

  15. Blogger Eko Wahyudiharto said,

    Wednesday, July 20, 2011 10:29:00 AM

    Probably, your XP host blocked by the firewall...

  16. Blogger Yanto said,

    Wednesday, July 20, 2011 11:28:00 AM

    No firewall activation, I disable it, can't ping to Win95 guest (request time out). Have you experienced in using NAT for Virtualbox network setting? Thanks

  17. Blogger Eko Wahyudiharto said,

    Wednesday, July 20, 2011 1:27:00 PM

    Ok, so you have ping failed from XP (host) to W95 (guest). So:
    * How about ping localhost from W95?
    * How about from W95 to XP?

    I don't have any clue yet, but what version of Winsock on your W95? Have you try to upgrade it (

    Or, how about to replace W95 to W98?

    Need to read your answer soon... :)

  18. Blogger Yanto said,

    Wednesday, July 20, 2011 4:10:00 PM

    Also can't ping from Win95 to XP, I need Win95 so will not use Win98
    Thanks anyway for your kind help

  19. Blogger Yanto said,

    Wednesday, July 20, 2011 8:50:00 PM

    I also create new guest ie Win98, also have the same problem. when I use NAT, no new connection added in network folder like in your article. Any suggestion?

  20. Blogger Eko Wahyudiharto said,

    Wednesday, July 20, 2011 10:48:00 PM

    I believe there must be a way. How about ping localhost from guest OS?

  21. Blogger Yanto said,

    Monday, August 01, 2011 9:17:00 PM

    It seems uncomplete virtualbox installation, so I can't get Virtualbox host-only network, anyway what NIC card do you use in your XP-guest OS?

Post a Comment

Leave comments here...