Hello

I have a script to generate a .vdi (and it's ok) and now I need to generate 
the VDH to post it on Azure
I've already tried:
- Use QEMU (but the same with kvm is very slow)
- Use the Plugin https://github.com/benwebber/packer-post-processor-vhd 
(However, even following the steps and leaving the plugin in '~ / packer.d 
/ plugins', the packer was not able to access this 'post-processor')
- And I'm currently doing:
  "post-processors": [
   {
     "type": "artifice",
     "only": ["virtualbox-iso"],
     "files": ["output-virtualbox-iso/packer-centos-7-x86_64.vdi"]
   },
   {
     "type": "shell-local",
     "only": ["virtualbox-iso"],
     "scripts": [
       "scripts/convert-vhd.sh"
     ],
     "environment_vars": [
"PACKER_OUTPUT_DIRECTORY=/var/www/saraiva/automacao/magento-php-front/build-centos-7"
]
   }  
 ]


But Packer returns access denied and this 'scripts/convert-vhd.sh' has the 
same permissions as the other scripts that work and are in the same folder

Contents convert-vhd.sh
VBoxManage clonehd ./output-virtualbox-iso/packer-centos-7-x86_64-disk001.vmdk 
--format VHD ../output-vhd/SaraISO.vhd

Has anyone ever experienced this?

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/fc59e3c9-e812-46b2-99fc-dda3095c96d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to