LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 01-15-2020, 05:17 AM   #1
Goodlinux
Member
 
Registered: Jan 2020
Posts: 63

Rep: Reputation: Disabled
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
 
Old 01-16-2020, 12:36 AM   #2
pierre2
Member
 
Registered: May 2009
Location: Perth, AU
Distribution: LinuxMint
Posts: 388
Blog Entries: 9

Rep: Reputation: 88
you most probably can't restore it.. which is why you should have had an back-up of it.
 
Old 01-16-2020, 03:13 AM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
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?
 
Old 01-16-2020, 02:27 PM   #4
Goodlinux
Member
 
Registered: Jan 2020
Posts: 63

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-16-2020, 03:10 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
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.
 
Old 01-16-2020, 03:31 PM   #6
Goodlinux
Member
 
Registered: Jan 2020
Posts: 63

Original Poster
Rep: Reputation: Disabled
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
 
Old 01-16-2020, 04:00 PM   #7
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
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.
 
Old 01-17-2020, 02:27 PM   #8
Goodlinux
Member
 
Registered: Jan 2020
Posts: 63

Original Poster
Rep: Reputation: Disabled
Hello;
Thanks for reply

Can you give me your email to send you somme pictures



Thanks
 
Old 01-17-2020, 07:29 PM   #9
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
If you have pictures that show your problem, please post them here.
 
Old 01-18-2020, 12:10 PM   #10
Goodlinux
Member
 
Registered: Jan 2020
Posts: 63

Original Poster
Rep: Reputation: Disabled
Hi,

Please, could you show me how i can post here my pictures ?

I can't post my pictures by https URL

Thanks
 
Old 01-18-2020, 01:30 PM   #11
Goodlinux
Member
 
Registered: Jan 2020
Posts: 63

Original Poster
Rep: Reputation: Disabled
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
 
Old 01-19-2020, 11:40 AM   #12
Goodlinux
Member
 
Registered: Jan 2020
Posts: 63

Original Poster
Rep: Reputation: Disabled
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
 
Old 01-19-2020, 03:34 PM   #13
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
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:
Originally Posted by Goodlinux View Post
I have a disk image .qcow2 format and .xml file for this VM.
also, a had a restore file for this vm
virsh list --all also lists VMs that are shutdown, but I doubt your deleted VM will appear.

Last edited by berndbausch; 01-19-2020 at 03:38 PM.
 
Old 01-20-2020, 05:21 AM   #14
Goodlinux
Member
 
Registered: Jan 2020
Posts: 63

Original Poster
Rep: Reputation: Disabled
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
 
Old 01-20-2020, 07:26 AM   #15
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by Goodlinux View Post
The question is: could i to create this VM or restore it and waht i need to do that ?
You can recreate the virtual machine if you remember the parameters that were used to create it in the first place, or if you still have an XML file somewhere.

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:
I have a disk image .qcow2 format and .xml file for this VM.
With that, it should be possible. You specify the image in the XML file. You define the VM with virsh define YOURFILE.xml. Then start it with virsh start VMNAME. I am sure it can also be done with virt-manager, but I don't know how without some research.
 
  


Reply



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
LXer: HP's Virtualization Honcho John Bennett: Rethinking Virtualization LXer Syndicated Linux News 0 09-04-2008 08:40 PM
LXer: SaaS Rapid Release Cycles Drive Virtualization Demand - No Surprise LinuxWorld Launches New Virtualization Track LXer Syndicated Linux News 0 07-16-2007 06:32 PM

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

All times are GMT -5. The time now is 05:03 AM.

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