Opened 7 years ago

Last modified 5 years ago

#16683 new enhancement

DHCP Reservations

Reported by: hydrian Owned by:
Component: other Version: VirtualBox 5.1.20
Keywords: dhcp network Cc:
Guest type: other Host type: other


Being able to define a DHCP IP reservation based on MAC address for Internal and NAT Networks. This is extremely useful having a reliable IP of r guest before the OS is installed. Think automated builds.

Running an external DHCP server is not always easy or even possible. Try to to install a DHCPd server on a Windows or Mac desktop....

Change History (2)

comment:1 by Frank Mehnert, 7 years ago

That would be indeed useful. Maybe for now a workaround like manually changing the corresponding leases file will be sufficient for you? Have a look at the VirtualBox home directory (on Windows it's /Users/USER/.VirtualBox, on Linux either $HOME/.config/VirtualBox or $HOME/.VirtualBox) and look for NETNAME.leases where NETNAME is the name of the network. This file contains active leases. The DHCP server reads this file on startup (NOT at runtime!.

comment:2 by prkumar, 5 years ago

I know it is very old ticket but in libvirt I can do something like below when defining a network, is it possible to do something like this in virtualbox?

  <forward mode='nat'>
      <port start='1024' end='65535'/>
  <bridge name='tt0' stp='on' delay='0'/>
  <mac address='52:54:00:58:5f:44'/>
  <domain name='tt.testing' localOnly='yes'/>
    <srv service='etcd-server-ssl' protocol='tcp' domain='' target='' port='2380' weight='10'/>
    <host ip=''>
    <host ip=''>
  <ip family='ipv4' address='' prefix='24'>
      <host mac='82:7d:df:54:21:62' name='test1-master-0' ip=''/>
      <host mac='16:91:31:2c:c2:a4' name='test1-bootstrap' ip=''/>
      <host mac='e2:14:06:fa:79:79' name='test1-worker-0-n8dtz' ip=''/>
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use