于 2011年03月14日 22:42, Nikita A Menkovich 写道:
Thanks for your reply,
$ virsh update-device user user.xml --persistent
error: Failed to update device from user.xml
error: Requested operation is not valid: cannot modify the persistent
configuration of a domain
Without persistent it updates only live password, but in xml it is not modified
2011/3/14 Osier Yang<jyang(a)redhat.com>:
> 于 2011年03月12日 21:14, Nikita A Menkovich 写道:
>> Hello,
>>
>> Is there any way to change VNC password without rebooting virtual machine?
>> It is available through qemu monitor, but, it seems, there is no way
>> to do add monitor to kvm.
>>
>
> If you are mean how to do with libvirt.
>
> # cat demo.xml
> <graphics type='vnc' port='0' autoport='yes'
listen='127.0.0.1'
> keymap='en-us' passwd='111111'/>
>
> # virsh update-device demo.xml --persistent
>
> NB, "--persistent" is optional, which is intended to change the vnc
> password persistently.
It means "persistent" changing is still not supported. :-)
>
> Regards
> Osier
>
>