[MacPorts] #56244: QEMU v2.11 has incorrect keymap issue with VNC

MacPorts noreply at macports.org
Fri Apr 6 21:01:31 UTC 2018


#56244: QEMU v2.11 has incorrect keymap issue with VNC
----------------------+----------------------
  Reporter:  aikchar  |      Owner:  (none)
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:
Resolution:           |   Keywords:  upstream
      Port:  qemu     |
----------------------+----------------------
Description changed by aikchar:

Old description:

> I reported to Packer(2), copy/paste'd here, how there are issues with
> QEMU+VNC. Reported by others to Packer(0) and Ubuntu(1).
>
> I am running into the same symptoms on macOS 10.12.6. Cannot repro on
> Ubuntu 17.10.
>
> I have qemu from MacPorts on macOS.
>
> {{{
>     $ port installed | grep qemu
>       qemu @2.11.0_0+cocoa+target_i386+target_x86_64+usb+vnc (active)
> }}}
>
> Here's snippet of my config:
>
> {{{
>     {
>         "builders": [
>             {
>                 "boot_command": [
>                     "S<enter>",
>                     "cat <<EOF >>install.conf<enter>",
>                     "Choose your keyboard layout = default<enter>",
>     ================== SNIP ==================
>                     "EOF<enter>",
>                     "install -af install.conf && reboot<enter>"
>                 ],
>                 "boot_wait": "30s",
>                 "disk_interface": "virtio",
>                 "disk_size": 80000,
>                 "format": "qcow2",
>                 "headless": true,
>                 "iso_checksum":
> "b7994d29c7db3087db65158901d700fb7d10500b9b7496c1d86b285cabce0a2b",
>                 "iso_checksum_type": "sha256",
>                 "iso_checksum_url": "{{user
> `iso_mirror`}}/pub/OpenBSD/6.2/amd64/SHA256",
>                 "iso_url": "{{user
> `iso_mirror`}}/pub/OpenBSD/6.2/amd64/install62.iso",
>                 "net_device": "e1000",
>                 "output_directory": "openbsd62",
>                 "shutdown_command": "/sbin/halt -p",
>                 "type": "qemu",
>                 "ssh_host_port_min": 2222,
>                 "ssh_host_port_max": 2229,
>                 "ssh_password": "root",
>                 "ssh_port": 22,
>                 "ssh_username": "root",
>                 "ssh_wait_timeout": "1800s",
>                 "vm_name": "openbsd62.qcow2"
>             }
>         ],
>         "post-processors": [],
>         "provisioners": [],
>         "variables": {
>             "iso_mirror": "http://ftp.openbsd.org"
>         }
>     }
> }}}
>
> As can be seen in the attached [https://user-
> images.githubusercontent.com/22773200/36757502-9cabd8b8-1bc6-11e8-8b3b-
> 66a62b770b3d.png screenshot], ''<<'' does not get printed. Below is a
> snippet of Packer trace.
>
> {{{
>     ==> qemu: Typing the boot command over VNC...
>     2018/02/27 13:47:12 packer: 2018/02/27 13:47:12 Sending char 'S',
> code 83, shift true
>     2018/02/27 13:47:12 packer: 2018/02/27 13:47:12 Special code
> '<enter>' found, replacing with: 65293
>     2018/02/27 13:47:13 packer: 2018/02/27 13:47:13 Sending char 'c',
> code 99, shift false
>     2018/02/27 13:47:13 packer: 2018/02/27 13:47:13 Sending char 'a',
> code 97, shift false
>     2018/02/27 13:47:13 packer: 2018/02/27 13:47:13 Sending char 't',
> code 116, shift false
>     2018/02/27 13:47:13 packer: 2018/02/27 13:47:13 Sending char ' ',
> code 32, shift false
>     2018/02/27 13:47:14 packer: 2018/02/27 13:47:14 Sending char '<',
> code 60, shift true
>     2018/02/27 13:47:14 packer: 2018/02/27 13:47:14 Sending char '<',
> code 60, shift true
>     2018/02/27 13:47:14 packer: 2018/02/27 13:47:14 Sending char 'E',
> code 69, shift true
>     2018/02/27 13:47:15 packer: 2018/02/27 13:47:15 Sending char 'O',
> code 79, shift true
>     2018/02/27 13:47:15 packer: 2018/02/27 13:47:15 Sending char 'F',
> code 70, shift true
>     2018/02/27 13:47:15 packer: 2018/02/27 13:47:15 Sending char ' ',
> code 32, shift false
>     2018/02/27 13:47:16 packer: 2018/02/27 13:47:16 Sending char '>',
> code 62, shift true
>     2018/02/27 13:47:16 packer: 2018/02/27 13:47:16 Sending char '>',
> code 62, shift true
>     2018/02/27 13:47:16 packer: 2018/02/27 13:47:16 Sending char 'i',
> code 105, shift false
>     2018/02/27 13:47:16 packer: 2018/02/27 13:47:16 Sending char 'n',
> code 110, shift false
>     2018/02/27 13:47:17 packer: 2018/02/27 13:47:17 Sending char 's',
> code 115, shift false
>     2018/02/27 13:47:17 packer: 2018/02/27 13:47:17 Sending char 't',
> code 116, shift false
>     2018/02/27 13:47:17 packer: 2018/02/27 13:47:17 Sending char 'a',
> code 97, shift false
>     2018/02/27 13:47:18 packer: 2018/02/27 13:47:18 Sending char 'l',
> code 108, shift false
>     2018/02/27 13:47:18 packer: 2018/02/27 13:47:18 Sending char 'l',
> code 108, shift false
>     2018/02/27 13:47:18 packer: 2018/02/27 13:47:18 Sending char '.',
> code 46, shift false
> }}}
>
> (0) https://github.com/hashicorp/packer/issues/5769
>
> (1) https://bugs.launchpad.net/qemu/+bug/1754295
>
> (2)
> https://github.com/hashicorp/packer/issues/5769#issuecomment-369042577

New description:

 I reported to Packer(2), copy/paste'd here, how there are issues with
 QEMU+VNC. Reported by others to Packer(0) and QEMU(1).

 I am running into the same symptoms on macOS 10.12.6. Cannot repro on
 Ubuntu 17.10.

 I have qemu from MacPorts on macOS.

 {{{
     $ port installed | grep qemu
       qemu @2.11.0_0+cocoa+target_i386+target_x86_64+usb+vnc (active)
 }}}

 Here's snippet of my config:

 {{{
     {
         "builders": [
             {
                 "boot_command": [
                     "S<enter>",
                     "cat <<EOF >>install.conf<enter>",
                     "Choose your keyboard layout = default<enter>",
     ================== SNIP ==================
                     "EOF<enter>",
                     "install -af install.conf && reboot<enter>"
                 ],
                 "boot_wait": "30s",
                 "disk_interface": "virtio",
                 "disk_size": 80000,
                 "format": "qcow2",
                 "headless": true,
                 "iso_checksum":
 "b7994d29c7db3087db65158901d700fb7d10500b9b7496c1d86b285cabce0a2b",
                 "iso_checksum_type": "sha256",
                 "iso_checksum_url": "{{user
 `iso_mirror`}}/pub/OpenBSD/6.2/amd64/SHA256",
                 "iso_url": "{{user
 `iso_mirror`}}/pub/OpenBSD/6.2/amd64/install62.iso",
                 "net_device": "e1000",
                 "output_directory": "openbsd62",
                 "shutdown_command": "/sbin/halt -p",
                 "type": "qemu",
                 "ssh_host_port_min": 2222,
                 "ssh_host_port_max": 2229,
                 "ssh_password": "root",
                 "ssh_port": 22,
                 "ssh_username": "root",
                 "ssh_wait_timeout": "1800s",
                 "vm_name": "openbsd62.qcow2"
             }
         ],
         "post-processors": [],
         "provisioners": [],
         "variables": {
             "iso_mirror": "http://ftp.openbsd.org"
         }
     }
 }}}

 As can be seen in the attached [https://user-
 images.githubusercontent.com/22773200/36757502-9cabd8b8-1bc6-11e8-8b3b-
 66a62b770b3d.png screenshot], ''<<'' does not get printed. Below is a
 snippet of Packer trace.

 {{{
     ==> qemu: Typing the boot command over VNC...
     2018/02/27 13:47:12 packer: 2018/02/27 13:47:12 Sending char 'S', code
 83, shift true
     2018/02/27 13:47:12 packer: 2018/02/27 13:47:12 Special code '<enter>'
 found, replacing with: 65293
     2018/02/27 13:47:13 packer: 2018/02/27 13:47:13 Sending char 'c', code
 99, shift false
     2018/02/27 13:47:13 packer: 2018/02/27 13:47:13 Sending char 'a', code
 97, shift false
     2018/02/27 13:47:13 packer: 2018/02/27 13:47:13 Sending char 't', code
 116, shift false
     2018/02/27 13:47:13 packer: 2018/02/27 13:47:13 Sending char ' ', code
 32, shift false
     2018/02/27 13:47:14 packer: 2018/02/27 13:47:14 Sending char '<', code
 60, shift true
     2018/02/27 13:47:14 packer: 2018/02/27 13:47:14 Sending char '<', code
 60, shift true
     2018/02/27 13:47:14 packer: 2018/02/27 13:47:14 Sending char 'E', code
 69, shift true
     2018/02/27 13:47:15 packer: 2018/02/27 13:47:15 Sending char 'O', code
 79, shift true
     2018/02/27 13:47:15 packer: 2018/02/27 13:47:15 Sending char 'F', code
 70, shift true
     2018/02/27 13:47:15 packer: 2018/02/27 13:47:15 Sending char ' ', code
 32, shift false
     2018/02/27 13:47:16 packer: 2018/02/27 13:47:16 Sending char '>', code
 62, shift true
     2018/02/27 13:47:16 packer: 2018/02/27 13:47:16 Sending char '>', code
 62, shift true
     2018/02/27 13:47:16 packer: 2018/02/27 13:47:16 Sending char 'i', code
 105, shift false
     2018/02/27 13:47:16 packer: 2018/02/27 13:47:16 Sending char 'n', code
 110, shift false
     2018/02/27 13:47:17 packer: 2018/02/27 13:47:17 Sending char 's', code
 115, shift false
     2018/02/27 13:47:17 packer: 2018/02/27 13:47:17 Sending char 't', code
 116, shift false
     2018/02/27 13:47:17 packer: 2018/02/27 13:47:17 Sending char 'a', code
 97, shift false
     2018/02/27 13:47:18 packer: 2018/02/27 13:47:18 Sending char 'l', code
 108, shift false
     2018/02/27 13:47:18 packer: 2018/02/27 13:47:18 Sending char 'l', code
 108, shift false
     2018/02/27 13:47:18 packer: 2018/02/27 13:47:18 Sending char '.', code
 46, shift false
 }}}

 (0) https://github.com/hashicorp/packer/issues/5769

 (1) https://bugs.launchpad.net/qemu/+bug/1754295

 (2) https://github.com/hashicorp/packer/issues/5769#issuecomment-369042577

--

-- 
Ticket URL: <https://trac.macports.org/ticket/56244#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list