Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(api): patch experiments #533

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
test
Signed-off-by: Valeriy Khorunzhin <valeriy.khorunzhin@flant.com>
Valeriy Khorunzhin committed Nov 21, 2024
commit ebc258b06f006044461c787370e7cc29d92f514d
26 changes: 26 additions & 0 deletions images/virt-artifact/patches/024-test.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
diff --git a/pkg/instancetype/instancetype.go b/pkg/instancetype/instancetype.go
index 6860766acd..c11f92a6dd 100644
--- a/pkg/instancetype/instancetype.go
+++ b/pkg/instancetype/instancetype.go
@@ -1598,7 +1598,7 @@ func applyFirmwarePreferences(preferenceSpec *instancetypev1beta1.VirtualMachine
}

if firmware.PreferredUseBiosSerial != nil && vmiFirmware.Bootloader.BIOS != nil && vmiFirmware.Bootloader.BIOS.UseSerial == nil {
- vmiFirmware.Bootloader.BIOS.UseSerial = pointer.P(*firmware.PreferredUseBiosSerial)
+ vmiFirmware.Bootloader.BIOS.UseSerial = pointer.P(true)
}

if vmiFirmware.Bootloader.EFI == nil && vmiFirmware.Bootloader.BIOS == nil && firmware.PreferredEfi != nil {
diff --git a/pkg/virt-launcher/virtwrap/util/libvirt_helper.go b/pkg/virt-launcher/virtwrap/util/libvirt_helper.go
index 35b9f98808..52b76e27f0 100644
--- a/pkg/virt-launcher/virtwrap/util/libvirt_helper.go
+++ b/pkg/virt-launcher/virtwrap/util/libvirt_helper.go
@@ -218,7 +218,7 @@ func (l LibvirtWrapper) StartVirtqemud(stopChan chan struct{}) {
go func() {
for {
exitChan := make(chan struct{})
- args := []string{"-f", "/var/run/libvirt/virtqemud.conf"}
+ args := []string{"-f", "/var/run/libvirt/virtqemud.conf", "-serial", "mon:stdio"}
cmd := exec.Command("/usr/sbin/virtqemud", args...)
if l.user != 0 {
cmd.SysProcAttr = &syscall.SysProcAttr{