-
Notifications
You must be signed in to change notification settings - Fork 16
Add KVM source #128
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
Open
drutigliano19
wants to merge
15
commits into
harvester:main
Choose a base branch
from
DavideRutigliano:feat/kvm-source
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add KVM source #128
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80b445e to
f52cc63
Compare
Signed-off-by: Davide Rutigliano <davide.rutigliano@suse.com>
Signed-off-by: Davide Rutigliano <davide.rutigliano@suse.com>
Signed-off-by: Davide Rutigliano <davide.rutigliano@suse.com>
Signed-off-by: Davide Rutigliano <davide.rutigliano@suse.com>
Signed-off-by: Davide Rutigliano <davide.rutigliano@suse.com>
Signed-off-by: Davide Rutigliano <davide.rutigliano@suse.com>
Signed-off-by: Davide Rutigliano <davide.rutigliano@suse.com>
Signed-off-by: Davide Rutigliano <davide.rutigliano@suse.com>
b9945b0 to
b369f98
Compare
Signed-off-by: Davide Rutigliano <davide.rutigliano@suse.com>
Signed-off-by: Davide Rutigliano <davide.rutigliano@suse.com>
Signed-off-by: Davide Rutigliano <davide.rutigliano@suse.com>
Signed-off-by: Davide Rutigliano <davide.rutigliano@suse.com>
b369f98 to
97b0ece
Compare
Signed-off-by: Davide Rutigliano <davide.rutigliano@suse.com>
07e9ede to
45fb501
Compare
Signed-off-by: Davide Rutigliano <davide.rutigliano@suse.com>
Signed-off-by: Davide Rutigliano <davide.rutigliano@suse.com>
6235146 to
5d74ea7
Compare
Member
|
I was only able to perform an import (until it failed) when patching the On the host system i was also not able to run |
|
Hello, I’d like to know more about the follow-up on this feature, because it’s much needed in my environment. Thank you. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
IMPORTANT: Please do not create a Pull Request without creating an issue first.
Problem:
The existing
vm-import-controllersupports migration only from centralized virtualization platforms, specifically VMware and OpenStack. To broaden the controller’s capability and allow users to transition their workloads into Harvester from decentralized, bare-metal hypervisor environments, support for Kernel-based Virtual Machine (KVM) sources is required.Solution:
This Pull Request introduces the architectural framework for KVM source migration by implementing the
KVMSourceCustom Resource Definition (CRD) and extending the main reconciliation logic to handle KVM environments.KVMSourceCRD to store KVM host connectivity information, particularly the Libvirt remote URI (qemu+ssh://host/system) and a reference to a Kubernetes Secret containing secure SSH credentials.libvirtURIto establish a secure connection, retrieve the source VM’s domain XML metadata, and manage the VM state (e.g., issuing a graceful shutdown) prior to data transfer.qemu+sshconnection and non-interactive SSH authentication to pull the disk image directly from the remote KVM host. This Job utilizes a tool to perform the mandatory conversion of the disk image (e.g., QCOW2) into the required raw disk format within the PVC scratch space.Related Issue:
N/A
Test plan:
End-to-end tests have been performed to validate the migration lifecycle for KVM sources:
KVMSourceCR and confirm that the controller successfully sets the status condition toclusterReadyafter validating the SSH/Libvirt connection.VirtualMachineImportCR referencing the newKVMSource.VirtualMachineImportstatus is updated tovirtualMachineRunning.