Virtualization
Hello;
I have a spit and deleted VM. how Can i restore it? Knowing that our system consists of: - two redundant servers. - OS RHEL Linux 5.0 - QEMU hypervisor Thanks My contact: +213553286111 E-mail: badraoui.mokhtar@gmail.com |
you most probably can't restore it.. which is why you should have had an back-up of it.
|
How precisely did you delete the VM? How did you launch it in the first place? Did you also delete the VM's image, that is the file that serves as the VM's root disk?
|
Hello and thank you for reply
I deleted this VM only from Virt-Manager. This VM was deleted because i tried to clone it without made shutdown before. To restore or create it again, probably we need ISO file and .qcow2 disk ???? Cdt. |
See if the virtual hard drive files exist still on your drive.
To create a VM you'd need to make a virtual hard drive image if your VM manager has that ability on machine creation or just make or get a file(set of files) The .iso could be useful but someone may already have an already made vm appliance out there for this. You'd have to configure to what you need. Pretty old stuff. |
Hello, thank you for reply
I have a disk image .qcow2 format and .xml file for this VM. also, a had a restore file for this vm I can send you pictures if you need also, i had two VM in service are the same to deleted VM. For your information VM OS Redhat linux 5 Thanks |
If you have both the image and xml files, recreating the VM should be as simple as running virsh define XML-FILE, then to start it virsh start NAME-OF-VM.
|
Hello;
Thanks for reply Can you give me your email to send you somme pictures Thanks |
If you have pictures that show your problem, please post them here.
|
Hi,
Please, could you show me how i can post here my pictures ? I can't post my pictures by https URL Thanks |
Hi,
To create the new VM, we need this files: OS.ISO : for example REDHAT LINUX.iso and the Image .qcow2 file. is it true ????? Thanks |
hello,
Please, see this configuration of my system : oms1,root,root# cd /var/lib/libvirt/images oms1,root,root# ls in white color----------> NAMEVM1.img NAMEVM2.img in blue color------------> NAMEVM1 NAMEVM2 oms1,root,root# virsh --connect qemu:///system list Id name state ------------------------------------------- 2 NAMEVM1 running 3 NAMEVM2 running but we had before that situation three VM. i deleted one and i want to restore it. Also i have this file: BackupVM_NAMEVM3 ------------------------> Derectory: trace Thanks |
It looks like you only have two images. The third image seems to be gone. Without the image, or a backup, you may be able to recreate the VM, but not the data that was in its image.
This is a bit confusing, because earlier you said: Quote:
|
Hello;
I will explain you my problem with another way. I have two servers redondants. Each server contains three VM. Each VM use RedHat linux5 OS. The third VM was lost because i tried to clone it and i had an error. After i deleted this VM and i tried to recreate it, i had this message: No boutable device The question is: could i to create this VM or restore it and waht i need to do that ? Thank you very much |
Quote:
You can recreate the virtual machine's data if you have a copy of the qcow2 file or a backup. Now, you said earlier: Quote:
|
All times are GMT -5. The time now is 01:07 PM. |