Oracle Linux 6.1 guest on Virtualbox 4.1 cannot connect to network


Susannah

I just installed VirtualBox 4.1 on a Windows system, then added a Solaris 11 Express guest and an Oracle Linux 6.1 guest. Both installations went smoothly. However, although the Solaris 11 guest has network access, the Oracle Linux box cannot connect to the network.

Both guests use the same default network settings (NAT). I'm at a loss - not sure what I need to configure on the OL6.1 side.

To test basic network connectivity, I tried: ping www.google.com. Solaris guests have no problem. On an OL6.1 guest:

    # ping www.google.com
    ping: unknown host www.google.com
    # ping 209.85.175.99
    connect: Network is unreachable

Does OL6.1 require some kind of network setup that Solaris 11 doesn't? Thanks in advance.

Output from ifconfig -a:

    # ifconfig -a
    eth0    Link encap:Ethernet  HWaddr  08:00:27:8E:A1:42
            inet6 addr: fe80::a00:27ff:fe8e:a142/64 Scope:Link
            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
            RX packets:0 errors:0 dropped:0 overruns:0 frame:0
            TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
            collisions:0 txqueuelen:1000
            RX bytes:0 (0.0 b) TX bytes:328 (328.0 b)

    lo      Link encap: Local Loopback
            inet addr:127.0.0.1  Mask:255.0.0
            inet6addr: ::1/128 Scope:Host
            UP LOOPBACK RUNNING MTU:16436 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)
Gilles 'Stop being evil'

Given that Oracle Linux is heavily based on Red Hat Enterprise Linux, the network configuration is likely to be the same. If you do not need to enter any network parameters during the installation of Solaris, you can select the network address through DHCP . In any case, there is not much need to do anything else in a NATed virtual machine.

To configure a DHCP client on RHEL , edit the file /etc/sysconfig/network-scripts/ifcfg-eth0to include the following lines:

DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes

Alternatively, you can use Network Manager instead (it will provide the same network configuration as the desktop via the Solaris icon, in fact, I think it's more powerful than Solaris - not that you really need to use it in a VM).

Related


Windows VirtualBox cannot connect USB device to Linux Guest

legumes I have a Windows 7 64bit host system and am using VirtualBox 4.1.18 (r78361). I have an Arch Linux Guest OS. I have installed the VirtualBox Extension Pack (to enable USB2 support) and added my USB device filter to the VM. I also installed the Guest Ad

Windows VirtualBox cannot connect USB device to Linux Guest

legumes I have a Windows 7 64bit host system and am using VirtualBox 4.1.18 (r78361). I have an Arch Linux Guest OS. I have installed the VirtualBox Extension Pack (to enable USB2 support) and added my USB device filter to the VM. I also installed the Guest Ad

VirtualBox Windows GUEST cannot "see" local network

Clay Nichols I have setup VirtualBox on Windows 7 HOST on Windows XP Guest. The guest can access the Internet and the host, but not the network the host is on. I am using the default NAT network in "Guest Settings". Any ideas? LPC chip NAT networks will place

VirtualBox Windows GUEST cannot "see" local network

Clay Nichols I have setup VirtualBox on Windows 7 HOST on Windows XP Guest. The guest can access the Internet and the host, but not the network the host is on. I am using the default NAT network in "Guest Settings". Any ideas? LPC chip NAT networks will place

Ubuntu VirtualBox Guest cannot get ipv4 in bridge mode

Wayne Stavra I have a brand new virtual box Ubuntu Server 16.04 32bit guest installation on a Linux Mint 18 Cinnamon 64bit host. I want the guest system to appear in the local network like a physical machine. So I need bridged networking mode for the guest - h

Ubuntu VirtualBox Guest cannot get ipv4 in bridge mode

Wayne Stavra I have a brand new virtual box Ubuntu Server 16.04 32bit guest installation on a Linux Mint 18 Cinnamon 64bit host. I want the guest system to appear in the local network like a physical machine. So I need bridged networking mode for the guest - h

Ubuntu VirtualBox Guest cannot get ipv4 in bridge mode

Wayne Stavra I have a brand new virtual box Ubuntu Server 16.04 32bit guest installation on a Linux Mint 18 Cinnamon 64bit host. I want the guest system to appear in the local network like a physical machine. So I need bridged networking mode for the guest - h

Network failure in VirtualBox Guest VM

Best 103 I can't access the internet from a VirtualBox virtual machine on Windows 7 and Debian Linux. I need to fix the problem in order to get these VMs working again. I have a Debian laptop host that has been running VMware VMs in the past and now runs Virtu

Network failure in VirtualBox Guest VM

Best 103 I can't access the internet from a VirtualBox virtual machine on Windows 7 and Debian Linux. I need to fix the problem in order to get these VMs working again. I have a Debian laptop host that has been running VMware VMs in the past and now runs Virtu

Network failure in VirtualBox Guest VM

Best 103 I can't access the internet from a VirtualBox virtual machine on Windows 7 and Debian Linux. I need to fix the problem in order to get these VMs working again. I have a Debian laptop host that has been running VMware VMs in the past and now runs Virtu

VirtualBox guest: 16 CPUs detected, but only 1 is online

Ole Tange I am running VirtualBox (using Qiime image http://qiime.org/install/virtual_box.html ) The physical hardware is a 32 core computer. A virtual machine in VirtualBox has 16 cores. On startup, I get: Ubuntu 10.04.1 LTS Linux 2.6.38-15-server # grep . /

VirtualBox guest: 16 CPUs detected, but only 1 is online

Ole Tange I am running VirtualBox (using Qiime image http://qiime.org/install/virtual_box.html ) The physical hardware is a 32 core computer. A virtual machine in VirtualBox has 16 cores. On startup, I get: Ubuntu 10.04.1 LTS Linux 2.6.38-15-server # grep . /

VirtualBox guest: 16 CPUs detected, but only 1 is online

Ole Tange I am running VirtualBox (using Qiime image http://qiime.org/install/virtual_box.html ) The physical hardware is a 32 core computer. A virtual machine in VirtualBox has 16 cores. On startup, I get: Ubuntu 10.04.1 LTS Linux 2.6.38-15-server # grep . /

VirtualBox Guest Additions for Linux Guest with kernel 5.0.5

Yorhor Pererva I'm trying to setup VirtualBox Additions to enable shared folders between host and guest machines. Configured as: Host : Windows 10 x64 Guest : Fedora Server 29.1.2 x64 [with updates up to kernel 5.0.5-200.fc29.x86-64] VirtualBox version on hos

VirtualBox Guest Additions for Linux Guest with kernel 5.0.5

Yorhor Pererva I'm trying to setup VirtualBox Additions to enable shared folders between host and guest machines. Configured as: Host : Windows 10 x64 Guest : Fedora Server 29.1.2 x64 [with updates up to kernel 5.0.5-200.fc29.x86-64] VirtualBox version on hos

Setup Network on Virtualbox Guest to Access Host VPN

nixgadget I'm trying to get this setup going, but I'm having a lot of trouble. Host OS: Windows 8 64bit Guest OS: CentOS 6.5 64-bit I use the Cisco VPN client on the host to connect to many remote servers that I want to access from the Guest OS. Currently I ha

VirtualBox: Set the network adapter to be private to the guest VM

Tombstone 89 In the previous question, I asked how to configure m0n0wall in a VM. Now, I want to set up the network adapter in my computer to be used only for the guest VM, that is, to not allow any traffic from the host to go through. So far I haven't been ab