<div dir="auto">Short answer: No, you cannot run virtual ARM using KVM on physical x86.<div dir="auto"><br></div><div dir="auto">Long answer: You typically need qemu emulator build specifically for the hardware of which you are trying to run the image from as a lot of the time the kernel isn't generic enough for a different board. Last I checked there was no specific qemu r-pi emulator, but there may be one now.</div><div dir="auto"><br></div><div dir="auto">I hardly ever use VMs these days, I use a custom build kernel (for 4KB pages), and use containers instead if I only need to test/configure the userspace part.</div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, 22 Aug 2018, 15:19 Brenton Earl, <<a href="mailto:brent@exitstatusone.com">brent@exitstatusone.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, 2018-08-22 at 09:10 +0200, Fabian Arrotin wrote:<br>
> On 21/08/18 21:53, Brenton Earl wrote:<br>
> > Hello,<br>
> > <br>
> > I am trying to boot the Raspberry Pi image in qemu KVM on<br>
> > CentOS7.  I<br>
> > converted the image to a qcow2 file system, extracted the /boot<br>
> > directory and tried to boot.<br>
> > <br>
> > I am using the following command:<br>
> > <br>
> > $ sudo virt-install --name centos7_armhfp \<br>
> >  --memory 4096  \<br>
> >  --boot kernel=/var/lib/libvirt/armhfp-boot/boot/vmlinuz-4.14.28-<br>
> > 201.el7.centos.armv7hl,initrd=/var/lib/libvirt/armhfp-<br>
> > boot/boot/initramfs-4.14.28-<br>
> > 201.el7.centos.armv7hl.img,kernel_args="console=ttyAMA0 rw<br>
> > root=/dev/sda3" \<br>
> >  --disk /var/lib/libvirt/images/CentOS-Userland-7-armv7hl-Generic-<br>
> > Minimal-1708-guest.qcow2 \<br>
> >  --import \<br>
> >  --arch armv7l \<br>
> >  --machine virt \<br>
> >  --os-variant centos7.0<br>
> > <br>
> > I get the following error:<br>
> > <br>
> > Starting install...<br>
> > ERROR    unsupported configuration: qemu-xhci not supported in this<br>
> > QEMU binary<br>
> > Domain installation does not appear to have been successful.<br>
> > If it was, you can restart your domain by running:<br>
> >   virsh --connect qemu:///system start centos7_armhfp<br>
> > otherwise, please restart your installation.<br>
> > <br>
> > <br>
> > I am following this tutorial that should technically work on all<br>
> > architectures if modified to fit:<br>
> > <br>
> > <a href="https://arrfab.net/posts/2017/Sep/29/using-centos-7-armhfp-vm-on-ce" rel="noreferrer noreferrer" target="_blank">https://arrfab.net/posts/2017/Sep/29/using-centos-7-armhfp-vm-on-ce</a><br>
> > ntos<br>
> > -7-aarch64/<br>
> > <br>
> > <br>
> > What am I doing wrong?  I searched the web a bit but found no<br>
> > significant results.<br>
> > <br>
> > I tried to boot with the generic and the pi images with the same<br>
> > error<br>
> > output.  I feel like I am missing something simple because I am<br>
> > used to<br>
> > using virt-manager instead of the command line to install virtual<br>
> > machines.<br>
> > <br>
> > Thanks,<br>
> > <br>
> <br>
> Just to be sure : you're trying that on a aarch64 kvm host, not on a<br>
> x86_64 one, right ? (I prefer asking the obvious thing first)<br>
<br>
I am trying to do so on a x86_64 Centos 7 host.  Is there not a way to<br>
run Centos ARM on this architecture within a virtual machine?  I<br>
skipped the relevant parts of the how to in order to get KVM working. <br>
For example, I skipped installing AAVMF and used qemu-system-arm<br>
instead.<br>
<br>
> <br>
> _______________________________________________<br>
> Arm-dev mailing list<br>
> <a href="mailto:Arm-dev@centos.org" target="_blank" rel="noreferrer">Arm-dev@centos.org</a><br>
> <a href="https://lists.centos.org/mailman/listinfo/arm-dev" rel="noreferrer noreferrer" target="_blank">https://lists.centos.org/mailman/listinfo/arm-dev</a><br>
-- <br>
Brenton Earl <<a href="mailto:brent@exitstatusone.com" target="_blank" rel="noreferrer">brent@exitstatusone.com</a>>_______________________________________________<br>
Arm-dev mailing list<br>
<a href="mailto:Arm-dev@centos.org" target="_blank" rel="noreferrer">Arm-dev@centos.org</a><br>
<a href="https://lists.centos.org/mailman/listinfo/arm-dev" rel="noreferrer noreferrer" target="_blank">https://lists.centos.org/mailman/listinfo/arm-dev</a><br>
</blockquote></div>