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

  • KVM Virtualization Cookbook
  • Konstantin Ivanov
  • 164字
  • 2021-07-02 22:07:09

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.

主站蜘蛛池模板: 汾阳市| 南木林县| 彰化市| 双柏县| 威远县| 三原县| 蒙山县| 阿拉善左旗| 泾源县| 九龙坡区| 江永县| 吉木乃县| 淮阳县| 连山| 永德县| 合川市| 淳安县| 乐东| 开化县| 八宿县| 繁昌县| 阳东县| 商都县| 上蔡县| 沙田区| 阜平县| 呼玛县| 武冈市| 武城县| 旺苍县| 泸溪县| 郁南县| 聊城市| 敖汉旗| 克什克腾旗| 苍南县| 收藏| 奇台县| 温泉县| 新巴尔虎左旗| 博客|