Linux - Virtualization and CloudThis 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
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.
I have two redundant servers with qemu-kvm type 1 hypervisor, each server houses three Redhat linux5 VMs.
The problem that arises is that I want to restore a lost VM.
Normally the system contains a global backup of all the server configuration with which we can recover this VM.
I have two redundant servers with qemu-kvm type 1 hypervisor, each server houses three Redhat linux5 VMs.
The problem that arises is that I want to restore a lost VM.
How did you lose it?
Quote:
Normally the system contains a global backup of all the server configuration with which we can recover this VM.
I am not aware of such a backup. If the VM's configuration exists, it is not lost. Can you elaborate?
Most people use libvirt to manage KVM VMs. Is that what you do? How do you start and stop them, and how do you know one of them was lost?
From the Virtual-Machine-Manager, I tried to make a clone of this VM machine in running state.
Also I found that the .xml file does not exist et le ping ne marche plus.
Pour votre information cette VM est responsable de la gestion d'une application de supervision graphique d'un réseau de système Telecom.
From the Virtual-Machine-Manager, I tried to make a clone of this VM machine in running state.
Also I found that the .xml file does not exist et le ping ne marche plus.
For your information, this VM is responsible for managing a graphical supervision application for a Telecom system network.
From the Virtual-Machine-Manager, I tried to make a clone of this VM machine in running state.
What happened when you tried cloning it?
Quote:
Also I found that the .xml file does not exist et le ping ne marche plus.
ping not getting a response can have other causes: The VM is stopped, something is broken at the network level, or networking or firewall are not correctly configured in the VM.
Where did you look for the XML file? If you can access the command line, share the result of virsh list --all. Is the lost VM in that list? If yes, it is not lost.
You can also search the host's filesystem for the file that contains the VM's root disk, for example find / -name \*.qcow2.
If you find neither XML file nor the root disk, the VM is indeed lost. If you haven't created a backup, there is no backup.
I think you had this problem early this year. Is it the same VM or a different one?
And cd /var/lib/libvirt/qemu didn't contain the .xml file for this VM.
On my hypervisor host, XML files are under /etc/libvirt. But perhaps it's elsewhere in your case. I would search the entire filesystem, just in case.
And I am sorry to say it again, if the XML file is not on that host, it's gone. There is no built-in backup. Backups are set up by system administrators.
Last edited by berndbausch; 12-09-2020 at 03:36 AM.
How could I check if there is a backup which has been made somewhere of the VM or of all the configuration of my linux servers.
You ask the system administrators.
EDIT: Backups are usually done on a regular basis, so if your system is backed up, you should find something in the cron tables or anacron configuration.
Last edited by berndbausch; 12-09-2020 at 04:55 AM.
just one last question.
We have another server from another system which hosts the same VM and which performs the same role.
Can we backup this VM and use it in our server instead of the lost one, and how can we do it?
Shut the VM down. Copy its root disk to the new host. Copy its XML file as well.
Remove things like MAC address and UUID from the XML file, which uniquely identify the VM. Then create a new VM from the XML file.
Depending on your situation, you may also have to fix the network configuration in the VM copy. I can't say if your application requires some adjustment.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.