Brand new install, no networking working

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Den-L
Posts: 3
Joined: 15. Nov 2012, 01:03

Brand new install, no networking working

Post by Den-L »

Hi.

This is a brand new install: everything new, including Windows7, VirtualBox 4.2.4r81684, and freshly-downloaded Oracle Linux 6.3

Win7 has 4GB memory.

Installed VirtualBox and configured a new OEL machine with 2GB memory, 10GB disk. Configured the CD to boot the guest from the OEL6.3 iso file, and it went through the configuration swimmingly. I chose to install as a Virtualization Host, and all proceeded well, no hiccups at all.

But when I try to do anything network-wise on the guest, it seems I cannot reach the outside world. :oops:

The Win7 system is on a 192.168.0.0/24 network, with IPaddr 192.168.0.16

The Windows host networking shows:
Attached to: NAT
PCnet-FAST III(Am79C973)
Promiscuous Mode: Deny
MAC Address: 080027B77753

On the OEL system:
[root@vm1 ~]# ping 192.168.0.16
connect: Network is unreachable
[root@vm1 ~]# ifconfig
lo (boring stuff)

virbr0 Link encap:Ethernet HWaddr: 52:54:00:a2:9a:49
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric: 1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
Collisions:0 txqueuelen:0
RX bytes:0 (0.0b) TX bytes:0 (0.0 b)

/etc/hosts has one 4-bone line and one 6-bone line... all about localhost and localhost.localdomain, et cetera



(I am surprised at the mismatch between MAC Addresses above, but I'm new to VirtualBox; maybe that's normal. I'm also surprised to see no eth0 on the guest, but again, I have nothing against which to compare. BTW: the MAC address for the Win7 system is 00:21:70:xx:xx:xx)

How can I further diagnose this? I've scanned all the sites I could find about this, and read dozens or perhaps hundreds of posts about people with networking problems and how they solved them... but none of them seem to be as fundamental as this; I figure it's me.

Did I miss a step?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Brand new install, no networking working

Post by Perryg »

From the hosts terminal/command window type VBoxManage showvminfo <VM Name> --details and post here. Replace <VM Name> with the actual name of the VM. Use " " if the name has a space in it.

Note if the host is Windows you need to be in the directory that has VBoxManage.exe for the command to work.

Do you have a router in your LAN?
Den-L
Posts: 3
Joined: 15. Nov 2012, 01:03

Re: Brand new install, no networking working

Post by Den-L »

Perryg wrote:From the hosts terminal/command window type VBoxManage showvminfo <VM Name> --details and post here. Replace <VM Name> with the actual name of the VM. Use " " if the name has a space in it.

Note if the host is Windows you need to be in the directory that has VBoxManage.exe for the command to work.

Do you have a router in your LAN?
I am very embarrassed! Somehow, I expected VB to magically reach into the guest and manipulate /etc/sysconfig/network-scripts/ifcfg-eth0 to set it to ONBOOT="yes"

Reality has made a momentary appearance, and I did that myself. Then "service network restart" resolved it!

I can now happily reach out to the net and the world! Woo-hoo! I'm gonna have an orange soda to celebrate.

But wait! What needs to happen to allow the outside world (meaning the intranet outside of the Win7 system) to reach this guest system? As a refresher, Win7 is at IP address 192.168.0.16. Let's say I'm at 192.168.0.18 and I want to ssh into the guest (which all happens to be true!)

How/where do I need to set up such routing? And what else might I need to do (at the Win7 machine and/or at the guest) to make it work? (I have properly configured sshd just right; it's the routing that escapes me.) I may want to access from either Ubuntu or from Win systems, since the guest will eventually be serving web pages.

(If you still need those attributes, say the word and I will oblige.)
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Brand new install, no networking working

Post by Perryg »

Yes I need the information.
Den-L
Posts: 3
Joined: 15. Nov 2012, 01:03

Re: Brand new install, no networking working

Post by Den-L »

Perryg wrote:Yes I need the information.
Sorry.

Code: Select all

Here you are.

Name:            ps-hcm
Groups:          /
Guest OS:        Linux 2.6 (64 bit)
UUID:            29c4e2da-19e4-4592-a2e9-e4b10163a6e7
Config file:     C:\Users\dennis\VirtualBox VMs\ps-hcm\ps-hcm.vbox
Snapshot folder: C:\Users\dennis\VirtualBox VMs\ps-hcm\Snapshots
Log folder:      C:\Users\dennis\VirtualBox VMs\ps-hcm\Logs
Hardware UUID:   29c4e2da-19e4-4592-a2e9-e4b10163a6e7
Memory size:     2048MB
Page Fusion:     off
VRAM size:       18MB
CPU exec cap:    100%
HPET:            off
Chipset:         piix3
Firmware:        BIOS
Number of CPUs:  1
Synthetic Cpu:   off
CPUID overrides: None
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:     0ms
RTC:             local time
Hardw. virt.ext: on
Hardw. virt.ext exclusive: off
Nested Paging:   on
Large Pages:     on
VT-x VPID:       on
State:           powered off (since 2012-11-15T02:40:04.142000000)
Monitor count:   1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address: 
Teleporter Password: 
Tracing Enabled: off
Allow Tracing to Access VM: off
Tracing Configuration: 
Autostart Enabled: off
Autostart Delay: 0
Storage Controller Name (0):            IDE
Storage Controller Type (0):            PIIX4
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0):  2
Storage Controller Port Count (0):      2
Storage Controller Bootable (0):        on
IDE (0, 0): C:\Users\dennis\VirtualBox VMs\ps-hcm\ps-hcm.vdi (UUID: cfe4e0f9-2d09-4359-8f14-6de409db91f7)
IDE (1, 0): D: (UUID: 00445644-0000-0000-0000-00000000443a)
NIC 1:           MAC: 080027B77753, Attachment: Host-only Interface 'VirtualBox Host-Only Ethernet Adapter', Cable connected: on, Trace: off (file: none), Type: Am79C973, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 2:           MAC: 08002799B929, Attachment: NAT, Cable connected: on, Trace: off (file: none), Type: Am79C973, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 2 Settings:  MTU: 0, Socket (send: 64, receive: 64), TCP Window (send:64, receive: 64)
NIC 3:           disabled
NIC 4:           disabled
NIC 5:           disabled
NIC 6:           disabled
NIC 7:           disabled
NIC 8:           disabled
Pointing Device: USB Tablet
Keyboard Device: PS/2 Keyboard
UART 1:          disabled
UART 2:          disabled
LPT 1:           disabled
LPT 2:           disabled
Audio:           enabled (Driver: DSOUND, Controller: AC97)
Clipboard Mode:  Bidirectional
Drag'n'drop Mode:  disabled
VRDE:            disabled
USB:             enabled
EHCI:            disabled

USB Device Filters:

<none>

Available remote USB devices:

<none>

Currently Attached USB Devices:

<none>

Bandwidth groups:  <none>

Shared folders:  <none>

VRDE Connection:    not active
Clients so far:     0

Description:
PeopleSoft Human Capital Management server
Guest:

Configured memory balloon size:      0 MB
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Brand new install, no networking working

Post by Perryg »

So you are using NAT which should have a specific address of 10.0.2.* so there is something wrong. Did you manually set the IP address, and if so you should not.
You did not answer the question of a router. DO you have one?
Post Reply