Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
home_server:home_server_setup:kvm [2022-10-01 Sat wk39 20:25] – [How to mount VM virtual disk on KVM hypervisor] baumkp | home_server:home_server_setup:kvm [2023-07-29 Sat wk30 15:25] – [KVM Offline Backup] baumkp | ||
---|---|---|---|
Line 6: | Line 6: | ||
*[[https:// | *[[https:// | ||
*[[https:// | *[[https:// | ||
- | Basically to install the KVM Hypervisor: '' | + | *[[https:// |
+ | Basically to install the KVM Hypervisor: '' | ||
+ | |||
+ | *'' | ||
+ | *'' | ||
+ | *'' | ||
Use the built-in clone facility: '' | Use the built-in clone facility: '' | ||
Line 66: | Line 71: | ||
- Create a snapshot of the VM and direct all changes to the snapshot allowing safe backup of main VM file | - Create a snapshot of the VM and direct all changes to the snapshot allowing safe backup of main VM file | ||
- Active back commit the snapshot and verify back commit worked | - Active back commit the snapshot and verify back commit worked | ||
+ | |||
+ | ====KVM Offline Backup==== | ||
+ | <fc # | ||
+ | -'' | ||
+ | -'' | ||
+ | -'' | ||
+ | -'' | ||
+ | -'' | ||
+ | -'' | ||
+ | |||
+ | |||
+ | References: | ||
+ | *[[https:// | ||
====kvm back-up links==== | ====kvm back-up links==== | ||
*[[https:// | *[[https:// | ||
Line 105: | Line 123: | ||
How to change the amount of disk space assigned to a KVM *[[https:// | How to change the amount of disk space assigned to a KVM *[[https:// | ||
*First turn off the virtual machine to be checked | *First turn off the virtual machine to be checked | ||
- | *Next find the file location of the firtual | + | *Next find the file location of the virtual |
*Next query the file: '' | *Next query the file: '' | ||
*Next increase the allowed size of the vm disk: '' | *Next increase the allowed size of the vm disk: '' | ||
Line 124: | Line 142: | ||
=====How to mount VM virtual disk on KVM hypervisor===== | =====How to mount VM virtual disk on KVM hypervisor===== | ||
- | There seem to be a number of methods to do this. **<fc # | + | There seem to be a number of methods to do this. |
+ | |||
+ | **<fc # | ||
Line 141: | Line 161: | ||
++++ | ++++ | ||
====Mount a qcow2 image directly==== | ====Mount a qcow2 image directly==== | ||
- | The nbd (network block device) kernel module needs to be loaded to mount qcow2 images. | + | To check if already installed or not: '' |
+ | To install '' | ||
- | | + | The nbd (network block device) kernel module needs to be loaded to mount qcow2 images. |
- | * '' | + | |
- | * '' | + | *Check VMs '' |
- | * '' | + | *If the VM to be mounted is active shutdown with '' |
- | * '' | + | *Use '' |
- | * '' | + | *Use '' |
+ | *Use '' | ||
+ | *'' | ||
+ | *Use '' | ||
+ | *Use '' | ||
+ | *If the image partitions are not managed by LVM they can be mounted directly. | ||
+ | *If a mount point does not already exist, create: | ||
+ | *The device can then be mounted | ||
+ | |||
+ | When complete clean-up with the following commands. | ||
+ | *Unmount the block device with '' | ||
+ | *Delete the network block device with '' | ||
+ | *If required the VM can be restarted with '' | ||
+ | |||
+ | ===Mount | ||
+ | Links: | ||
+ | *[[https:// | ||
+ | *[[https:// | ||
+ | *[[http:// | ||
+ | *[[https:// | ||
=====KVM Guest Corrupted - Recovery Options and Related===== | =====KVM Guest Corrupted - Recovery Options and Related===== | ||