VM export TODO list:
- Run setup script (https://raw.githubusercontent.com/nesfit/PDS-VM/master/install.sh) and halt
- Zerofree root partition (https://unix.stackexchange.com/a/310467)
- Boot to recovery mode (Shift while booting / Advanced / recovery mode / root)
- Edit
/etc/fstab
to add,ro
parameter to the root partition - Reboot to recovery mode
zerofree -v $(findmnt -n -o source /)
mount -o remount, rw /
- Edit
/etc/fstab
to remove,ro
parameter of the root partition halt
- Take snapshot
- Export appliance