VBoxManage dhcpserver not working on internal network
Posted: 30. Oct 2012, 23:02
ver 4.2.0
I have two VMs that I switched from NAT to Internal with a network name of locnet. The guestOS are both Linux one Fedora6 and another CentOS 6.3. According to documentation I should be able to use the VboxManage dhcpserver command to set a dhcp server for this internal network but after multiple reboots the vm fail to receive an address from dhcp.
Below is some info:
I have two VMs that I switched from NAT to Internal with a network name of locnet. The guestOS are both Linux one Fedora6 and another CentOS 6.3. According to documentation I should be able to use the VboxManage dhcpserver command to set a dhcp server for this internal network but after multiple reboots the vm fail to receive an address from dhcp.
Below is some info:
Code: Select all
c:\Program Files\Oracle\VirtualBox>VBoxManage.exe dhcpserver add --netname locne
t --ip 192.168.2.253 --netmask 255.255.255.0 --lowerip 192.168.2.150 --upperip 1
92.168.2.155 --enable
c:\Program Files\Oracle\VirtualBox>VBoxManage.exe list dhcpservers
NetworkName: HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter
IP: 192.168.56.100
NetworkMask: 255.255.255.0
lowerIPAddress: 192.168.56.101
upperIPAddress: 192.168.56.254
Enabled: Yes
NetworkName: locnet
IP: 192.168.2.253
NetworkMask: 255.255.255.0
lowerIPAddress: 192.168.2.150
upperIPAddress: 192.168.2.155
Enabled: Yes
c:\Program Files\Oracle\VirtualBox>
Other Info:
c:\Program Files\Oracle\VirtualBox>VBoxManage.exe list -l runningvms
Name: Nagios sandbox
Groups: /
Guest OS: Red Hat
UUID: 199f59c4-4114-45e4-ba88-006b4cc41568
Config file: C:\Users\Gabriel\VirtualBox VMs\Nagios sandbox\Nagios sandbox.v
box
Snapshot folder: C:\Users\Gabriel\VirtualBox VMs\Nagios sandbox\Snapshots
Log folder: C:\Users\Gabriel\VirtualBox VMs\Nagios sandbox\Logs
Hardware UUID: 199f59c4-4114-45e4-ba88-006b4cc41568
Memory size: 8192MB
Page Fusion: off
VRAM size: 12MB
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: on
Time offset: 0ms
RTC: UTC
Hardw. virt.ext: on
Hardw. virt.ext exclusive: off
Nested Paging: on
Large Pages: off
VT-x VPID: on
State: running (since 2012-10-30T16:55:52.862000000)
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 Controller
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 Controller
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 Controller (1, 0): C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso
(UUID: 31fc9bd0-bdbb-4230-a333-75b8486ceb5d)
SATA Controller (0, 0): C:\Users\Gabriel\VirtualBox VMs\Nagios sandbox\Snapshots
\{0a46bcf6-58f5-4abd-bc44-ed0e6d59e6f0}.vdi (UUID: 0a46bcf6-58f5-4abd-bc44-ed0e6
d59e6f0)
NIC 1: MAC: 080027303045, Attachment: Internal Network 'locnet', 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: PS/2 Mouse
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: disabled
Drag'n'drop Mode: disabled
VRDE: disabled
USB: enabled
EHCI: disabled
USB Device Filters:
<none>
Bandwidth groups: <none>
Shared folders: <none>
Guest:
Configured memory balloon size: 0 MB
Snapshots:
Name: Installed and updated (UUID: 4c80fec5-459b-4125-8e29-b172caeb2d64)
Name: Installed Nagios prereqs (UUID: 1ce996d6-c1d0-4ca1-81b2-f3118ea386d6
) *
Name: pigpen lab Clone
Groups: /
Guest OS: Fedora
UUID: d74899be-1d3c-4b12-acb9-3e70d8dd5242
Config file: C:\Users\Gabriel\VirtualBox VMs\pigpen lab Clone\pigpen lab Clo
ne.vbox
Snapshot folder: C:\Users\Gabriel\VirtualBox VMs\pigpen lab Clone\Snapshots
Log folder: C:\Users\Gabriel\VirtualBox VMs\pigpen lab Clone\Logs
Hardware UUID: d74899be-1d3c-4b12-acb9-3e70d8dd5242
Memory size: 4096MB
Page Fusion: off
VRAM size: 12MB
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): HardDisk
Boot Device (2): Not Assigned
Boot Device (3): Not Assigned
Boot Device (4): Not Assigned
ACPI: on
IOAPIC: off
PAE: off
Time offset: 0ms
RTC: UTC
Hardw. virt.ext: on
Hardw. virt.ext exclusive: off
Nested Paging: on
Large Pages: off
VT-x VPID: on
State: running (since 2012-10-30T17:40:49.038000000)
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 Controller
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 Controller
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 Controller (1, 0): C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso
(UUID: 31fc9bd0-bdbb-4230-a333-75b8486ceb5d)
SATA Controller (0, 0): C:\Users\Gabriel\VirtualBox VMs\pigpen lab Clone\Snapsho
ts\{40bb2347-dea4-4f9b-a3c1-902d5d38f258}.vdi (UUID: 40bb2347-dea4-4f9b-a3c1-902
d5d38f258)
NIC 1: MAC: 0800277C9D8A, Attachment: Internal Network 'locnet', 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
LPT 1: disabled
LPT 2: disabled
Audio: enabled (Driver: DSOUND, Controller: AC97)
Clipboard Mode: disabled
Drag'n'drop Mode: disabled
VRDE: disabled
USB: enabled
EHCI: disabled
USB Device Filters:
<none>
Bandwidth groups: <none>
Shared folders: <none>
Guest:
Configured memory balloon size: 0 MB
Snapshots:
Name: Disk successfully resized to 95GB (UUID: 6d716f25-3fd5-4186-9e9f-1b051e
314666) *