LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 07-29-2015, 11:57 AM   #1
abdulmoeed
LQ Newbie
 
Registered: Jul 2015
Posts: 2

Rep: Reputation: Disabled
Best way to pause KVM/QEMU windows guest


When I pause my guest using following
Code:
virsh suspend <domain>
But the process qemu-system-x86_64 keeps taking about 30% of CPU (and this annoys be)

I am able to pause the guest by pausing the process with following command
Code:
kill -STOP `pidof qemu-systemx86_64`
this takes the CPU usage to 0, which is quite satisfying and I haven't seen any side affects of this approach till now.

So my question is, are there any problems I may run into using the later approach, like corruption of the guest.

Also why doesn't the actual suspend command actually suspends everything about the guest.
 
Old 07-30-2015, 05:15 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,792

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
sigstop is the right signal to stop (hang) a process (that does not mean to terminate and/or kill it) and sigcont is used to allow to run it again. That will not corrupt anything, but keep in mind stopped processes are unresponsive (so cannot react on keyboard-mouse event for example).

qemu-system-x86_64 is the kvm process itself, that is not a guest, you cannot suspend it by virsh suspend. Also I think stopping that process will hang all the guests (if I remember well)
 
1 members found this post helpful.
Old 07-30-2015, 05:44 AM   #3
abdulmoeed
LQ Newbie
 
Registered: Jul 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks pan64, that is very good to know. Now the question remains what is the kvm process doing when to take 30% CPU even when there is no guest running.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
qemu really slow with kvm cpu and 9x guest. Help! Holering Linux - Software 4 05-23-2014 03:31 PM
[SOLVED] qemu kvm fedora guest installation problems Grub3r Linux - Virtualization and Cloud 1 01-25-2013 04:45 PM
Setting up networking in qemu (kvm) guest makowka Linux - Networking 1 12-06-2011 06:31 PM
Share between Qemu-Kvm host and guest Alexvader General 1 06-13-2010 03:07 PM
Solaris 10 guest endless reboot under KVM/Qemu green_dood Linux - Software 6 12-13-2009 01:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 12:53 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