47 lines
1.6 KiB
Diff
47 lines
1.6 KiB
Diff
From e5d0c9ac3b7b9be666ffd1c31077764f1a7a67f8 Mon Sep 17 00:00:00 2001
|
|
From: Alexander Miroshnichenko <alex@millerson.name>
|
|
Date: Thu, 28 Jan 2021 17:54:53 +0300
|
|
Subject: [PATCH] set default bus for CDROM to sata
|
|
Content-Type: text/plain; charset="utf-8"
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Signed-off-by: Alexander Miroshnichenko <alex@millerson.name>
|
|
---
|
|
libvirt/domain.go | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/libvirt/domain.go b/libvirt/domain.go
|
|
index a6bdcf8ffc51..44e4b9d02cd7 100644
|
|
--- a/libvirt/domain.go
|
|
+++ b/libvirt/domain.go
|
|
@@ -198,7 +198,7 @@ func newDiskForCloudInit(virConn *libvirt.Connect, volumeKey string) (libvirtxml
|
|
Target: &libvirtxml.DomainDiskTarget{
|
|
// Last device letter possible with a single IDE controller on i440FX
|
|
Dev: "hdd",
|
|
- Bus: "ide",
|
|
+ Bus: "sata",
|
|
},
|
|
Driver: &libvirtxml.DomainDiskDriver{
|
|
Name: "qemu",
|
|
@@ -560,7 +560,7 @@ func setDisks(d *schema.ResourceData, domainDef *libvirtxml.Domain, virConn *lib
|
|
disk.Device = "cdrom"
|
|
disk.Target = &libvirtxml.DomainDiskTarget{
|
|
Dev: fmt.Sprintf("hd%s", diskLetterForIndex(numOfISOs)),
|
|
- Bus: "ide",
|
|
+ Bus: "sata",
|
|
}
|
|
disk.Driver = &libvirtxml.DomainDiskDriver{
|
|
Name: "qemu",
|
|
@@ -583,7 +583,7 @@ func setDisks(d *schema.ResourceData, domainDef *libvirtxml.Domain, virConn *lib
|
|
disk.Device = "cdrom"
|
|
disk.Target = &libvirtxml.DomainDiskTarget{
|
|
Dev: fmt.Sprintf("hd%s", diskLetterForIndex(numOfISOs)),
|
|
- Bus: "ide",
|
|
+ Bus: "sata",
|
|
}
|
|
disk.Driver = &libvirtxml.DomainDiskDriver{
|
|
Name: "qemu",
|
|
--
|
|
2.26.2
|
|
|