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.

Bug 1101564

Summary: Unable to shut down RHEL7 guest
Product: Red Hat Enterprise Linux 6 Reporter: Greg Allen <gallen>
Component: libvirtAssignee: Jiri Denemark <jdenemar>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.5CC: acathrow, dallan, eblake, gallen, gscrivan
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-04 12:33:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Requested VM XML none

Description Greg Allen 2014-05-27 14:15:04 UTC
Description of problem:

I installed a RHEL7 X64 Workstation guest via a local ISO. In virt-manager, I am unable to shut down the guest.  If I click the shutdown icon the machine locks the screen (and doesn't shut down). I can enter my password and get back in.  The only way to shut it down appears to be to force it off.

Version-Release number of selected component (if applicable):

Guest: RHEL7 X64 Workstation
Host: RHEL 6.5 Enterprise Linux

How reproducible:

Should be easily reproducible.

Steps to Reproduce:
1. Create a RHEL7 guest on RHEL6.5.
2. Go to virt-manager.
3. Try to shut down the guest.

Actual results:

VM locks the screen but does not shut down.

Expected results:

VM should shut down.

Additional info:

Comment 2 Giuseppe Scrivano 2014-05-27 14:32:52 UTC
can you please attach the VM definition XML?  You can get it with:
"virsh dumpxml $VM_NAME"

Do you have qemu-guest-agent installed on the RHEL7 X64 Workstation guest?

Does "virsh shutdown $VM_NAME" work for you?

Comment 3 Greg Allen 2014-05-27 15:36:54 UTC
(In reply to Giuseppe Scrivano from comment #2)
> can you please attach the VM definition XML?  You can get it with:
> "virsh dumpxml $VM_NAME"
> 
> Do you have qemu-guest-agent installed on the RHEL7 X64 Workstation guest?
> 
> Does "virsh shutdown $VM_NAME" work for you?

XML is attached.

qemu-guest-agent is installed:

[root@localhost ~]# rpm -qa | grep qemu
libvirt-daemon-driver-qemu-1.1.1-29.el7.x86_64
qemu-guest-agent-1.5.3-60.el7.x86_64
ipxe-roms-qemu-20130517-5.gitc4bce43.el7.noarch
qemu-img-1.5.3-60.el7.x86_64
qemu-kvm-common-1.5.3-60.el7.x86_64
qemu-kvm-1.5.3-60.el7.x86_64
[root@localhost ~]# 

Running "virsh shutdown $VM_NAME" exhibits the same behavior.

Comment 4 Greg Allen 2014-05-27 15:37:40 UTC
Created attachment 899574 [details]
Requested VM XML

Comment 5 Giuseppe Scrivano 2014-05-27 19:28:59 UTC
since it exhibits the same behavior with virsh, I am reassigning to libvirt.

Comment 6 Dave Allan 2014-05-27 19:50:59 UTC
Greg, shutdown is graceful and requires cooperation of the guest OS.  Do you have acpid installed and running in the guest?

Comment 7 Eric Blake 2014-05-27 20:34:41 UTC
(In reply to Dave Allan from comment #6)
> Greg, shutdown is graceful and requires cooperation of the guest OS.  Do you
> have acpid installed and running in the guest?

and/or the qemu guest agent in the guest, along with proper domain XML settings in the host to wire up the guest agent channel?

Comment 8 Eric Blake 2014-05-27 20:38:24 UTC
Your domain XML is missing the guest agent channel; it should look something like this (copying from my own domain that I have working):

    <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/RHEL7-BETA-TEST.org.qemu.guest_agent.0'/>
      <target type='virtio' name='org.qemu.guest_agent.0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>

(libvirt can auto-fill some of that; you don't have to type in the filename yourself)

Comment 9 Jiri Denemark 2014-06-04 12:33:06 UTC
There has been no response for some time and it all looks like a configuration/guest issue so I'm going to close this bug. Please, reopen if it still does not work even with guest-agent properly configured.

Comment 10 Red Hat Bugzilla 2023-09-14 02:08:27 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days