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

Extend conversion API with option to inject virtio drivers #13748

Merged
merged 13 commits into from
Jul 26, 2024

Conversation

MusicDin
Copy link
Member

This PR adds new conversion option virtio (disabled by default). When enabled, LXD invokes virt-v2v-in-place tool on the host to inject virtio drivers into the image. For Windows images, additional drivers need to be present in /usr/share/virt-tools.

This requires:

@github-actions github-actions bot added Documentation Documentation needs updating API Changes to the REST API labels Jul 12, 2024
Copy link

Heads up @ru-fu - the "Documentation" label was applied to this issue.

@MusicDin MusicDin force-pushed the feat/vm-import-v2v branch 5 times, most recently from 954d775 to 864f407 Compare July 12, 2024 12:07
doc/.wordlist.txt Outdated Show resolved Hide resolved
doc/howto/import_machines_to_instances.md Outdated Show resolved Hide resolved
doc/howto/import_machines_to_instances.md Outdated Show resolved Hide resolved
doc/howto/import_machines_to_instances.md Outdated Show resolved Hide resolved
@MusicDin MusicDin force-pushed the feat/vm-import-v2v branch from 864f407 to fc59dc0 Compare July 16, 2024 08:11
doc/howto/import_machines_to_instances.md Outdated Show resolved Hide resolved
doc/howto/import_machines_to_instances.md Outdated Show resolved Hide resolved
doc/.sphinx/.markdownlint/exceptions.txt Outdated Show resolved Hide resolved
@MusicDin MusicDin force-pushed the feat/vm-import-v2v branch 2 times, most recently from 7dba25e to 8bb7a17 Compare July 16, 2024 08:31
@tomponline
Copy link
Member

Time to rebase please

@MusicDin MusicDin force-pushed the feat/vm-import-v2v branch from 8bb7a17 to 21dce8c Compare July 17, 2024 21:01
@github-actions github-actions bot removed the API Changes to the REST API label Jul 17, 2024
@MusicDin MusicDin force-pushed the feat/vm-import-v2v branch from 21dce8c to 00513b6 Compare July 17, 2024 21:09
@tomponline
Copy link
Member

@MusicDin ready for review?

@MusicDin MusicDin marked this pull request as ready for review July 18, 2024 07:30
@MusicDin MusicDin force-pushed the feat/vm-import-v2v branch from 00513b6 to d971dd4 Compare July 18, 2024 08:22
@MusicDin MusicDin force-pushed the feat/vm-import-v2v branch from d971dd4 to 8b1b5ec Compare July 18, 2024 09:10
Copy link
Member

@tomponline tomponline left a comment

Choose a reason for hiding this comment

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

Looking good, just a few nits/questions really.

Copy link
Member

@tomponline tomponline left a comment

Choose a reason for hiding this comment

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

A few nits, but i would say very nearly ready.

@MusicDin MusicDin force-pushed the feat/vm-import-v2v branch 3 times, most recently from 3d637fb to 9503644 Compare July 26, 2024 07:31
@MusicDin
Copy link
Member Author

@tomponline Ready for another round of review

Copy link
Member

@tomponline tomponline left a comment

Choose a reason for hiding this comment

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

Just an issue with correct attribution of the writeback change.

@MusicDin MusicDin force-pushed the feat/vm-import-v2v branch from 9503644 to e4efb00 Compare July 26, 2024 09:36
stgraber and others added 9 commits July 26, 2024 09:37
Signed-off-by: Stéphane Graber <[email protected]>
(cherry picked from commit bbc1ea8cd0cb01b4830fd960007f4c5b6d05edf2)
Signed-off-by: Din Music <[email protected]>
License: Apache-2.0
Signed-off-by: Stéphane Graber <[email protected]>
(cherry picked from commit f57c3e41beb406da488888493ddae953aa71f9f3)
Signed-off-by: Din Music <[email protected]>
License: Apache-2.0
Use virt-v2v-in-place for injecting virtio drivers into the image.

Signed-off-by: Din Music <[email protected]>
@MusicDin MusicDin force-pushed the feat/vm-import-v2v branch from e4efb00 to 29be374 Compare July 26, 2024 09:37
Copy link
Member

@tomponline tomponline left a comment

Choose a reason for hiding this comment

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

LGTM!

@tomponline
Copy link
Member

@MusicDin cool thanks, will merge this soon. Do you have a PR for lxd-ci to test virtio mode in the works?

@tomponline tomponline merged commit 51d8dc8 into canonical:main Jul 26, 2024
28 checks passed
@MusicDin MusicDin deleted the feat/vm-import-v2v branch July 26, 2024 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Documentation needs updating
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants