Skip to content

Commit

Permalink
Fix domain creation with libvirt (version 9.2.0 and greater) on s390x
Browse files Browse the repository at this point in the history
  • Loading branch information
telpelt authored and dmacvicar committed Sep 15, 2024
1 parent f5a8334 commit d37b41e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libvirt/domain_def.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ func newDomainDefForConnection(virConn *libvirt.Libvirt, rd *schema.ResourceData
d.OS.Firmware = "efi"
}

if d.OS.Type.Arch == "s390x" {
// for s390x remove the Features definition, because they are not available on this arch
d.Features = nil
}

caps, err := getHostCapabilities(virConn)
if err != nil {
return d, err
Expand Down

0 comments on commit d37b41e

Please sign in to comment.