Skip to content

Instantly share code, notes, and snippets.

@mt8
Created November 18, 2020 12:08
Show Gist options
  • Save mt8/a0be50ac73eff81fe663e291a09d04d3 to your computer and use it in GitHub Desktop.
Save mt8/a0be50ac73eff81fe663e291a09d04d3 to your computer and use it in GitHub Desktop.
Local by flywheel の仮想ディスクを圧縮
#https://qiita.com/Gushi_maru/items/3efd3e5ac497f25f7606
#http://satorumpen.blogspot.com/2014/03/vagrant.html
#https://qiita.com/RyujiAMANO/items/a904399b7c45d1f0b658
#Local で
sudo dd if=/dev/zero of=zero bs=4k; \rm zero
#Mac から
$ cd /Users/kzuut/.docker/machine/machines/local-by-flywheel
$ VBoxManage internalcommands sethduuid disk.vmdk
UUID changed to: ********-****-****-****-************
$ VBoxManage clonehd disk.vmdk disk.vdi --format vdi
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone medium created in format 'vdi'. UUID: ********-****-****-****-************
$ VBoxManage modifyhd disk.vdi compact
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
$ mv disk.vmdk disk.vmdk.bak
$ VBoxManage clonehd disk.vdi disk.vmdk --format vmdk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment