Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
home_server:home_server_setup:kvm [2022-10-01 Sat wk39 21:30] – [Mount a qcow2 image directly] baumkp | home_server:home_server_setup:kvm [2024-02-18 Sun wk07 18:09] (current) – [Change the Disk Allocated Size] 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 44: | Line 49: | ||
====Windows10 on KVM==== | ====Windows10 on KVM==== | ||
+ | I have not used Windows on a VM now since circa 2021. Just no need. I do have a dual boot on my main desk top that I default to Debian testing and can boot to Windows 11 when I need to use Windows based software. | ||
I had poor performance on Windows 7, 8/8.1, and 10 running on KVM a few years back. A large frustration was that I could not seem to get more than 2 CPUs functioning on the Windows VM even though I assigned 4. Performance was very poor, with CPU usage usually saturated with any use and relatively high even when idle. I found out early that Windows has limitations on the number of CPUs that could be used; 1 on Home, 2 on professional and 4 on Workstation and more on Server versions, at least that was my understanding. | I had poor performance on Windows 7, 8/8.1, and 10 running on KVM a few years back. A large frustration was that I could not seem to get more than 2 CPUs functioning on the Windows VM even though I assigned 4. Performance was very poor, with CPU usage usually saturated with any use and relatively high even when idle. I found out early that Windows has limitations on the number of CPUs that could be used; 1 on Home, 2 on professional and 4 on Workstation and more on Server versions, at least that was my understanding. | ||
Line 66: | Line 72: | ||
- 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 124: | ||
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: '' | ||
*We need to make a backup of the VM disk: '' | *We need to make a backup of the VM disk: '' | ||
+ | *We can check the file system on the VM: '' | ||
+ | *We the backup VM disk to create a new expanded drive: '' | ||
+ | |||
+ | The '' | ||
[[https:// | [[https:// | ||
Line 143: | Line 166: | ||
++++ | ++++ | ||
====Mount a qcow2 image directly==== | ====Mount a qcow2 image directly==== | ||
+ | To check if already installed or not: '' | ||
+ | To install '' | ||
+ | |||
The nbd (network block device) kernel module needs to be loaded to mount qcow2 images. | The nbd (network block device) kernel module needs to be loaded to mount qcow2 images. | ||
- | *'' | + | *'' |
*Check VMs '' | *Check VMs '' | ||
*If the VM to be mounted is active shutdown with '' | *If the VM to be mounted is active shutdown with '' | ||
*Use '' | *Use '' | ||
*Use '' | *Use '' | ||
- | *Use '' | + | *Use '' |
+ | *'' | ||
*Use '' | *Use '' | ||
*Use '' | *Use '' | ||
Line 161: | Line 188: | ||
*If required the VM can be restarted with '' | *If required the VM can be restarted with '' | ||
+ | ===Mount a qcow2 image with LVM=== | ||
+ | Links: | ||
+ | *[[https:// | ||
+ | *[[https:// | ||
+ | *[[http:// | ||
+ | *[[https:// | ||
=====KVM Guest Corrupted - Recovery Options and Related===== | =====KVM Guest Corrupted - Recovery Options and Related===== | ||