Skip to content

Instantly share code, notes, and snippets.

@fightbulc
Last active March 19, 2019 06:36
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fightbulc/05de108f8ca6cc71e70c to your computer and use it in GitHub Desktop.
Save fightbulc/05de108f8ca6cc71e70c to your computer and use it in GitHub Desktop.
Packaging VMWare Fusion Vagrant Box

On Mac

Go to vmware vm files:
cd /path/to/vagrant-vm/.vagrant/machines/default/vmware_fusion/some-random-string

Defragment vm disk:
/Applications/VMware\ Fusion.app/Contents/Library/vmware-vdiskmanager -d Virtual\ Disk.vmdk

Shrink vm disk:
/Applications/VMware\ Fusion.app/Contents/Library/vmware-vdiskmanager -k Virtual\ Disk.vmdk

Tar/Gzip files:
tar zcvf your-box-name.box ./*

Resources:

@Fashaun
Copy link

Fashaun commented Mar 19, 2019

Hi ,

which files should I keep in "some-random-string" dir before packaging vagrant box file

thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment