hashicorp / packer

Packer is a tool for creating identical machine images for multiple platforms from a single source configuration.
http://www.packer.io
Other
15.11k stars 3.33k forks source link

Allow configuring VNC password for qemu builder #7795

Closed iilyak closed 5 years ago

iilyak commented 5 years ago

I am trying to debug windows build on mac os using qemu builder using hvf accelerator. The specifics of Mac platform is that sdl is not available. Which means I have to use headless mode. Another specifics of Mac is that starting from Sierra the VNC client doesn't work if password is empty. Therefore I was trying to setup a VNC password. Packer doesn't support setting the password for VNC so I was looking for a workaround. I was able to start QEMU monitor on unix socket and change the password while packer was running. I am able to connect to VM via VMC. However now it is obvious to me that this approach will not work because packer looses the ability to control installation of the VM. Since it doesn't know the password.

The feature request

Allow setting of VNC password via packer JSON file. Teach packer how to configure it via QEMU monitor or QMP.

SwampDragons commented 5 years ago

Thanks for this suggestion! The QEMU builder is community-supported, which means that the HashiCorp maintainers don't spend much engineering time on it. This means that the best way to see your suggestion make it into Packer is to open a PR.

SwampDragons commented 5 years ago

One thing you can do is download a third party VNC viewer; I use jolly fast vnc, which doesn't have issues with passwordless VNC.

vtolstov commented 5 years ago

may be i can take this

70k10 commented 5 years ago

@vtolstov Go for it if you want, I have a need for this at work so I've started coding a QMP based solution.

ghost commented 4 years ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.