675b4061447743a64c0575e79db6f31181669c2dvboxsyncTo configure custom DHCP options for a VM use the following command adapted
675b4061447743a64c0575e79db6f31181669c2dvboxsyncto your needs:
675b4061447743a64c0575e79db6f31181669c2dvboxsync
675b4061447743a64c0575e79db6f31181669c2dvboxsync$ VBoxManage dhcpserver modify \
675b4061447743a64c0575e79db6f31181669c2dvboxsync --netname test-0 --options --vm "Test Client" --slot 0 \
675b4061447743a64c0575e79db6f31181669c2dvboxsync --id 0 --value "224=c0:a8:02:01:c0:a8:02:02" \
675b4061447743a64c0575e79db6f31181669c2dvboxsync --id 0 --value "225=0:0"
675b4061447743a64c0575e79db6f31181669c2dvboxsync
675b4061447743a64c0575e79db6f31181669c2dvboxsyncNote that custom DHCP options must be specified with ID 0 and the actual
675b4061447743a64c0575e79db6f31181669c2dvboxsyncnumber in the value. This has technical reasons which may change in future
675b4061447743a64c0575e79db6f31181669c2dvboxsyncVirtualBox releases.
675b4061447743a64c0575e79db6f31181669c2dvboxsync
675b4061447743a64c0575e79db6f31181669c2dvboxsync
3eddf2fd003bdde4569c6af178a5086f9d04ab7bvboxsyncIt corresponds to the following bit of ISC 'dhcpd.conf':
675b4061447743a64c0575e79db6f31181669c2dvboxsync
675b4061447743a64c0575e79db6f31181669c2dvboxsyncoption sample1 code 224 = array of ip-address;
675b4061447743a64c0575e79db6f31181669c2dvboxsyncoption sample2 code 225 = array of integer 8;
675b4061447743a64c0575e79db6f31181669c2dvboxsync
675b4061447743a64c0575e79db6f31181669c2dvboxsync...
675b4061447743a64c0575e79db6f31181669c2dvboxsync option sample1 192.168.2.1,192.168.2.2;
675b4061447743a64c0575e79db6f31181669c2dvboxsync option sample2 0,0;
675b4061447743a64c0575e79db6f31181669c2dvboxsync...
675b4061447743a64c0575e79db6f31181669c2dvboxsync