LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 07-24-2015, 01:37 PM   #1
GreenTeaTech
LQ Newbie
 
Registered: Jul 2015
Posts: 2

Rep: Reputation: Disabled
Question virsh shutdown not working on centos 7


Hi,

I'm running Centos 7, and I have about 4 virtual machines running on KVM.

I want to shutdown gracefully these VMs for backup purposes.

The command 'virsh shutdown <vm>' doesn't do anything.

I still see the VMs running on virt-manager gui and also if I run 'virsh list --all'.

I have VMs running Centos 7, Ubuntu, and Windows Server 2003.

None of these VMs respond to the 'virsh shutdown <vm>' command.

On the Centos 7 VM, if I have the console opened waiting to enter username and password to login, and I run the 'virsh shutdown <vm>' command, nothing happens. However, if I login and run the same command, the screen on the VM console turns to black. But is not shutdown. The status still shows as running.

On the Ubuntu VM, it's a little better. If a have this VM console opened and run the 'virsh shutdown <vm>', I get a prompt asking if I want to shutdown, reboot, etc. I wish this wasn't interactive and that I don't need to have the console open, because I want to run a shell script around 2 am to do backups on these VMs.

I did search and found solutions that doesn't work for me.
These solutions include:
- Installing and run acpid on the VM.
- The VM configuration should have:
<features>
<acpi/>
<apic/>
<pae/>
</features>

I have all the above and it's not working!

Can someone help?
 
Old 07-25-2015, 09:06 AM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
does the regular shutdown command work ?:
Code:
shutdown -h now
 
Old 07-25-2015, 11:47 AM   #3
GreenTeaTech
LQ Newbie
 
Registered: Jul 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by schneidz View Post
does the regular shutdown command work ?:
Code:
shutdown -h now
Yes, but the shutdown switch on the virt-manager gui doesn't work.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: KVM Virsh Command Examples on CentOS / RHEL LXer Syndicated Linux News 0 11-28-2013 06:12 AM
KVM: old working .img files no longer seen by virsh list cmd: how to recover? chrism01 Linux - Virtualization and Cloud 1 11-23-2012 04:57 AM
Shutdown, Reboot does not work through virsh Mohan.Sundar Linux - Virtualization and Cloud 2 05-10-2011 03:39 PM
shutdown issue using centos 5.0 alex.archip Linux - Laptop and Netbook 4 09-09-2007 01:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 12:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration