VMware vSphere

 View Only
  • 1.  put usb hid scan codes ??

    Posted Aug 03, 2018 07:29 PM

    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!



  • 2.  RE: put usb hid scan codes ??

    Posted Jan 25, 2022 07:36 PM

    Ran it to this same situation. Newer environment - vSphere 7 - esxi7.0.2 with Packer 1.7.  Saw a barrage of these alerts get sent when building Ubuntu20.04 (several within short second timeframe) and then it stopped after we had to cancel the deployment (couldn't get ISO mounted properly).  Any thoughts on what this alert could be indicating?

     

    Thanks



  • 3.  RE: put usb hid scan codes ??

    Posted Aug 18, 2022 06:20 AM

     wrote:

    Ran it to this same situation. Newer environment - vSphere 7 - esxi7.0.2 with Packer 1.7.  Saw a barrage of these alerts get sent when building Ubuntu20.04 (several within short second timeframe) and then it stopped after we had to cancel the deployment (couldn't get ISO mounted properly).  Any thoughts on what this alert could be indicating?

     

    Thanks


    vSphere 6.7; packer v1.8.3; 

    ls ~/.config/packer/plugins/github.com/hashicorp/vsphere/
    packer-plugin-vsphere_v1.0.7_x5.0_linux_amd64

    the same as mine one by one. I noticed that keystrokes are successful until the moment the migration of the virtual machine begins. As soon as the DRS starts moving it, we get error "Put USB HID scan codes. A general system error occurred: Invalid fault" in vCenter console. The idea was to use a resource pool consisting of one ESXi, but with the DRS enabled, such a resource pool cannot be created. In my case, I can create a resource pool "per cluster", which does not exclude migration.