Commit Graph

65 Commits

Author SHA1 Message Date
Adam C. Stephens
9bebd86680 nixos/tests/incus: pass package to releases config
virtual-machine releases use virtualisation.incus.package to find
where the agent-loader configuration is defined. In practice it's
likely not a problem, but when marking lts v6 on 25.11 as vulnerable
it exposed the mismatch. For correctness we should ensure the VM
tests are using the agent loader from the relevant incus package.
2026-06-02 13:36:21 -04:00
Adam C. Stephens
637dbd52c8 incus: 6.23.0 -> 7.0.0; incus-lts: 6.0.6-unstable-2026-03-27 -> 7.0.0 (#515853) 2026-05-06 17:45:34 +00:00
Tom Herbers
bc3c1a6907 nixos/tests/incus: update to new syntax
Currently only a warning.
2026-05-06 17:56:35 +02:00
Tom Herbers
e09f967bc3 nixos/incus-image: disable cloneConfig module
The cloneConfig module can prevent the incus-create-nixos-config.service from
running because it will already have generated a configuration.nix.

Also modifies the test to hopefully catch that.

Fixes 0f363a1cb4
2026-05-06 02:36:33 +02:00
Tom Herbers
622550161e nixos/incus: drop option to gate bucket support
This reverts commit 4426551578.
2026-05-05 17:43:09 +02:00
Adam C. Stephens
4426551578 nixos/incus: gate bucket support since it requires insecure minio
If upstream replaces minio for v7, we can drop this, but minio is now insecure forcing us to act.
2026-04-29 14:19:31 -04:00
Adam C. Stephens
45225c04ce nixosTests.incus: add test of container channel setup 2026-04-25 15:58:37 -04:00
Ramses
fb5f54e05e nixos: replace container activation scripts (#499313) 2026-04-09 15:06:25 +00:00
Kierán Meinhardt
84fe17e869 nixos/tests: fix machine type hints
With the addition of test driver machines based on systemd-nspawn, the
`Machine` class was superseded by an abstract base class `BaseMachine`
and a subclass `QemuMachine` for conventional QEMU-based test nodes.

This commit fixes the usage of the `Machine` class in type annotations
across our tests. It also makes the tests use the more specific
`machines_qemu` variable if QEMU-specific features are required from the
machines. (`machines` provides only the methods shared by both
`NspawnMachine` and `Qemumachine`.)
2026-03-24 16:03:28 +01:00
r-vdp
61425f107b nixos/tests/incus: test config creation and switch-to-configuration
Add subtests to verify the activation script replacements:
- config create service creates /etc/nixos/configuration.nix on first boot
- service does not overwrite existing configuration (ConditionPathExists)
- switch-to-configuration switch calls installBootLoader, creating /sbin/init
  (container-only, since VMs use a real bootloader)
2026-03-18 18:37:06 +01:00
Adam C. Stephens
5793a2e22d incus-lts: 6.0.5-unstable-2026-01-23 -> 6.0.6
Changelog: https://github.com/lxc/incus/releases/tag/v6.0.6
2026-03-17 10:13:13 -04:00
Adam C. Stephens
667130a185 nixosTests.incus: support user storage permissions change >= 6.21
Users can now read pools, but not their config
2026-01-23 21:12:02 -05:00
Adam C. Stephens
2c84737d3a nixos/tests/incus: use runTestOn to limit systems, skip VMs aarch64-linux 2025-11-08 09:18:56 -05:00
Adam C. Stephens
f25d94d9c0 nixos/tests/incus: give tests unique names 2025-11-08 09:18:55 -05:00
Adam C. Stephens
1aa2d898d1 nixos/tests/incus: fix lvm, zfs, ovs tests 2025-11-08 09:18:54 -05:00
Adam C. Stephens
6aa913f085 nixos/tests/incus: fix user feature 2025-11-08 09:18:53 -05:00
Adam C. Stephens
099cd0e1fb nixos/tests/incus: present instances as a submodule 2025-11-08 09:18:52 -05:00
Adam C. Stephens
83aa672156 nixos/tests/incus: use child class 2025-11-08 09:18:51 -05:00
Adam C. Stephens
55890046f7 nixos/tests/incus: migrate test suite to runTest modules 2025-11-08 09:18:50 -05:00
Adam C. Stephens
ec17e680af lxd: remove packages and modules 2025-09-13 12:47:00 -04:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
MakiseKurisu
d008f045db nixos/tests/incus: add test for apparmor.service 2025-06-09 00:32:43 +08:00
Adam C. Stephens
21197daa39 incus: build and expose documentation 2025-04-03 16:00:08 +00:00
MakiseKurisu
f6128c6050 nixos/tests/incus: add AppArmor test 2025-03-26 21:01:23 +08:00
MakiseKurisu
f4fd5a51b5 nixos/tests/incus: fix zfs test configuration 2025-03-26 21:01:15 +08:00
Adam C. Stephens
c273acfbfe incus-ui-canonical: 0.14.6 -> 0.15
lxd upstream changelog:
https://github.com/canonical/lxd-ui/releases/tag/0.15
2025-02-25 21:51:20 -05:00
Adam C. Stephens
272fb5babf nixos/tests/incus: extend check timeouts 2025-01-25 10:50:36 -05:00
Adam C. Stephens
f3a75905ab nixos/tests/incus: fix subtest names and add reboot check 2025-01-17 10:11:07 -05:00
Adam C. Stephens
274e0fd934 incus: support per-instance lxcfs
This was added in 6.4 and backported to LTS 6.0.2
2025-01-17 10:11:06 -05:00
Adam C. Stephens
9b660dff6d incus: fix instance shutdown when softDaemonRestart enabled 2025-01-17 10:11:04 -05:00
Adam C. Stephens
9e95bbbc34 nixos/tests/incus: fix multi-system support 2024-12-22 19:33:47 -05:00
Adam C. Stephens
6cd3dd3c64 incus: fix CSM support 2024-12-18 23:45:33 -05:00
Adam C. Stephens
d7552b8a2d incus: refactor tests 2024-12-18 23:45:31 -05:00
Adam C. Stephens
967137ab0e incus: 6.7.0 -> 6.8.0
https://github.com/lxc/incus/releases/tag/v6.8.0
2024-12-13 20:34:47 -05:00
Adam C. Stephens
c494726b98 incus: fix container tests from image rename 2024-11-30 00:08:02 -05:00
Adam C. Stephens
9ab59bb5fb incus: format 2024-11-30 00:04:54 -05:00
Adam C. Stephens
4238856f15 incus: 6.6.0 -> 6.7.0 (#356230) 2024-11-23 17:46:48 -05:00
Adam Stephens
ed24c80ef6 incus: add tpm to container test 2024-11-23 16:37:31 -05:00
Adam Stephens
0e12722d4b incus: fix tpm support 2024-11-23 16:28:31 -05:00
Adam C. Stephens
496390848d incus: add lvm to storage test 2024-11-23 13:15:48 -05:00
Adam Stephens
0214dd4ef2 nixos/tests/incus: test incus-user 2024-11-15 23:32:16 -05:00
Matteo Sozzi
389de87aed lxc: added option for unprivileged containers.
Added extra option to enable unprivileged containers. This includes a
patch to remove the hard-coded path to `lxc-user-nic` and a new security
wrapper to set SUID to `lxc-user-nic`.
2024-08-28 09:18:23 -04:00
Adam Stephens
4d2a0cfb34 nixos/tests/incus: fix container importing 2024-08-28 09:18:17 -04:00
Adam Stephens
094f2b6c9d nixos/incus: add incus-only vm and container images 2024-08-10 13:23:36 -04:00
Adam Stephens
e58c57a868 nixos/tests/incus: enable testing both LTS and non-LTS 2024-05-09 10:03:07 -04:00
Adam Stephens
7d5b333dcd nixos/incus: add support for soft daemon restart
This is a feature supported out of the box by upstream and allows the
incusd service to be restarted without impacting running
instances. While this does give up a bit of reproducibility, qemu and
lxc for example, there are clear benefits in allowing the host to
apply updates without impacting instances.

Modeled after the zabbly implementation: 2a67c3e260/systemd/incus-startup.service

This will now be the default.
2024-05-09 09:01:12 -04:00
Martin Weinelt
8541ec6d85 nixos/incus: add support for software TPMs
Was previously broken due to a missing runtime dependency.

> Error: Failed to start device "vtpm": Failed to validate environment: Required tool 'swtpm' is missing
2024-04-23 12:04:14 +02:00
Adam Stephens
76c69af624 nixos/lxd-virtual-machine: enable CPU hotplug for x86 VMs 2024-04-18 10:36:55 -04:00
Adam Stephens
deb5be50c4 incus: move wrapper to nixos module 2024-03-19 22:48:07 -04:00
Adam Stephens
9d411861b5 nixos/tests/incus: add storage test and exercise zfs integration 2024-03-15 20:39:54 -04:00