kvm
1/18/2025 6:07:27 PM in Japan
kvm apt-get install kvm bridge-utils virt-manager virsh list or virsh list --all virsh start domain virsh console domain virsh shutdown domain
virt install example - deiban 11
virt-install \ --name debian11 \ --ram 768 \ --disk path=/var/kvm/images/debian11.img,size=8 \ --vcpus 2 \ --os-type linux \ --os-variant debian9 \ --network bridge=br0 \ --graphics none \ --console pty,target_type=serial \ --location 'http://ftp.jaist.ac.jp/pub/Linux/debian/dists/bullseye/main/installer-amd64/' \ --extra-args 'console=ttyS0,115200n8 serial'
virt clone example
# virt-clone --original deiban11 --name debian11-web --file /var/kvm/images/debian11-web.img Allocating 'debian-11-www.img' | 8.0 GB 00:00:58 Clone 'debian11-www' created successfully. # virsh setmaxmem debian11-www 768M --config