-
Notifications
You must be signed in to change notification settings - Fork 12
[ENHANCEMENT] Improve auto-detection of the disk bus type of the VMware importer #72
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
base: main
Are you sure you want to change the base?
Conversation
The new default value is |
230e536
to
d7d305b
Compare
48a953b
to
ddc1579
Compare
2cf5f65
to
24c96d4
Compare
24c96d4
to
8fc9114
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks.
Thought about adding a |
95770f8
to
c65ca39
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks.
This pull request is now in conflict. Could you fix it @votdev? 🙏 |
Related to: harvester/harvester#7987 Signed-off-by: Volker Theile <[email protected]>
Signed-off-by: Volker Theile <[email protected]>
This allows the user to customize the disk bus type in case the auto-detection fails. Note, the OpenStack source client does not support auto-detection, thus it will always make use of the `DefaultDiskBusType` field if specified. The `DefaultDiskBusType` defaults to `virtio`. Signed-off-by: Volker Theile <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks.
The IDE disk bus is not supported anymore in the kubevirt version we are using: kubevirt.io/api-reference/v1.1.0/definitions.html#_v1_disktarget
This PR is mapping it to SATA because VirtIO requires the kernel drivers to be installed in the VM which can not be guaranteed.
This is the mapping of the VMware source client:
The new
DefaultDiskBusType
field inVirtualMachineImportSpec
allows the user to customize the disk bus type in case the auto-detection fails. Note, the OpenStack source client does not support auto-detection, thus it will always make use of theDefaultDiskBusType
field if specified. TheDefaultDiskBusType
defaults tovirtio
.Related Issue:
harvester/harvester#7987
Test plan:
Use added unit tests.