yalman Posted January 19, 2021 Posted January 19, 2021 Hello all, I get the message "qemu kvm_arm_vcpu_init failed: Invalid argument" which I refer to the source file code "https://git.qemu.org/?p=qemu.git;a=blob;f=cpus.c;hb=refs/ heads / stable-2.11 # l1122" and "https://github.com/qemu/qemu/blob/master/accel/kvm/kvm-all.c " Row 444. I don't know which vCPU feature is expected ... #cat /proc/cpuinfo processor : 0 BogoMIPS : 48.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid CPU implementer : 0x41 CPU architecture: 8 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4 .... is it currently or later even possible to use virtualization? Regards 0 Quote
Igor Posted January 19, 2021 Posted January 19, 2021 19 minutes ago, yalman said: is it currently or later even possible to use virtualization? http://www.shincbm.com/linux/kvm/arm64/2019/03/22/arm64-kvm-armbian.html https://docs.armbian.com/Process_Contribute/ 0 Quote
lanefu Posted January 20, 2021 Posted January 20, 2021 6 hours ago, yalman said: s it currently or later even possible to use virtualization? Yes the 64bit ARM CPUs support virtualization.. it's just not enabled in our kernels... something we should re-evaluate at some point.. You can build a kernel and enable it with the armbian build tools. I've ran VMs in the past, there's a bit of glue involved such as getting the qemu efi bios. Sorry I haven't played with virtualization in about a year. 0 Quote
yalman Posted January 20, 2021 Author Posted January 20, 2021 I found a hothotfix solution without knowing the (side) effects. # 0,1,2,3=Quad-core Cortex-A53 up to 1.4GHz # 4,5=Dual-core Cortex-A72 up to 1.8GHz root@helios64:~# cat /proc/cpuinfo |grep -e processor -e part processor : 0 CPU part : 0xd03 processor : 1 CPU part : 0xd03 processor : 2 CPU part : 0xd03 processor : 3 CPU part : 0xd03 processor : 4 CPU part : 0xd08 processor : 5 CPU part : 0xd08 # always assign the same cpu types to a VM. core 0,1 for the host system virsh edit VM1 ... <vcpu placement='static' cpuset='2-3'>2</vcpu> ... virsh edit VM2 ... <vcpu placement='static' cpuset='4-5'>2</vcpu> ... 2 Quote
lanefu Posted January 21, 2021 Posted January 21, 2021 Yeah good catch. I remember big little causing problems. 0 Quote
yalman Posted January 22, 2021 Author Posted January 22, 2021 the VM dont run stable [ 36.147718] list_del corruption. prev->next should be ffff7ed2b15a4708, but was 00007ed27f654708 [ 36.151265] kernel BUG at lib/list_debug.c:53! [ 36.152900] Internal error: Oops - BUG: 0 [#1] SMP [ 36.154614] Modules linked in: cpufreq_ondemand cpufreq_conservative cpufreq_userspace cpufreq_powersave quota_v2 quota_tree dm_crypt algif_skcipher af_alg nls_ascii nls_cp437 vfat fat aes_ce_blk crypto_simd cryptd aes_ce_cipher ghash_ce gf128mul sha2_ce sha256_arm64 efi_pstore sha1_ce efivars virtio_console evdev qemu_fw_cfg dm_mod nfsd auth_rpcgss nfs_acl lockd grace sunrpc efivarfs virtio_rng rng_core ip_tables x_tables autofs4 ext4 crc16 mbcache jbd2 fscrypto ecb aes_arm64 btrfs zstd_decompress zstd_compress xxhash raid10 raid1 raid0 multipath linear raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c crc32c_generic md_mod virtio_net net_failover virtio_blk failover virtio_pci virtio_mmio virtio_ring virtio [ 36.178371] Process python3 (pid: 725, stack limit = 0x000000002c168d72) [ 36.180788] CPU: 0 PID: 725 Comm: python3 Not tainted 4.19.0-13-arm64 #1 Debian 4.19.160-2 [ 36.183740] Hardware name: QEMU KVM Virtual Machine, BIOS 0.0.0 02/06/2015 [ 36.186210] pstate: 40000085 (nZcv daIf -PAN -UAO) [ 36.187941] pc : __list_del_entry_valid+0x88/0xa8 [ 36.189642] lr : __list_del_entry_valid+0x88/0xa8 [ 36.191325] sp : ffff00000a44b8a0 [ 36.192516] x29: ffff00000a44b8a0 x28: ffff7ed2b15a4700 [ 36.194428] x27: 0000000000000002 x26: 000000000000000d [ 36.196335] x25: ffff7ed2b15a4708 x24: ffffb4acbeecc278 [ 36.198276] x23: 0000000000000000 x22: 0000000000000000 [ 36.200180] x21: ffff00000a44b958 x20: ffff2c29fb39ae18 [ 36.202090] x19: ffffb4acbeeccff8 x18: 0000000000000010 [ 36.203993] x17: 0000000000000000 x16: 0000000000000000 [ 36.205904] x15: ffffffffffffffff x14: 3030303020736177 [ 36.207806] x13: 20747562202c3830 x12: 3734613531623264 [ 36.210688] x11: 6537666666662065 x10: 6220646c756f6873 [ 36.212608] x9 : 207478656e3e2d76 x8 : ffff2c29fa92a998 [ 36.214506] x7 : 74707572726f6320 x6 : ffffb4acc17b4158 [ 36.216405] x5 : ffffb4acc17b4158 x4 : 0000000000000000 [ 36.218316] x3 : ffffb4acc17bcdc8 x2 : 08a608131486fb00 [ 36.220274] x1 : 0000000000000000 x0 : 0000000000000054 [ 36.222187] Call trace: [ 36.223078] __list_del_entry_valid+0x88/0xa8 [ 36.224654] release_pages+0x1e0/0x438 [ 36.226005] free_pages_and_swap_cache+0xcc/0x118 [ 36.227694] tlb_flush_mmu_free+0x5c/0x80 [ 36.229146] unmap_page_range+0x6d0/0x950 [ 36.230586] unmap_single_vma+0x94/0xe8 [ 36.231964] unmap_vmas+0xb4/0xd8 [ 36.233162] exit_mmap+0xd8/0x178 [ 36.234387] mmput+0x74/0x168 [ 36.235483] do_exit+0x3a8/0xb08 [ 36.236655] do_group_exit+0x3c/0xd0 [ 36.237944] get_signal+0xf4/0x740 [ 36.239173] do_signal+0x19c/0x258 [ 36.240395] do_notify_resume+0xc8/0x328 [ 36.241811] work_pending+0x8/0x10 [ 36.243035] Code: aa0003e1 d00034c0 91108000 97f2bbe0 (d4210000) [ 36.245226] ---[ end trace 7e4eb078c1d5adfb ]--- [ 80.375168] Fixing recursive fault but reboot is needed! 0 Quote
imbmfone Posted January 24, 2023 Posted January 24, 2023 I was able to compile armbian with kvm support following docer documentation even i was able to install pimox project on my A64-OLinuXino SBC by Olimex. Here is a video (in Bulgarian) installing alpine linux in virtual machine. 0 Quote
Philm Posted September 28, 2023 Posted September 28, 2023 Hi, this is the first Google result (rk3588 virtualization) under many other helpless or uncomfortable (handmade kvm) Topics, but this Topic is too old. HW Virtualization (kvm) is activated in the latest Ubuntu Version? i installed Debian 10 in virt-Manager and it worked without using the shell to prepare anything , CPU Pass through detected. Thanks! 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.