Cannot access CentOS Guest VM Services from Windows Host.

Discussions about using Linux guests in VirtualBox.

Cannot access CentOS Guest VM Services from Windows Host.

Postby eddiegi686 » 12. Sep 2015, 23:07

Hi,

I have searched the forums for similar issues but can't find one which matches this exactly. If I've missed another post please direct me to it instead of posting here.

I have a CentOS Linux 6.7 32 bit guest which doesn't have the guest additions installed. I am using VirtualBox version 5.0.4r102546 on a Windows 7 Home Premium 64 bit host. The guest has 1024MB of memory allocated of the host's 4096MB.

I have a web server running on the VM that I want to access on the host. I have configured networking on the guest so there are two network adapters, the first one provides NAT for Internet access and the second provides a bridged connection to run the web server.

The problem is twofold, firstly I cannot get the NAT working on the guest, it should be giving out an IP address on the 10.2.x.x range but instead I'm getting an IP address of 192.168.1.90. Secondly I cannot ping any devices on the 192.168.1.x network or access the web server on 192.168.1.100 from the host.

There are two network adapters configured on the guest, eth4 and eth5, eth4 is configured for dhcp for the NAT connection and eth5 is configured to have a static IP on the 192.168.1.x network for the web server connection to the host.

Please can somebody help?
Attachments
CentOS 6.7 32 bit-2015-09-12-21-53-07.zip
VirtualBox log file for the VM
(16.59 KiB) Downloaded 330 times
eddiegi686
 
Posts: 20
Joined: 11. Sep 2015, 02:13

Re: Cannot access CentOS Guest VM Services from Windows Host

Postby noteirak » 13. Sep 2015, 00:37

In most cases, you cannot use NAT and Bridged together in the same VM. Network configuration will conflict - the VM will get two gateways and will be lost which one to use.
I would recommend using Bridged only give what you are trying to achieve.
Hyperbox - Virtual Infrastructure Manager - https://kamax.io/hbox/
Manage your VirtualBox infrastructure the free way!
noteirak
Site Moderator
 
Posts: 5197
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7

Re: Cannot access CentOS Guest VM Services from Windows Host

Postby eddiegi686 » 13. Sep 2015, 01:12

I guess bridged mode on its own would be enough if it was working correctly, however I did have this working earlier. I was running the same VM on a Windows XP 32 bit host with both a NAT and a bridged network adapter. In that case with both network adapters connected I only had one default gateway because I didn't specify a gateway for the bridged connection. The NAT connection was providing the Internet connection and the bridged connection was providing access to the web server. I think I will have to try it back on Windows XP to see if there's a difference.
eddiegi686
 
Posts: 20
Joined: 11. Sep 2015, 02:13

Re: Cannot access CentOS Guest VM Services from Windows Host

Postby noteirak » 13. Sep 2015, 02:10

If bridged is not working properly, have you tried setting a port forward in the NAT configuration of the VM?
Hyperbox - Virtual Infrastructure Manager - https://kamax.io/hbox/
Manage your VirtualBox infrastructure the free way!
noteirak
Site Moderator
 
Posts: 5197
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7

Re: Cannot access CentOS Guest VM Services from Windows Host

Postby eddiegi686 » 13. Sep 2015, 02:18

Update:

I can confirm this is partially working with Virtualbox 3.0.14r58977 on a Windows XP Home Edition 32 bit host. This is the same host machine with 4GB of memory as the Windows 7 host. I am attaching screenshots showing the correct output of ifconfig, route and ping commands. Everything is working except Internet access through the NAT adapter.

ifconfig output:
virtualbox-vm1-ifconfig.JPG
ifconfig output showing active network interfaces.
virtualbox-vm1-ifconfig.JPG (53.97 KiB) Viewed 23766 times


route output:
virtualbox-vm1-route.JPG
route output showing active network connections.
virtualbox-vm1-route.JPG (19.37 KiB) Viewed 23766 times


ping output for router (192.168.1.254) and Windows host (192.168.1.68).
virtualbox-vm1-ping.JPG
virtualbox-vm1-ping.JPG (61 KiB) Viewed 23766 times


I should point out that Virtualbox 3.0.14 uses an AMD network adapter whereas Virtualbox 5.0.4 uses an Intel adapter.
eddiegi686
 
Posts: 20
Joined: 11. Sep 2015, 02:13

Re: Cannot access CentOS Guest VM Services from Windows Host

Postby eddiegi686 » 13. Sep 2015, 02:19

hi noteirak,

I have not tried port forwarding with NAT, I will investigate that option. Thanks for the idea! However I would still like to be using bridged mode networking so that the guest can access the local LAN and the host can access the guest on the local LAN. Also in future I might want other machines on the network to access the guest from the LAN which I believe requires bridged mode.
eddiegi686
 
Posts: 20
Joined: 11. Sep 2015, 02:13

Re: Cannot access CentOS Guest VM Services from Windows Host

Postby eddiegi686 » 13. Sep 2015, 02:36

I have just tried port forwarding with NAT and that works as an option, however it means I can't run a web server on port 80 on the host if I am running one on the guest. Also my Internet connection on the guest is now working after a couple of reboots. I don't know what changed but everything is working nicely with the Windows XP 32 bit host. I will now have to dig deeper to find out why this isn't working with the Windows 7 64 bit host. The VM is the same running from the same disk file, the only differences are the host Operating System, Virtualbox version and different virtual network adapters and interfaces on the guest.

I'm thinking if I can get the same configuration back with Virtualbox 5.0.4 using the 10.0.2.x network and NAT on the first network interface and the 192.168.1.x network and bridged mode on the second interface then I will have this sorted.

Does anyone have any further suggestions that might help?
eddiegi686
 
Posts: 20
Joined: 11. Sep 2015, 02:13

Re: Cannot access CentOS Guest VM Services from Windows Host

Postby noteirak » 13. Sep 2015, 13:04

Try switching to the NDIS5 driver:
User Manual wrote: The user is able to choose between NDIS5 and NDIS6 host network filters drivers during the installation. This is realized via a command line parameter NETWORKTYPE. The NDIS6 driver is default for Windows Vista and later. For older Windows versions, the installer will automatically select the NDIS5 driver and this cannot be changed. For Windows Vista and later the user can force to install the (legacy) NDIS5 host network filter driver using NETWORKTYPE=NDIS5. For example, to install the NDIS5 driver on Windows 7, do

VirtualBox.exe -msiparams NETWORKTYPE=NDIS5
Hyperbox - Virtual Infrastructure Manager - https://kamax.io/hbox/
Manage your VirtualBox infrastructure the free way!
noteirak
Site Moderator
 
Posts: 5197
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7

Re: Cannot access CentOS Guest VM Services from Windows Host

Postby eddiegi686 » 13. Sep 2015, 17:13

Just tried that option and it didn't make any difference. On Windows 7 64 bit host I am unable to ping hosts on the 192.168.1.0 network from the guest. If I disable the NAT interface it makes no difference. However if I enable the NAT interface I can ping the local router 192.168.1.254 but not the host 192.168.1.68.

I have just tried disabling the bridged adapter and enabling only NAT and the interface that came up on the guest was the one I had set-up for bridged mode. So I'm a bit confused, maybe I need to check the MAC addresses to confirm what virtual NIC is assigned to what guest NIC. In any case I was unable to ping any address on the 192.168.1.0 network.

Okay, after switching the guest NIC back to DHCP mode I am able to ping google.com. It looks like I had the NICs mixed up which would explain why it's not been working properly. I am now going to try bridged mode with just one NIC.

I tried bridged mode with just one NIC and I am able to ping google.com on the guest but I cannot ping the host (192.168.1.68). I also cannot ping the guest (192.168.1.100) from the host. I am uploading the log file for the VM in case it is of use to anyone.
Attachments
CentOS 6.7 32 bit-2015-09-13-16-34-50.zip
Log file for CentOS 6.7 32 bit guest with bridged networking only
(13.21 KiB) Downloaded 310 times
eddiegi686
 
Posts: 20
Joined: 11. Sep 2015, 02:13

Re: Cannot access CentOS Guest VM Services from Windows Host

Postby noteirak » 13. Sep 2015, 22:28

Try the NDIS5 again now that you figured out the right NIC. If you already did, make sure firewalls are off, or any other software that could interfere, since you can access internet via Bridged only.
Also, it would be best if you could post the commands and output of any action you take, both in host and guest. We might detect other inconsistencies.
Hyperbox - Virtual Infrastructure Manager - https://kamax.io/hbox/
Manage your VirtualBox infrastructure the free way!
noteirak
Site Moderator
 
Posts: 5197
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7

Re: Cannot access CentOS Guest VM Services from Windows Host

Postby eddiegi686 » 14. Sep 2015, 00:14

Okay, so first things first I disabled the firewall on the guest - CentOS 6.7 and the host - Windows 7.

Here's the output of some commands to test the networking:

virtualbox-vm-centos-ifconfig.jpg
ifconfig output on the CentOS guest
virtualbox-vm-centos-ifconfig.jpg (43.12 KiB) Viewed 23742 times


virtualbox-vm-centos-route.jpg
route command output on the CentOS guest
virtualbox-vm-centos-route.jpg (27.06 KiB) Viewed 23742 times


Pinging the local router on the LAN:
virtualbox-vm-centos-ping-router.jpg
ping command output on the CentOS guest
virtualbox-vm-centos-ping-router.jpg (37.77 KiB) Viewed 23742 times
eddiegi686
 
Posts: 20
Joined: 11. Sep 2015, 02:13

Re: Cannot access CentOS Guest VM Services from Windows Host

Postby eddiegi686 » 14. Sep 2015, 00:21

Here's the Windows command line showing the command used to launch Virtualbox and me trying to ping the guest (192.168.1.100).

virtualbox-host-cmd-and-ping.jpg
Virtualbox host command line and ping guest.
virtualbox-host-cmd-and-ping.jpg (78.71 KiB) Viewed 23741 times


For completeness I am going to try the AMD PCNet FAST III (Am79C973, the default) network adapter to see if it makes a difference.

Update:

No luck at all with the AMD PCNet FAST III network adapter, it works the same as the Intel one but I still can't ping or access the host from the guest or vice versa.
eddiegi686
 
Posts: 20
Joined: 11. Sep 2015, 02:13

Re: Cannot access CentOS Guest VM Services from Windows Host

Postby noteirak » 14. Sep 2015, 06:48

Ok I see few issues already:
- About NDIS5, the parameter is to be given during install, not when starting VirtualBox. In your case, it means stopping all VMs, uninstalling VirtualBox (you won't loose your data) then reinstalling with the extra parameter
- After switching to NDIS5, full output of the following commands on the host (elevated prompt if required):
Code: Select all   Expand viewCollapse view
ipconfig /all
route print
netsh advfirewall show private
netsh advfirewall show public
netsh advfirewall show domain
ping 192.168.1.100
arp -a

- Guest settings of the VM, from a prompt in the install directory of VirtualBox in the host (replace <vm name>):
Code: Select all   Expand viewCollapse view
vboxmanage showvminfo <vm name> --details

- On the guest (I'm not familiar with CentOS, so try the appropriate command):
Code: Select all   Expand viewCollapse view
sudo ifconfig -a
sudo iptables -L -n -v
route -n
ping -c 4 192.168.1.68
arp -n


For all the commands, make sure you show the full verbatim output (including the command). Do not remove anything thinking it is of no importance.
You've used screenshots until now but I would appreciate a lot if you could provide attached text files on this one. It would make it reading/comparing much easier.
Hyperbox - Virtual Infrastructure Manager - https://kamax.io/hbox/
Manage your VirtualBox infrastructure the free way!
noteirak
Site Moderator
 
Posts: 5197
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7

Re: Cannot access CentOS Guest VM Services from Windows Host

Postby noteirak » 14. Sep 2015, 08:23

Hyperbox - Virtual Infrastructure Manager - https://kamax.io/hbox/
Manage your VirtualBox infrastructure the free way!
noteirak
Site Moderator
 
Posts: 5197
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7

Re: Cannot access CentOS Guest VM Services from Windows Host

Postby eddiegi686 » 15. Sep 2015, 15:36

You are correct it is the NDIS6 bug which was causing my problem. After reinstalling Virtualbox with the NETWORKTYPE=NDIS5 option I am able to ping the host from the guest and the guest from the host. I am also able to access services running on the guest from the host.

Anyway here's the output you requested:

Host settings:
Code: Select all   Expand viewCollapse view
C:\>ipconfig /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : jeffgraypc1
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : home

Ethernet adapter Local Area Connection:

   Connection-specific DNS Suffix  . : home
   Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller
   Physical Address. . . . . . . . . : 1C-6F-65-30-AA-04
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::f967:b25e:1f8f:9712%11(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.1.68(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : 15 September 2015 14:14:00
   Lease Expires . . . . . . . . . . : 16 September 2015 14:13:59
   Default Gateway . . . . . . . . . : 192.168.1.254
   DHCP Server . . . . . . . . . . . : 192.168.1.254
   DHCPv6 IAID . . . . . . . . . . . : 236744549
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1D-86-05-A4-1C-6F-65-30-AA-04

   DNS Servers . . . . . . . . . . . : 192.168.1.254
   NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter VirtualBox Host-Only Network:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter
   Physical Address. . . . . . . . . : 08-00-27-00-28-EF
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::c5e1:f27b:b967:8fc7%14(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.56.1(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :
   DHCPv6 IAID . . . . . . . . . . . : 235405351
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1D-86-05-A4-1C-6F-65-30-AA-04

   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                       fec0:0:0:ffff::2%1
                                       fec0:0:0:ffff::3%1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter isatap.home:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : home
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 11:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   IPv6 Address. . . . . . . . . . . : 2001:0:5cf2:840f:3cdb:29ff:3f57:febb(Pref
erred)
   Link-local IPv6 Address . . . . . : fe80::3cdb:29ff:3f57:febb%13(Preferred)
   Default Gateway . . . . . . . . . : ::
   NetBIOS over Tcpip. . . . . . . . : Disabled

Tunnel adapter isatap.{1AC87089-F866-46AE-A171-0C25330C636D}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

C:\>route print
===========================================================================
Interface List
 11...1c 6f 65 30 aa 04 ......Realtek PCIe GBE Family Controller
 14...08 00 27 00 28 ef ......VirtualBox Host-Only Ethernet Adapter
  1...........................Software Loopback Interface 1
 12...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
 13...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
 15...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0    192.168.1.254     192.168.1.68     10
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    306
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    306
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    306
      192.168.1.0    255.255.255.0         On-link      192.168.1.68    266
     192.168.1.68  255.255.255.255         On-link      192.168.1.68    266
    192.168.1.255  255.255.255.255         On-link      192.168.1.68    266
     192.168.56.0    255.255.255.0         On-link      192.168.56.1    276
     192.168.56.1  255.255.255.255         On-link      192.168.56.1    276
   192.168.56.255  255.255.255.255         On-link      192.168.56.1    276
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    306
        224.0.0.0        240.0.0.0         On-link      192.168.56.1    276
        224.0.0.0        240.0.0.0         On-link      192.168.1.68    266
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    306
  255.255.255.255  255.255.255.255         On-link      192.168.56.1    276
  255.255.255.255  255.255.255.255         On-link      192.168.1.68    266
===========================================================================
Persistent Routes:
  None

IPv6 Route Table
===========================================================================
Active Routes:
 If Metric Network Destination      Gateway
 13     58 ::/0                     On-link
  1    306 ::1/128                  On-link
 13     58 2001::/32                On-link
 13    306 2001:0:5cf2:840f:3cae:3404:3f57:febb/128
                                    On-link
 14    276 fe80::/64                On-link
 11    266 fe80::/64                On-link
 13    306 fe80::/64                On-link
 13    306 fe80::3cae:3404:3f57:febb/128
                                    On-link
 14    276 fe80::c5e1:f27b:b967:8fc7/128
                                    On-link
 11    266 fe80::f967:b25e:1f8f:9712/128
                                    On-link
  1    306 ff00::/8                 On-link
 13    306 ff00::/8                 On-link
 14    276 ff00::/8                 On-link
 11    266 ff00::/8                 On-link
===========================================================================
Persistent Routes:
  None

C:\>netsh advfirewall show private

Private Profile Settings:
----------------------------------------------------------------------
State                                 OFF
Firewall Policy                       BlockInbound,AllowOutbound
LocalFirewallRules                    N/A (GPO-store only)
LocalConSecRules                      N/A (GPO-store only)
InboundUserNotification               Enable
RemoteManagement                      Disable
UnicastResponseToMulticast            Enable

Logging:
LogAllowedConnections                 Disable
LogDroppedConnections                 Disable
FileName                              %systemroot%\system32\LogFiles\Firewall\pf
irewall.log
MaxFileSize                           4096

Ok.

C:\>netsh advfirewall show public

Public Profile Settings:
----------------------------------------------------------------------
State                                 OFF
Firewall Policy                       BlockInbound,AllowOutbound
LocalFirewallRules                    N/A (GPO-store only)
LocalConSecRules                      N/A (GPO-store only)
InboundUserNotification               Enable
RemoteManagement                      Disable
UnicastResponseToMulticast            Enable

Logging:
LogAllowedConnections                 Disable
LogDroppedConnections                 Disable
FileName                              %systemroot%\system32\LogFiles\Firewall\pf
irewall.log
MaxFileSize                           4096

Ok.

C:\>netsh advfirewall show domain

Domain Profile Settings:
----------------------------------------------------------------------
State                                 OFF
Firewall Policy                       BlockInbound,AllowOutbound
LocalFirewallRules                    N/A (GPO-store only)
LocalConSecRules                      N/A (GPO-store only)
InboundUserNotification               Enable
RemoteManagement                      Disable
UnicastResponseToMulticast            Enable

Logging:
LogAllowedConnections                 Disable
LogDroppedConnections                 Disable
FileName                              %systemroot%\system32\LogFiles\Firewall\pf
irewall.log
MaxFileSize                           4096

Ok.

C:\>ping 192.168.1.100

Pinging 192.168.1.100 with 32 bytes of data:
Reply from 192.168.1.100: bytes=32 time=1ms TTL=64
Reply from 192.168.1.100: bytes=32 time=2ms TTL=64
Reply from 192.168.1.100: bytes=32 time=1ms TTL=64
Reply from 192.168.1.100: bytes=32 time=2ms TTL=64

Ping statistics for 192.168.1.100:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 1ms, Maximum = 2ms, Average = 1ms

C:\>

C:\>arp -a

Interface: 192.168.1.68 --- 0xb
  Internet Address      Physical Address      Type
  192.168.1.100         08-00-27-5b-0c-40     dynamic
  192.168.1.254         c8-91-f9-5a-63-4c     dynamic
  192.168.1.255         ff-ff-ff-ff-ff-ff     static
  224.0.0.22            01-00-5e-00-00-16     static
  224.0.0.252           01-00-5e-00-00-fc     static
  239.255.255.250       01-00-5e-7f-ff-fa     static
  255.255.255.255       ff-ff-ff-ff-ff-ff     static

Interface: 192.168.56.1 --- 0xe
  Internet Address      Physical Address      Type
  192.168.56.255        ff-ff-ff-ff-ff-ff     static
  224.0.0.22            01-00-5e-00-00-16     static
  224.0.0.252           01-00-5e-00-00-fc     static
  239.255.255.250       01-00-5e-7f-ff-fa     static
  255.255.255.255       ff-ff-ff-ff-ff-ff     static


Guest settings of the VM:
Code: Select all   Expand viewCollapse view
c:\Program Files\Oracle\VirtualBox>VBoxManage.exe showvminfo "CentOS 6.7 32 bit"

Name:            CentOS 6.7 32 bit
Groups:          /
Guest OS:        Red Hat (32-bit)
UUID:            4fa957e5-4e84-48a9-97aa-a1613b6f1cd3
Config file:     C:\Users\Ed Gray\VirtualBox VMs\CentOS 6.7 32 bit\CentOS 6.7 32
 bit.vbox
Snapshot folder: C:\Users\Ed Gray\VirtualBox VMs\CentOS 6.7 32 bit\Snapshots
Log folder:      C:\Users\Ed Gray\VirtualBox VMs\CentOS 6.7 32 bit\Logs
Hardware UUID:   4fa957e5-4e84-48a9-97aa-a1613b6f1cd3
Memory size:     1024MB
Page Fusion:     off
VRAM size:       32MB
CPU exec cap:    100%
HPET:            off
Chipset:         piix3
Firmware:        BIOS
Number of CPUs:  2
PAE:             on
Long Mode:       off
CPUID Portability Level: 0
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:          on
Time offset:     0ms
RTC:             UTC
Hardw. virt.ext: on
Nested Paging:   on
Large Pages:     on
VT-x VPID:       on
VT-x unr. exec.: on
Paravirt. Provider: Default
State:           running (since 2015-09-15T13:14:26.635000000)
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
Default Frontend:
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
Storage Controller Name (1):            SATA
Storage Controller Type (1):            IntelAhci
Storage Controller Instance Number (1): 0
Storage Controller Max Port Count (1):  30
Storage Controller Port Count (1):      1
Storage Controller Bootable (1):        on
IDE (1, 0): Empty
SATA (0, 0): G:\Eds-Stuff\Software\Virtual-Machines\CentOS 6.7 32 bit.vdi (UUID:
 b084beec-ad7b-4707-a828-bdc6fc268a5f)
NIC 1:           MAC: 0800275B0C40, Attachment: Bridged Interface 'Realtek PCIe
GBE Family Controller', Cable connected: on, Trace: off (file: none), Type: 8254
0EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth g
roup: none
NIC 2:           disabled
NIC 3:           disabled
NIC 4:           disabled
NIC 5:           disabled
NIC 6:           disabled
NIC 7:           disabled
NIC 8:           disabled
Pointing Device: PS/2 Mouse
Keyboard Device: PS/2 Keyboard
UART 1:          I/O base: 0x03f8, IRQ: 4, disconnected
UART 2:          disabled
LPT 1:           disabled
LPT 2:           disabled
Audio:           enabled (Driver: DSOUND, Controller: AC97, Codec: AD1980)
Clipboard Mode:  disabled
Drag and drop Mode: disabled
Session name:    GUI/Qt
Video mode:      1024x768x32 at 0,0 enabled
VRDE:            disabled
USB:             enabled
EHCI:            enabled
XHCI:            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

Video capturing:    not active
Capture screens:    0
Capture file:       C:\Users\Ed Gray\VirtualBox VMs\CentOS 6.7 32 bit\CentOS 6.7
 32 bit.webm
Capture dimensions: 1024x768
Capture rate:       512 kbps
Capture FPS:        25

Guest:

Configured memory balloon size:      0 MB
OS type:                             RedHat
Additions run level:                 0

Guest Facilities:

No active facilities.


Inside the guest OS:
Code: Select all   Expand viewCollapse view
[edwardgray@centos-linux-vm1 ~]$ sudo ifconfig -a
[sudo] password for edwardgray:
eth5      Link encap:Ethernet  HWaddr 08:00:27:5B:0C:40 
          inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe5b:c40/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1134 errors:0 dropped:0 overruns:0 frame:0
          TX packets:435 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:98507 (96.1 KiB)  TX bytes:461796 (450.9 KiB)

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:65536  Metric:1
          RX packets:16 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1152 (1.1 KiB)  TX bytes:1152 (1.1 KiB)

[edwardgray@centos-linux-vm1 ~]$ sudo iptables -L -n -v
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
  297 28730 ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED
    3   204 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0           
    2   120 ACCEPT     all  --  lo     *       0.0.0.0/0            0.0.0.0/0           
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:22
   14   728 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:80
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:21
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:10000
  331 32723 REJECT     all  --  *      *       0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 REJECT     all  --  *      *       0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT 257 packets, 449K bytes)
 pkts bytes target     prot opt in     out     source               destination         

[edwardgray@centos-linux-vm1 ~]$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     1      0        0 eth5
0.0.0.0         192.168.1.254   0.0.0.0         UG    0      0        0 eth5
[edwardgray@centos-linux-vm1 ~]$

[edwardgray@centos-linux-vm1 ~]$ ping -c 4 192.168.1.68
PING 192.168.1.68 (192.168.1.68) 56(84) bytes of data.
64 bytes from 192.168.1.68: icmp_seq=1 ttl=128 time=2.94 ms
64 bytes from 192.168.1.68: icmp_seq=2 ttl=128 time=1.06 ms
64 bytes from 192.168.1.68: icmp_seq=3 ttl=128 time=1.77 ms
64 bytes from 192.168.1.68: icmp_seq=4 ttl=128 time=1.70 ms

--- 192.168.1.68 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3006ms
rtt min/avg/max/mdev = 1.068/1.873/2.946/0.679 ms
[edwardgray@centos-linux-vm1 ~]$

[edwardgray@centos-linux-vm1 ~]$ arp -n
Address                  HWtype  HWaddress           Flags Mask            Iface
192.168.1.254            ether   c8:91:f9:5a:63:4c   C                     eth5
192.168.1.68             ether   1c:6f:65:30:aa:04   C                     eth5
[edwardgray@centos-linux-vm1 ~]$
eddiegi686
 
Posts: 20
Joined: 11. Sep 2015, 02:13

Next

Return to Linux Guests

Who is online

Users browsing this forum: No registered users and 10 guests