i am looking to deploy so 7 pre created VM in self service , has anyone does this if yes how have you packaged the VM for deployment and which branch on the machine have you saved it to
Solved
Sharing VM via Self Service for Parallels
Best answer by cpdecker
My solution was thus...
- Add customized Parallels virtual machine .pvm file, Parallels install .dmg file, and deploy.cfg with license key into Parallels Desktop Autodeploy.pkg (provided by Parallels site)
- Verify that installing through double-click on .pkg provides desired results--Parallels gets installed, licensed, and has the VM available in the list, VM works as intended
- Tarball the Parallels Desktop Autodeploy.pkg and place compressed file in Composer under /tmp/, build as PKG in composer, upload to Casper admin
sudo tar -czf Parallels Desktop Autodeploy.pkg.tar.gz Parallels Desktop Autodeploy.pkg
- Bundle this PKG and combine with an "after" script in the policy:
#!/bin/sh
#Extract
tar -vxzf /tmp/Parallels Desktop Autodeploy.pkg.tar.gz -C /tmp
#Install
sudo installer -pkg /tmp/Parallels Desktop Autodeploy.pkg -target /
#Cleanup
rm -rf /tmp/Parallels Desktop Autodeploy.pkg
rm -rf /tmp/Parallels Desktop Autodeploy.pkg.tar.gz
Seems to work well and cuts 9 gigabytes off the file size. Hope this was helpful to someone!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
