官术网_书友最值得收藏!

How to do it...

To start a new virtual machine using the qemu-system utility, perform the following steps:

  1. Start a new QEMU virtual machine using the x86_64 CPU architecture: 
root@kvm:~# qemu-system-x86_64 -name debian -vnc 146.20.141.254:0 -cpu Nehalem -m 1024 -drive     format=raw,index=2,file=debian.img -daemonize    
root@kvm:~#
  1. Ensure that the instance is running: 
root@kvm:~# pgrep -lfa qemu
3527 qemu-system-x86_64 -name debian -vnc 146.20.141.254:0 -m 1024 -drive format=raw,index=2,file=debian.img -daemonize
root@kvm:~#
  1. Terminate the Debian QEMU instance:   
root@kvm:~# pkill qemu    
root@kvm:~#
  1. Start a new QEMU instance using the prebuilt CentOS image: 
root@kvm:~# qemu-system-x86_64 -vnc 146.20.141.254:0 -m 1024 -hda CentOS-7-x86_64-GenericCloud.qcow2 -daemonize    
root@kvm:~#
  1.  Ensure that the instance is running: 
root@kvm:~# pgrep -lfa qemu
3546 qemu-system-x86_64 -vnc 146.20.141.254:0 -m 1024 -hda CentOS-7-x86_64-GenericCloud.qcow2 -daemonize
root@kvm:~#
  1. Terminate the CentOS QEMU instance:   
root@kvm:~# pkill qemu    
root@kvm:~#
Make sure to replace the IP address of the -vnc parameter with the one from your host machine.
主站蜘蛛池模板: 渑池县| 高淳县| 水富县| 湖州市| 黄浦区| 古交市| 平舆县| 竹山县| 株洲市| 内黄县| 于都县| 溧阳市| 垣曲县| 仪陇县| 海阳市| 通辽市| 石嘴山市| 红河县| 启东市| 项城市| 宝坻区| 西昌市| 广饶县| 银川市| 广饶县| 钟祥市| 江达县| 福清市| 达州市| 治多县| 曲周县| 略阳县| 寿阳县| 来安县| 洱源县| 平顺县| 安泽县| 鲜城| 清徐县| 新竹县| 读书|