Page 1 of 1
NAT card inactive in ubuntu server
Posted: 5. Nov 2016, 20:20
by centii
I have Ubuntu 16.04 server as guest with one Host Adapter (only this works), one NAT and one Bridged.
I'm trying to see my virtual hosts in Apache.
From Guest:
Code: Select all
magellan@g3site001:~$ ifconfig
enp0s3 Link encap:Ethernet HWaddr 08:00:27:4b:16:87
inet addr:192.168.56.101 Bcast:192.168.56.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe4b:1687/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:140 errors:0 dropped:0 overruns:0 frame:0
TX packets:128 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:18660 (18.6 KB) TX bytes:19970 (19.9 KB)
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:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:349 (349.0 B) TX bytes:349 (349.0 B)
From Host:
Code: Select all
cent@cent:~$ ifconfig
eno1 Link encap:Ethernet HWaddr 5c:26:0a:5f:f9:f0
inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::834e:38d7:f70a:5e51/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:98314 errors:0 dropped:0 overruns:0 frame:0
TX packets:94114 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:85944256 (85.9 MB) TX bytes:18283972 (18.2 MB)
Interrupt:20 Memory:e2e00000-e2e20000
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:5980 errors:0 dropped:0 overruns:0 frame:0
TX packets:5980 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:871316 (871.3 KB) TX bytes:871316 (871.3 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:118 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:15474 (15.4 KB)
I created a new guest of ubuntu desktop with a NAT adapter; that seems OK(?)
Code: Select all
test@test-VirtualBox:~$ ifconfig
enp0s3 Link encap:Ethernet HWaddr 08:00:27:ab:07:aa
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::f600:4caa:11e2:d286/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5082 errors:0 dropped:0 overruns:0 frame:0
TX packets:2573 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4141483 (4.1 MB) TX bytes:200596 (200.5 KB)
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:167 errors:0 dropped:0 overruns:0 frame:0
TX packets:167 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:23759 (23.7 KB) TX bytes:23759 (23.7 KB)
Please note that my Ubuntu server guest is blocked during apt-get update etc.
What should I do?
At the moment can't use my guest for developing...
Re: NAT card inactive in ubuntu server
Posted: 5. Nov 2016, 20:42
by centii
...tried
Code: Select all
cent@cent:~$ VBoxManage modifyvm 'Ubuntu Server 64bits 16.04.1 LTS' --natpf1 "guestssh,tcp,,222,,22"
cent@cent:~$ VBoxManage modifyvm 'Ubuntu Server 64bits 16.04.1 LTS' --natpf1 "guesthttp,tcp,,800,,80"
didn't work also...
Re: NAT card inactive in ubuntu server
Posted: 5. Nov 2016, 21:07
by Perryg
Your guest only shows that you have the host-only adapter configured. You will need to correctly enable the NAT or Bridged adapter and configure them properly.
Re: NAT card inactive in ubuntu server
Posted: 5. Nov 2016, 21:40
by centii
That was the result of
afte that adapter was enabled!
Re: NAT card inactive in ubuntu server
Posted: 5. Nov 2016, 21:48
by Perryg
OK so you posted the result of ifconfig. Did you see that the only result was the host-only or are you saying that what you posted was exactly what you wanted to see?
From the hosts terminal 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.
Then we can see what you really have configured.
Re: NAT card inactive in ubuntu server
Posted: 5. Nov 2016, 21:58
by centii
No, I was saying that even with NAT enabled my ifconfig is not good...
Here it is...
Code: Select all
cent@cent:~$ VBoxManage showvminfo "Ubuntu Server 64bits 16.04.1 LTS" --details
Name: Ubuntu Server 64bits 16.04.1 LTS
Groups: /
Guest OS: Ubuntu (64-bit)
UUID: a86595aa-b95f-422d-9d82-3f65a1d51bf8
Config file: /home/cent/VirtualBox VMs/Ubuntu Server 64bits 16.04.1 LTS/Ubuntu Server 64bits 16.04.1 LTS.vbox
Snapshot folder: /home/cent/VirtualBox VMs/Ubuntu Server 64bits 16.04.1 LTS/Snapshots
Log folder: /home/cent/VirtualBox VMs/Ubuntu Server 64bits 16.04.1 LTS/Logs
Hardware UUID: a86595aa-b95f-422d-9d82-3f65a1d51bf8
Memory size: 1024MB
Page Fusion: off
VRAM size: 16MB
CPU exec cap: 100%
HPET: off
Chipset: piix3
Firmware: BIOS
Number of CPUs: 1
PAE: off
Long Mode: on
Triple Fault Reset: off
APIC: on
X2APIC: 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
BIOS APIC mode: APIC
Time offset: 0ms
RTC: UTC
Hardw. virt.ext: on
Nested Paging: on
Large Pages: off
VT-x VPID: on
VT-x unr. exec.: on
Paravirt. Provider: Default
Effective Paravirt. Provider: KVM
State: powered off (since 2016-11-05T18:43:43.757000000)
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): /usr/share/virtualbox/VBoxGuestAdditions.iso (UUID: 288888b9-33a4-493d-8582-dcaa4a335f71)
SATA (0, 0): /home/cent/VirtualBox VMs/Ubuntu Server 64bits 16.04.1 LTS/Snapshots/{0c796e39-9a2e-410b-be73-6694226d019b}.vdi (UUID: 0c796e39-9a2e-410b-be73-6694226d019b)
NIC 1: MAC: 0800274B1687, Attachment: Host-only Interface 'vboxnet0', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 2: disabled
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
UART 3: disabled
UART 4: disabled
LPT 1: disabled
LPT 2: disabled
Audio: enabled (Driver: PulseAudio, Controller: AC97, Codec: AD1980)
Clipboard Mode: Bidirectional
Drag and drop Mode: Bidirectional
VRDE: enabled (Address 0.0.0.0, Ports 3389, MultiConn: off, ReuseSingleConn: off, Authentication type: null)
Video redirection: disabled
USB: enabled
EHCI: disabled
XHCI: disabled
USB Device Filters:
<none>
Bandwidth groups: <none>
Shared folders:
Name: 'shared', Host path: '/home/cent/VirtualBox VMs/Ubuntu Server 64bits 16.04.1 LTS/shared' (machine mapping), writable
Video capturing: not active
Capture screens: 0
Capture file: /home/cent/VirtualBox VMs/Ubuntu Server 64bits 16.04.1 LTS/Ubuntu Server 64bits 16.04.1 LTS.webm
Capture dimensions: 1024x768
Capture rate: 512 kbps
Capture FPS: 25
Description:
Host: gesite001
User: magellan
Pass: ***********
Installed Packages
----------------------------
DNS server
OpenSSH server
Guest:
Configured memory balloon size: 0 MB
Snapshots:
Name: Snapshot 1 (UUID: ef398313-16ae-43cd-8cf2-5712523f066e) *
Another strange thing is that I have cloned my guest some time ago before fiddling with it and I can see the NAT from ifconfig when enabled in the clone(!).
Re: NAT card inactive in ubuntu server
Posted: 5. Nov 2016, 22:03
by centii
Please replace the output from NIC 3 empty to this one:
Code: Select all
NIC 3: MAC: 080027A79F32, Attachment: NAT Network 'NatNetwork', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
Re: NAT card inactive in ubuntu server
Posted: 5. Nov 2016, 22:06
by Perryg
OK so your first reply clearly shows that you only have the host-only. I really need to see the complete one showing the necessary adapters if you expect me to be able to help you. Posting please replace does not work for me.
Re: NAT card inactive in ubuntu server
Posted: 5. Nov 2016, 22:19
by centii
Resending.............
Code: Select all
cent@cent:~$ VBoxManage showvminfo "Ubuntu Server 64bits 16.04.1 LTS" --details
Name: Ubuntu Server 64bits 16.04.1 LTS
Groups: /
Guest OS: Ubuntu (64-bit)
UUID: a86595aa-b95f-422d-9d82-3f65a1d51bf8
Config file: /home/cent/VirtualBox VMs/Ubuntu Server 64bits 16.04.1 LTS/Ubuntu Server 64bits 16.04.1 LTS.vbox
Snapshot folder: /home/cent/VirtualBox VMs/Ubuntu Server 64bits 16.04.1 LTS/Snapshots
Log folder: /home/cent/VirtualBox VMs/Ubuntu Server 64bits 16.04.1 LTS/Logs
Hardware UUID: a86595aa-b95f-422d-9d82-3f65a1d51bf8
Memory size: 1024MB
Page Fusion: off
VRAM size: 16MB
CPU exec cap: 100%
HPET: off
Chipset: piix3
Firmware: BIOS
Number of CPUs: 1
PAE: off
Long Mode: on
Triple Fault Reset: off
APIC: on
X2APIC: 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
BIOS APIC mode: APIC
Time offset: 0ms
RTC: UTC
Hardw. virt.ext: on
Nested Paging: on
Large Pages: off
VT-x VPID: on
VT-x unr. exec.: on
Paravirt. Provider: Default
Effective Paravirt. Provider: KVM
State: powered off (since 2016-11-05T20:17:48.000000000)
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): /usr/share/virtualbox/VBoxGuestAdditions.iso (UUID: 288888b9-33a4-493d-8582-dcaa4a335f71)
SATA (0, 0): /home/cent/VirtualBox VMs/Ubuntu Server 64bits 16.04.1 LTS/Snapshots/{0c796e39-9a2e-410b-be73-6694226d019b}.vdi (UUID: 0c796e39-9a2e-410b-be73-6694226d019b)
NIC 1: MAC: 0800274B1687, Attachment: Host-only Interface 'vboxnet0', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 2: disabled
NIC 3: MAC: 080027A79F32, Attachment: NAT Network 'NatNetwork', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: allow-all, Bandwidth group: none
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
UART 3: disabled
UART 4: disabled
LPT 1: disabled
LPT 2: disabled
Audio: enabled (Driver: PulseAudio, Controller: AC97, Codec: AD1980)
Clipboard Mode: Bidirectional
Drag and drop Mode: Bidirectional
VRDE: enabled (Address 0.0.0.0, Ports 3389, MultiConn: off, ReuseSingleConn: off, Authentication type: null)
Video redirection: disabled
USB: enabled
EHCI: disabled
XHCI: disabled
USB Device Filters:
<none>
Bandwidth groups: <none>
Shared folders:
Name: 'shared', Host path: '/home/cent/VirtualBox VMs/Ubuntu Server 64bits 16.04.1 LTS/shared' (machine mapping), writable
Video capturing: not active
Capture screens: 0
Capture file: /home/cent/VirtualBox VMs/Ubuntu Server 64bits 16.04.1 LTS/Ubuntu Server 64bits 16.04.1 LTS.webm
Capture dimensions: 1024x768
Capture rate: 512 kbps
Capture FPS: 25
Description:
Host: gesite001
User: magellan
Pass: comet
Installed Packages
----------------------------
DNS server
OpenSSH server
Guest:
Configured memory balloon size: 0 MB
Snapshots:
Name: Snapshot 1 (UUID: ef398313-16ae-43cd-8cf2-5712523f066e) *
Re: NAT card inactive in ubuntu server
Posted: 5. Nov 2016, 22:23
by Perryg
Very well now without changing any settings start the guest and post the results of lspci in the guests terminal.
Re: NAT card inactive in ubuntu server
Posted: 5. Nov 2016, 22:25
by centii
Code: Select all
magellan@g3site001:~$ lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter
00:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
00:04.0 System peripheral: InnoTek Systemberatung GmbH VirtualBox Guest Service
00:05.0 Multimedia audio controller: Intel Corporation 82801AA AC'97 Audio Controller (rev 01)
00:06.0 USB controller: Apple Inc. KeyLargo/Intrepid USB
00:07.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
00:09.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
00:0d.0 SATA controller: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [AHCI mode] (rev 02)
Re: NAT card inactive in ubuntu server
Posted: 5. Nov 2016, 22:40
by Perryg
Now the guest has two ethernet adapters. All you should need to do is configure the second adapter. Since this is CLI there is no network manager to do this for you so you need to know how to manually setup the adapter with ifconfig eth* up and the proper settings. VirtualBox is passing the adapter through so it is now a configuration issue.
Re: NAT card inactive in ubuntu server
Posted: 5. Nov 2016, 22:45
by centii
keep these in mind and if I don't manage I'll open a new post............
Re: NAT card inactive in ubuntu server
Posted: 8. Nov 2016, 13:10
by centii