- 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.
推薦閱讀
- Learning Single:page Web Application Development
- Dynamics 365 for Finance and Operations Development Cookbook(Fourth Edition)
- Implementing Modern DevOps
- 小學生C++創意編程(視頻教學版)
- Linux Device Drivers Development
- 基于Struts、Hibernate、Spring架構的Web應用開發
- Visual Basic程序設計實驗指導(第二版)
- Python算法指南:程序員經典算法分析與實現
- Learning Continuous Integration with TeamCity
- Extreme C
- Mastering Apache Camel
- 精益軟件開發管理之道
- MySQL核心技術與最佳實踐
- Python深度學習與項目實戰
- 流暢的Python