Skip to content

hyperv-iso builder types boot_command too fast, loosing key strokes #5291

@StefanScherer

Description

@StefanScherer

First thanks for having the Hyper-V builder integrated into packer.
I try to evaluate a PR to add the hyperv-iso builder section to the boxcutter/ubuntu Packer templates. Unfortunately the boot_command misses some keystrokes.
The boot_command is a little bit lengthy with a lot of backspaces and then the complete new boot options for the Ubuntu Server installation.

      "boot_command": [
        "{{ user `boot_command_prefix` }}",
        "/install/vmlinuz noapic ",
        "file=/floppy/hyperv-{{ user `preseed` }} ",
        "debian-installer={{ user `locale` }} auto locale={{ user `locale` }} kbd-chooser/method=us ",
        "hostname={{ user `hostname` }} ",
        "grub-installer/bootdev=/dev/sda<wait> ",
        "fb=false debconf/frontend=noninteractive ",
        "keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA ",
        "keyboard-configuration/variant=USA console-setup/ask_detect=false ",
        "passwd/user-fullname={{ user `ssh_fullname` }} ",
        "passwd/user-password={{ user `ssh_password` }} ",
        "passwd/user-password-again={{ user `ssh_password` }} ",
        "passwd/username={{ user `ssh_username` }} ",
        "initrd=/install/initrd.gz -- <enter>"
      ],

But instead of initrd=/install/initrd.gz -- the key scancodes typed into the VM show eg. initrd=/installngz in the input field.

bildschirmfoto 2017-08-29 um 11 32 36

I also tried to add some more <wait> special characters, this sometimes helps, but I also got an issue that the user-password and user-password-again had different values.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions