Skip to content

HostDeviceInfo support for various devices#96

Draft
m-ildefons wants to merge 1 commit into
harvester:masterfrom
m-ildefons:gh-10764
Draft

HostDeviceInfo support for various devices#96
m-ildefons wants to merge 1 commit into
harvester:masterfrom
m-ildefons:gh-10764

Conversation

@m-ildefons

Copy link
Copy Markdown
Member

Add HostDeviceInfo struct and related command line flag to the Docker machine driver. This enables the driver to add various host devices (USB, PCI, etc) to a VM.

Problem:

Rancher Terraform provider can not attach host devices other than vGPUs to VMs.
This is due to the fact that it uses the .spec.domain.devices.gpus fiel in the VM instance template.

Solution:

Add an analogue mechanism for adding host devices in general using the .spec.domain.devices.hostDevices field in the VM instance spec.
This works for PCI devices other than GPUs as well as USB devices.

Related Issue(s):

harvester/harvester#10764

Test plan:

TBD.

Additional documentation or context

Add HostDeviceInfo struct and related command line flag to the Docker
machine driver. This enables the driver to add various host devices
(USB, PCI, etc) to a VM.

related-to: harvester/harvester#10764

Signed-off-by: Moritz Röhrich <moritz.rohrich@suse.com>
@m-ildefons m-ildefons self-assigned this Jun 11, 2026
@mergify

mergify Bot commented Jun 12, 2026

Copy link
Copy Markdown

This pull request is now in conflict. Could you fix it @m-ildefons? 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant