Created
August 7, 2017 20:24
-
-
Save sdorsett/48f15fe784ebd322e49e6fbb68b30786 to your computer and use it in GitHub Desktop.
vagrant - create vmware_ovf format .box file from vmware_desktop format .box file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant box add bento/centos-7.3 | |
ls ~/.vagrant.d/boxes/bento-VAGRANTSLASH-centos-7.3/2.3.5/vmware_desktop/*.vmx | |
mkdir ~/.vagrant.d/boxes/bento-VAGRANTSLASH-centos-7.3/2.3.5/vmware_ovf/ | |
ovftool -tt=ovf /root/.vagrant.d/boxes/bento-VAGRANTSLASH-centos-7.3/2.3.5/vmware_desktop/centos-7.3-x86_64.vmx ~/.vagrant.d/boxes/bento-VAGRANTSLASH-centos-7.3/2.3.5/vmware_ovf/centos-7.3-x86_64.ovf | |
echo '{"provider":"vmware_ovf"}' >> ~/.vagrant.d/boxes/bento-VAGRANTSLASH-centos-7.3/2.3.5/vmware_ovf/metadata.json | |
touch ~/.vagrant.d/boxes/bento-VAGRANTSLASH-centos-7.3/2.3.5/vmware_ovf/Vagrantfile | |
cd ~/.vagrant.d/boxes/bento-VAGRANTSLASH-centos-7.3/2.3.5/vmware_ovf/ | |
tar cvzf /root/centos-7.3-vmware_ovf-1.0.box ./* | |
vagrant box add ~/centos-7.3-vmware_ovf-1.0.box --name centos-7.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment