Enable QEMU/KVM/libvirt
This commit is contained in:
parent
bb1df0d1c0
commit
1bc0a8f8c5
1 changed files with 13 additions and 1 deletions
|
@ -132,10 +132,11 @@
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Xen-orchestra
|
# Podman Containers
|
||||||
virtualisation.oci-containers = {
|
virtualisation.oci-containers = {
|
||||||
backend = "podman";
|
backend = "podman";
|
||||||
containers ={
|
containers ={
|
||||||
|
# Xen-orchestra container
|
||||||
xen-orchestra = {
|
xen-orchestra = {
|
||||||
image = "docker.io/ronivay/xen-orchestra:5.136.0";
|
image = "docker.io/ronivay/xen-orchestra:5.136.0";
|
||||||
ports = [ "80:80" ];
|
ports = [ "80:80" ];
|
||||||
|
@ -174,6 +175,17 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Enable QEMU/KVM/libvirt
|
||||||
|
virtualisation.libvirt.enable = true;
|
||||||
|
virtualisation.libvirtd = {
|
||||||
|
enable = true;
|
||||||
|
qemu = {
|
||||||
|
package = pkgs.qemu_kvm;
|
||||||
|
ovmf.enable = true;
|
||||||
|
ovmf.packages = [pkgs.OVMFFull.fd];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||||
|
|
Reference in a new issue