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

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.
主站蜘蛛池模板: 裕民县| 乐都县| 三穗县| 房山区| 正镶白旗| 阿瓦提县| 禄丰县| 台江县| 永安市| 保德县| 海原县| 咸宁市| 马边| 咸丰县| 会东县| 梧州市| 宝坻区| 新乡市| 砚山县| 根河市| 龙南县| 合江县| 乌鲁木齐县| 如皋市| 淅川县| 黎川县| 固镇县| 武隆县| 古丈县| 嘉兴市| 霍林郭勒市| 鹤庆县| 大新县| 蓬安县| 进贤县| 濮阳市| 桐城市| 策勒县| 新安县| 石台县| 巴马|