Phriction College of Engineering CSE Robotics Research Lab PR2 Snapshotting & Restoring History Version 3 vs 4
Version 3 vs 4
Version 3 vs 4
Content Changes
Content Changes
We will use `virsh` to create snapshots of the VMs and their disks.
We'll need some blank file to store our XML data, and then store the XML data from a VM:
```touch [backup-name].xml
sudo virsh dumpxml > [backup-name].xml```
Now we'll make our snapshot:
`sudo virsh snapshot-create-as --domain [vm-name] --name [backup-name]`
If you only want to snapshot the state of the disk rather than the entire VM:
`sudo virsh snapshot-create-as --domain [vm-name] --name [backup-name] --disk-only --live`
We will use `virsh` to manage our snapshots of the VMs and their disks.
We'll need some blank file to store our XML data, and then store the XML data from a VM:
```touch [backup-name].xml
sudo virsh dumpxml > [backup-name].xml```
Now we'll make our snapshot:
`sudo virsh snapshot-create-as --domain [vm-name] --name [backup-name]`
You can see the list of snapshots for a certain VM via:
`sudo virsh snapshot-list --domain [vm-name]`
To restore your VM from a certain snapshot (make sure to turn it off prior):
`sudo virsh snapshot-revert [vm-name] [vm-snapshot]`
We will use `virsh` to createmanage our snapshots of the VMs and their disks.
We'll need some blank file to store our XML data, and then store the XML data from a VM:
```touch [backup-name].xml
sudo virsh dumpxml > [backup-name].xml```
Now we'll make our snapshot:
`sudo virsh snapshot-create-as --domain [vm-name] --name [backup-name]`
If you only want to snapshot the state of the disk rather than the entire VM:You can see the list of snapshots for a certain VM via:
`sudo virsh snapshot-create-aslist --domain [vm-name] --name [backupm-name] --disk-only --live``
To restore your VM from a certain snapshot (make sure to turn it off prior):
`sudo virsh snapshot-revert [vm-name] [vm-snapshot]`