- 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.
推薦閱讀
- 演進式架構(gòu)(原書第2版)
- Apache Oozie Essentials
- Blender 3D Incredible Machines
- Kinect for Windows SDK Programming Guide
- Integrating Facebook iOS SDK with Your Application
- 零基礎(chǔ)趣學(xué)C語言
- 零基礎(chǔ)Java學(xué)習(xí)筆記
- Mastering React
- 移動互聯(lián)網(wǎng)軟件開發(fā)實驗指導(dǎo)
- Angular Design Patterns
- Hacking Android
- Julia High Performance(Second Edition)
- Visual Basic語言程序設(shè)計基礎(chǔ)(第3版)
- XML程序設(shè)計(第二版)
- MATLAB 2020 GUI程序設(shè)計從入門到精通