What does it take to remove the VM display password?

Hi there,

I have 3 VMs setup from ages ago: All without display password.

However, setting up a new one enforces a password. It drives me nuts, esp. since I need to CTRL+R the spice viewer every now and then when it won’t accept key presses anymore.

So, since I see that no PW is possible: What do I need to do to create another VM without display password.

Happy to patch middleware, export all settings, use virsh: Whatever it takes!

Thanks for any pointers!

Figured it out.

And how did you do it?

2 Likes

I updated the middlewared python package, by updating the schema to state:

Password('password', required=True, null=False, empty=True, default=''),

here: /usr/lib/python3/dist-packages/middlewared/plugins/vm/devices/display.py

I needed to remove the readonly flag in order to do so and this was for ElectricEel 24.10.2.2. Newer versions might do things a bit different.

Intentionally don’t give more specific info so that users don’t nuke their installs. Standard disclaimers apply. :slight_smile:

3 Likes