Arm Cortex A-72 Emulator not able to configure
Hi All,
I’m new to Qemu Environment. I was trying to setup a Arm (64 bit) emulator for getting hands-on and need to setup an development environment. I was not able to find any document or any working article for setting up the ARM Emulator using KVM. Can someone help me to point in right direction to proceed?
can this be achieved in Nested Virtualization?
Thanks,
Karthi
Quoted 6 lines · karthi mohanraj
Hi All,
I’m new to Qemu Environment. I was trying to setup a Arm (64 bit) emulator for getting hands-on and need to setup an development environment. I was not able to find any document or any working article for setting up
the ARM Emulator using KVM. Can someone help me to point in right direction to proceed?
https://translatedcode.wordpress.com/2017/07/24/installing-debian-on-qemus-64-bit-arm-virt-board/
To use KVM on an Arm host you should just be able to pass "-cpu host -enable-kvm" instead of "-cpu cortex-53" (by default it will use emulation, which will work but be slower).
Quoted 1 line
can this be achieved in Nested Virtualization?
You'll need to be clearer about what you mean here, but in general nested virt is not yet implemented for arm hosts.
thanks
-- PMM
Hi Peter,
I have tried the blog post which you shared but i’m getting some error as Virt type not supported.
qemu-system-arm -M virt -m 1024 -cpu cortex-a53 -kernel installer-linux -initrd installer-initrd.gz -drive if=none,file=hda.qcow2,format=qcow2,id=hd -device virtio-blk-pci,drive=hd -netdev user,id=mynet -device virtio-net-pci,netdev=mynet -nographic -no-reboot
(process:3246): GLib-WARNING **: gmem.c:483: custom memory allocation vtable not supported
qemu-system-arm: mach-virt: CPU cortex-a53 not supported
Some times i’m getting error as pic-virtio device not supported.
I would give some picture on what i’m trying to achieve.
I have a host with CentOS 7 (x86 arch) and in that i have install Qemu and KVM. In this server, I’m trying to install a VM with Arm64 and setup a development environment for ARM.
Regards,
Karthi
Quoted 23 lines · Peter Maydell
Quoted 6 lines · karthi mohanraj
Hi All,
I’m new to Qemu Environment. I was trying to setup a Arm (64 bit) emulator for getting hands-on and need to setup an development environment. I was not able to find any document or any working article for setting up
the ARM Emulator using KVM. Can someone help me to point in right direction to proceed?https://translatedcode.wordpress.com/2017/07/24/installing-debian-on-qemus-64-bit-arm-virt-board/
To use KVM on an Arm host you should just be able to pass "-cpu host -enable-kvm" instead of "-cpu cortex-53" (by default it will use emulation, which will work but be slower).Quoted 1 line
can this be achieved in Nested Virtualization?
You'll need to be clearer about what you mean here, but in general nested virt is not yet implemented for arm hosts.
thanks
-- PMM
Quoted 9 lines · karthi mohanraj
Hi Peter,
I have tried the blog post which you shared but i’m getting some error as Virt type not supported.
qemu-system-arm -M virt -m 1024 -cpu cortex-a53 -kernel installer-linux -initrd installer-initrd.gz -drive if=none,file=hda.qcow2,format=qcow2,id=hd -device virtio-blk-pci,drive=hd -netdev user,id=mynet -device virtio-net-pci,netdev=mynet -nographic -no-reboot
(process:3246): GLib-WARNING **: gmem.c:483: custom memory allocation vtable not supported
qemu-system-arm: mach-virt: CPU cortex-a53 not supported
The blog post's command lines use qemu-system-aarch64. You're using qemu-system-arm, which is for 32-bit guest CPUs. Use the command lines it tells you to and you should have better success...
thanks
-- PMM
Hi Peter,
As i have gone through CentOS documentation qemu-system-arm is the only binary which is used for 64 bit and 32 bit arm emulation. There is no separate qemu-system-aarch64 binary in CentOS. Please correct me if i’m wrong.
Regards,
Karthi
Quoted 21 lines · Peter Maydell
Quoted 9 lines · karthi mohanraj
Hi Peter,
I have tried the blog post which you shared but i’m getting some error as Virt type not supported.
qemu-system-arm -M virt -m 1024 -cpu cortex-a53 -kernel installer-linux -initrd installer-initrd.gz -drive if=none,file=hda.qcow2,format=qcow2,id=hd -device virtio-blk-pci,drive=hd -netdev user,id=mynet -device virtio-net-pci,netdev=mynet -nographic -no-reboot
(process:3246): GLib-WARNING **: gmem.c:483: custom memory allocation vtable not supported
qemu-system-arm: mach-virt: CPU cortex-a53 not supportedThe blog post's command lines use qemu-system-aarch64. You're using qemu-system-arm, which is for 32-bit guest CPUs. Use the command lines it tells you to and you should have better success...
thanks
-- PMM
Quoted 4 lines · karthi mohanraj
Hi Peter,
As i have gone through CentOS documentation qemu-system-arm is the only binary which is used for 64 bit and 32 bit arm emulation. There is no separate qemu-system-aarch64 binary in CentOS. Please correct me if i’m wrong.
I'm pretty sure you're wrong. In particular the error message you quote is saying there's no support for the 64-bit cortex-a53 CPU in the binary you're using, which means it's the wrong binary. Either it's too old a version of QEMU, or Centos is like every other distro and you want qemu-system-aarch64.
thanks
-- PMM
Ok, thanks for the clarification. let me check this out and try it.
Thanks,
Karthi
Quoted 20 lines · Peter Maydell,
Quoted 4 lines · karthi mohanraj
Hi Peter,
As i have gone through CentOS documentation qemu-system-arm is the only
binary which is used for 64 bit and 32 bit arm emulation. There is no separate qemu-system-aarch64 binary in CentOS. Please correct me if i’m wrong.
I'm pretty sure you're wrong. In particular the error message you quote is saying there's no support for the 64-bit cortex-a53 CPU in the binary you're using, which means it's the wrong binary. Either it's too old a version of QEMU, or Centos is like every other distro and you want qemu-system-aarch64.
thanks
-- PMM