Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added vcpu_count to the windows template #49

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ These are the arguments:
* `name`: the libvirt name (string, required)
* `uuid`: the libvirt identifier (UUID string, required)
* `memory`: amount of RAM (set with `count` (integer) and `unit` (string) attributes, default `{ count = 4; unit = "GiB"; }`)
* `memory`: the number of virtual CPU (integer, default `2`)
* `storage_vol`: source element or path to a QCOW2 volume for storage, or null (set, string or path, default `null`)
* `install_vol`: source element or path to an ISO image for an inserted CDROM, or null (set, string or path, default `null`)
* `nvram_path`: path to a file for storing NVRAM, this file will be created if missing (string or path, required)
Expand Down
3 changes: 2 additions & 1 deletion templates/domain/windows.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ stuff@{ packages, packages-ovmf, guest-install, ... }:
, virtio_drive ? false
, virtio_video ? true
, install_virtio ? false
, vcpu_count ? 2
, ...
}:
let
Expand All @@ -22,7 +23,7 @@ let
in
base //
{
vcpu.count = 2;
vcpu.count = vcpu_count;
os = base.os //
{
loader =
Expand Down
Loading