KVM
Links
virsh -c 'qemu+ssh://[email protected]/system?socket=/var/run/libvirt/libvirt-sock' net-list --all
Install libvirt and kvm
Install libvirt on Centos 8
yum groupinstall "Virtualization Host"
systemctl start libvirtd
systemctl enable libvirtd
virsh version
Allow QEMU/KVM Commands Without Root:
usermod -aG libvirt $(whoami)
yum install virt-install
Install libvirt on Ubuntu
Add user to group libvirt and kvm
Verify Installation
Install libvirt on Alpine
Create file /etc/polkit-1/localauthority/50-local.d/50-libvirt-ssh-remote-access-policy.pkla:
Optional addgroup libvirt
For client:
apk add libvirt libvirt-client py3-libvirt
apk add qemu-img qemu-system-x86_64
How view output from vm
How to Setup QEMU Output to Console and Automate Using Shell Script
-nographic does the same as "-serial stdio" and also hides a QEMU's graphical window.
-serial stdio redirects the virtual serial port to the host's terminal input/output. You will see a welcome string after a successful boot.
-serial stdio
-monitor none
Networks
NAT-BASED Network
Routed Network
Isolated Network
Using existing Bridge
Command line
MacOS Connect to KVM Client Desktop
Configuring Virtual Machines with virsh
Connect to Vmware
virsh -c esx://192.168.180.45?no_verify=1
virsh list
virsh list --all
virsh dumpxml instance-00000fc5
virsh dommemstat instance-0000000d
virsh dominfo instance-00000032
virsh vcpuinfo instance-0000000d
virsh vcpucount instance-0000000d
How read file img with partition
fdisk -l config.img
mount -o ro,loop,offset=32256 config.img /mnt/

Можно с использованием losetup -f -P hdd.img
How To Mount ISOs And Other Image File Types In Linux?
Convert format disks
disk utilities
ioping and pgbench
How To Install IOPing on CentOS 7
Тестирование IOPS дисков в Linux
How to Check Linux VPS/Server Disk I/O Speed via this Simple Commands
ioping и pgbench
ioping -s4k -S1G -L -A -D -i0 -q -c100000 /dev/sda
ioping -s4k -S10G -A -D -i0 -q -c100000 /dev/sda
Python libvirt
GITHUB examples libvirt-python
/usr/libexec/qemu-kvm --cpu help
pgrep -lfa qemu
virsh
Connect
Install
Snapshot
Virsh console
Linux kvm exit from a virsh console command
Virsh rename domain
Virsh change domain boot disk
Last updated