[Arm-dev] Arm Development Using QEMU

Thu Oct 4 08:51:33 UTC 2018
karthi mohanraj <karthimohanraj.in at gmail.com>

Hi Marcin & Johnny, 
Thanks for the reply. My requirement is to setup a VM with aarch64(64 bit arm architecture) on x86_64 host.
I have tried installing through virt-manager but i’m getting crash when starting the VM. I have attached the error below. In this, centos-7.2.img is built using virt-builder with lentos-7.2 for the aarch64. 
##qemu-system-arm -m 1024 -machine vexpress-a9    -drive file=centos-7.2.img,format=raw,if=ide
(process:12672): GLib-WARNING **: gmem.c:483: custom memory allocation vtable not supported
pulseaudio: set_sink_input_volume() failed
pulseaudio: Reason: Invalid argument
pulseaudio: set_sink_input_mute() failed
pulseaudio: Reason: Invalid argument
qemu: fatal: Trying to execute code outside RAM or ROM at 0x04000000

R00=00000000 R01=00000000 R02=00000000 R03=00000000
R04=00000000 R05=00000000 R06=00000000 R07=00000000
R08=00000000 R09=00000000 R10=00000000 R11=00000000
R12=00000000 R13=00000000 R14=00000000 R15=04000000
PSR=400001d3 -Z-- A svc32
s00=00000000 s01=00000000 d00=0000000000000000
s02=00000000 s03=00000000 d01=0000000000000000
s04=00000000 s05=00000000 d02=0000000000000000
s06=00000000 s07=00000000 d03=0000000000000000
s08=00000000 s09=00000000 d04=0000000000000000
s10=00000000 s11=00000000 d05=0000000000000000
s12=00000000 s13=00000000 d06=0000000000000000
s14=00000000 s15=00000000 d07=0000000000000000

if i use virtio for the drive interface. i’m getting below error. 

##qemu-system-arm -m 1024 -machine vexpress-a9    -drive file=centos-7.2.img,format=raw,if=virtio

(process:14847): GLib-WARNING **: gmem.c:483: custom memory allocation vtable not supported
pulseaudio: set_sink_input_volume() failed
pulseaudio: Reason: Invalid argument
pulseaudio: set_sink_input_mute() failed
pulseaudio: Reason: Invalid argument
qemu-system-arm: -drive file=centos-7.2.img,format=raw,if=virtio: No 'PCI' bus found for device 'virtio-blk-pci'


Regards,
karthi

On 09/30/2018 08:08 AM, Marcin Juszkiewicz wrote:
> W dniu 28.09.2018 o 12:42, karthi mohanraj pisze:
>> Hi All,
>>
>> I’m a newbie to arm architecture. I want to setup a development VM
>> with ARMv8 board using QEMU/KVM on CentOS based host. Is there any
>> documentation available to try out?
>>
>> Or is there any other easy way to achieve this as i need to have a
>> Development setup for CentOS?
>>
>> Please suggest me if any other better way to achieve this.
> Easiest? Install AAVMF (uefi firmware for armv8), virt-manager and
> qemu-system-arm.
> 
> Run Virt-manager, choose 'new VM', open architecture chooser, select
> aarch64. Give it hdd, install iso and go.

You can also follow this guide to install a 32 bit VM on an aarch64
host, if 32 bit arm is what you want to dev on:

https://www.arrfab.net/posts/2017/Sep/29/using-centos-7-armhfp-vm-on-centos-7-aarch64/ <https://www.arrfab.net/posts/2017/Sep/29/using-centos-7-armhfp-vm-on-centos-7-aarch64/>

Thanks,
Johnny Hughes

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/arm-dev/attachments/20181004/e4ad575f/attachment-0006.html>