- 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.
推薦閱讀
- Android和PHP開發(fā)最佳實(shí)踐(第2版)
- 零基礎(chǔ)學(xué)Scratch少兒編程:小學(xué)課本中的Scratch創(chuàng)意編程
- 區(qū)塊鏈架構(gòu)與實(shí)現(xiàn):Cosmos詳解
- Android 應(yīng)用案例開發(fā)大全(第3版)
- 精通Python設(shè)計(jì)模式(第2版)
- Jupyter數(shù)據(jù)科學(xué)實(shí)戰(zhàn)
- Visual FoxPro程序設(shè)計(jì)習(xí)題集及實(shí)驗(yàn)指導(dǎo)(第四版)
- Visual C++開發(fā)入行真功夫
- Scratch3.0趣味編程動手玩:比賽訓(xùn)練營
- Quantum Computing and Blockchain in Business
- JavaScript機(jī)器人編程指南
- Visual FoxPro 6.0程序設(shè)計(jì)
- Learning Nessus for Penetration Testing
- Vue.js 3應(yīng)用開發(fā)與核心源碼解析
- Django Design Patterns and Best Practices