vdsm / virtual-dsm

Virtual DSM in a Docker container.
MIT License
2.27k stars 301 forks source link

Support for Armbian OS #654

Closed shaneZhang closed 3 months ago

shaneZhang commented 4 months ago

I have a lot of TV boxes of CPU type S905X3, RK3566, now installed with the Armbian system, they have 4G memory and even more, hoping that the Virtual-DSM will support the Armbian Now the result of my running is a failure

kroese commented 4 months ago

Synology does not provide a build of Virtual DSM that is compiled for ARM cpus, only for x86/x64. So even though this container runs on ARM (I dont know what "failure" you mean) it will run without KVM enabled so it will run too slowly to be useable.

shaneZhang commented 4 months ago

ohh, I get it . Thank you very much

srctar commented 3 months ago

Synology does not provide a build of Virtual DSM that is compiled for ARM cpus, only for x86/x64. So even though this container runs on ARM (I dont know what "failure" you mean) it will run without KVM enabled so it will run too slowly to be useable.

virtual-dsm can run on arm cpu. my computer is Apple M3, i successful install it , but it`s too too too slow

shaneZhang commented 3 months ago

Synology does not provide a build of Virtual DSM that is compiled for ARM cpus, only for x86/x64. So even though this container runs on ARM (I dont know what "failure" you mean) it will run without KVM enabled so it will run too slowly to be useable.

virtual-dsm can run on arm cpu. my computer is Apple M3, i successful install it , but it`s too too too slow

I don't have an apple M3 computer. I tested it in a TV box, Amlogic S905X3 CPU, It can't start properly, the hint should be caused by the INCOMPATIBILITY of CPU COMMAND SET

shaneZhang commented 3 months ago

Call Trace:

dsm | [ 65.780330] NMI watchdog: BUG: soft lockup - CPU#0 stuck for 41s! [swapper/0:1] dsm | [ 65.780330] Modules linked in: dsm | [ 65.780330] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.4.180+ #42218 dsm | [ 65.780330] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 dsm | [ 65.780330] task: ffff88007cd2abc0 ti: ffff88007cd2c000 task.ti: ffff88007cd2c000 dsm | [ 65.780330] RIP: 0010:[] [] unlzma+0x3e9/0xa76 dsm | [ 65.780330] RSP: 0018:ffff88007cd2fcc8 EFLAGS: 00000216 dsm | [ 65.780330] RAX: 0000000000000001 RBX: 0000000000000000 RCX: 00000000000004e0 dsm | [ 65.780330] RDX: 00000000073c0021 RSI: ffffc9000120aa90 RDI: ffff88007cd2fd70 dsm | [ 65.780330] RBP: ffff88007cd2fdd8 R08: ffffc90001209644 R09: 8000000000000163 dsm | [ 65.780330] R10: ffffffff81713566 R11: ffffea0001ecd040 R12: ffffc9000120aa6c dsm | [ 65.780330] R13: ffffc90001209000 R14: ffffc90001209002 R15: 0000000000000002 dsm | [ 65.780330] FS: 0000000000000000(0000) GS:ffff88007f800000(0000) knlGS:0000000000000000 dsm | [ 65.780330] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 dsm | [ 65.780330] CR2: 0000000000000000 CR3: 000000000180a000 CR4: 00000000000006f0 dsm | [ 65.780330] Stack: dsm | [ 65.780330] ffffc90000000000 0000000300000246 ffffffff819e2088 0000000000000000 dsm | [ 65.780330] ffff88007faa2000 ffffc90000000900 0000000300000000 ffff88007faa2000 dsm | [ 65.780330] 0000167500000121 ffffc9000000226b 000000040000002d 000000250000001a dsm | [ 65.780330] Call Trace: dsm | [ 65.780330] [] ? md_run_setup+0x2d/0x94 dsm | [ 65.780330] [] ? write_buffer+0x37/0x37 dsm | [ 65.780330] [] ? unlz4+0x2dc/0x2dc dsm | [ 65.780330] [] ? md_run_setup+0x94/0x94 dsm | [ 65.780330] [] ? md_run_setup+0x94/0x94 dsm | [ 65.780330] [] ? initcall_blacklist+0xaa/0xaa dsm | [ 65.780330] [] unpack_to_rootfs+0x14e/0x284 dsm | [ 65.780330] [] ? md_run_setup+0x94/0x94 dsm | [ 65.780330] [] ? clean_rootfs+0x152/0x152 dsm | [ 65.780330] [] populate_rootfs+0x102/0x1a6 dsm | [ 65.780330] [] do_one_initcall+0x87/0x1b0 dsm | [ 65.780330] [] kernel_init_freeable+0x177/0x20a dsm | [ 65.780330] [] ? rest_init+0x80/0x80 dsm | [ 65.780330] [] kernel_init+0x9/0xd0 dsm | [ 65.780330] [] ret_from_fork+0x3f/0x80 dsm | [ 65.780330] [] ? rest_init+0x80/0x80 dsm | [ 65.780330] Code: 00 00 7f 2e eb ab 48 63 b5 4c ff ff ff 81 fe ff 00 00 00 7f 18 48 01 f6 48 8d 95 4c ff ff ff 48 8d 7d 98 4c 01 e6 e8 b7 fb ff ff d9 83 fb 03 7e 0f 83 fb 09 7f 05 83 eb 03 eb 07 83 eb 06 eb dsm | [ 65.780330] Sending NMI to other CPUs: dsm | [ 65.780330] NMI backtrace for cpu 1 dsm | [ 65.780330] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.4.180+ #42218 dsm | [ 65.780330] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 dsm | [ 65.780330] task: ffff88007cd74d00 ti: ffff88007cd78000 task.ti: ffff88007cd78000 dsm | [ 65.916976] INFO: NMI handler (arch_trigger_all_cpu_backtrace_handler) took too long to run: 40.874 msecs dsm | [ 65.780330] RIP: 0010:[] [] __do_softirq+0xdb/0x300 dsm | [ 65.780330] RSP: 0018:ffff88007f903f28 EFLAGS: 00000286 dsm | [ 65.780330] RAX: 00000000fffc6d14 RBX: 0000000000000001 RCX: 0000000000200040 dsm | [ 65.780330] RDX: ffffffff810b84c0 RSI: 000000000000003e RDI: ffffffff818080c8 dsm | [ 65.780330] RBP: ffff88007f903f80 R08: 000000000c5deecd R09: 00000000000f4240 dsm | [ 65.780330] R10: 0000000f58d714c0 R11: 0000000f58d714c0 R12: 0000000000000010 dsm | [ 65.780330] R13: ffffffff818080c8 R14: ffffffff818080c0 R15: 0000000000000001 dsm | [ 65.780330] FS: 0000000000000000(0000) GS:ffff88007f900000(0000) knlGS:0000000000000000 dsm | [ 65.780330] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 dsm | [ 65.780330] CR2: 0000000000000000 CR3: 000000000180a000 CR4: 00000000000006f0 dsm | [ 65.780330] Stack: dsm | [ 65.780330] ffffffff810c762f ffff88007f9128c0 0000000a00200040 00000000fffc6d16 dsm | [ 65.780330] 0000010000000001 0000000200000002 0000000000000000 00000000ffffffff dsm | [ 65.780330] ffff88007cd7c000 0000000000000000 0000000000000000 ffff88007f903f90 dsm | [ 65.780330] Call Trace: dsm | [ 65.780330] d [] ? tick_program_event+0x3f/0x70 dsm | [ 65.780330] [] irq_exit+0x9e/0xa0 dsm | [ 65.780330] [] smp_apic_timer_interrupt+0x43/0x60 dsm | [ 65.780330] [] apic_timer_interrupt+0x9e/0xb0 dsm | [ 65.780330] d [] ? native_safe_halt+0x17/0x20 dsm | [ 65.780330] [] default_idle+0x1f/0xf0 dsm | [ 65.780330] [] amd_e400_idle+0x37/0xe0 dsm | [ 65.780330] [] arch_cpu_idle+0x10/0x20 dsm | [ 65.780330] [] default_idle_call+0x2e/0x30 dsm | [ 65.780330] [] cpu_startup_entry+0x1a6/0x360 dsm | [ 65.780330] [] start_secondary+0x110/0x120 dsm | [ 65.780330] Code: ff 7f 41 89 df 89 55 cc 8b 15 da b7 86 00 65 42 ff 04 bd 48 f3 00 00 85 d2 0f 8f 97 01 00 00 49 8b 55 00 4c 89 ef e8 05 af 4d 00 <8b> 15 77 b7 86 00 85 d2 0f 8f 1c 01 00 00 65 8b 15 30 db fa 7e dsm | [ 113.780317] NMI watchdog: BUG: soft lockup - CPU#0 stuck for 41s! [swapper/0:1] dsm | [ 113.780317] Modules linked in: dsm | [ 113.780317] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G L 4.4.180+ #42218 dsm | [ 113.780317] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 dsm | [ 113.780317] task: ffff88007cd2abc0 ti: ffff88007cd2c000 task.ti: ffff88007cd2c000 dsm | [ 113.780317] RIP: 0010:[] [] unlzma+0x755/0xa76 dsm | [ 113.780317] RSP: 0018:ffff88007cd2fcc8 EFLAGS: 00000202 dsm | [ 113.780317] RAX: 0000000000000000 RBX: 0000000000000008 RCX: 0000000000000000 dsm | [ 113.780317] RDX: 00000000000007b1 RSI: ffffc90001209a94 RDI: ffff88007cd2fd70 dsm | [ 113.780317] RBP: ffff88007cd2fdd8 R08: 0000000000000000 R09: 8000000000000163 dsm | [ 113.780317] R10: ffffffff81713566 R11: ffffea0001ecd040 R12: ffffc90001209a8c dsm | [ 113.780317] R13: ffffc90001209000 R14: 0000000000000340 R15: 0000000000000003 dsm | [ 113.780317] FS: 0000000000000000(0000) GS:ffff88007f800000(0000) knlGS:0000000000000000 dsm | [ 113.780317] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 dsm | [ 113.780317] CR2: 0000000000000000 CR3: 000000000180a000 CR4: 00000000000006f0 dsm | [ 113.780317] Stack: dsm | [ 113.780317] ffffc90000000000 0000000300000246 ffffffff819e2088 0000000000000000 dsm | [ 113.780317] ffff88007faa2000 ffffc90000000000 0000000300000000 ffff88007faa2000 dsm | [ 113.780317] 000001a0000d1f7c ffffc90000000020 000000080000002d 0000015500000013 dsm | [ 113.780317] Call Trace: dsm | [ 113.780317] [] ? md_run_setup+0x39/0x94 dsm | [ 113.780317] [] ? write_buffer+0x37/0x37 dsm | [ 113.780317] [] ? unlz4+0x2dc/0x2dc dsm | [ 113.780317] [] ? md_run_setup+0x94/0x94 dsm | [ 113.780317] [] ? md_run_setup+0x94/0x94 dsm | [ 113.780317] [] ? initcall_blacklist+0xaa/0xaa dsm | [ 113.780317] [] unpack_to_rootfs+0x14e/0x284 dsm | [ 113.780317] [] ? md_run_setup+0x94/0x94 dsm | [ 113.780317] [] ? clean_rootfs+0x152/0x152 dsm | [ 113.780317] [] populate_rootfs+0x102/0x1a6 dsm | [ 113.780317] [] do_one_initcall+0x87/0x1b0 dsm | [ 113.780317] [] kernel_init_freeable+0x177/0x20a dsm | [ 113.780317] [] ? rest_init+0x80/0x80 dsm | [ 113.780317] [] kernel_init+0x9/0xd0 dsm | [ 113.780317] [] ret_from_fork+0x3f/0x80 dsm | [ 113.780317] [] ? rest_init+0x80/0x80 dsm | [ 113.780317] Code: 8d 7d 98 48 89 d6 4d 8d a7 04 02 00 00 41 bf 08 00 00 00 e8 67 f7 ff ff 41 b8 10 00 00 00 c7 85 44 ff ff ff 01 00 00 00 44 89 f9 c9 48 63 85 44 ff ff ff 83 f9 ff 74 33 48 01 c0 48 8d 95 44 dsm | [ 113.780317] Sending NMI to other CPUs: dsm | [ 113.900675] NMI backtrace for cpu 1 dsm | [ 113.901139] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G L 4.4.180+ #42218 dsm | [ 113.901139] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 dsm | [ 113.901139] task: ffff88007cd74d00 ti: ffff88007cd78000 task.ti: ffff88007cd78000 dsm | [ 113.901139] RIP: 0010:[] [] _raw_spin_lock+0x13/0x20 dsm | [ 113.901139] RSP: 0018:ffff88007f903ec8 EFLAGS: 00000046 dsm | [ 113.901139] RAX: 0000000000000000 RBX: ffff88007f912500 RCX: 0000000000000000 dsm | [ 113.901139] RDX: 0000000000000001 RSI: 0000000000000000 RDI: ffff88007f9124c0 dsm | [ 113.901139] RBP: ffff88007f903ec8 R08: 00000000169bace5 R09: 0000000000000001 dsm | [ 113.901139] R10: 0000000000000003 R11: 0000000000000000 R12: 0000000000000000 dsm | [ 113.901139] R13: ffff88007cd7bdd8 R14: ffff88007f9124c0 R15: 0000000000000000 dsm | [ 113.901139] FS: 0000000000000000(0000) GS:ffff88007f900000(0000) knlGS:0000000000000000 dsm | [ 113.901139] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 dsm | [ 113.901139] CR2: 0000000000000000 CR3: 000000000180a000 CR4: 00000000000006f0 dsm | [ 113.901139] Stack: dsm | [ 113.901139] ffff88007f903f28 ffffffff810baab9 ffffffff810beeda ffff88007f90eec0 dsm | [ 113.901139] ffff88007f903ef8 0000000000000001 ffff88007f903f08 ffff88007cd74d00 dsm | [ 113.901139] 0000000000000000 ffff88007cd7bdd8 ffff88007f90eec0 0000000000000000 dsm | [ 113.901139] Call Trace: dsm | [ 113.901139] d [] hrtimer_run_queues+0x49/0x2d0 dsm | [ 113.901139] [] ? ktime_get+0x3a/0xa0 dsm | [ 113.901139] [] update_process_times+0x22/0x60 dsm | [ 113.901139] [] tick_nohz_handler+0x6b/0xd0 dsm | [ 113.901139] [] local_apic_timer_interrupt+0x39/0x60 dsm | [ 113.901139] [] smp_apic_timer_interrupt+0x3e/0x60 dsm | [ 113.901139] [] apic_timer_interrupt+0x9e/0xb0 dsm | [ 113.901139] d [] ? native_safe_halt+0x17/0x20 dsm | [ 113.901139] [] default_idle+0x1f/0xf0 dsm | [ 113.901139] [] amd_e400_idle+0x37/0xe0 dsm | [ 113.901139] [] arch_cpu_idle+0x10/0x20 dsm | [ 113.901139] [] default_idle_call+0x2e/0x30 dsm | [ 113.901139] [] cpu_startup_entry+0x1a6/0x360 dsm | [ 113.901139] [] start_secondary+0x110/0x120 dsm | [ 113.901139] Code: 81 c6 00 01 00 00 40 84 f6 75 02 5d c3 e8 46 7a b6 ff 5d c3 0f 1f 40 00 55 48 89 e5 31 c0 ba 01 00 00 00 f0 0f b1 17 85 c0 75 02 <5d> c3 89 c6 e8 64 62 b6 ff 66 90 5d c3 55 48 89 e5 fa 66 66 90 dsm | [ 151.753795] decompress cpio completed and skip redundant lzma dsm | [ 151.901846] Freeing initrd memory: 5268K dsm | [ 151.944773] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x1cd3db1df5b, max_idle_ns: 881590504246 ns dsm | [ 152.372050] audit: initializing netlink subsys (disabled) dsm | [ 152.390700] audit: type=2000 audit(1712061742.384:1): initialized dsm | [ 152.439920] Initialise system trusted keyring dsm | [ 154.542309] VFS: Disk quotas dquot_6.6.0 dsm | [ 154.551012] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) dsm | [ 156.835565] Key type asymmetric registered dsm | [ 156.841686] Asymmetric key parser 'x509' registered dsm | [ 156.854958] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251) dsm | [ 156.863846] io scheduler noop registered (default) dsm | [ 156.912876] pci_hotplug: PCI Hot Plug PCI Core version: 0.5 dsm | [ 156.920006] pciehp: PCI Express Hot Plug Controller Driver version: 0.4

kroese commented 3 months ago

Seems like some incompatiblity between your CPU and QEMU. But I have not so much motivation to figure out what the problem is, because even if we get it to work, it will run so slow on a ARM cpu without KVM, that its not really worth the effort, sorry.

shaneZhang commented 3 months ago

It doesn't matter. I understand