XML error: ram attribute only supported for type of qxl
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
virt-manager |
Fix Released
|
Medium
|
|||
virt-manager (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Reproduce with:
- Configure a VM with spice display and QXL video device, store and eventually run the machine
- Configure back to VNC display and video device other than QXL (e. g. Cirrus model)
- => error appears.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: virt-manager 0.9.5-1ubuntu3
ProcVersionSign
Uname: Linux 3.19.0-28-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.13
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Sep 16 13:14:37 2015
InstallationDate: Installed on 2014-11-29 (291 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
PackageArchitec
SourcePackage: virt-manager
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in virt-manager: | |
importance: | Unknown → Medium |
status: | Unknown → Fix Released |
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): 1.2.8-9. el7.x86_ 64 1.1.0-8. el7.noarch rhev-2. 1.2-13. el7.x86_ 64
libvirt-
virt-manager-
qemu-kvm-
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): virt-manager/ virtManager/ addhardware. py", line 1384, in change_ config_ helper redefine_ cached( ) virt-manager/ virtManager/ libvirtobject. py", line 222, in redefine_cached _redefine_ xml(xml) virt-manager/ virtManager/ libvirtobject. py", line 247, in _redefine_xml helper( origxml, newxml) virt-manager/ virtManager/ libvirtobject. py", line 239, in _redefine_helper _define( newxml) virt-manager/ virtManager/ domain. py", line 1041, in _define conn.define_ domain( newxml) virt-manager/ virtManager/ connection. py", line 694, in define_domain defineXML( xml) python2. 7/site- packages/ libvirt. py", line 3442, in defineXML 'virDomainDefin eXML() failed', conn=self)
File "/usr/share/
vm.
File "/usr/share/
self.
File "/usr/share/
return self._redefine_
File "/usr/share/
self.
File "/usr/share/
self.
File "/usr/share/
return self._backend.
File "/usr/lib64/
if ret is None:raise libvirtError(
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.