Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi All, I have been strugalling for the past few days with out any answer!!!!!!!!
I am using CentOS release 6.8 (Final) with KVM and this is a compute in a cloudestack installation.
Now the issue is, I hade to reset the machine due to RAM issue and when finally the node came up, I am missing one VM. Through cloudstack I can see the VM but when I do "virsh list --all" I only see 2 where there should be 3. The disks attached to this VM is visible though ls.
Can some one help me to get this reattached (if that is the term to use ) KVM or to diagnose what is going on
I don't pretend to know cloudstack, but if it is any similar to OpenStack, it could well be that the VM persists in the cloudstack database but has disappeared from the VM host. Perhaps cloudstack has taken a snapshot of it and removed it?
Does cloudstack allow you to see the status of the VM? What is it?
You could try some actions on the VM via cloudstack. For example, start or restart or stop or suspend (or whatever similar actions exist in cloudstack). What happens when you do that?
The status on the UI says it is stopped but when I try to start it says the action is completed but the status remains the same. If I to see from the compute node there is no entry for this VM or it is running. I can see the vm disks where were attached to this lost instance, that's about it.
It feels the same but setting cloudstack up is much, much easer then openstack
By the way this is just a POC environment with once control node and a one worker node
I need to guess, but it's likely that the VM doesn't exist anymore, and what you see in cloudstack is its ghost. It disappeared but cloudstack didn't notice.
I suggest you find a way to remove it from your cloud.
Hi Berndbausch, I can remove this from the db (mysql), but it would be nice to find out what happened since its rather scary the situation. Just reboot can cause such a havoc, think it was on a production .
But I can see the v-disks from the OS side, do you think this has something to do with KVM it self since verish list --all does not show this vm but rest are fine and working. Is there any chance that I could import this disk to a KVM instance with out the aid of cloudstack.
But I can see the v-disks from the OS side, do you think this has something to do with KVM it self since verish list --all does not show this vm but rest are fine and working. Is there any chance that I could import this disk to a KVM instance with out the aid of cloudstack.
Yes you can. You create a new VM and specify the existing disk as root disk (and add any other existing disks). The easiest way is via the GUI, virt-manager. If the compute node has desktop software installed, you may have virt-manager installed already. If you can't add desktop software to the compute node, you should be able to run virt-manager somewhere else and remote-control the compute node via a libvirt connection. From memory I don't know how this is done.
If GUI is not an option, I am aware of two ways to create a VM via command line. One is virt-install, providing all the parameters like network, console, RAM, and storage, as command line options.
The other is copying the XML that describes another VM and adapt it. Roughly:
Hi Bernbdaush thank you for the reply and I had to recreate the VM since this was to be a poc but I do have a backup of the issued VM, let me try and import the vmdisk at he vm create time
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.