For now, hypervisor related stuff(socket/pidfile etc.) exist in /var/run/hyper/ dir, and named with generated vm name vm-xxxxxxxx. This vm name can't be got through any runv command or option, could we offer a mechanism to get this vm specified path?
add additional field in runv state result to include vm id.
Or add a symbol link in container root dir, ie /run/runv/<container_id>/vm-root --> /var/run/hyper/<vm_id>
you can set the hypervisor.BaseDir to the containerd when runv containerd is just started.
and the vm_id can be fetched from vm.Id.
could you make a pr for it please?
For now, hypervisor related stuff(socket/pidfile etc.) exist in
/var/run/hyper/
dir, and named with generated vm namevm-xxxxxxxx
. This vm name can't be got through any runv command or option, could we offer a mechanism to get this vm specified path?runv state
result to include vm id./run/runv/<container_id>/vm-root
-->/var/run/hyper/<vm_id>
/cc @laijs