Meld Homepage , Electronic PCB PCBA , Software .NET AVR PLM BOM , Network TCP UDP MQTT , Microcontrollers AVR ARM , Powersupplys Switchmode , Nursecall MC5000 CD2000

Date: 2020-03-14
Updated: 2020-03-15
Author: Erik Leth Danielsen
PRELIMINARY
Virt Manager Qemu Kvm

Virt Manager Qemu Kvm


Virt Manager view on my linux debian server


Virt Manager KVM (kernel-based virtual machine)
Is a open source tool for running other machines on your linux server, windows and linux.

I'm using it for running my old windows 7 pc. and doing test on other operating systems.
Virt Manager is a user interface for maningen QEMU running KVM
KVM's runs nearly native performance, so I can work on my windows 7 machine as it was installed on it's own hardware.
Instead of writing command line for QEMU which is difficult, you can use Virt Manager to create the command line for QEMU.
Install Virt Manager on Debian Linux
sudo apt install virt-manager
QEMU(short for Quick EMUlator)
Is a command line open source virtuel mashine emulator like (Virtualbox),
When you install Virt Manager you automatic get QEMU
Wiki: QEMU
KVM
Wiki: KVM
1. Additional image manipulation resize qcow2 image size
Beware, Shrink the disk partition first with Windows Disk Management see 2.
Some Examples:
sudo qemu-img resize /home/virt/images/eldwin7.qcow2 +20G
sudo qemu-img resize /home/virt/images/eldwin7.qcow2 --shrink -10G
sudo qemu-img resize /home/virt/images/eldwin7.qcow2 --shrink 60G
https://www.youtube.com/watch?v=WcNX0Ync7Ho

Convert will copy and compress the image to minimum size, and then it will grow when it need more space.
It can also be used for converting from other formats
sudo qemu-img convert -c -O qcow2 eldwin7.qcow2 eldwin72.qcow2
https://www.youtube.com/watch?v=xd01mYSsFcA
https://serverfault.com/questions/438083/how-to-decrease-the-size-of-a-kvm-virtual-machine-disk-image
2. Additional Windows 7 Shrink Disk Partition before resize
1. Disable paging file ' this will remove Pagefile.sys
2. Control Panel, Program and Features, Turm Windows features on or off, Disable MSMQ
3. Reset Catroot2 see: https://mywindowshub.com/what-are-catroot-and-catroot2-folders-how-to-reset-the-folder/ 
4. Run Windows Disk Manegement
https://www.youtube.com/watch?v=X-0R7Q_vhmw
Windows Spice Guest Drivers and vdAgent for clipboard sharing
All Drivers: https://spice-space.org/download.html
vdAgent only: https://spice-space.org/download/windows/vdagent/
Remember to Add Channel: https://www.reddit.com/r/linux/comments/asw4wk/to_all_you_virtmanager_and_spice_display_users/
Back
Sources
Virt Manager: https://virt-manager.org
Virt Manager: https://www.youtube.com/watch?v=jLRmVNWOrgo
Virtualization: https://www.youtube.com/watch?v=E3azDp1K8X0
What is QEMU: https://www.youtube.com/watch?v=OhUJeuviwhE
Gaming Virt Manager: https://www.youtube.com/watch?v=HXgQVAl4JB4
Add LXC Contaner: https://www.linuxjournal.com/content/running-gnome-container
Privacy Policy © MELDCO APS | skovsgaardsparken 6 | 8362 hoerning | E-mail: info@meldco.dk | VAT ID: 34576149 244084