Skip to content

Commit

Permalink
fix: add missing qmeventd service
Browse files Browse the repository at this point in the history
fixes #34
  • Loading branch information
camillemndn committed Jul 11, 2024
1 parent 5cb834a commit b69d6ad
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/proxmox-ve/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ in
# ./firewall.nix
# ./ha-manager.nix
./manager.nix
./qemu-server.nix
./rrdcached.nix
];

Expand Down
21 changes: 21 additions & 0 deletions modules/proxmox-ve/qemu-server.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
config,
lib,
pkgs,
...
}:

lib.mkIf config.services.proxmox-ve.enable {
systemd.services.qmeventd = {
description = "PVE Qemu Event Daemon";
wantedBy = [ "multi-user.target" ];
before = [
"pve-ha-lrm.service"
"pve-guests.service"
];
serviceConfig = {
ExecStart = "${pkgs.pve-ha-manager}/bin/qmeventd /var/run/qmeventd.sock";
Type = "forking";
};
};
}
1 change: 1 addition & 0 deletions tests/vm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@
machine.succeed("cp ${pkgs.nixos-proxmox-ve-iso}/iso/*.iso /var/lib/vz/template/iso/nixos-proxmox-ve.iso")
machine.succeed("qm create 100 --kvm 0 -cdrom local:iso/nixos-proxmox-ve.iso")
machine.succeed("qm start 100")
machine.succeed("qm shutdown 100")
'';
}

0 comments on commit b69d6ad

Please sign in to comment.