Jump to content

Snapshot gone in virsh after reboot


sjoerd

Recommended Posts

Hi Guys,

 

I really need to make use of the virsh snapshots because I need to do some extensive tests on an old rhel6 vm so did some digging how to manage it. I installed an oracle linux 6 vm ( is rhel 6) and after some trial and errors I could successfully create snapshots (having a new snapshot file) and revert to the base image. Is not even that complicated (thought it would be)  - to make sure the snapshot is create in the ol6 directory I first cd into /mnt/user/domain/ol6

 

virsh snapshot-create-as ol6 snapshot0 --description "first snapshot" --disk-only
virsh snapshot-current ol6
virsh snapshot-current ol6 --name

 

On disk a file got created "vdisk1.snapshst0" - sweet.

The I updated the os with the usual "yum check-update && yum update". The new file got larger during the update process. Sweet. I could easily revert with virsh snapshot-revert ol6 snapshot0. And then when I rebooted unraid virsh no longer knows about the snapshot.. I assume the snapshot information is kept in memory then rather than stored on the usb ? How can I fix this? -

 

Link to comment
  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...