[libvirt] How can I build a virtual machine that connected with TLS and VNC password at the same time ?

bccheng opensource.cbc at aliyun.com
Tue Dec 8 13:40:50 UTC 2015


thanks !  I had configured tlsvnc env, and can you tell me why libvirt 
do not support this?
Is there any special reason?

在 2015/12/8 19:05, Zhenfeng Wang 写道:
> Hi
> Vnc didn't support config tls in the guest's xml, but could enable it in qemu.conf. Also we could see
> the tls enabled in the qemu command line while we start guest with tls enabled
>
> 1.configure vnctls env
> 2.start a guest with vnc password configured
> #virsh start rhel6
> #virsh dumpxml rhel6 --security-info
> --
>      <graphics type='vnc' port='5900' autoport='yes' listen='0.0.0.0' passwd='123456'>
>        <listen type='address' address='0.0.0.0'/>
>      </graphics>
>
> #ps aux|grep qemu
> --
> -vnc 0.0.0.0:0,password,tls,x509=/etc/pki/libvirt-vnc
>
>
> 3.if you're interesting about how to configure tlsvnc env, you can refer the following link
> http://wiki.libvirt.org/page/VNCTLSSetup
>
> ----- Original Message -----
>> From: "c90006226" <opensource.cbc at aliyun.com>
>> To: "Zhenfeng Wang" <zhwang at redhat.com>
>> Cc: libvirt-list at redhat.com, "Min Zhan" <mzhan at redhat.com>
>> Sent: Tuesday, December 8, 2015 3:36:23 PM
>> Subject: Re: [libvirt] How can I build a virtual machine that connected with TLS and VNC password at the same time ?
>>
>> hi
>>        I did not configure vnc+tls env, I use  virsh domxml-from-native
>> qemu.arg,
>>    buf there is no config in the xml about tls. Does it support configure
>> tls with xml?
>>
>>
>> 在 2015/12/8 12:45, Zhenfeng Wang 写道:
>>> hi
>>> The following xml is enough for the virtual machine if you've configured
>>> vnc+tls env
>>> #virsh dumpxml guest_name
>>> --
>>>    <graphics type='vnc' port='-1' autoport='yes' passwd='123456'/>
>>>
>>> ----- Original Message -----
>>>> From: "c90006226" <opensource.cbc at aliyun.com>
>>>> To: libvirt-list at redhat.com
>>>> Sent: Monday, December 7, 2015 9:02:43 PM
>>>> Subject: [libvirt] How can I build a virtual machine that connected with
>>>> TLS and VNC password at the same time ?
>>>>
>>>> Hi, all,
>>>>            I am using libvirt to start a virtual machine, and I want to
>>>> use TLS and VNC password.
>>>>            How can I  build a virtual machine that  connected with TLS
>>>> and  VNC password at the same time?
>>>> who can  give me  an xml example?
>>>>             thks!
>>>>
>>>> --
>>>> libvir-list mailing list
>>>> libvir-list at redhat.com
>>>> https://www.redhat.com/mailman/listinfo/libvir-list
>>>>
>>
> --
> libvir-list mailing list
> libvir-list at redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list




More information about the libvir-list mailing list