Skip to content

attach DVD Drive on new VM - #235

Merged
openshift-merge-bot[bot] merged 1 commit into
containers:mainfrom
lstocchi:supportDVD
Jun 23, 2025
Merged

attach DVD Drive on new VM#235
openshift-merge-bot[bot] merged 1 commit into
containers:mainfrom
lstocchi:supportDVD

Conversation

@lstocchi

Copy link
Copy Markdown
Contributor

this patch allows to attach a DVD device when creating a VM.

This is helpful when wanting to customize VM using cloud-init. By attaching the cloud-init config ISO as a DVD, we can deliver the configuration to the VM

this patch allows to attach a DVD device when creating a VM.

This is helpful when wanting to customize VM using cloud-init.
By attaching the cloud-init config ISO as a DVD, we can deliver the
configuration to the VM

Signed-off-by: lstocchi <lstocchi@redhat.com>
Comment thread pkg/hypervctl/vm.go
Finish(). // drive
//AddSyntheticDvdDrive(1).
//DefineVirtualDvdDisk(isoFile).
//Finish(). // disk

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you confident this will not break other consumers of libhvee?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quite sure. It should work as before if there is no dvd device. I tested it with podman. Not sure if there is something else to check

@cfergeau

Copy link
Copy Markdown

/lgtm

@cfergeau

Copy link
Copy Markdown

The testing farm error does not seem to be related to this PR, some issues with golangci-lint which seem to be preexisting.

@baude

baude commented Jun 23, 2025

Copy link
Copy Markdown
Member

/approve

@openshift-ci

openshift-ci Bot commented Jun 23, 2025

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: baude, lstocchi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot
openshift-merge-bot Bot merged commit 39252f3 into containers:main Jun 23, 2025
4 of 5 checks passed
@lstocchi
lstocchi deleted the supportDVD branch June 24, 2025 09:38
lstocchi added a commit to lstocchi/podman that referenced this pull request Jun 24, 2025
it upgrades the libhvee library version. To use cloud-init on Hyperv we need to
attach a DVD drive to the VM so we needs a version of libhvee that
includes containers/libhvee#235

Signed-off-by: lstocchi <lstocchi@redhat.com>
lstocchi added a commit to lstocchi/podman that referenced this pull request Jun 25, 2025
it upgrades the libhvee library version. To use cloud-init on Hyperv we need to
attach a DVD drive to the VM so we needs a version of libhvee that
includes containers/libhvee#235

Signed-off-by: lstocchi <lstocchi@redhat.com>
lstocchi added a commit to lstocchi/podman that referenced this pull request Jun 30, 2025
it upgrades the libhvee library version. To use cloud-init on Hyperv we need to
attach a DVD drive to the VM so we needs a version of libhvee that
includes containers/libhvee#235

Signed-off-by: lstocchi <lstocchi@redhat.com>
lstocchi added a commit to lstocchi/podman that referenced this pull request Jun 30, 2025
it upgrades the libhvee library version. To use cloud-init on Hyperv we need to
attach a DVD drive to the VM so we needs a version of libhvee that
includes containers/libhvee#235

Signed-off-by: lstocchi <lstocchi@redhat.com>
lstocchi added a commit to lstocchi/podman that referenced this pull request Jun 30, 2025
it upgrades the libhvee library version. To use cloud-init on Hyperv we need to
attach a DVD drive to the VM so we needs a version of libhvee that
includes containers/libhvee#235

Signed-off-by: lstocchi <lstocchi@redhat.com>
lstocchi added a commit to lstocchi/podman that referenced this pull request Jun 30, 2025
it upgrades the libhvee library version. To use cloud-init on Hyperv we need to
attach a DVD drive to the VM so we needs a version of libhvee that
includes containers/libhvee#235

Signed-off-by: lstocchi <lstocchi@redhat.com>
lstocchi added a commit to lstocchi/podman that referenced this pull request Jul 3, 2025
it upgrades the libhvee library version. To use cloud-init on Hyperv we need to
attach a DVD drive to the VM so we needs a version of libhvee that
includes containers/libhvee#235

Signed-off-by: lstocchi <lstocchi@redhat.com>
lstocchi added a commit to lstocchi/podman that referenced this pull request Jul 3, 2025
it upgrades the libhvee library version. To use cloud-init on Hyperv we need to
attach a DVD drive to the VM so we needs a version of libhvee that
includes containers/libhvee#235

Signed-off-by: lstocchi <lstocchi@redhat.com>
lstocchi added a commit to lstocchi/podman that referenced this pull request Jul 3, 2025
it upgrades the libhvee library version. To use cloud-init on Hyperv we need to
attach a DVD drive to the VM so we needs a version of libhvee that
includes containers/libhvee#235

Signed-off-by: lstocchi <lstocchi@redhat.com>
cfergeau pushed a commit to cfergeau/podman that referenced this pull request Aug 19, 2025
it upgrades the libhvee library version. To use cloud-init on Hyperv we need to
attach a DVD drive to the VM so we needs a version of libhvee that
includes containers/libhvee#235

Signed-off-by: lstocchi <lstocchi@redhat.com>
cfergeau pushed a commit to cfergeau/podman that referenced this pull request Aug 19, 2025
it upgrades the libhvee library version. To use cloud-init on Hyperv we need to
attach a DVD drive to the VM so we needs a version of libhvee that
includes containers/libhvee#235

Signed-off-by: lstocchi <lstocchi@redhat.com>
cfergeau pushed a commit to cfergeau/podman that referenced this pull request Aug 26, 2025
it upgrades the libhvee library version. To use cloud-init on Hyperv we need to
attach a DVD drive to the VM so we needs a version of libhvee that
includes containers/libhvee#235

Signed-off-by: lstocchi <lstocchi@redhat.com>
cfergeau pushed a commit to cfergeau/podman that referenced this pull request Aug 26, 2025
it upgrades the libhvee library version. To use cloud-init on Hyperv we need to
attach a DVD drive to the VM so we needs a version of libhvee that
includes containers/libhvee#235

Signed-off-by: lstocchi <lstocchi@redhat.com>
cfergeau pushed a commit to cfergeau/podman that referenced this pull request Aug 26, 2025
it upgrades the libhvee library version. To use cloud-init on Hyperv we need to
attach a DVD drive to the VM so we needs a version of libhvee that
includes containers/libhvee#235

Signed-off-by: lstocchi <lstocchi@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants