Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
virt-manager should remove "vgamem" from guest automatically when change video from "qxl" to "vga"
Version-Release number of selected component (if applicable):
libvirt-1.2.8-9.el7.x86_64
virt-manager-1.1.0-8.el7.noarch
qemu-kvm-rhev-2.1.2-13.el7.x86_64
How reproducible:
100%
Steps to Reproduce:
1. Install a guest via virt-manager with qxl video:
...
<video>
<model type='qxl' ram='65536' vram='65536' vgamem='8192' heads='1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
...
2. Launch virt-manager, change guest video from qxl to vga: Double click guest name-->Show virtual hardware details-->change video from qxl to vga-->Apply
Actual results:
After click "Apply" button, get such error message:
Error changing VM configuration: XML error: vgamem attribute only supported for type of qxl
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/addhardware.py", line 1384, in change_config_helper
vm.redefine_cached()
File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 222, in redefine_cached
self._redefine_xml(xml)
File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 247, in _redefine_xml
return self._redefine_helper(origxml, newxml)
File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 239, in _redefine_helper
self._define(newxml)
File "/usr/share/virt-manager/virtManager/domain.py", line 1041, in _define
self.conn.define_domain(newxml)
File "/usr/share/virt-manager/virtManager/connection.py", line 694, in define_domain
return self._backend.defineXML(xml)
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3442, in defineXML
if ret is None:raise libvirtError('virDomainDefineXML() failed', conn=self)
libvirtError: XML error: vgamem attribute only supported for type of qxl
Expected results:
No such error showing and can change guest video successfully.
Additional info:
1. Can also reproduce this issue when change video from qxl to cirrus.
Comment 2Giuseppe Scrivano
2014-12-01 15:43:53 UTC
Try to verify this bug with new build:
virt-manager-1.1.0-9.el7.noarch
Steps as Comment 0:
1. Install a guest via virt-manager with qxl video:
...
<video>
<model type='qxl' ram='65536' vram='65536' vgamem='8192' heads='1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
...
2. Launch virt-manager, change guest video from qxl to vga: Double click guest name-->Show virtual hardware details-->change video from qxl to vga-->Apply
Result: video changed to VGA successfully with no error and guest can boot up.
<video>
- <model type="qxl" ram="65536" vram="65536" vgamem="8192" heads="1"/>
- <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0"/>
+ <model type="vga"/>
</video>
<redirdev bus="usb" type="spicevmc">
</redirdev>
3. Rerun step2 and change video from qxl to cirrus.
<video>
- <model type="qxl" ram="65536" vram="65536" vgamem="8192" heads="1"/>
- <address type="pci" domain="0x0000" bus="0x00" slot="0x02" function="0x0"/>
+ <model type="cirrus"/>
</video>
Result: video changed to Cirrus successfully with no error and guest can boot up.
so move this bug from ON_QA to VERIFIED.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHBA-2015-0427.html
Description of problem: virt-manager should remove "vgamem" from guest automatically when change video from "qxl" to "vga" Version-Release number of selected component (if applicable): libvirt-1.2.8-9.el7.x86_64 virt-manager-1.1.0-8.el7.noarch qemu-kvm-rhev-2.1.2-13.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1. Install a guest via virt-manager with qxl video: ... <video> <model type='qxl' ram='65536' vram='65536' vgamem='8192' heads='1'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </video> ... 2. Launch virt-manager, change guest video from qxl to vga: Double click guest name-->Show virtual hardware details-->change video from qxl to vga-->Apply Actual results: After click "Apply" button, get such error message: Error changing VM configuration: XML error: vgamem attribute only supported for type of qxl Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/addhardware.py", line 1384, in change_config_helper vm.redefine_cached() File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 222, in redefine_cached self._redefine_xml(xml) File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 247, in _redefine_xml return self._redefine_helper(origxml, newxml) File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 239, in _redefine_helper self._define(newxml) File "/usr/share/virt-manager/virtManager/domain.py", line 1041, in _define self.conn.define_domain(newxml) File "/usr/share/virt-manager/virtManager/connection.py", line 694, in define_domain return self._backend.defineXML(xml) File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3442, in defineXML if ret is None:raise libvirtError('virDomainDefineXML() failed', conn=self) libvirtError: XML error: vgamem attribute only supported for type of qxl Expected results: No such error showing and can change guest video successfully. Additional info: 1. Can also reproduce this issue when change video from qxl to cirrus.