mirror of
https://github.com/kholia/OSX-KVM.git
synced 2026-03-05 12:43:56 +01:00
* **PXE boot configuration**: Add `dnsmasq.conf` to configure PXE boot, set TFTP root directory, and configure DHCP options. * **PXE bootloader configuration**: Add `pxelinux.cfg/default` to configure the PXE bootloader and set the bootloader to point to the macOS KVM kernel/initrd. * **Serve PXE boot files**: Add `serve_pxe.sh` script to serve `pxelinux.0`, `vmlinuz`, and `initrd` via TFTP using `dnsmasq`. * **Retrieve internal IP**: Add `get_internal_ip.sh` script to retrieve the internal IP address of the Codespace. * **Update boot script**: Modify `boot-macOS-headless.sh` to use the PXE boot files from the `netboot` directory and add a network boot option to the QEMU command.
11 lines
259 B
Plaintext
11 lines
259 B
Plaintext
# Configuration for dnsmasq to support PXE boot
|
|
|
|
# Set the TFTP root directory
|
|
enable-tftp
|
|
tftp-root=/tftpboot
|
|
|
|
# Configure DHCP options for PXE boot
|
|
dhcp-range=192.168.1.100,192.168.1.200,12h
|
|
dhcp-boot=pxelinux.0
|
|
pxe-service=x86PC, "Install macOS", pxelinux
|