Thank you @atopia for the hints.
Regarding /vm/debian
path being served by vm_fs
launcher, I remembered myself that I found this information long time ago, but since recall_fs
like behavior was somehow so natural I forgot about it.
Following your second suggestion, I have verified that uuids are in sync in linux.vmdk
and machine.vbox6
files.
Unfortunately I did not succeed until now. But I have two potential ideas for continuation.
I’m trying to follow Start existing linux from sculpt by Johannes Shlatow. And my first doubt is that my adaptations in the launcher file may be wrong (or incomplete). I have changed routing from:
<service name="Block" label_suffix=" -> 4">
<child name="nvme-0.part_block" label="4"/>
</service>
to
<service name="Block" label_suffix=" -> 4">
<child name="ahci-0.part" label="4"/>
</service>
I can see similar routing for my used partition in /config/managed/runtime
but I’m not sure if those block devices are exposed to deploy
subsystem. Even if it is wrong I would expect to see some error about service being unavailable or similar, but I don’t.
Second idea is that when virtualbox starts it prints information about some log file being created:
[runtime -> _ubuntu@virtualbox -> vbox] main Log created: 2024-11-26T19:28:12.000000000Z
Do you know where can I find it or change some configuration so I can access it? Maybe my hopes are wrong but maybe there would be some better info about the problem.
Full log for virtualbox start attempt is below (I found an ugly workaround for getting logs into the firefox in seoul vm, so I can share them here ). Maybe something will be obvious for one of you.
^M[runtime -> _ubuntu@virtualbox -> vbox] 0x48b0000 .. 0x4906fff: virtualbox6-shaderlib.lib.so^[[0m
^M[runtime -> _ubuntu@virtualbox -> vbox] 0x10ce2000 .. 0x10d14fff: vfs_oss.lib.so^[[0m
^M[runtime -> _ubuntu@virtualbox -> vbox] OSS: verbose: 0 play_enabled: 1 min_ofrag_size: 8192 max_ofrag_size: 8192 record_enabled: 1 min_ifrag_size: 8192 max_ifrag_size: 8192 min_sample_rate: 8000 max_sample_rate: 48000 ^[[0m
^M[runtime -> _ubuntu@virtualbox -> vbox] 0x10ccd000 .. 0x10ce1fff: vfs_pipe.lib.so^[[0m
^M[runtime -> _ubuntu@virtualbox -> vbox] main Log created: 2024-11-26T19:28:12.000000000Z
^M[runtime -> _ubuntu@virtualbox -> vbox] main Process ID: 0 (0x0)
^M[runtime -> _ubuntu@virtualbox -> vbox] main Parent PID: -1 (0xffffffff)
^M[runtime -> _ubuntu@virtualbox -> vbox] main Executable: /virtualbox6
^M[runtime -> _ubuntu@virtualbox -> vbox] ^[[31mError: machine could not enter running state^[[0m
^M[runtime -> _ubuntu@virtualbox -> vbox] Error: Could not open the medium '//linux.vmdk'.
^M[runtime -> _ubuntu@virtualbox -> vbox] VD: error VERR_FILE_NOT_FOUND opening image file '//linux.vmdk' (VERR_FILE_NOT_FOUND)^[[0m
^M[runtime -> _ubuntu@virtualbox -> vbox] main
^M[runtime -> _ubuntu@virtualbox -> vbox] main !!Assertion Failed!!
^M[runtime -> _ubuntu@virtualbox -> vbox] main Expression: state <= 1 && ( (state == 0 && count == 0) || (state == 1 && count < PR_UINT32_MAX/2))
^M[runtime -> _ubuntu@virtualbox -> vbox] main Location : /data/depot/genodelabs/src/vbox6/2024-10-07/src/virtualbox6/VBoxAPIWrap/MachineWrap.cpp(11269) virtual nsrefcnt MachineWrap::AddRef()
^M[runtime -> _ubuntu@virtualbox -> vbox] main Stack :
^M[runtime -> _ubuntu@virtualbox -> vbox] main 000000000192ce9b
^M[runtime -> _ubuntu@virtualbox -> vbox] main
^M[runtime -> _ubuntu@virtualbox -> vbox]
^M[runtime -> _ubuntu@virtualbox -> vbox] !!Assertion Failed!!
^M[runtime -> _ubuntu@virtualbox -> vbox] Expression: state <= 1 && ( (state == 0 && count == 0) || (state == 1 && count < PR_UINT32_MAX/2))
^M[runtime -> _ubuntu@virtualbox -> vbox] Location : /data/depot/genodelabs/src/vbox6/2024-10-07/src/virtualbox6/VBoxAPIWrap/MachineWrap.cpp(11269) virtual nsrefcnt MachineWrap::AddRef()
^M[runtime -> _ubuntu@virtualbox -> vbox] Stack :
^M[runtime -> _ubuntu@virtualbox -> vbox] 000000000192ce9b
^M[runtime -> _ubuntu@virtualbox -> vbox]
^M[runtime -> _ubuntu@virtualbox -> vbox] main AddRef: illegal refcnt=3221225469 state=2
^M[runtime -> _ubuntu@virtualbox -> vbox] AddRef: illegal refcnt=3221225469 state=2
^M[runtime -> _ubuntu@virtualbox -> vbox] ^[[31mError: Uncaught exception of type 'Genode::Ipc_error'^[[0m
^M[runtime -> _ubuntu@virtualbox -> vbox] ^[[34mWarning: abort called - thread: main^[[0m
^M[core] ^[[34mWarning: unresolvable exception 3, pd 'init -> runtime -> _ubuntu@virtualbox -> vbox', thread 'ep', cpu 0, ip=0x11ae8af sp=0x403fe080 bp=0xbffffffd no signal handler^[[0m
^