一、安装环境
操作系统:Centos7.1
内核版本:3.10.0-229.el7.x86_64
安装目的:QEMU与块设备
二、qemu安装
git clone git://git.qemu-project.org/qemu.git
cd qemu/
./configure --prefix=/usr/local/qemu --enable-rbd --enable-kvm --enable-debug --enable-vnc --enable-werror make -j8
make install
添加环境变量
vim /etc/profile
注意qemu2.6默认rbd支持关闭。
# qemu-system-x86_64 -drive format=? Supported formats: cloop rbd vvfat http https vpc ftp qed ftps parallels tftp vdi luks blkreplay bochs blkdebug sheepdog null-co null-aio raw qcow2 blkverify host_device vmdk host_cdrom qcow dmg nbd file # qemu-system-x86_64 --version QEMU emulator version 2.6.0, Copyright (c) 2003-2008 Fabrice Bellard