I am building a CentOS7 template in Azure and the build is successful.  

However, deploying from the template results in an 'internal error' message:

"code":"Conflict","message":"
"status": "Failed", "error": 
"ResourceDeploymentFailure",
"message": "The resource operation completed with terminal provisioning 
state 'Failed'.",
"details": "code": "OSProvisioningInternalError",
"message": 
"OS Provisioning failed for VM 'cis-centos7-03' due to an internal error: 
[ProtocolError] [CopyOvfEnv] 
Error mounting dvd: [OSUtilError] 
Failed to mount dvd device
Inner error: [mount -o ro -t udf,iso9660 /dev/sr0 /mnt/cdrom/secure] 
returned 32: 
mount: unknown filesystem type '(null)'

I am not requesting a DVD in my builder and am not sure if I can add one at 
this stage.

My builder is shown below and I am using image_sku '7.7'

"builders": [
  {
    "type": "azure-arm",

    "client_id": "{{ user `azure_appid` }}",
    "client_secret": "{{ user `azure_appkey` }}",
    "tenant_id": "{{ user `azure_tenantid` }}",
    "subscription_id": "{{ user `azure_subid` }}",

    "managed_image_name": "{{ user `template_prefix` }}-image-{{ user 
`template_date` }}",
    "managed_image_resource_group_name": "{{ user 
`managed_image_resource_group_name` }}",

    "virtual_network_name": "{{ user `virtual_network_name` }}",
    "virtual_network_subnet_name": "{{ user `virtual_network_subnet_name` 
}}",
    "virtual_network_resource_group_name": "{{ user 
`virtual_network_resource_group_name` }}",

    "os_type": "Linux",
    "image_publisher": "OpenLogic",
    "image_offer": "CentOS",
    "image_sku": "{{ user `image_sku` }}",
    "image_version": "latest",

    "ssh_timeout": "10m",
    "ssh_username": "packer",

    "azure_tags": {
        "dept": "Infrastructure Development",
        "task": "Server OS Image Deployment"
    },

Would appreciate feedback from anyone has encountered/overcome this issue.

- R Meus

-- 
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/7d4da16e-503c-446d-9c6f-2e5aa75f2163%40googlegroups.com.

Reply via email to