Removed KVM guests are still running. Why?

8 posts / 0 new
Last post
#1 Thu, 01/03/2013 - 01:01
yngens

Removed KVM guests are still running. Why?

I have removed couple KVM guests through my Cloudmin UI, however running 'htop' in host's command line shows both deleted guest systems are still there and still are consuming server resources.

Why so? Do I have to reboot host system every time I delete any guest system?

I really don't want to do that to avoid other guests from downtime. How can I clean host from still spending server resources to deleted guests?

Thu, 01/03/2013 - 20:42
JamieCameron

That seems like a bug - deleting a VM from within Cloudmin should kill the kvm process.

Does killing that process manually with the kill command get rid of it?

''

Thu, 01/03/2013 - 20:45 (Reply to #2)
yngens

Yes, it does. That's how I am getting rid of those zombi processes. However, I decided to report it to the community too.

Thu, 01/03/2013 - 23:35 (Reply to #3)
JamieCameron

So if you create a VM in Cloudmin and then shut it down, does the process get terminated properly?

Also, does this happen for all VMs?

''

Fri, 01/04/2013 - 00:01 (Reply to #4)
yngens

Well, I do things slightly differently than Cloudmin default way.

I first create a guest system with Cloudmin, which allows to specify only short hostname, for example 'host'. And then Cloudmin automatically appends to it the full hostname like 'host.mycentraldomain.tld'.

But then some of my guest systems need to use their own domains and hostnames, so I logged to newly created guest system and change update its hostname to something like 'newhost.guestdomain.tld', I change SSH port with guest system. And then I reflect those changes in Cloudmin interface, refresh the system and it successfully picks up new guest settings. To make sure I reboot the guest system.

However when I run 'htop' in host command line, it shows that old (non-existent) guest system host.mycentraldomain.tld is still running.

Fri, 01/04/2013 - 01:26 (Reply to #5)
JamieCameron

What exactly is htop displaying? A screenshot or paste of the output would be useful..

''

Fri, 01/04/2013 - 01:43 (Reply to #6)
yngens

Jamie, thanks for your prompt reply, however first of all I already cleared zombi guests with kill command, secondly I try not to dispose any real data like hostnames of my guest systems on publicly open discussion forums. Anyway, you can consider this issue closed until someone else also will confirm it. It is not now critical to me, since I've learned how to kill such processes. But if you wonder hot to reproduce this situation just repeat my steps described above and you will see the same results.

Fri, 01/04/2013 - 01:57 (Reply to #7)
JamieCameron

Ok, feel free to email me directly at jcameron@virtualmin.com if you'd like to discuss this further.

I wasn't able to re-produce this on my test systems though.

''

Topic locked