Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

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
You can’t perform that action at this time.