cloud-hypervisor sockets: use spectrum names

- CONNECT.sock → vsock.sock
- ch.sock → vmm.sock
This commit is contained in:
Else, Someone 2025-10-09 04:22:43 +03:00
parent 61dd3938aa
commit 6d710952ee
4 changed files with 8 additions and 8 deletions

View file

@ -51,8 +51,8 @@ in
"--cmdline=${lib.concatStringsSep " " cfg.cmdline}"
"--kernel=${config.boot.kernelPackages.kernel}/${pkgs.stdenv.hostPlatform.linux-kernel.target}"
"--initramfs=${config.system.build.initialRamdisk}/${config.system.boot.loader.initrdFile}"
"--vsock=cid=4,socket=CONNECT.sock"
"--api-socket=ch.sock"
"--vsock=cid=4,socket=vsock.sock"
"--api-socket=vmm.sock"
"--serial=tty"
"--console=null"
"--watchdog"
@ -69,7 +69,7 @@ in
mkdir -p "$HOME/uvms/$GUESTNAME"
cd "$HOME/uvms/$GUESTNAME"
cleanup() {
rm "$HOME/uvms/$GUESTNAME"/{ch,CONNECT}.sock
rm "$HOME/uvms/$GUESTNAME"/{vmm,vsock}.sock
}
exec -a "uuvm/$GUESTNAME" "''${args[@]}"
'';