I am trying to build an Ubuntu VM with Packer. When I execute the script it connects to my vCenter, creates the VM, powers it on then powers it off and deletes it. the error is "put usb hid scan codes - cannot complete the operation due to an incorrect request to the server"
Using the same ISO I can build out a VM manually.
my vCenter version is 6.5 and my ESX hosts are 6.0 (currently upgrading).
These are the commands I'm issuing through the script:
"/install/vmlinuz noapic",
"initrd=/install/initrd.gz <wait><enter>",
"priority=critical <wait><enter>",
"locale=en_US <enter>",
"debian-installer=en_US auto locale=en_US kbd-chooser/method=us <enter>",
"hostname=packerlinux",
"fb=false debconf/frontend=noninteractive",
"keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA",
"keyboard-configuration/variant=USA console-setup/ask_detect=false",
"grub-installer/bootdev=/dev/sda",
"<wait><wait>",
"file=/media/Ubuntu-1604-Preseed.cfg",
"<enter>"
Anyone have any ideas what's actually wrong?
TIA!