Default guest instance misses some commonly expected features on Intel architectures

Bug #1256658 reported by Nobuto Murata
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
uvtool
Fix Committed
Undecided
Unassigned

Bug Description

libvirt-bin: 1.1.4-0ubuntu4
uvtool-libvirt: 0~bzr42-0ubuntu1

Instances created by uvt-kvm ignores ACPI shutdown.

How to reproduce:
 1. uvt-kvm create shutdown-test
 2. virsh shutdown shutdown-test

Expected result:
 the instance will be shutdown.

Actual result:
 the instance keeps running.

Revision history for this message
Nobuto Murata (nobuto) wrote :

I prefer acpi capable by default like VMs created by virt-manager.

--- template.xml 2013-09-19 16:55:33 +0000
+++ template.xml 2013-11-20 23:20:18 +0000
@@ -3,6 +3,11 @@
     <type>hvm</type>
     <boot dev='hd'/>
   </os>
+ <features>
+ <acpi/>
+ <apic/>
+ <pae/>
+ </features>
   <devices>
     <interface type='network'>
       <source network='default'/>

Revision history for this message
Robie Basak (racb) wrote :

Thank you for the bug report.

Ryan Harper has sent me a similar patch, but I was concerned that this breaks other guest architectures (eg. ARM) which may not necessarily have these features.

Ryan since sent me an updated patch which checks the host architecture. Sorry, Ryan, for not reviewing this sooner. I'm not sure this is the right approach either, since it's a guest architecture feature that we need to verify is suitable; the host should be irrelevant.

Comments appreciated.

summary: - created instance ignores acpi shutdown
+ Default guest instance misses some commonly expected features on Intel
+ architectures
Revision history for this message
Ryan Harper (raharper) wrote :

AFAICT, there is no known way to confirm a guest architecture supports specific features. In libvirt today, all of the feature checks are done against the host architecture. Additionally, a quick check could validate, but I see no harm in adding <acpi> and other features into the template xml (or the host detection), guests that don't support ACPI or the other features will ignore them.

Revision history for this message
Robie Basak (racb) wrote :

Sorry for the delay on this. Ryan has convinced me to go with the original patch and just change the template. This assumes that libvirt will ignore the features that it can't support on ARM in the future - or I'll need to address that then.

I will push this shortly.

Robie Basak (racb)
Changed in uvtool:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.