Skip to content

Instantly share code, notes, and snippets.

@ogerardin
Created July 25, 2023 14:18
Show Gist options
  • Save ogerardin/014aff71b7d7aacf4bbfb3b8bbc575b7 to your computer and use it in GitHub Desktop.
Save ogerardin/014aff71b7d7aacf4bbfb3b8bbc575b7 to your computer and use it in GitHub Desktop.
Convert VMware VM to UTM (Mac)
Export VM as OVF
/Applications/VMware\ Fusion.app/Contents/Library/VMware\ OVF\ Tool/ovftool VM.vmwarevm/VM.vmx .
Convert .vmdk to .qcow2
qemu-img convert -p -f vmdk -O qcow2 VM-disk1.vmdk VM-disk1.qcow2
Create custom VM in UTM matching VM hardware
Remove default disk
Add drive / import QCOW2 file (file is copied to default UTM VM folder)
Add CD/DVD drive
Startup VM
Install Guest tools
(Optional) move VM to other folder
Remove OVF and QCOW2 files created above
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment