Commit graph

26 commits

Author SHA1 Message Date
Else Someone
ee497cb7d6 ch-runner: drop passt from the PoC 2026-02-12 22:22:06 +02:00
Else Someone
17bde34c96 taps: MVE
EIO crash in CH was caused by CH trying to writev
before the interface has been assigned any addresses;
adding an address prior to passing the FD (via 80-vm-vt.network)
solves the issue. It is still unclear what causes the interrupt=None
in the vhost_user/passt branch
2026-02-12 20:23:55 +02:00
Else Someone
1c5e2b7e89 taps: MVE
- TUNSETIFF works, the interface is indeed created.
- An fd is indeed passed over the unix socket,
- and is a valid (enough) fd because it can fed into `dup2`.
- `nix run -f . --offline pkgs.taps -- pass sleep 5` works, the
  interface exists for 5 seconds and disappears
- `nix run -f . --offline pkgs.taps -- pass ch-remote --api-socket=$HOME/uvms/nixos/vmm.sock add-net fd=3`
  obscurely fails, killing the VMM with:

  ```console
  [root@nixos:~]# cloud-hypervisor:  12.388270s: <_net1_qp0> ERROR:/build/source/net_util/src/queue_pair.rs:112 -- net: tx: failed writing to tap: Input/output error (os er
  ror 5)
  cloud-hypervisor:  12.388459s: <_net1_qp0> ERROR:virtio-devices/src/thread_helper.rs:54 -- Error running worker: HandleEvent(Error processing TX queue: NetQueuePair(Write
  Tap(Os { code: 5, kind: Uncategorized, message: "Input/output error" })))
  ```
2026-01-28 07:19:32 +02:00
Else Someone
691a193bba taps: fix error messages 2026-01-28 07:19:32 +02:00
Else, Someone
564913c123 fixup! taps: wip: init 2026-01-28 07:19:32 +02:00
Else, Someone
8bbafe0f0a taps: wip: init 2026-01-28 07:19:32 +02:00
Else Someone
db5f9a1ac8 README: update & shuffle 2026-01-28 07:19:18 +02:00
Else, Someone
20451db88c ch-proxy: support normal vsock 2025-11-07 19:04:58 +02:00
Else, Someone
927db90791 request-usb: init; ugly helper for attaching usb to crosvm 2025-11-07 19:02:42 +02:00
Else, Someone
dc583da67e runInVM: split out
...the ${vmName} argument was kept for compat, which is no longer necessary
2025-10-26 20:49:14 +02:00
Else, Someone
6dcd2a370a vmapp-demo: copypaste-ability 2025-10-09 20:55:48 +03:00
Else, Someone
5f58a2ebb2 fixup! profiles: init (vsock ssh &c.) 2025-10-09 05:14:06 +03:00
Else, Someone
665fd95d70 cloud-hypervisor sockets: use spectrum names
- CONNECT.sock → vsock.sock
- ch.sock → vmm.sock
2025-10-09 05:14:06 +03:00
Else, Someone
6dcbe5b3d7 zswap in uvms: optional/configurable 2025-10-09 05:14:06 +03:00
Else, Someone
0bebc13927 vsock ssh: set up UNKNOWN /etc/hosts in initrd too 2025-10-09 04:12:06 +03:00
Else, Someone
33d33e745b ch-runner: make initrd systemd optional 2025-10-09 04:11:37 +03:00
Else, Someone
1b889d5b19 resources.nix: prevent infinite recursion 2025-10-09 04:11:18 +03:00
Else, Someone
55b7a907e0 ch-proxy: add meta, set mainProgram 2025-09-27 05:26:03 +03:00
Else, Someone
453b42cbe5 README: init 2025-09-27 05:11:44 +03:00
Else, Someone
724e7bd062 treewide: nixfmt . 2025-09-25 16:13:29 +03:00
Else, Someone
a25e51e7da profiles/vmapp-demo: init MVE
...moving bits and pieces from .dotfiles
2025-09-21 00:58:30 +03:00
Else, Someone
b2b9628ed6 npins: init 2025-09-21 00:58:30 +03:00
Else, Someone
28d3f89ad4 pkgs.writeErofsLayers,profiles/ch-runner: MVE
$ nix-build -A examples.dummy.config.debug.closure.erofs.list | xargs
cat | xargs du -h
749M    /nix/store/bzfv5x6lycq6hzhjv6d6vlk1q8fdg9di-base0.erofs
24M     /nix/store/hp41jfq36y0mmjrzqilyh3jfsvqic3kb-nixos.erofs

$ nix run -f . examples.dummy.config.uvms.cloud-hypervisor.runner
...
<<< Welcome to NixOS 25.11pre-git (x86_64) - ttyS0 >>>

nixos login:

The definition of the `pkgs` fixpoint was moved to pkgs/default.nix.
For that, dirToAttrs was moved to lib/, imported ad hoc
2025-09-21 00:57:11 +03:00
Else, Someone
1828835a1d profiles: init (vsock ssh &c.) 2025-09-19 16:30:05 +03:00
Else, Someone
12e95630b1 examples,pkgs,pkgs.ch-proxy: init 2025-09-19 16:30:05 +03:00
Else, Someone
81effc1ef3 COPYING: init (add license)
$ wget https://www.gnu.org/licenses/gpl-3.0.txt -O COPYING
2025-09-19 16:30:05 +03:00