- KVM Virtualization Cookbook
- Konstantin Ivanov
- 208字
- 2021-07-02 22:07:04
Getting ready
To use this recipe, we need to have the qemu-img utility installed. If you followed the steps in the first recipe, you should have that covered. To check what image types are supported on your Linux distribution, run the following command:
root@kvm:~# qemu-img -h | grep Supported
Supported formats: bochs vvfat rbd vpc parallels tftp ftp ftps raw https qcow dmg http qcow2 quorum null-aio cloop vdi iscsi null-co vhdx blkverify file vmdk host_cdrom blkdebug host_device sheepdog qed nbd
root@kvm:~#
From the preceding output, we can see that there are many supported images on the test system that we are using. Make sure that your QEMU version supports the raw image type, as it's the default and that is what we are going to use in this recipe. One of the most commonly used image type is qcow2, which supports copy on write, compression, encryption, and snapshotting. We are going to leverage that in later recipes.
Please note that even though QEMU supports multiple formats, that does not necessarily mean that you can run virtual machines on them. However, qemu-img can be used to convert different images to raw and qcow2 formats. For best performance, use raw or qcow2 image formats.
推薦閱讀
- Building Modern Web Applications Using Angular
- Visual FoxPro程序設計教程(第3版)
- Android開發精要
- Cross-platform Desktop Application Development:Electron,Node,NW.js,and React
- 深入理解Java7:核心技術與最佳實踐
- Windows Server 2012 Unified Remote Access Planning and Deployment
- Elasticsearch for Hadoop
- Serverless架構
- 學Python也可以這么有趣
- 表哥的Access入門:以Excel視角快速學習數據庫開發(第2版)
- RabbitMQ Essentials
- 大數據分析與應用實戰:統計機器學習之數據導向編程
- Lighttpd源碼分析
- PLC應用技術(三菱FX2N系列)
- Unity 3D腳本編程:使用C#語言開發跨平臺游戲