Skip to content

Instantly share code, notes, and snippets.

@gistbucket
gistbucket / Vagrantfile
Created November 6, 2021 19:42 — forked from rgl/Vagrantfile
Vagrant environment that lets you copy a virtual disk image into a physical USB disk using qemu-img
# this lets you easily convert a virtual disk image into a physical disk.
#
# # Usage for converting a vmdk on the host to an attached physical USB disk
#
# vagrant up
# vagrant ssh
# qemu-img info /vagrant/box-disk1.vmdk
# sudo qemu-img info /dev/sdb
# sudo qemu-img convert -p /vagrant/box-disk1.vmdk /dev/sdb
#