How to? Disable VirtualBox DHCP for host-only network

Ref: AI Tools, ChatGPT, Similar

Disable VirtualBox DHCP for host-only network” means:

Turn off the built-in DHCP server inside VirtualBox, so your Windows Server DHCP service becomes the only DHCP server giving IP addresses to the client VM.

Why this matters

In your DHCP lab, students are installing and configuring DHCP Server on Windows Server 2019.

But VirtualBox host-only networks can also have their own DHCP server. If VirtualBox DHCP is enabled, then the client VM may get an IP address from VirtualBox, not from the Windows DHCP Server.

That would make the lab confusing because students may think their Windows DHCP scope is working, but actually VirtualBox gave the IP.

Simple example

You want this:

Windows Server DHCP VM
192.168.XX.10
gives IP addresses to client

Not this:

VirtualBox DHCP
gives IP addresses to client

So we disable VirtualBox DHCP.

What to disable

Disable only this:

VirtualBox Host-Only Network DHCP Server

Do not disable the host-only adapter itself.

The host-only adapter/network should still exist so the VMs can communicate with each other.

Steps in VirtualBox

In VirtualBox:

  1. Open VirtualBox Manager
  2. Go to Tools
  3. Open Network
  4. Select the Host-only Network
  5. Go to the DHCP Server section/tab
  6. Uncheck or disable Enable Server
  7. Apply/save

In some versions:

File → Tools → Network Manager → Host-only Networks → DHCP Server → Disable

or:

File → Host Network Manager → select host-only adapter → uncheck DHCP Server

After disabling it

Your DHCP lab should use:

MachineIP setting
DHCP Server VMStatic IP, example 192.168.XX.10
Client VMDHCP / automatic IP
VirtualBox DHCPDisabled

Then the client should get an address from your Windows DHCP scope, for example:

192.168.XX.100 to 192.168.XX.150

Student-friendly wording

Disable VirtualBox DHCP on the host-only network so that the Windows Server DHCP role is the only DHCP server in this lab. Keep the host-only network enabled, but turn off its built-in DHCP server. Otherwise, the client may receive an IP address from VirtualBox instead of from your Windows DHCP scope.

Leave a Reply