CentOS7.6: Unable to launch vm directly from virsh

Bug #1814336 reported by Yang Liu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Austin Sun

Bug Description

Brief Description
-----------------
Failed to launch vm with UEFI boot.

Severity
--------
Major

Steps to Reproduce
------------------
# ssh to compute host (baremetal)
# copy following guest xml file onto this host:
# cat orphan_guest.xml
<domain type='kvm'>
   <name>orphan-6</name>
   <uuid>a1e40383-2dfb-47f7-9cf6-589fc9679aa7</uuid>
   <memory>242880</memory>
   <currentMemory>242880</currentMemory>
   <vcpu>1</vcpu>
   <os>
     <type arch='x86_64' machine='pc'>hvm</type>
     <boot dev='cdrom'/>
</os>
<features>
    <acpi/>
    <apic/>
     <pae/>
</features>
<clock offset='localtime'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
     <emulator>/usr/libexec/qemu-kvm</emulator>
     <disk type='file' device='disk'>
       <source file='/home/wrsroot/images/tis-centos-guest.img'/>
       <target dev='hda' bus='ide'/>
     </disk>
    <disk type='file' device='cdrom'>
     <source file='/home/wrsroot/images/tis-centos-guest.img'/>
     <target dev='hdc' bus='ide'/>
     <readonly/>
     </disk>
     <input type='mouse' bus='ps2'/>
     <graphics type='vnc' port='-1' autoport='yes' keymap='en-us'/>
</devices>
</domain>

# define it in virsh
Send 'sudo virsh define orphan_guest.xml'
Domain orphan-6 defined from orphan_guest.xml
compute-3:~$

# start it in virsh
Send 'sudo virsh start orphan-6'
error: Failed to start domain orphan-6
error: internal error: qemu unexpectedly closed the monitor: 2019-02-01T15:14:28.145882Z qemu-kvm: warning: host doesn't support requested feature: CPUID.80000001H:EDX.fxsr-opt [bit 25]
2019-02-01T15:14:28.157966Z qemu-kvm: -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex=1: Failed to get shared "write" lock
Is another process using the image?
compute-3:~$

Expected Behavior
------------------
VM successfully started directly from virsh

Actual Behavior
------------------
error: Failed to start domain orphan-6
error: internal error: qemu unexpectedly closed the monitor: 2019-02-01T15:14:28.145882Z qemu-kvm: warning: host doesn't support requested feature: CPUID.80000001H:EDX.fxsr-opt [bit 25]
2019-02-01T15:14:28.157966Z qemu-kvm: -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0,bootindex=1: Failed to get shared "write" lock
Is another process using the image?

Reproducibility
---------------
Reproducible

System Configuration
--------------------
Any

Branch/Pull Time/Commit
-----------------------
f/centos76 as 2019/01/30

Timestamp/Logs
--------------
Easy to reproduce.

Ghada Khalil (gkhalil)
Changed in starlingx:
assignee: nobody → Cindy Xie (xxie1)
Revision history for this message
Austin Sun (sunausti) wrote :

Similarly with https://bugs.launchpad.net/starlingx/+bug/1814335, could you share tis-centos-guest.img ? and does this img contain EFI boot feature ?

Thanks.

Changed in starlingx:
assignee: Cindy Xie (xxie1) → Austin Sun (sunausti)
Revision history for this message
Yang Liu (yliu12) wrote :

Sorry following should be changed to:

Brief Description
-----------------
Failed to launch vm directly from virsh.

tis-centos-guest.img is based off an centos image. It boots from bios, and is in raw format.
It is very 1.5G,which seems to be too big to attach here. But i believe you can use any raw image that boots from bios to replace it.

Revision history for this message
Ghada Khalil (gkhalil) wrote :

Duplicate bug was fixed on 2019-05-03
https://review.opendev.org/651949

Marking as Fix Released

Changed in starlingx:
status: New → Fix Released
importance: Undecided → Medium
tags: added: stx.2.0 stx.distro.other
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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