flowchart TB;
subgraph c[Container]
direction BT;
c1[Hardware]-->c5[Host OS];
c5 --> c2[Container Manager];
end
subgraph b[Type 2 Hypervisor]
direction BT;
b1[Hardware]-->b5[Host OS];
b5 --> b2[Hypervisor];
subgraph b3[Guest OS]
direction LR
b31( );b32( );
end
b2 --> b31;
b2 --> b32;
end
subgraph a[Type 1 Hypervisor]
direction BT;
a1[Hardware]-->a2[Hypervisor];
subgraph a34[Guest OS]
a341( );a342( );
end
a2 --> a341;
a2 --> a342;
end
- Virt-Manager with QEMU and KVM is a faster and more professional option for Type 2 Hypervisor. It also has a command line method to manage any vms.
sudo apt-get install qemu-kvm virt-manager virtinst bridge-utils cpu-checker libvirt-daemon
sudo systemctl status libvirtd
kvm-ok
- Always install windows image without network, so you can skip some parts.
- Reduce the UI latency in virt-manager, I had done the following changes,
1. Make default storage in a SSD/NVME not HDD
virsh pool-list
virsh pool-destroy default
virsh pool-undefine default
sudo mkdir /media/yui/Disk/virtman
virsh pool-define-as --name default --type dir --target /media/yui/Disk/virtman
virsh pool-autostart default
virsh pool-start default
##########################
2. Assign more RAM, CPU and Space
##########################
3. Customize configuration before install, then
Video QXL -> Model:Virtio -> tick 3D acceleration
##########################
4. Customize Edit:Preferences
New VM
Graphics type: Spice
Add Spice USB Redirection: Yes
Storage format: Raw (not QCOW2)
CPU default: Copy host CPU definition
- Install Mac OS
git clone https://github.com/foxlet/macOS-Simple-KVM.git
cd macOS-Simple-KVM
./jumpstart.sh --catalina
qemu-img create -f qcow2 macOS.qcow2 50G
vim basic.sh
### Add
-drive id=SystemDisk,if=none,file=macOS.qcow2 \
-device ide-hd,bus=sata.4,drive=SystemDisk \
###
./basic.sh # Don't panic the mouse will work later
sudo ./make.sh --add
### Then go to Add hardware → Storage → add macOS.qcow2
- Allow update without license.
# add line to /etc/apt/sources.list
deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription
# add line to /etc/apt/sources.list.d/pve-enterprise.list
deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription
#### debian 10 buster to 11 bullseye