qemu-img create -f qcow2 /vm/sys/windows/win10-ltsc-template-sys.qcow2 60G virt-install \ --name win10-ltsc-template \ --virt-type kvm \ --machine q35 \ --vcpus 8 \ --ram 16384 \ --cpu mode=host-passthrough \ --os-variant win10 \ --disk path=/vm/sys/windows/win10-ltsc-template-sys.qcow2,format=qcow2,bus=virtio,cache=none,discard=unmap \ --cdrom /vm/data/iso/win10-ltsc-19044.7058.260311-zh-cn.iso \ --disk path=/vm/data/iso/virtio-win-0.1.285.iso,device=cdrom,bus=sata,readonly=on \ --network bridge=br0,model=virtio \ --graphics vnc,listen=127.0.0.1 \ --video vga \ --channel unix,target_type=virtio,name=org.qemu.guest_agent.0 \ --sound none \ --noautoconsole \ --autostart virsh shutdown win10-ltsc-template virsh domstate win10-ltsc-template virsh dumpxml --inactive win10-ltsc-template > /root/win10-ltsc-template.xml virsh edit win10-ltsc-template virsh start win10-ltsc-template virsh destroy win10-ltsc-template python3 vm_manager.py clone-windows \ --template win10-ltsc-template \ --name win10-ltsc-192-168-11-164 \ --ip 192.168.11.164