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

There's more...

As an alternative to directly running the qemu-system-* commands, on Ubuntu systems there's the qemu-kvm package that provides the /usr/bin/kvm binary. This file is a wrapper to the qemu-system-x86_64 command, and it passes the -enable-kvm parameter to it automatically. 

To install the package and use the kvm command instead, run the following:

root@kvm:~# apt install qemu-kvm
...
root@kvm:~# kvm -name debian -vnc 146.20.141.254:0 -cpu Nehalem -m 1024 -drive format=raw,index=2,file=debian.img -daemonize
root@kvm:~# pgrep -lfa qemu
25343 qemu-system-x86_64 -enable-kvm -name debian -vnc 146.20.141.254:0 -cpu Nehalem -m 1024 -drive format=raw,index=2,file=debian.img -daemonize
root@kvm:~#

You might have noted that starting and stopping QEMU/KVM instances is somewhat of a manual process, especially having to kill the instance process in order to stop it. In Chapter 2, Using libvirt to Manage KVM, we are going to walk you through a set of recipes that will make managing the life cycle of KVM virtual machines much easier, with the userspace tools that the libvirt package provides.

主站蜘蛛池模板: 出国| 水城县| 中方县| 交口县| 泽库县| 虎林市| 公主岭市| 句容市| 临汾市| 望城县| 隆尧县| 西林县| 蕉岭县| 萨嘎县| 渝中区| 大理市| 江川县| 漳平市| 兴和县| 丘北县| 莎车县| 金坛市| 色达县| 赣州市| 仁布县| 芦溪县| 和政县| 伊春市| 石家庄市| 堆龙德庆县| 建水县| 淳安县| 临朐县| 江陵县| 双桥区| 游戏| 讷河市| 留坝县| 海丰县| 宜丰县| 孟连|