RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 834443 - Can't power on VMs after upgrade from RHEL 6.2 to RHEL 6.3
Summary: Can't power on VMs after upgrade from RHEL 6.2 to RHEL 6.3
Keywords:
Status: CLOSED DUPLICATE of bug 790436
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: virt-manager
Version: 6.3
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: virt-mgr-maint
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-21 21:42 UTC by Swapna Krishnan
Modified: 2012-07-24 19:05 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-07-24 19:05:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Modified guest's xml file (2.57 KB, text/plain)
2012-07-03 02:48 UTC, Geyang Kong
no flags Details
Original guest's xml file (2.37 KB, text/plain)
2012-07-03 02:49 UTC, Geyang Kong
no flags Details

Description Swapna Krishnan 2012-06-21 21:42:34 UTC
Description of problem: After upgrade from RHEL 6.2 to RHEL 6.3, I can't power on guests through virt-manager. While trying to do so, I get error message:

Error restoring domain: unsupported configuration: spice TLS port set in XML configuration, but TLS is disabled in qemu.conf

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 44, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 65, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/domain.py", line 1063, in startup
    self._backend.create()
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 620, in create
    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: unsupported configuration: spice TLS port set in XML configuration, but TLS is disabled in qemu.conf

virsh configuration: 
...
    <channel type='spicevmc'>
      <target type='virtio' name='com.redhat.spice.0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <input type='tablet' bus='usb'/>
    <input type='mouse' bus='ps2'/>
    <graphics type='spice' port='5930' tlsPort='5931' autoport='no' listen='0.0.0.0'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
....

I tried removing the tlsPort parameter and restarted libvirtd. I tried to power on guest but it still gave same error message.

Version-Release number of selected component (if applicable):
libvirt-0.9.10-21.el6_3.1.x86_64
qemu-kvm-0.12.1.2-2.295.el6.x86_64
virt-manager-0.9.0-14.el6.x86_64


How reproducible:
100%


Steps to Reproduce:
1. Upgrade from RHEL 6.2 to RHEL 6.3 using yum
2. Start up virt-manager after reboot
3.Power on guests which existed in RHEL 6.2
4. Guests refuse to power on.
  
Actual results:
Guests do not power on

Expected results:
Guests should power on

Additional info:

Comment 2 Swapna Krishnan 2012-06-25 18:09:37 UTC
I tried modifying /etc/libvirt/qemu.conf by making spice_tls = 0 and removed tlsPort from the domain xml. Then restarted libvirtd and tried to power on the guest. It still gives same error message.

Comment 3 Geyang Kong 2012-06-27 03:43:35 UTC
I have retried this bug with following steps, but I cannot reproduce it. Maybe I missed something, please give me some advice if possible.
1. Install rhel6u2 on host.
2. Install a spice guest, make sure it has following contents in xml.
<graphics type='spice' port='5930' tlsPort='5931' autoport='no' listen='0.0.0.0'>
<listen type='address' address='0.0.0.0'/>
</graphics>
3. Make a rhel6u3 RC4 repo, then execut #yum update
4. Reboot the host.
5. #virsh start $guest(guest cannot be started and there is the same error as bug)
5. Edit /etc/libvirt/qemu.conf, set #spice_tls=1 as spice_tls=0
6. Virsh edit the guest, delete tlsPort='5931' and save it.
7. #service libvirtd restart
8. #virsh start $guest.

Actual Result:
1. After step 8, guest can be started normally.

Comment 4 Swapna Krishnan 2012-06-27 12:29:24 UTC
(In reply to comment #3)
> I have retried this bug with following steps, but I cannot reproduce it.
> Maybe I missed something, please give me some advice if possible.
> 1. Install rhel6u2 on host.
> 2. Install a spice guest, make sure it has following contents in xml.
> <graphics type='spice' port='5930' tlsPort='5931' autoport='no'
> listen='0.0.0.0'>
> <listen type='address' address='0.0.0.0'/>
> </graphics>
> 3. Make a rhel6u3 RC4 repo, then execut #yum update
> 4. Reboot the host.
> 5. #virsh start $guest(guest cannot be started and there is the same error
> as bug)
> 5. Edit /etc/libvirt/qemu.conf, set #spice_tls=1 as spice_tls=0
> 6. Virsh edit the guest, delete tlsPort='5931' and save it.
> 7. #service libvirtd restart
> 8. #virsh start $guest.
> 
> Actual Result:
> 1. After step 8, guest can be started normally.

The same steps don't work for me. 

Could you please mention the version nos of libvirt, qemu-kvm and virt-manager to make sure they are the same as on my machine?

Comment 5 Geyang Kong 2012-06-28 05:03:29 UTC
Looks they are same as yours, they are included by OS build RHEL6.3-20120613.2 x86_64. I didn't change them, and kernel version is 2.6.32-279.el6.x86_64.

Comment 6 Swapna Krishnan 2012-07-02 17:54:45 UTC
(In reply to comment #5)
> Looks they are same as yours, they are included by OS build
> RHEL6.3-20120613.2 x86_64. I didn't change them, and kernel version is
> 2.6.32-279.el6.x86_64.

I updated another one of my machines to RHEL 6.3 from RHEL 6.2 and hit the same issue for all the VMs there. I have now been able to reproduce this on 2 of my machines.

Could you please give me the entire domain xml of your guest? I would like to compare with my guest.

Comment 7 Swapna Krishnan 2012-07-02 19:21:55 UTC
I tried cloning my old VMs and removing just the tlsPort from the xml and was able to power them on. It's only the old VMs which already existed when the upgrade was made which is still giving issues.

Thanks,
- Swapna

Comment 8 Geyang Kong 2012-07-03 02:48:24 UTC
Created attachment 595862 [details]
Modified guest's xml file

Comment 9 Geyang Kong 2012-07-03 02:49:05 UTC
Created attachment 595863 [details]
Original guest's xml file

Comment 10 Geyang Kong 2012-07-03 02:50:34 UTC
I have retried again, still cannot reproduce this bug. And have attached guest's xml file. One is original from 6u2, another one is modified file, from 6u3

Comment 11 Dave Allan 2012-07-24 19:05:19 UTC
This error message explains what's happening:

libvirtError: unsupported configuration: spice TLS port set in XML configuration, but TLS is disabled in qemu.conf

You've requested a secure connection in the guest XML, but the host isn't capable of honoring it.  Rather than silently let you boot insecurely, libvirt now rejects this scenario with this error message.

*** This bug has been marked as a duplicate of bug 790436 ***


Note You need to log in before you can comment on or make changes to this bug.