上QQ阅读APP看书,第一时间看更新
How to do it...
To start a KVM instance, ensure that it's running and finally terminate it, execute the following:
- Start a QEMU instance with KVM support:
root@kvm:~# qemu-system-x86_64 -name debian -vnc 146.20.141.254:0 -m 1024 -drive format=raw,index=2,file=debian.img -enable-kvm -daemonize
root@kvm:~#
- Ensure that the instance is running:
root@kvm:~# pgrep -lfa qemu
4895 qemu-system-x86_64 -name debian -vnc 146.20.141.254:0 -m 1024 -drive format=raw,index=2,file=debian.img -enable-kvm -daemonize
root@kvm:~#
- Terminate the instance:
root@kvm:~# pkill qemu
root@kvm:~#