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

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.
主站蜘蛛池模板: 石河子市| 治多县| 江华| 泽普县| 宜宾县| 安庆市| 息烽县| 辛集市| 武城县| 洛浦县| 衡水市| 苍梧县| 苗栗县| 固安县| 顺昌县| 崇左市| 施秉县| 普兰店市| 潼南县| 斗六市| 靖州| 玉龙| 昌江| 怀仁县| 平阳县| 屏东县| 阿勒泰市| 涡阳县| 法库县| 铁岭市| 台南市| 横山县| 马山县| 福贡县| 荥经县| 新昌县| 融水| 永平县| 江西省| 五家渠市| 珠海市|