diff options
Diffstat (limited to 'libvirt/domain_def.go')
-rw-r--r-- | libvirt/domain_def.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libvirt/domain_def.go b/libvirt/domain_def.go index 85004051..5f443a62 100644 --- a/libvirt/domain_def.go +++ b/libvirt/domain_def.go @@ -36,13 +36,13 @@ func newDomainDef() libvirtxml.Domain { CPU: &libvirtxml.DomainCPU{}, Devices: &libvirtxml.DomainDeviceList{ Graphics: []libvirtxml.DomainGraphic{ - libvirtxml.DomainGraphic{ + { Type: "spice", AutoPort: "yes", }, }, Channels: []libvirtxml.DomainChannel{ - libvirtxml.DomainChannel{ + { Type: "unix", Target: &libvirtxml.DomainChannelTarget{ Type: "virtio", @@ -51,7 +51,7 @@ func newDomainDef() libvirtxml.Domain { }, }, RNGs: []libvirtxml.DomainRNG{ - libvirtxml.DomainRNG{ + { Model: "virtio", Backend: &libvirtxml.DomainRNGBackend{ Model: "random", |