Skip to content

Commit

Permalink
Skip default LinuxPrep bootstrap for ISO VM deployment (#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
dilyar85 authored Jul 25, 2024
1 parent b5d1a3d commit 2b25d5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/providers/vsphere/vmlifecycle/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ func DoBootstrap(
if bootstrap == nil {
// V1ALPHA1: We had always defaulted to LinuxPrep w/ HwClockUTC=true.
// Now, try to just do that on Linux VMs.
if !isLinuxGuest(config.GuestId) {
// Skip if the VM has a CD-ROM as the Linux ISO-type image may not have
// the necessary tools to do the default LinuxPrep bootstrap.
if !isLinuxGuest(config.GuestId) || len(vmCtx.VM.Spec.Cdrom) > 0 {
vmCtx.Logger.V(6).Info("no bootstrap provider specified")
return nil
}
Expand Down

0 comments on commit 2b25d5c

Please sign in to comment.