internal Network problem with CentOS7

Discussions about using Linux guests in VirtualBox.
Post Reply
Anirban
Posts: 7
Joined: 4. May 2016, 19:17

internal Network problem with CentOS7

Post by Anirban »

Hi folks,

I am a newbie at VirtualBox and have started using it as a last resort.

Story in a brief : Older linux Machine can't run more than one KVM at once, my requirement was at least two. Tried dual booting win 10 with CentOS7, referred 5/6 tutorials to absolutely no effect. Only option left was to install a virtualization client and install virtual machines as guests. Enter VirtualBox..

I have set up two network interfaces for both of my VM guests. Both run same OS (same kernel, installed from same ISO, CentOS7). The attached screenshots are for one guest, but they are identical for both.
Network1
Network1
tester1_Net1.JPG (48.98 KiB) Viewed 2413 times
Network2
Network2
tester1_Net2.JPG (48.08 KiB) Viewed 2413 times
During installation, Net1 interface (detected in both guests as enp0s3) wanted to have DHCP based IPs [from the range 10.10.... or similar class A], however, I set static IPs (192.168.122.50/24 and 192.168.122.150/24). These are the IPs that I require.
Everything boots, but my guests can't 'ping' (and by extension ssh,telnet.. etc) to each other.
Net2 on the other hand, is up in the OS, but do not have any IP assigned.

At this point, I do not understand what other information you might require, so please ask away..

note:, no win-linux fistfights..please!!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: internal Network problem with CentOS7

Post by Perryg »

Post the results of ifconfig -a from both guests.
Anirban
Posts: 7
Joined: 4. May 2016, 19:17

Re: internal Network problem with CentOS7

Post by Anirban »

@Perryg, thanks. Here you go...
routing
routing
tester1_routing.JPG (48.23 KiB) Viewed 2402 times
tester1 ifconfig
tester1 ifconfig
tester1_Ifconfig.JPG (67.55 KiB) Viewed 2402 times
It might have something to do with that routing table, but I can't put my finger to it.. Also I have defined the network as private_1 like this :
network
network
tester1_private_1.JPG (38.4 KiB) Viewed 2402 times
Anirban
Posts: 7
Joined: 4. May 2016, 19:17

Re: internal Network problem with CentOS7

Post by Anirban »

and the corresponding files from other guest..
server1 ifconfig
server1 ifconfig
server1_ifconfig.JPG (64.13 KiB) Viewed 2402 times
server1 routing
server1 routing
server1_routing.JPG (47.5 KiB) Viewed 2402 times
similar routing table.. the mask is /32 oddly...
server1_private_1
server1_private_1
server1_private_1.JPG (36.39 KiB) Viewed 2402 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: internal Network problem with CentOS7

Post by Perryg »

These are clones aren’t they? It looks like they have the same MAC addresses. Re-initialize them and it should work.
Anirban
Posts: 7
Joined: 4. May 2016, 19:17

Re: internal Network problem with CentOS7

Post by Anirban »

@PerryG, well, I installed them separately but at this moment they are exactly similar (server with GUI).. preparing for RHCSA and RHCE :D ..

but if you see the Mac Addresses of both servers ( for enp0s3 port) the MAC addresses are very different, I don't think MAC to be the problem here..

server1 MAC : 08:00:27:69:94:07
tester1 MAC : 08:00:27:17:80:db
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: internal Network problem with CentOS7

Post by Perryg »

I admit it was hard to tell with all the extra to look through. Plus it being a screen shot and not text I could not diff the files.

Post the following from the host terminal/command window for each guest:

VBoxManage showvminfo <name of guest>

Put it is a text file please.
Anirban
Posts: 7
Joined: 4. May 2016, 19:17

Re: internal Network problem with CentOS7

Post by Anirban »

Hi PerryG, ah, and here I thought screentshots would be better !! ..sorry :wink:

I'll update this thread once I have my test machine at hand, that's 9 hours away.. :?
Anirban
Posts: 7
Joined: 4. May 2016, 19:17

Re: internal Network problem with CentOS7

Post by Anirban »

this is for server1..

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage showvminfo CentOS7_base
Name:            CentOS7_base
Groups:          /
Guest OS:        Red Hat (64-bit)
UUID:            760fb5e0-4675-4750-bbeb-8d7cb70461f3
Config file:     C:\Users\anirb\VirtualBox VMs\CentOS7_base\CentOS7_base.vbox
Snapshot folder: E:\VM_snaps
Log folder:      C:\Users\anirb\VirtualBox VMs\CentOS7_base\Logs
Hardware UUID:   760fb5e0-4675-4750-bbeb-8d7cb70461f3
Memory size:     1749MB
Page Fusion:     off
VRAM size:       57MB
CPU exec cap:    100%
HPET:            off
Chipset:         piix3
Firmware:        BIOS
Number of CPUs:  2
PAE:             on
Long Mode:       on
CPUID Portability Level: 0
CPUID overrides: None
Boot menu mode:  message and menu
Boot Device (1): DVD
Boot Device (2): HardDisk
Boot Device (3): Network
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:           powered off (since 2016-05-04T17:19:19.000000000)
Monitor count:   1
3D Acceleration: on
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 (0, 0): Empty
SATA (0, 0): E:\CentOS7_server1.vdi (UUID: 54e8d9ff-2dda-4f24-b07a-fc8d8fd5f644)
NIC 1:           MAC: 080027699407, Attachment: Internal Network 'Virtual_internal', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: allow-vms, Bandwidth group: none
NIC 2:           MAC: 080027294A47, Attachment: Host-only Interface 'VirtualBox Host-Only Ethernet Adapter', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: allow-vms, Bandwidth group: none
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:          disabled
UART 2:          disabled
UART 3:          disabled
UART 4:          disabled
LPT 1:           disabled
LPT 2:           disabled
Audio:           enabled (Driver: DSOUND, Controller: AC97, Codec: AD1980)
Clipboard Mode:  disabled
Drag and drop Mode: disabled
VRDE:            disabled
USB:             enabled
EHCI:            disabled
XHCI:            disabled

USB Device Filters:

<none>

Bandwidth groups:  <none>

Shared folders:  <none>

Video capturing:    not active
Capture screens:    0
Capture file:       C:\Users\anirb\VirtualBox VMs\CentOS7_base\CentOS7_base.webm
Capture dimensions: 1024x768
Capture rate:       512 kbps
Capture FPS:        25

Guest:

Configured memory balloon size:      0 MB



C:\Program Files\Oracle\VirtualBox>
And for tester1

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage showvminfo CentOS7_tester1
Name:            CentOS7_tester1
Groups:          /
Guest OS:        Red Hat (64-bit)
UUID:            000cd813-3971-46ce-92f8-7711699b76bf
Config file:     C:\Users\anirb\VirtualBox VMs\CentOS7_tester1\CentOS7_tester1.vbox
Snapshot folder: C:\Users\anirb\VirtualBox VMs\CentOS7_tester1\Snapshots
Log folder:      C:\Users\anirb\VirtualBox VMs\CentOS7_tester1\Logs
Hardware UUID:   000cd813-3971-46ce-92f8-7711699b76bf
Memory size:     1601MB
Page Fusion:     off
VRAM size:       36MB
CPU exec cap:    100%
HPET:            off
Chipset:         piix3
Firmware:        BIOS
Number of CPUs:  2
PAE:             on
Long Mode:       on
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 2016-05-05T16:42:28.430000000)
Monitor count:   1
3D Acceleration: on
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, 1): Empty
SATA (0, 0): C:\Users\anirb\VirtualBox VMs\CentOS7_tester1\CentOS7_tester1.vdi (UUID: c5e41f4a-eff3-4ad2-ab11-55a88f93356a)
NIC 1:           MAC: 0800271780DB, Attachment: Internal Network 'Virtual_internal', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: allow-vms, Bandwidth group: none
NIC 2:           MAC: 0800273A6DC4, Attachment: Host-only Interface 'VirtualBox Host-Only Ethernet Adapter', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: allow-vms, Bandwidth group: none
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:          disabled
UART 2:          disabled
UART 3:          disabled
UART 4:          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:            disabled
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\anirb\VirtualBox VMs\CentOS7_tester1\CentOS7_tester1.webm
Capture dimensions: 1024x768
Capture rate:       512 kbps
Capture FPS:        25

Guest:

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

Guest Facilities:

No active facilities.



C:\Program Files\Oracle\VirtualBox>
**I wrapper them with {pre}, let me know which option to use if this is problematic
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: internal Network problem with CentOS7

Post by Perryg »

I edited and removed the pre and instead placed code tags around the text. Makes it easier to read multiple files.

From what I see VirtualBox is happy and all of the entries should work. If you are still having issues you will need to look at the guest and the settings you have used. Make sure iptables are not causing this and firewall issues would be another place to look.
Anirban
Posts: 7
Joined: 4. May 2016, 19:17

Re: internal Network problem with CentOS7

Post by Anirban »

Thanks for your assistance PerryG. :D

I have installed another competing product and the VMs are now talking to each other... so the quick fix is to change product.. :arrow:

Maybe I'll pickup VirtualBox again in future..
Post Reply