Running a diskless ubuntu on macOS

Running a diskless ubuntu on macOS

Ubuntu 18.04.3 live server + macos 10.14 (Mojave)

This is the guide:
I’ve referred this to setup tftp on Mac:
And this for tftp directory layout:
– I obtained pxelinux.0 from referrence client
– I referred this for pxelinux.cfg/default: and (I start with this but it was not sufficient:

I faced “nfs over tcp not available from” error so I explicitly specified nfs server IP/mount && ethernet device (e.g., eth0) everywhere. After repeating “nfs over tcp not available from” error for several minutes, I could open a shell on (initrfs) and at there I could find the correct ethernet device name with “ifconfig”

/etc/initramfs-tools/initramfs.conf — ens32 is to the primary network interface towards private network.


I used NFS Manager for mounting nfs.
Be very careful at user mapping. client’s root must be host’s root.

I found that when I exec ‘cp -ax /dev/. /mnt/dev/.’ at guest vmware vm the host macos crashes. It should not, but I do not know why. so i copied only directories and symlinks with ‘find -type’

VMWare already have dhcp server. See
/Library/Preferences/VMware Fusion/vmnet1/dhcpd.conf


For tftp server, I used

As you see, the vm does not have disk but two network interfaces. the primary (left) interface is for private (only between the host and other vms, no internet) and the secondary (right) interface is for the internet.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.