[Solved] Unable to get XP connected (confused at documents)

Discussions related to using VirtualBox on Linux hosts.
LinuxGold
Posts: 19
Joined: 7. Aug 2009, 15:57
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Windows XP, Ubuntu, Windows 7

[Solved] Unable to get XP connected (confused at documents)

Post by LinuxGold »

I am running Ubuntu-server (with xubuntu-desktop) 9.04 host and Windows XP Professional guest on Dell PowerEdge 1750.

I am trying to assign 10.182.15.40 (ubuntuxp) to Windows XP accessible from network (Spiceworks).

I have been working on this for a week to no avail, and here is the technical specifications that I work on so far:

Code: Select all


Gateway: 10.182.1.1 
DNS server: 10.182.15.2 
DHCP server: 10.182.15.2 
Proxy server: 10.182.15.22:8080

DNS configured 10.182.15.30 as motubuntu01	(Host Machine) 
DNS configured 10.182.15.40 as ubuntuxp	 (Guest Machine)

DHCP reserved 10.182.15.30 for motubuntu01	(00:11:43:58:a6:92) 
DHCP reserved 10.182.15.40 for ubuntuxp (08:00:27:df:32:b4)

Motubuntu01 eth0 is up running on 10.182.15.30 
Motubuntu01 eth1 is down
output of ifconfig:

Code: Select all

root@motubuntu01:/home/shamm# ifconfig 
eth0 Link encap:Ethernet HWaddr 00:11:43:58:a6:92 
inet addr:10.182.15.30 Bcast:10.182.255.255 Mask:255.255.0.0 
inet6 addr: fe80::211:43ff:fe58:a692/64 Scope:Link 
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 
RX packets:91070 errors:0 dropped:0 overruns:0 frame:0 
TX packets:52210 errors:0 dropped:0 overruns:0 carrier:0 
collisions:0 txqueuelen:1000 
RX bytes:9743311 (9.7 MB) TX bytes:22051162 (22.0 MB) 
Interrupt:16

lo Link encap:Local Loopback 
inet addr:127.0.0.1 Mask:255.0.0.0 
inet6 addr: ::1/128 Scope:Host 
UP LOOPBACK RUNNING MTU:16436 Metric:1 
RX packets:3040 errors:0 dropped:0 overruns:0 frame:0 
TX packets:3040 errors:0 dropped:0 overruns:0 carrier:0 
collisions:0 txqueuelen:0 
RX bytes:704931 (704.9 KB) TX bytes:704931 (704.9 KB)

vboxnet0 Link encap:Ethernet HWaddr 0a:00:27:00:00:00 
inet addr:192.168.56.1 Bcast:192.168.56.255 Mask:255.255.255.0 
inet6 addr: fe80::800:27ff:fe00:0/64 Scope:Link 
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 
RX packets:0 errors:0 dropped:0 overruns:0 frame:0 
TX packets:399 errors:0 dropped:0 overruns:0 carrier:0 
collisions:0 txqueuelen:1000 
RX bytes:0 (0.0 B) TX bytes:56027 (56.0 KB)

virbr0 Link encap:Ethernet HWaddr be:8a:2d:a2:b2:4e 
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0 
inet6 addr: fe80::bc8a:2dff:fea2:b24e/64 Scope:Link 
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 
RX packets:0 errors:0 dropped:0 overruns:0 frame:0 
TX packets:112 errors:0 dropped:0 overruns:0 carrier:0 
collisions:0 txqueuelen:0 
RX bytes:0 (0.0 B) TX bytes:21928 (21.9 KB)
Inside /etc/network/interfaces:

Code: Select all

root@motubuntu01:/home/shamm# cat /etc/network/interfaces 
# This file describes the network interfaces available on your system 
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface 
auto lo 
iface lo inet loopback

# The primary network interface 
auto eth0 
#iface eth0 inet dhcp 
iface eth0 inet static 
address 10.182.15.30 
netmask 255.255.0.0 
network 10.182.0.0 
broadcast 10.182.255.255 
gateway 10.182.1.1
On VirtualBox:

Code: Select all

Network setting: 
vboxnet0 network 
IPv4 Address: 192.168.56.1 
IPv4 Network Mask: 255.255.255.0 
DHCP Server - enabled 
Server Address: 192.168.56.100 
Server Mask: 255.255.255.0 
Lower Address bound: 192.168.56.101 
upper Address bound: 192.168.56.254

Windows XP Pro 
-Adapter type: PCnet-FAST III (Am79C973) 
-Host-only Adapter 
-vboxnet0
Inside Windows XP Pro

Code: Select all

Network Adapter: AMD PCNET Family PCI Ethernet Adapter 
IP assigned by DHCP

C:\Documents and Settings\shamm.MOT>ipconfig

windows IP configuration

Ethernet adapter Local Area Connection 3:

Connection-specific DNS Suffix . : 
IP Address. . . . . . . . . . . .: 192.168.56.101 
Subnet Mask . . . . . . . . . . .: 255.255.255.0 
Default Gateway:. . . . . . . . .:
Many Thanks.
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: Unable to get Windows XP connected (confused at documents)

Post by baf »

Set the network type to bridged in virtualbox if you want it as a part of your real network.
Host-only means that only the host and guest can communicate with each other.
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
LinuxGold
Posts: 19
Joined: 7. Aug 2009, 15:57
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Windows XP, Ubuntu, Windows 7

Re: Unable to get Windows XP connected (confused at documents)

Post by LinuxGold »

Changed from Host-only to Bridged.

Booted into Windows XP Pro, network is still inaccessible.

Output of ipconfig:

Code: Select all

C:\Documents and Settings\shamm.MOT>ipconfig

Windows IP Configuration


Ethernet adapter Local Area Connection 3:

        Connection-specific DNS Suffix  . :
        IP Address. . . . . . . . . . . . : 0.0.0.0
        Subnet Mask . . . . . . . . . . . : 0.0.0.0
        Default Gateway . . . . . . . . . :

Changed Windows XP from DHCP to static, Windows XP (Gui part) shows that network is connected, checked the ipconfig as following:

Code: Select all

C:\Documents and Settings\shamm.MOT>ipconfig

Windows IP Configuration


Ethernet adapter Local Area Connection 3:

        Connection-specific DNS Suffix  . :
        IP Address. . . . . . . . . . . . : 10.182.15.40
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 10.182.1.1
the guest still could not get on Internet nor can network see it.
LinuxGold
Posts: 19
Joined: 7. Aug 2009, 15:57
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Windows XP, Ubuntu, Windows 7

Re: Unable to get Windows XP connected (confused at documents)

Post by LinuxGold »

Ok, I reconfigured the virtualbox to use virbr0, windows XP is now able to get connected.

But network still can't see it.
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: Unable to get Windows XP connected (confused at documents)

Post by baf »

Firewall in XP?
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
LinuxGold
Posts: 19
Joined: 7. Aug 2009, 15:57
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Windows XP, Ubuntu, Windows 7

Re: Unable to get Windows XP connected (confused at documents)

Post by LinuxGold »

Firewall in XP is disabled.
LinuxGold
Posts: 19
Joined: 7. Aug 2009, 15:57
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Windows XP, Ubuntu, Windows 7

Re: Unable to get Windows XP connected (confused at documents)

Post by LinuxGold »

Ok, Windows XP is connected to the network, I used Ubuntu SQUID server to catch what IP address Windows XP is using, SQUID logger shows that it used host's IP address (10.182.15.30) instead of guest's IP address (10.182.15.40).
LinuxGold
Posts: 19
Joined: 7. Aug 2009, 15:57
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Windows XP, Ubuntu, Windows 7

Re: Unable to get Windows XP connected (confused at documents)

Post by LinuxGold »

Ok. I give up. I am enabling eth1 (ubuntu) to dedicate it to Windows XP Pro guest, where is the link for this? I am running Ubuntu-server 9.04.

Thanks.
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: Unable to get Windows XP connected (confused at documents)

Post by baf »

Don't giveup yet.
What is the output from
VBoxManage showvminfo <name_of_your_vm>
on the host?
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
LinuxGold
Posts: 19
Joined: 7. Aug 2009, 15:57
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Windows XP, Ubuntu, Windows 7

Re: Unable to get Windows XP connected (confused at documents)

Post by LinuxGold »

shamm@motubuntu01:~$ VBoxManage showvminfo WindowsXPPro
VirtualBox Command Line Management Interface Version 3.0.2
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

Name: WindowsXPPro
Guest OS: Windows XP
UUID: 57da4a48-851c-45f7-9a0e-c62b1591fe87
Config file: /home/shamm/.VirtualBox/Machines/WindowsXPPro/WindowsXPPro.xml
Memory size: 1024MB
VRAM size: 12MB
Number of CPUs: 1
Boot menu mode: message and menu
Boot Device (1): Floppy
Boot Device (2): DVD
Boot Device (3): HardDisk
Boot Device (4): Not Assigned
ACPI: on
IOAPIC: off
PAE: off
Time offset: 0 ms
Hardw. virt.ext: on
Nested Paging: off
VT-x VPID: off
State: running (since 2009-08-07T15:53:29.724000000)
Monitor count: 1
3D Acceleration: off
Floppy: empty
SATA: disabled
IDE Controller: PIIX4
Primary master: /home/shamm/.VirtualBox/HardDisks/WindowsXPPro.vdi (UUID: 3e6a72f3-e224-4c0f-8bda-7345b4cd58c8)
DVD: empty
NIC 1: MAC: 080027DF32B4, Attachment: Bridged Interface 'virbr0', Cable connected: on, Trace: off (file: none), Type: Am79C973, Reported speed: 0 Mbps
NIC 2: disabled
NIC 3: disabled
NIC 4: disabled
NIC 5: disabled
NIC 6: disabled
NIC 7: disabled
NIC 8: disabled
UART 1: disabled
UART 2: disabled
Audio: enabled (Driver: ALSA, Controller: AC97)
Clipboard Mode: Bidirectional
Video mode: 968x745x32
VRDP: disabled
USB: enabled

USB Device Filters:

<none>

Available remote USB devices:

<none>

Currently Attached USB Devices:

<none>

Shared folders: <none>

VRDP Connection: not active
Clients so far: 0

Guest:

Statistics update: disabled


shamm@motubuntu01:~$
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: Unable to get Windows XP connected (confused at documents)

Post by baf »

Try bridging eth0 instead of virbr0, and what is that?
plus after starting the guest how does output of ifconfig -a look on the host
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
LinuxGold
Posts: 19
Joined: 7. Aug 2009, 15:57
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Windows XP, Ubuntu, Windows 7

Re: Unable to get Windows XP connected (confused at documents)

Post by LinuxGold »

I don't know where virbr0 came from. Must have been with br0 when I tried to create a bridge in commandline earlier.

I changed to eth0, Windows XP can't get connected to the network now.

output of ipconfig:

Code: Select all

Connection-specific DNS Suffix : <blank>
Autoconfiguration IP Address: 169.254.6.159
Subnet Mask: 255.255.0.0
Default Gateway: <blank>
the output of ifconfig -a:

Code: Select all

shamm@motubuntu01:~$ ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:11:43:58:a6:92
          inet addr:10.182.15.30  Bcast:10.182.255.255  Mask:255.255.0.0
          inet6 addr: fe80::211:43ff:fe58:a692/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:536894 errors:0 dropped:0 overruns:0 frame:0
          TX packets:290602 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:63764338 (63.7 MB)  TX bytes:53805050 (53.8 MB)
          Interrupt:16

eth1      Link encap:Ethernet  HWaddr 00:11:43:58:a6:93
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:17

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:82571 errors:0 dropped:0 overruns:0 frame:0
          TX packets:82571 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:15634136 (15.6 MB)  TX bytes:15634136 (15.6 MB)

pan0      Link encap:Ethernet  HWaddr be:ff:5e:47:ce:d4
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

vboxnet0  Link encap:Ethernet  HWaddr 0a:00:27:00:00:00
          inet addr:192.168.56.1  Bcast:192.168.56.255  Mask:255.255.255.0
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:5611 (5.6 KB)

virbr0    Link encap:Ethernet  HWaddr ae:0e:83:eb:ef:4c
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          inet6 addr: fe80::ac0e:83ff:feeb:ef4c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9000 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:4788697 (4.7 MB)

baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: Unable to get Windows XP connected (confused at documents)

Post by baf »

Try doing
ifconfig eth0 -promisc
ifconfig eth0 promisc
And see if that helps
after that in the guest do ipconfig /renew
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
LinuxGold
Posts: 19
Joined: 7. Aug 2009, 15:57
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Windows XP, Ubuntu, Windows 7

Re: Unable to get Windows XP connected (confused at documents)

Post by LinuxGold »

executed 2 promisc lines on ubuntu host, then tried to ipconfig /renew on guest -- error:

Code: Select all

An error occured while renewing interface Local Area connection 3 : unable to contact your DHCP server.  Request has timed out.
LinuxGold
Posts: 19
Joined: 7. Aug 2009, 15:57
Primary OS: Ubuntu other
VBox Version: OSE other
Guest OSses: Windows XP, Ubuntu, Windows 7

Re: Unable to get Windows XP connected (confused at documents)

Post by LinuxGold »

More info on ubuntu in case you are wondering:

Code: Select all

root@motubuntu01:/home/shamm# cat /etc/hosts
127.0.0.1       localhost
10.182.15.30    motubuntu01.mot.charter motubuntu01

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
root@motubuntu01:/home/shamm# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
        address 10.182.15.30
        netmask 255.255.0.0
        network 10.182.0.0
        broadcast 10.182.255.255
        gateway 10.182.1.1
Post Reply