Skip to content

Instantly share code, notes, and snippets.

@goneri
Last active November 22, 2021 17:09
Show Gist options
  • Save goneri/73e1452f8d28e24ee88c4e7e8323713c to your computer and use it in GitHub Desktop.
Save goneri/73e1452f8d28e24ee88c4e7e8323713c to your computer and use it in GitHub Desktop.
sudo qemu-img convert -c -p -f qcow2 -O vmdk -o subformat=streamOptimized,compat6 ubuntu-2004.qcow2 ~/tmp/ubuntu-2004.vmdk-4
scp ~/tmp/ubuntu-2004.vmdk-4 [email protected]:/srv/share/vms/test_vm1
ssh [email protected] vmkfstools -i /vmfs/volumes/rw_datastore/test_vm1/ubuntu-2004.vmdk-4 /vmfs/volumes/rw_datastore/test_vm1/ubuntu-2004.vmdk -d thin
ssh [email protected] curl -o /srv/share/vms/fedora-35.vmdk-4 https://s3.us-east-2.amazonaws.com/ansible-team-cloud-images/fedora-35.vmdk-4
ssh [email protected] mkdir -p /vmfs/volumes/rw_datastore/test_vm1
ssh [email protected] vmkfstools -i /vmfs/volumes/local/fedora-35.vmdk-4 /vmfs/volumes/rw_datastore/test_vm1/fedora-35.vmdk -d thin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment