LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-20-2020, 08:45 AM   #16
Goodlinux
Member
 
Registered: Jan 2020
Posts: 63

Original Poster
Rep: Reputation: Disabled

hello;

After cheking my system, i found that i don't have the .xml file of the deleted VM.

CDT
 
Old 01-20-2020, 01:00 PM   #17
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
You can still create a similar VM from scratch. It probably works even if not entirely identical.
 
Old 01-21-2020, 06:46 AM   #18
Goodlinux
Member
 
Registered: Jan 2020
Posts: 63

Original Poster
Rep: Reputation: Disabled
Hello;

please, can i restore my VM Deleted by using this backup?:

oms1,root,root# cd /var/lib/libvirt/backup/
oms1,root,root# ll
total 12
drwxr-xr-x 2 root root 4096 9 mars 2015 backing_file
drwxr-xr-x 2 root root 4096 9 mars 2015 conf
drwxr-xr-x 5 root root 4096 9 mars 2015 VMs

Also, i found only two .xml file:

oms1,root,root# cd /etc/libvirt/qemu/
oms1,root,root# ll
autostart VM1.xml
networks VM2.xml

thanks
 
Old 01-21-2020, 07:06 AM   #19
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
I can't tell what these XML files refer to. Probably the two running VMs. I suggest you look into them.

As to the backup, admittedly I don't know what's in those directories. Again, why don't you explore them?

Last edited by berndbausch; 01-21-2020 at 07:07 AM.
 
Old 01-21-2020, 07:10 AM   #20
Goodlinux
Member
 
Registered: Jan 2020
Posts: 63

Original Poster
Rep: Reputation: Disabled
Hello and thank you for reply

how can i explore them ?

Thanks
 
Old 01-21-2020, 07:11 AM   #21
Goodlinux
Member
 
Registered: Jan 2020
Posts: 63

Original Poster
Rep: Reputation: Disabled
ok i will explore this files

thanks
 
Old 01-21-2020, 07:20 AM   #22
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
The XML files are text files. Any text editor is fine.

Use ls to explore directories.
 
Old 01-21-2020, 02:43 PM   #23
Goodlinux
Member
 
Registered: Jan 2020
Posts: 63

Original Poster
Rep: Reputation: Disabled
Hello,

oms1,root,root# cd /var/lib/libvirt/backup/
oms1,root,root# ll
total 12
drwxr-xr-x 2 root root 4096 9 mars 2015 backing_file
drwxr-xr-x 2 root root 4096 9 mars 2015 conf
drwxr-xr-x 5 root root 4096 9 mars 2015 VMs

oms1,root,root backup]#cd backing_file
oms1,root,root backup]#ls
oms1,root,root backup]#


oms1,root,root backup]#cd conf
oms1,root,root backup]#ls
name_bench.tar.1


oms1,root,root backup]#cd VMs
oms1,root,root backup]#ls
VM1 VM2 VM3

Thanks.
 
Old 01-21-2020, 02:44 PM   #24
Goodlinux
Member
 
Registered: Jan 2020
Posts: 63

Original Poster
Rep: Reputation: Disabled
i need to restore my VM3
 
Old 01-21-2020, 04:14 PM   #25
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
Use the file command to see what type of files these are.
 
Old 01-22-2020, 02:26 AM   #26
Goodlinux
Member
 
Registered: Jan 2020
Posts: 63

Original Poster
Rep: Reputation: Disabled
Hello,

[Use the file command to see what type of files these are]

How can i do that ???
 
Old 01-22-2020, 02:28 AM   #27
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
https://linux.die.net/man/1/file

You are lacking fundamental Linux/UNIX skills. You should not deal with virtual machines on Linux.
 
Old 01-22-2020, 02:53 AM   #28
Goodlinux
Member
 
Registered: Jan 2020
Posts: 63

Original Poster
Rep: Reputation: Disabled
thanks for the advice.
I am a beginner and I want to learn how to manage virtual machines under redhat.

Thank you for your help
 
Old 01-22-2020, 04:15 AM   #29
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
First learn to crawl, then to walk, then to run. First learn Linux, then VM management under Linux, otherwise you will continue to stumble at every tiny obstacle.
 
Old 01-22-2020, 04:32 AM   #30
Goodlinux
Member
 
Registered: Jan 2020
Posts: 63

Original Poster
Rep: Reputation: Disabled
thank you very much sir.
I need documents and linux courses and virtual machines if you have of course.
 
  


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 03:37 PM.

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