Commit Graph

111 Commits

Author SHA1 Message Date
lassulus
1eeaa8eead clan-cli vms run: remove unused vm arg 2024-03-02 11:20:05 +01:00
clan-bot
e3d70c7693 Merge pull request 'clan-cli: remove unused flag' (#867) from Mic92-fix-cross-system into main 2024-02-21 10:19:26 +00:00
Jörg Thalheim
458297bc10 clan-cli: remove unused flag 2024-02-21 10:55:53 +01:00
clan-bot
7e9c135b42 Merge pull request 'secret_store: drop update_check and generate_hash as abstract methods' (#863) from Mic92-target_host into main 2024-02-20 18:01:51 +00:00
Jörg Thalheim
5a5e31e890 disable vgpu on non-nixos systems 2024-02-20 18:58:38 +01:00
clan-bot
99c5032b63 Merge pull request 'clan-vm-manager: Added clan icon to trayicon' (#855) from Qubasa-main into main 2024-02-16 09:14:08 +00:00
Qubasa
8a0edddca7 clan-vm-manager: Fixing vm starting. 2024-02-16 16:10:49 +07:00
Jörg Thalheim
033dc6ee55 update comments about virtio-gpu 2024-02-16 09:52:13 +01:00
Jörg Thalheim
8a109b666b vms: move qemu_command to its own module 2024-02-15 17:25:24 +01:00
Jörg Thalheim
5a718dd086 vms: drop unused xchdir 2024-02-15 17:19:43 +01:00
Jörg Thalheim
63c5065620 vms: move virtiofsd/waypipe into their own modules 2024-02-15 17:19:31 +01:00
lassulus
5ed4881687 vms: use vm fact/secret-store 2024-02-15 10:41:25 +01:00
clan-bot
f91df4fb88 Merge pull request 'clan_vm_manager: --debug enables debug mode in clan_cli too' (#840) from Qubasa-add_spinner into main 2024-02-14 08:43:14 +00:00
Jörg Thalheim
2202e5a001 fix virtiofsd in CIs 2024-02-13 13:57:52 +01:00
Jörg Thalheim
7c41a0e0f8 also use qcow2 for volatile state 2024-02-13 11:45:42 +01:00
Jörg Thalheim
2970c1bc00 use virtio-console instead of serial for vm 2024-02-13 11:45:42 +01:00
Jörg Thalheim
d2d4267003 format rootfs in vm itself 2024-02-13 11:45:42 +01:00
Jörg Thalheim
4c6a95c844 drop unused mounts 2024-02-13 11:45:42 +01:00
Jörg Thalheim
53df1fc209 qemu: disable sea-bios and option rom 2024-02-13 11:45:42 +01:00
Jörg Thalheim
f8a10ab0fc switch to sops-nix experimental branch 2024-02-13 11:45:23 +01:00
Jörg Thalheim
8f7eb704c7 vms: integrate virtiofsd 2024-02-13 11:44:17 +01:00
Qubasa
a1afd05fcb clan_cli: Made qmp implementation lazy 2024-02-13 16:44:09 +07:00
Qubasa
e30168742e clan_vm_manager: Added VM shutdown timeout 2024-02-12 14:16:44 +07:00
DavHau
a438a27c69 vms: init graceful shutdown for GUI
- add python modules for qemu protocols: QMP (hardware interactions) and QGA (guest service interaction)
- refactor state directory: remove name from path (already contains url)
- add impure vm test for basic qmp interaction
- simplify existing vm persistance test (factor out shared code)
- integrate graceful shutdown into GUI

the GUI integration still needs to be improved later:
- add fallback in case system doesn't react to powerdown button
- shutdown GUI switch fails if VM hasn't been started yet, and then remains in a wrong position
2024-02-09 19:55:18 +07:00
Qubasa
8194b61e4b cli,nix: Add machine_icon, machine_description 2024-02-06 19:25:34 +07:00
a-kenji
de041d4b2c vms: rename wayland attrs to waypipe
And remove the options from the cli interface.
2024-02-01 10:14:36 +07:00
a-kenji
7000caafa9 vms: wayland attr specified in configuration 2024-02-01 09:00:43 +07:00
DavHau
af9b4c32e8 Reapply "vm-state: fix and improve testing"
This reverts commit a429ab5d3c.

vm-state: revert sysusers, improve testing

zerotier: enable persistence

vm-state: cleanup tests
2024-01-31 11:02:16 +07:00
Jörg Thalheim
33d755360d clan-cli: implement waypipe backend 2024-01-30 10:37:52 +07:00
DavHau
a429ab5d3c Revert "vm-state: fix and improve testing"
This reverts commit 41c97a5fce.
2024-01-29 15:16:10 +07:00
DavHau
41c97a5fce vm-state: fix and improve testing
Also adds qemu qga protocol implementation to execute commands
2024-01-26 19:41:05 +07:00
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
clan-bot
b6a7fd5be1 Merge pull request 'disable state home for now' (#740) from Mic92-main into main 2024-01-17 10:03:48 +00:00
Jörg Thalheim
04ceef6633 use upstream qemu for wayland feature 2024-01-17 11:00:45 +01:00
Qubasa
8da8889b5d CLI: History supports multiple attrs from the same url now. Errors when executing the cli are formatted better 2024-01-16 16:16:12 +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