LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-22-2021, 12:22 AM   #1
laureanojm
LQ Newbie
 
Registered: Jul 2021
Posts: 2

Rep: Reputation: Disabled
Rollback imageof kvm guest


Good morning, I have a fedora server, in which I have kvm with virt-manager. The images of the guests are qcow2. Days ago by mistake 2 images of 2 guests were deleted. Both are in the snapshot the day before, but I can't put them back in the location where they were deleted. The snapshots are made with btrfs, the partition of the vm and the snapshots is the same
 
Old 07-27-2021, 02:28 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,003

Rep: Reputation: 3408Reputation: 3408Reputation: 3408Reputation: 3408Reputation: 3408Reputation: 3408Reputation: 3408Reputation: 3408Reputation: 3408Reputation: 3408Reputation: 3408
Hello.

I'll venture some questions since this has been sitting a while.

"The snapshots are made with btrfs, the partition of the vm and the snapshots is the same"
Are you saying the host or client is btrfs? I assume you mean host.

Something like this should bring file to the btrfs system if I get question correctly. https://fedoramagazine.org/recover-y...rfs-snapshots/
 
Old Today, 07:00 AM   #3
laureanojm
LQ Newbie
 
Registered: Jul 2021
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hello, sorry for the delay in answering. yes, I mean the host. Before any problem, cp /mnt/snapshots/server/serverimage.qcow2 / mnt / vm / server / for example.
At this moment, when doing the example, cp throws the input / output error. Solve by copying with rsync and the --inplace function (at the end of the copy rsync also gave an error and began to copy again, but what was already copied was in its entirety and working.
Now, the cp and rsync errors, are they disk errors? btrfs partition? Do not know.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Kernel-based Virtual Machine (KVM): Switching from KVM guest to host (e.g. Linux Mint) & maximize guest screen fanoflq Linux - Newbie 2 07-13-2016 06:10 PM
Guest to Host message passing - guest's memory usage statistics & guest's IP address Prince_Pangeni Linux - Virtualization and Cloud 2 03-03-2012 03:06 AM
KVM with Ubuntu guest - guest crashes when some apps are 'full screened' TonyRogers Linux - Virtualization and Cloud 0 05-15-2011 12:18 PM
KVM Guest installed from console. How to get the guest's console? Toomas Linux - Virtualization and Cloud 3 05-04-2011 11:42 AM
KVM: Mouse under Windows Guest performs way better than under Centos Guest martdj Linux - Virtualization and Cloud 3 03-29-2010 04:20 AM

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

All times are GMT -5. The time now is 11:53 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