-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OT (but not that much) : Invalid accelerator kvm / kvm run failed , Function not implemented ERRORS trying to virtualize a guest OS on the ARM Chromebook running with a relatively recent kernel version and KVM enabled #9
Comments
From https://lists.gnu.org/archive/html/qemu-devel/2020-09/msg02074.html
Can you try using an older version of QEMU? Like 4.x? Thanks! |
I've asked to the ML and the qemu developers said that I should use qemu 5.1. So,I have compiled and installed and I ran it using the following parameters :
I think to be close,but it still does not work : do you know what could be wrong ? |
Now EFI shell booted. That means your KVM patched worked. Now the problem is with your boot disk. On QEMU start, you might try press ESC to enter EFI setting, then manually select the EFI file in your FreeBSD boot disk. I don't have much experience with booting FreeBSD, so you might have to research yourself. |
I tried a different set of parameters :
but the error is always there. |
IDK. But this is related to boot problem inside the VM (EFI failed to find boot partition), and not related to KVM or probably command line problem. |
I've found the solution. Is here : utmapp/UTM#2333 (comment) |
Great to see it works for you! |
Hello.
I see that you are experienced with qemu-kvm,I want to try to ask you what do you think about what I've got from the project that I've completed,but that does not work.
I've enabled KVM on a more recent kernel version,to be precise on the 5.4.244,on the old ARM Chromebook model xe303c12,following mainly this tutorial :
http://www.virtualopensystems.com/en/solutions/guides/kvm-on-chromebook/
This is how I have achieved the goal (or at least I think that I did) :
I have formatted my sd card following the procedure explained by the v.o.s website.
In the u boot source directory I did :
$ sudo ./scripts/sdcard.sh /dev/sdX
This erased all data and created 4 partitions in the sd-card, along with copying the u-boot binary to the first partition:
https://github.com/quarkscript/linux-armv7-xe303c12-only/files/11615040/5.4.244-kvm.zip
I have decompressed it and I've got the zImage file that was stored inside the deb file.
Since I want to use u-boot,I have converted zImage into uImage using the following command :
mkimage -A arm -O linux -T kernel -C none -a 0x80008000 -e 0x80008000 -n "Linux kernel" -d zImage uImage
https://drive.google.com/u/0/uc?id=1KSgE-3G2GEBzcYhk_JleVYWl6m061GdI&export=download
but I haven't used btrfs fs,but ext4. And I have extended the space on the partition from 1882M to 200 GB.
sudo dd if=nv_uboot-snow.kpart of=/dev/sdX1 (nv_uboot-snow.kpart taken from the vos website)
I wrote a little bash script that executes the command line :
dmesg > /root/Desktop/log
as soon as the desktop environment started. This is the content of the log file :
https://pastebin.ubuntu.com/p/GQ59sqt72v/
I read "kvm: Hyp mode initialized successfully". So I'm sure that kvm is working on the kernel version that I've used (5.4.244),infact :
OK,now let's talk about how to virtualize a GUEST os.
I've installed virt-manager and I tried to create a new virtual machine. With my big surprise,I saw the warning :
KVM is not available. This may mean the KVM package is not installed or the KVM kernel modules are not loaded.
What could be the cause ? KVM seems to be running great. It is detected by kvm-ok and even virt-manager can establish a connection to QEMU / KVM. The qemu version installed is 5.2.0.
I conducted some further experiments :
In this example I've used qemu 5.2.0 installed by default by the devuan 4 :
In this example I've compiled qemu-system-arm on ubuntu 12.04 as described by the vos tutorial and then I've copied the libraries produced on ubuntu 12.04 to the devuan 4 + 5.4 kernel installation :
At this point I don't know what to do to enable the kvm acceleration,but I have a vague idea about the reason why it does not work.
The virtual open systems developers says :
In my opinion :
In the first experiment,KVM does not work because qemu 5.2.0 is too new and / or it is not patched by v.s.o developers.
In the second experiment,KVM does not work because the qemu version used by v.o.s is very old and it is not compatible with the kernel that I'm using, 5.4.244.
My final goal is to virtualize FreeBSD on the ARM Chromebook,but I think that I will never be able to do this. Maybe,with your help I will be able to virtualize Ubuntu. Maybe.
I've also got an answer by Peter Maidell,a very known qemu-kvm developer,which says :
I don't know if he read well what I said or if I didn't understand something,BUT :
point 1)
On the virtual open systems website they used the vexpress-a15 board. You can read by yourself what they say :
point 2)
On the devuan 4 host os that I have installed I'm using kernel 5.4,that's lower than 5.7,so the qemu support for it should be there.
point 3)
I tried -M virt like this :
but I've got the same error : qemu-system-arm: invalid accelerator kvm.
The text was updated successfully, but these errors were encountered: