-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
questionFurther information is requestedFurther information is requested
Description
Is it possible to configure DHCP options, placed in /etc/bootpd.plist, through socket_vmnet? I suspect this utility may be auto generating /etc/bootpd.plist on MacOS where such options may go. Placing this here to make sure I don't reinvent something already accomplished.
It would be helpful to configure certain options like DNS server IP, DNS search, NIS info (where NFS shares are), etc.. I believe the options look like this in the Subnet section of the file:
<key>dhcp_option_66</key> <data>YOUR_BASE64_ENCODED_SERVER_NAME</data>
<key>dhcp_option_67</key> <data>YOUR_BASE64_ENCODED_BOOTFILE_NAME</data>
I have the current configuration working:
socket_vmnet --vmnet-gateway=192.168.57.1 --vmnet-dhcp-end=192.168.57.100 /var/run/socket_vmnet
/etc/bootptab
# bootptab
%%
# hostname hwtype hwaddr ipaddr bootfile
deb12-0 1 52:54:00:12:34:56 192.168.57.1
socket_vmnet_client /var/run/socket_vmnet qemu-system-x86_64 -accel hvf -device virtio-net-pci,netdev=net0,mac=52:54:00:12:34:56 -netdev socket,id=net0,fd=3 -m 4096 -drive file=debian_12-1_s0-disk1.qcow2
So far my thoughts are this process, outside of socket_vmnet:
sudo launchctl stop bootpd
<modify /etc/bootpd.plist to include options>
sudo launchctl unload -F /System/Library/LaunchDaemons/bootps.plist
sudo launchctl load -F /System/Library/LaunchDaemons/bootps.plist
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested