KVM SCSI格式硬盘无法启动
今天制作openstack镜像,使用scsi格式硬盘启动kvm,无奈启动居然无法读到硬盘,一番折腾后最后终于发现是kvm默认不支持scsi的格式了。
解决方法如下:
http://pve.proxmox.com/wiki/Scsi_boot_(Guest)
Since qemu 1.0, kvm developpers have removed extboot support, so booting guest on scsi in not yet possible anymore.
As workaround, you need to download the lsi .rom. (this rom in not GPL, so we cannot include it in proxmox by default)
2. Unzip it
3. Move the 8xx_64.rom file to /usr/share/kvm
4. Add this line to the VM config file:
args: -option-rom 8xx_64.rom,bootindex=1
原理是部署一个新的bios程序,那个bios可以识别到scsi硬盘。
最后我以这样的命令顺利启动好了:
kvm -m 1024 -drive file=centos58-RAW.img,index=0,if=scsi,format=raw -boot c -net nic -net user -nographic -vnc :1 -option-rom 8xx_64.rom,bootindex=1
转载此文,请注明来自:http://www.cnblogs.com/helloLinux/