From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joel Schopp Subject: Re: KVM on ARM64 Date: Tue, 5 Aug 2014 09:18:22 -0500 Message-ID: <53E0E7AE.90402@amd.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit To: Mathew Li , KVM Return-path: Received: from mail-bn1blp0186.outbound.protection.outlook.com ([207.46.163.186]:49867 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752121AbaHEOUn (ORCPT ); Tue, 5 Aug 2014 10:20:43 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: 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.