add qcow manipulation docs to arch workstation
This commit is contained in:
@@ -7,6 +7,8 @@
|
|||||||
- [Docker](#docker)
|
- [Docker](#docker)
|
||||||
- [QEMU/KVM](#qemukvm)
|
- [QEMU/KVM](#qemukvm)
|
||||||
- [Arch Guests](#arch-guests)
|
- [Arch Guests](#arch-guests)
|
||||||
|
- [Restore qcow snapshots](#restore-qcow-snapshots)
|
||||||
|
- [Convert qcow to bootable drive](#convert-qcow-to-bootable-drive)
|
||||||
- [Kubernetes](#kubernetes)
|
- [Kubernetes](#kubernetes)
|
||||||
- [VSCode](#vscode)
|
- [VSCode](#vscode)
|
||||||
- [Shell](#shell)
|
- [Shell](#shell)
|
||||||
@@ -127,6 +129,29 @@ In order to get drivers for spice you'll need the guest spice drivers:
|
|||||||
sudo pacman -S qemu-guest-agent spice-vdagent
|
sudo pacman -S qemu-guest-agent spice-vdagent
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Restore qcow snapshots
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Create a snapshot
|
||||||
|
qemu-img snapshot -c snapshot-name /var/lib/libvirt/images/vm-image.qcow2
|
||||||
|
|
||||||
|
# List snapshots for a given image
|
||||||
|
qemu-img snapshot -l /var/lib/libvirt/images/vm-image.qcow2
|
||||||
|
|
||||||
|
# Restore snapshot
|
||||||
|
qemu-img snapshot -a snapshot-name /var/lib/libvirt/images/vm-image.qcow2
|
||||||
|
```
|
||||||
|
|
||||||
|
### Convert qcow to bootable drive
|
||||||
|
|
||||||
|
```bash
|
||||||
|
qemu-img convert -f qcow2 -O raw /var/lib/libvirt/images/vm-image.qcow2 /dev/sdb
|
||||||
|
```
|
||||||
|
|
||||||
|
If you need to resize a windows partition to non-continuous space simply grow the
|
||||||
|
last partition, shrink it to the end of the drive, then grow the windows partition
|
||||||
|
with gparted.
|
||||||
|
|
||||||
## Kubernetes
|
## Kubernetes
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
Reference in New Issue
Block a user