1
0
forked from clan/clan-core
Commit Graph

752 Commits

Author SHA1 Message Date
02dd132e08 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
030cbd24ce
Clan VM Manager: detect if clan exists 2024-02-07 16:08:48 +07:00
b780754621 clan-cli: add simple flash command 2024-02-07 05:26:01 +01:00
6fe6229498 add requireExplicitUpdate option for mobile devices 2024-02-06 17:55:34 +01:00
be3a75bbd7 add support for build machines 2024-02-06 17:21:42 +01:00
2315dba2a9 rename machine.host to machine.target_host 2024-02-06 17:21:42 +01:00
6e57122da8 rename target_host to target_host_address 2024-02-06 17:21:42 +01:00
301a6b6a23 machines/update: get flake_attr from machine class 2024-02-06 17:21:42 +01:00
a2f0d077c8 remove unused ssh.run method 2024-02-06 15:47:32 +01:00
c66c25aeb7 machines: don't ignore errors when parsing secretsData json 2024-02-06 15:15:21 +01:00
91f26a4743 skip machines without target_host when running clan machines update 2024-02-06 15:04:19 +01:00
ad1a87fc14 move checks if targetHost/buildHost is set to cli 2024-02-06 14:51:44 +01:00
ab05cfde30 clan_manager: Implemented machine_icon, machine_description 2024-02-06 20:13:18 +07:00
21443d0647 cli,nix: Add machine_icon, machine_description 2024-02-06 19:25:34 +07:00
815527ec2b clan-cli secrets: commit facts/secrets after generating them 2024-02-05 10:03:10 +01:00
e265537f69 clan-cli secrets: remove debug output 2024-02-05 10:03:10 +01:00
8114cebaa4 clan-cli git: add commit_files function 2024-02-05 10:03:10 +01:00
31188648f0 clan-cli update: remove legacy argument 2024-02-03 07:53:15 +01:00
6a62065cdf clan-cli update: upload only local paths from localhost 2024-02-03 07:53:15 +01:00
315cdea6ce clan-cli machines: remove debug prints 2024-02-02 17:40:19 +01:00
605b03bb91 clan-cli password-store: remove debug print 2024-02-02 17:40:19 +01:00
bcdde990ff clan-cli secrets: add check command 2024-02-02 17:40:19 +01:00
3538cf2e46 rename deployment address to target address
This is a prepares having a build server for deployment
2024-02-02 16:39:29 +07:00
7daca31db7 Merge pull request 'Starting to implement logs' (#796) from Qubasa-main into main 2024-02-02 05:07:39 +00:00
16562946fe vm-manager: Added log console printing on vm start. Added python logging module 2024-02-02 12:04:30 +07:00
789f3132c5 Merge pull request 'multi join via cli' (#795) from hsjobeki-main into main 2024-02-02 04:01:49 +00:00
e57169cb29
multi join via cli 2024-02-02 10:58:28 +07:00
56b6907740 qemu: init python modules for qmp and qga 2024-02-01 12:32:21 +07:00
533012af7d vms: rename wayland attrs to waypipe
And remove the options from the cli interface.
2024-02-01 10:14:36 +07:00
f89c9b00dd vms: wayland attr specified in configuration 2024-02-01 09:00:43 +07:00
59fa63eba9 Reapply "vm-state: fix and improve testing"
This reverts commit 99092f6e76.

vm-state: revert sysusers, improve testing

zerotier: enable persistence

vm-state: cleanup tests
2024-01-31 11:02:16 +07:00
961eb26335 secrets modules: pass secrets as bytes 2024-01-30 12:11:05 +01:00
0dbfe52d62 secrets: add sandbox user 2024-01-30 12:11:05 +01:00
649e345585 Machine __str__ impl 2024-01-30 15:32:35 +07:00
52f5c890cc URI: Fixed removed url fragment 2024-01-30 13:28:12 +07:00
a50d0f1743 CLI: Added grouping output for clan history list. 2024-01-30 12:39:52 +07:00
119a05d999 Fixed clan uri. Expand user, then resolve 2024-01-30 12:17:24 +07:00
c417157941 clan-cli: implement waypipe backend 2024-01-30 10:37:52 +07:00
9fef40258a cmd: skip print for zero-length bufs 2024-01-30 10:30:25 +07:00
a3d92a766e clan-cli: drop unused variables 2024-01-30 10:30:25 +07:00
80a335eb4c drop unused unfree_nixpkgs function 2024-01-30 10:30:25 +07:00
0366147235 clan-cli machines: get flake path via flake metadata 2024-01-29 09:54:30 +01:00
6b9f8b851e Merge pull request 'Revert "vm-state: fix and improve testing"' (#768) from DavHau-revert into main 2024-01-29 08:20:09 +00:00
99092f6e76 Revert "vm-state: fix and improve testing"
This reverts commit 6adc68a354.
2024-01-29 15:16:10 +07:00
f6c811e531 UI: Display error logs on VM crash. Fixed inspect_vm problem. 2024-01-29 15:11:57 +07:00
4a84d7da97 nix-direnv-watch-file -> watch-file 2024-01-29 11:02:43 +07:00
6adc68a354 vm-state: fix and improve testing
Also adds qemu qga protocol implementation to execute commands
2024-01-26 19:41:05 +07:00
3afed7a563 clan-cli secrets: generate secrets inside bubblewrap 2024-01-24 19:20:07 +01:00
abaa218e27 clan-cli install: use new Machine interface, fix mypy error 2024-01-24 15:49:24 +01:00
6ba641c974 clan-cli update: use new Machine class interface 2024-01-24 15:49:12 +01:00