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

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.

主站蜘蛛池模板: 河津市| 江津市| 小金县| 阿合奇县| 苏尼特右旗| 化德县| 彩票| 昌吉市| 丰原市| 横山县| 长寿区| 舞钢市| 前郭尔| 金沙县| 临汾市| 遂宁市| 大石桥市| 陇川县| 宜州市| 新余市| 枣强县| 莱阳市| 松桃| 阳泉市| 子洲县| 德格县| 古交市| 吉水县| 象州县| 彝良县| 永登县| 合作市| 苏尼特右旗| 西青区| 桐庐县| 石狮市| 常宁市| 大新县| 通城县| 景德镇市| 张家界市|