Commit Graph

32 Commits

Author SHA1 Message Date
lassulus
bdd1f9be6d machines.Machine: refactor flake_dir -> flake; use Machine class in vm 2024-01-24 15:49:12 +01:00
lassulus
1d4e533438 move secret stores into clan_cli codebase 2024-01-24 15:49:12 +01:00
Qubasa
01a61f778b Wrapped vm.run in cmd.run. Working --wayland 2024-01-19 13:56:17 +01:00
Jörg Thalheim
04ceef6633 use upstream qemu for wayland feature 2024-01-17 11:00:45 +01:00
Qubasa
de52a55228 cmd.py refactor part 7 2024-01-12 17:37:59 +01:00
Jörg Thalheim
d72bb17878 re-anble pulseaudio in qemu 2024-01-10 15:32:37 +01:00
DavHau
368931c5af VMs: ensure state dirs don't collide between clans 2024-01-09 17:22:48 +07:00
DavHau
4bdf769075 VMs: persist state folders on host
Done:
- move vm inspect attrs from system.clan.vm.config to clanCore.vm.inspect. This gives us proper name and type checking. everything in `system` is basically freeform, so the previous option definitions were never enforced
- when running VMs, mount state directory from ~/.config/clan/vmstate/{...} from the host to /var/vmstate inside the vm
- create bind mount inside the VM from /var/vmstate/{folder} to / for all folders defined in clanCore.state.<name>.folders

TODOs:
- make sure directories in ~/.config/clan/vmstate never collide (include hash of clan-url, etc.)
- port impure test to python
2024-01-08 18:38:07 +07:00
Qubasa
9c7f62a4a5 Refactor subprocess to cmd.py part 1. Fixed clan_uri test. 2024-01-02 17:21:06 +01:00
Qubasa
d604255217 cli: fixed run vm not working with url 2023-12-31 13:56:55 +01:00
Qubasa
cb933787ff Added gcroot for clan Icon and VM 2023-12-31 00:49:57 +01:00
Qubasa
001a48da52 Removed python deal. 2023-12-30 23:10:43 +01:00
Qubasa
c6188c17fb pytest: Removed -s flag for CI 2023-12-26 18:20:41 +01:00
Qubasa
e17508702a UI: Added process executor. Display vm status correctly in list. | CLI: Added get_qemu_version(), fixed virtio audio bug. 2023-12-26 18:02:43 +01:00
Jörg Thalheim
ca70dee092 switch to virtio-audio 2023-12-21 15:39:27 +01:00
a-kenji
df6adf979e vms/run: remove superfluous command 2023-12-14 15:45:45 +01:00
a-kenji
10cbb6d15c vms/run: fix virtual machines spawning multiple windows 2023-12-14 08:55:12 +01:00
Jörg Thalheim
821e5e0a7b disable tty0 when using wayland
we don't vga output and use our serial console instead
2023-12-08 16:19:09 +01:00
Jörg Thalheim
3054b9c77d move clanName into nixos machine configuration 2023-12-08 16:03:29 +01:00
Jörg Thalheim
0e91f8721f prefix nixpkgs# explicitly in nix_shell
This makes the function usage less confusing (you can now tell from the call side what are flags and what is passed to nix-shell) and allows to use different flakes to download packages.
2023-12-08 15:14:14 +01:00
Jörg Thalheim
af3001a3ac vms/run: split large vm run method into smaller ones 2023-12-08 15:09:48 +01:00
Jörg Thalheim
49010f4d46 add wayland option 2023-12-08 14:13:47 +01:00
Jörg Thalheim
10930c27bf make vm inspect non-async 2023-12-08 13:59:24 +01:00
Jörg Thalheim
8cff166393 vms/run: rename flake_url to flake-url 2023-12-08 13:40:28 +01:00
Jörg Thalheim
218478c801 vms/run: make flake field option always have a value 2023-12-08 12:08:45 +01:00
Jörg Thalheim
b9ca10c4da make cli options more type safe using a dataclass 2023-12-08 11:31:29 +01:00
Jörg Thalheim
e97bcbd94f make sure that flake url is always set in the cli 2023-12-08 11:05:22 +01:00
Jörg Thalheim
b0ecc17645 get rid of task_manager 2023-12-06 15:53:23 +01:00
Jörg Thalheim
9d64ccb08e integegrate remote-viewer instead of spicy 2023-11-29 16:07:12 +01:00
Jörg Thalheim
6f0722c692 modernisation for python 3.11 2023-11-29 13:29:45 +00:00
Jörg Thalheim
7d755beca6 enable more linting 2023-11-29 13:29:45 +00:00
Jörg Thalheim
4a19e3af95 rename vms create to vms run 2023-11-24 15:00:08 +01:00