- 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.
推薦閱讀
- Objective-C Memory Management Essentials
- Python數據分析入門與實戰
- 零起步玩轉掌控板與Mind+
- Learning RxJava
- 精通搜索分析
- Spring Boot+Spring Cloud+Vue+Element項目實戰:手把手教你開發權限管理系統
- 跟小海龜學Python
- Java設計模式及實踐
- C++面向對象程序設計習題解答與上機指導(第三版)
- Java系統化項目開發教程
- Getting Started with LLVM Core Libraries
- 愛上micro:bit
- Clojure for Machine Learning
- Python期貨量化交易實戰
- 網絡數據采集技術:Java網絡爬蟲實戰