Re: Help for packer error while building VM in proxmox environment

500 views
Skip to first unread message

Akhila Garlapally

unread,
Jun 4, 2021, 4:31:17 PM6/4/21
to Packer
Hi,

we are using proxmox of version 4.1 and I'm facing the below error .
--> proxmox: Error creating VM: Error creating VM: 400 Parameter verification failed., error status: {"errors":{"scsi0":"invalid format - unable to parse drive options\n","net0":"invalid format - unable to parse network options\n"},"data":null}
(params: map[agent:0 boot: cores:2 cpu:kvm64 description:Packer ephemeral build VM hotplug: ide2:local:iso/CentOS-8.3.2011-x86_64-dvd1.iso,media=cdrom kvm:false memory:2048 name:packer-60ba8c04-84c3-2758-27dc-4f7dfddc51da net0:e1000=76:4F:FF:E1:D1:5F,bridge=vmbr0,tag=10,firewall=false numa:false onboot:false ostype:l26 scsi0:vmpool:8,iothread=false scsihw:lsi sockets:1 tags: vmid:106])

Below is the packer json file
"network_adapters": [
        {
          "bridge": "vmbr0",
          "model": "e1000",
          "vlan_tag": 10
        }
      ],
      "disks": [
        {
          "type": "scsi",
          "disk_size": "8G",
          "storage_pool": "{{user `proxmox_storage_pool`}}",
          "storage_pool_type": "{{user `proxmox_storage_pool_type`}}",
          "format": "{{user `proxmox_storage_format`}}"
        }

Can anyone help me how to resolve it.

Alvaro Miranda Aguilera

unread,
Jun 6, 2021, 4:22:24 PM6/6/21
to packe...@googlegroups.com
hi

seems different character set


make sure you save template as text file

try to use dos2unix on the template file


Disclaimer
In addition to generic Disclaimer which you have agreed on our website, any views or opinions presented in this email are solely those of the originator and do not necessarily represent those of the Company or its sister concerns. Any liability (in negligence, contract or otherwise) arising from any third party taking any action, or refraining from taking any action on the basis of any of the information contained in this email is hereby excluded.

Confidentiality
This communication (including any attachment/s) is intended only for the use of the addressee(s) and contains information that is PRIVILEGED AND CONFIDENTIAL. Unauthorized reading, dissemination, distribution, or copying of this communication is prohibited. Please inform originator if you have received it in error.

Caution for viruses, malware etc.
This communication, including any attachments, may not be free of viruses, trojans, similar or new contaminants/malware, interceptions or interference, and may not be compatible with your systems. You shall carry out virus/malware scanning on your own before opening any attachment to this e-mail. The sender of this e-mail and Company including its sister concerns shall not be liable for any damage that may incur to you as a result of viruses, incompleteness of this message, a delay in receipt of this message or any other computer problems. 

--
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/hashicorp/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 packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/4a821b6a-2a0f-4d9a-ba06-f12b81bb7765n%40googlegroups.com.


--
Alvaro

Akhila Garlapally

unread,
Jun 7, 2021, 12:01:00 PM6/7/21
to packe...@googlegroups.com
Hi,

Thanks for the response.

I did the same what you have suggested like converting the template to unix format via dos2unix but still facing the same problem. Please help me in resolving this issue and let me know if you need any thing from me to resolve this issue.



--
Regards, 
Akhila Garlapally | DevOps Engineer 

Alvaro Miranda Aguilera

unread,
Jun 11, 2021, 2:23:18 AM6/11/21
to packe...@googlegroups.com
hello

can you share a zip file with template and scripts you are using.

thanks



--
Alvaro

Reply all
Reply to author
Forward
0 new messages