!VhzbGHamdfMiGxpXyg:robins.wtf

NixOS LXC

33 Members
lxc, lxd, incus discussions related to NixOS14 Servers

Load older messages


SenderMessageTime
27 May 2024
@hexa:lossy.networkhexaok, probably have to look into zfs as the backing storage now as well08:37:31
@adam:robins.wtfadamcstephensi've zfs for years with incus/lxd, even moving between systems and pools. no problems i can remember12:48:04
@hexa:lossy.networkhexaso it does zfs send for stateful migration I assume?12:50:09
@hexa:lossy.networkhexaand ultimately an instance has its storage only backed by whatever raid constellation the local machine it currently resides on, correct?12:51:03
@adam:robins.wtfadamcstephensyeah i think it uses zfs send for a migration13:36:25
@adam:robins.wtfadamcstephensi've only tried that once or twice13:36:34
@adam:robins.wtfadamcstephensceph not working?13:36:48
@hexa:lossy.networkhexaso how does it catch up with changes to the zvol, since the guest is still running13:36:56
@hexa:lossy.networkhexaI can get it to work, I'm not sure I can reasonably get the colleagues to a point where they're in a position to maintain and debug it 🙂 13:37:32
@hexa:lossy.networkhexawe're primarily a network carrier13:37:52
@adam:robins.wtfadamcstephens
❯ incus move blank:just-bobcat bonk:
Error: Failed instance creation: Expected "criu" connection secret missing from migration sink target request
13:43:06
@adam:robins.wtfadamcstephenshmm13:43:07
@hexa:lossy.networkhexacontainer?13:45:01
@adam:robins.wtfadamcstephensno, it's a VM13:45:43
@hexa:lossy.networkhexahuh, so why CRIU13:46:13
@hexa:lossy.networkhexaor is that stateful migration with ZFS? 😄 13:46:35
@hexa:lossy.networkhexa * or is that a stateful migration with ZFS? 😄 13:46:39
@hexa:lossy.networkhexawhere it tries to freeze the VM13:46:47
@adam:robins.wtfadamcstephensyeah thats a stateful migration13:47:00
@adam:robins.wtfadamcstephensa stateless migration works, so maybe we're missing something13:52:51
@hexa:lossy.networkhexadoes your kernel have CRIU?13:56:20
@hexa:lossy.networkhexa
$ zgrep -i CHECKPOINT_RESTORE /proc/config.gz
CONFIG_CHECKPOINT_RESTORE=y
13:57:55
@hexa:lossy.networkhexa kernel 5.9. added CAP_CHECKPOINT_RESTORE 13:58:05
@adam:robins.wtfadamcstephensyeah i'm using the nixos 6.6 lts13:58:22
@hexa:lossy.networkhexayeah, just if you have set a capab boundingset13:58:41
@adam:robins.wtfadamcstephens
❯ /nix/store/d5f5grj684mp1xl6h7llgr2cklpdg2z4-criu-3.19/bin/criu check
CRIU needs to have the CAP_SYS_ADMIN or the CAP_CHECKPOINT_RESTORE capability:
setcap cap_checkpoint_restore+eip /nix/store/d5f5grj684mp1xl6h7llgr2cklpdg2z4-criu-3.19/bin/criu
~ adam@blank
❯ sudo /nix/store/d5f5grj684mp1xl6h7llgr2cklpdg2z4-criu-3.19/bin/criu check
Looks good.
~ adam@blank
❯ sudo systemd-analyze security incus | rg sys_admin
✗ CapabilityBoundingSet=~CAP_SYS_ADMIN                        Service has administrator privileges 

14:01:31
@hexa:lossy.networkhexaand the "or" is not misleading?14:13:23
@adam:robins.wtfadamcstephensincus runs as root with admin capability. is that not sufficient?14:23:59
@hexa:lossy.networkhexathe messages implies that14:31:50
@hexa:lossy.networkhexajust want to rule out we're missing anything obvious due to that sentence being dogshit14:32:10

Show newer messages


Back to Room ListRoom Version: 10