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

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.
主站蜘蛛池模板: 灵武市| 合肥市| 贵港市| 武穴市| 荣昌县| 林芝县| 聂拉木县| 肃南| 盘锦市| 邢台县| 航空| 盘锦市| 唐山市| 彭水| 施甸县| 佛冈县| 盐津县| 汤阴县| 济南市| 松桃| 泾阳县| 德安县| 军事| 炉霍县| 宿松县| 花莲县| 神农架林区| 建水县| 平阴县| 贵德县| 黎川县| 连云港市| 碌曲县| 靖宇县| 蕉岭县| 阿瓦提县| 南丰县| 洪湖市| 弥勒县| 澎湖县| 康平县|