Bug 1336629 - [xen4] Cannot install xen fullvirt guest via Network Install with virt-manager.
Summary: [xen4] Cannot install xen fullvirt guest via Network Install with virt-manager.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: 24
Hardware: x86_64
OS: Linux
medium
high
Target Milestone: ---
Assignee: Pavel Hrdina
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-17 05:43 UTC by Lin Liu
Modified: 2016-07-22 15:57 UTC (History)
16 users (show)

Fixed In Version: libvirt-1.3.3.2-1.fc24
Clone Of:
Environment:
Last Closed: 2016-07-22 15:57:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Install xen fullvirt vm via network install (51.22 KB, image/png)
2016-05-17 05:43 UTC, Lin Liu
no flags Details
Error message with the default type video device (43.36 KB, image/png)
2016-05-17 05:46 UTC, Lin Liu
no flags Details
Add a DIRRUS type video device (61.82 KB, image/png)
2016-05-17 05:50 UTC, Lin Liu
no flags Details
Error message with CIRRUS type video device (43.42 KB, image/png)
2016-05-17 05:51 UTC, Lin Liu
no flags Details

Description Lin Liu 2016-05-17 05:43:36 UTC
Created attachment 1158171 [details]
Install xen fullvirt vm via network install

Description of problem:
Cannot install xen fullvirt guest via Network Install with virt-manager . It report error message: "Unable to complete install: 'unsupported configuration: videoram must be at least 8MB for CIRRUS'" and when I add a "CIRRUS" type video device the RAM is set by default below the requirement, so still cannot start the HVM guest installation.
Actually install xen fullvirt guest via Network Boot (PXE) with the same CIRRUS RAM default size (8192) is successful, and also OK if importing a existing disk image.

Version-Release number of selected component (if applicable):
Host: Fedora24 development version with latest packages:
kerenl-4.5.4-300.fc24.x86_64
xen-4.6.1-8.fc24.x86_64
libvirt-1.3.3.1-1.fc24.x86_64
virt-manager-1.3.2-3.fc24.noarch

Guest: RHEL6.8 with:
kernel-2.6.32-642.el6.x86_64

virt-manager version on RHEL7.2:
virt-manager-1.3.2-1.el7.noarch

How reproducible: Always

Steps to Reproduce:
1. Start virt-manager and connect localhost or remote xen-4.6.1-8 hypervisor.
2. At virt-manager GUI create a new virtual machine, Select below options:
   Connection: Xen
   Choose how you would like to install the operating system: Network Install (HTTP,FTP, or NFS)
   Xen Type: xen(fullvirt)
   And Press Forward.
3. File the URL with the compose link, select Forward and keep the setting as default, then press Finish to start the installation.
4. Installation cannot start with the error message "Unable to complete install: 'unsupported configuration: videoram must be at least 8MB for CIRRUS'" displays and detailed information will add in additional info 1.
5. Click "Close" and select "Customize configuration before install", press "Finish" to configure the installation, remove the default type video device and press "Add Hardware" to add a Video device, select "Cirrus" model and press "Begin Installation".

Actual results:
Installation failed to start with error message "Unable to complete install: 'internal error: libxenlight failed to create new domain 'rhel6.8''". Details are as below:

Unable to complete install: 'internal error: libxenlight failed to create new domain 'rhel6.8''

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 89, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/create.py", line 1855, in do_install
    guest.start_install(meter=meter)
  File "/usr/share/virt-manager/virtinst/guest.py", line 411, in start_install
    noboot)
  File "/usr/share/virt-manager/virtinst/guest.py", line 475, in _create_guest
    dom = self.conn.createLinustart_xml or final_xml, 0)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3440, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinu) failed', conn=self)
libvirtError: internal error: libxenlight failed to create new domain 'rhel6.8'

Expected results:  
The installation should be start successfully.

Additional info:
1. The details of error message "Unable to complete install: 'unsupported configuration: videoram must be at least 8MB for CIRRUS'" in step 4 are as below:

Unable to complete install: 'unsupported configuration: videoram must be at least 8MB for CIRRUS'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 89, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/create.py", line 1855, in do_install
    guest.start_install(meter=meter)
  File "/usr/share/virt-manager/virtinst/guest.py", line 411, in start_install
    noboot)
  File "/usr/share/virt-manager/virtinst/guest.py", line 475, in _create_guest
    dom = self.conn.createLinustart_xml or final_xml, 0)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3440, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinu) failed', conn=self)
libvirtError: unsupported configuration: videoram must be at least 8MB for CIRRUS

2. I have tried guests of RHEL5, RHEL6, RHEL7 and Fedora, all guests have this problem.
3. Installing xen fullvirt guest by other method with default type video device also reports the videoram added limitation error, but after adding a CIRRUS type video device the installation can be started, such as Local install media (ISO image or CDROM), Network Boot (PXE) and Import existing disk image.
4. The error also can be reproduced on Fedora23 xen-4.5.3-4.fc23 hypervisor but it doesn't report videoram limitation error, it report the libxenlight failed error directly as in the actual results with the default video device.
5. The error also can be reproduced with upstream virt-manager-1.3.2-3.fc24.

Comment 1 Lin Liu 2016-05-17 05:46:49 UTC
Created attachment 1158172 [details]
Error message with the default type video device

Comment 2 Lin Liu 2016-05-17 05:50:49 UTC
Created attachment 1158173 [details]
Add a DIRRUS type video device

Comment 3 Lin Liu 2016-05-17 05:51:32 UTC
Created attachment 1158174 [details]
Error message with CIRRUS type video device

Comment 5 Pavel Hrdina 2016-05-31 17:03:46 UTC
Moving to libvirt, because libvirt is the one who adds an implicit video device and set the video memory.

Upstream commit:

commit 3e4286703273b06a21ae07f3e76a66f9661199dc
Author: Ján Tomko <jtomko>
Date:   Wed May 11 12:13:51 2016 +0200

    Call per-device post-parse callback even on implicit video

Comment 7 Yanqiu Zhang 2016-07-05 03:36:23 UTC
The  patch only works when installing guest with xen server, but xen server is not supported by rhel7, so I think the bug should be moved to Fedora24. Would you help to check that please?

The test steps below also show that the bug can only be reproduced and verified when using libvirt to install a xen guest.
Reproduce Version:
xen server: xen-4.6.3-1.fc24.x86_64, libvirt-1.3.3.1-1.fc24.x86_64.
local:libvirt-1.3.5-1.el7

Steps to reproduce:
 
1.Start virt-manager on the local host and connect to the xen server.

2. At virt-manager GUI create a new virtual machine, Select below options and Press Forward.
Connection: Xen
Select: Network Install (HTTP,FTP, or NFS)
Xen Type: xen(fullvirt)

3. File the URL with the compose link, select Forward and keep the setting as default, then press Finish to start the installation. 
Can not install guest with error occurred:
“'unsupported configuration: videoram must be at least 8MB for CIRRUS'". 

4.On xen sever , define a xen guest, check the domain xml , it will automatically generate a video 'cirrus'' without vram :
<video>
<model type='cirrus' heads='1' primary='yes'/>
</video>


Verify Version:
xen server:xen-4.6.3-1.fc25.x86_64, libvirt-1.3.5-2.fc25.x86_64.
local: libvirt-1.3.4-1.el7

Steps to verify:

1.Start virt-manager on the local host and connect to the xen server.

2. At virt-manager GUI create a new virtual machine, Select below options and Press Forward
Connection: Xen
Select: Network Install (HTTP,FTP, or NFS)
Xen Type: xen(fullvirt)

3. File the URL with the compose link, select Forward and keep the setting as default, then press Finish to start the installation. 
   No errors like:“'unsupported configuration: videoram must be at least 8MB for CIRRUS'". 
Only error like "Unable to complete install: 'internal error: libxenlight failed to create new domain 'rhel7.1''".

4. On xen server, define a xen guest, check the domain xml , it will automatically generate a video 'cirrus'' with '8192' vram:  
<video>
<model type='cirrus' vram='8192' heads='1' primary='yes'/>
</video>

Comment 8 Jiri Denemark 2016-07-07 12:39:21 UTC
Oh, definitely. The original bug was filed against virt-manager on RHEL (which was used to access libvirt on a Fedora host). Since the bug affects libvirt on the host, it no longer applies to RHEL.

Comment 9 Fedora Update System 2016-07-19 11:24:31 UTC
libvirt-1.3.3.2-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-65cc608ebe

Comment 10 Fedora Update System 2016-07-20 01:53:18 UTC
libvirt-1.3.3.2-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-65cc608ebe

Comment 12 Fedora Update System 2016-07-22 15:56:28 UTC
libvirt-1.3.3.2-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.


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