[CentOS] virt-install message regarding Spice and TLS

Thu Sep 3 14:21:04 UTC 2015
Emmett Culley <lst_manage at webengineer.com>

On 09/03/2015 06:53 AM, Mike - st257 wrote:
> On Wed, Sep 2, 2015 at 1:59 PM, Leonard den Ottolander <
> leonard at den.ottolander.nl> wrote:
> 
>> Hello Mike,
>>
>> On Wed, 2015-09-02 at 13:05 -0400, Mike - st257 wrote:
>>> I've been through the virt-install manpage a few times now to no avail.
>>> What is wrong with my syntax here (seen below)?
>>
>>> ~]# virt-install --connect qemu:///system -n blahhost -r2048 --vcpus=4
>>> --arch=x86_64 --video qxl --graphics spice,port=5931 --noautoconsole
>>> --os-type linux --accelerate --network=bridge:kickstart_br0 --hvm --disk
>>> path=/dev/vmdisks/fedora-test2,bus=virtio --cdrom /tmp/fedora.iso
>>
>>
> To also reply to nevis2us:
> I have the Spice TLS config commented presently so it is not active (afaik).
> At one point I did try switching the value from 1 to 0 when I did have it
> uncommented.
> 
> 
>> See if adding tlsport=0 to the --graphics option fixes your problem?
>>
>> --graphics spice,port=5931,tlsport=0
>>
> 
> I did try that before (though didn't note it in my first message).
> 
> ERROR    Error in graphics device parameters: TLS port must be a number
> between 5900 and 65535, or -1 for auto allocation
> 
> ~]# cat /etc/redhat-release
> CentOS release 6.7 (Final)
> ~]# yum info libvirt | egrep 'Name|Version|Release'
> Name        : libvirt
> Version     : 0.10.2
> Release     : 54.el6
> 
> 
>>
>> Compare
>> http://www.spice-space.org/page/Features/Xspice#--tls-port_0_required
>>
> 
> 
> Any other thoughts? :-/
> I can't be the only person that wants to use Spice with out TLS for some
> testing/labbing. ;-)
> 
> Thanks!
> 
I am also seeing this issue.  I've managed it by checking auto for spice.  This has the unfortunate issue that it is possible for a port to a particular VM to change from reboot to reboot.  But it does allow the VM to start without problems.

We don't use, or need, TLS because these VMs are accessed only form the local network.

We are using CentOS seven for all VM hosts, and 90% of the guests are now on CentOS 7 as well.

Emmett