Skip to content

Commit

Permalink
Merge pull request #78 from ksimon1/windows-virtio-bus-warning
Browse files Browse the repository at this point in the history
win templates: add warning virtio bus validation
  • Loading branch information
ffromani authored Aug 7, 2019
2 parents 550e155 + e61605e commit bad41a8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions templates/win2k12r2.tpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,19 @@ metadata:
"rule": "integer",
"message": "This VM requires more memory.",
"min": {{ lookup('osinfo', osinfoname)["minimum_resources.0.ram"] }}
}, {
"name": "windows-virtio-bus",
"path": "jsonpath::.spec.domain.devices.disks[*].disk.bus",
"rule": "enum",
"message": "virto disk bus type has better performance, install virtio drivers in VM and change bus type",
"values": ["virtio"],
"justWarning": true
}, {
"name": "windows-disk-bus",
"path": "jsonpath::.spec.domain.devices.disks[*].disk.bus",
"rule": "enum",
"message": "disk bus has to be either virtio or sata",
"values": ["virtio", "sata"]
}
]
Expand Down

0 comments on commit bad41a8

Please sign in to comment.