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.
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?
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.
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.
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
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.
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 ?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.