hashicorp / hashicorp/nomad-driver-virt

support for custom domain xml and advanced KVM cases

Open
#92 0 comments 0 reactions 0 assignees View on GitHub
stage/needs-investigation theme/config type/enhancement
Dominant language
Go
Stars
32
Forks
9
Avg merge
1d 10h
Merged PRs (30d)
11

Description

For advanced cases where user might want deeper control over KVM domain XML definition, it would be nice to allow the user to supply a known, working domain XML definition with exception of some basic things like the image file path. Example XML taken from testing with virt-manager

[windows-good.xml.txt](https://github.com/user-attachments/files/17998725/windows-good.xml.txt)

```
job "WindowsWorkload" {

datacenters = ["edge"]

group "OfficeEdge" {
count = 1
network {
mode = "host"
port "ssh" {
to = 22
}
}
task "WindowsPrintServer" {
driver = "nomad-driver-virt"

artifact {
source = "http://192.168.0.5/windows-good.xml"
}
config {
domain_xml = "local/windows-good.xml"
image = "/var/lib/virt/Win2022_20324.qcow2"
}
resources {
cores = 2
memory = 4000
}
}
}
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how the driver handles the config fields `domain_xml` and `image`, then compare that behavior with the attached `windows-good.xml.txt` example. Done means a job can supply a known domain XML definition while the driver still substitutes the configured image file path for the KVM workload.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.