On Tue, Aug 5, 2014 at 4:18 PM, Joel Schopp <joel.schopp@xxxxxxx> wrote: > > On 08/04/2014 07:35 PM, Mathew Li wrote: >> Hi, >> >> I have a quick question. How do we add a hard disk to the qemu ARM VM? >> >> I tried: >> >> qemu-system-aarch64 -machine virt -hda disk.img -kernel image -initrd initrd.img >> >> qemu-system-aarch64 -machine virt -sd disk.img -kernel image -initrd initrd.img >> >> qemu-system-aarch64 -machine virt -mtdblock disk.img -kernel image >> -initrd initrd.img >> >> Nothing seems to work. I am not able to see any disk (i.e. dev/sdX) >> inside guest OS. > I've been running something like this: > > qemu-system-aarch64 -smp 1 --enable-kvm -nographic -netdev tap,id=t0,ifname=tap0,script=no,downscript=no,vhost=on -device virtio-net-device,netdev=t0,id=nic0 \ > -kernel /extra/rootfs/boot/Image -drive file=/extra/rootfs.img,id=fs -device virtio-blk-device,drive=fs -m 512 -M virt -cpu host -append "console=ttyAMA0 console=ttyS0 root=/dev/vda" > > > On my system -smp 2 or higher hangs in the guest kernel. The -smp 2 hang issue is probably due to a missing PSCI v0.2 follow-up patch to QEMU, you can try: https://git.linaro.org/people/christoffer.dall/qemu-arm.git/shortlog/refs/heads/psci2-smp-fix [disclaimer: there may be a better fix somewhere on the qemu list, I haven't kept track the last couple of days] -Christoffer -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html