You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Extend Import-Export Instances to the KVM Hypervisor #7127
The Import-Export functionality is only allowed for the Vmware hypervisor. The functionality is developed within a VM ingestion framework that allows the extension to other hypervisors. The Import-Export functionality consists on few APIs and the UI to interact with them:
listUnmanagedInstances: Lists unmanaged virtual machines (not existing in CloudStack but existing on the hypervisor side)
importUnmanagedInstance: Import an unmanaged VM into CloudStack (this implies populating the database with the corresponding data)
unmanageVirtualMachine: Make CloudStack forget a VM but do not remove it on the hypervisor side
The complexity on KVM should be parsing the existing XML domains into different resources and map them in CloudStack to populate the database correctly.
Hi @nvazquez , I am interested in working on this project and have been spending time on hackerbook (https://github.com/shapeblue/hackerbook) to make sure I understand some details before committing to the project. As extensive as it is, it took time, and based on my understanding I was able to submit a proposal on GSoc portal. I was wondering if you had any feedback or further guidance I can incorporate into the proposal. Thank you so much for your time!
I think as a first step once you've read basic CloudStack dev training, you'll need to figure out code in the KVM hypervisor plugin which perhaps currently doesn't allow unmanaged VMs to run on KVM host (i.e. VMs not managed by CloudStack I think aren't allowed to run on KVM hosts currently - I could be wrong). You can use mbx for local dev setup etc. as well.
Once this is done (which might take most of your initial training/getting up to speed time), following the advise Nicolas has proposed should be easier to implement.
I think as a first step once you've read basic CloudStack dev training, you'll need to figure out code in the KVM hypervisor plugin which perhaps currently doesn't allow unmanaged VMs to run on KVM host (i.e. VMs not managed by CloudStack I think aren't allowed to run on KVM hosts currently - I could be wrong). You can use mbx for local dev setup etc. as well.
Once this is done (which might take most of your initial training/getting up to speed time), following the advise Nicolas has proposed should be easier to implement.
Hi @rohityadavcloud thank you for the pointers!
To verify whether cloudstack allows unmanaged VM's to run on a KVM host I performed the following steps :
Executed unmangeVirtualMachine API to unmanage the previously added virtual machine in step 2.
Verified that the virtual machine is still running on the KVM host but not presenting cloudstack management server database.
Do you think this will suffice to test the corner case that you mentioned ?
Please let me know if you have any other advice for validating the support for unmanage VM's existence in cloudstack + KVM setup.
Activity
itsayushpandey commentedon Apr 4, 2023
Hi @nvazquez , I am interested in working on this project and have been spending time on hackerbook (https://github.com/shapeblue/hackerbook) to make sure I understand some details before committing to the project. As extensive as it is, it took time, and based on my understanding I was able to submit a proposal on GSoc portal. I was wondering if you had any feedback or further guidance I can incorporate into the proposal. Thank you so much for your time!
nvazquez commentedon Apr 4, 2023
Hi @itsayushpandey can you share a link to the proposal on Google docs? You can send it to my email nvazquez@apache.org
itsayushpandey commentedon Apr 4, 2023
Hi @nvazquez thank you for the prompt reply. I've shared the proposal over email.
yadvr commentedon May 26, 2023
I think as a first step once you've read basic CloudStack dev training, you'll need to figure out code in the KVM hypervisor plugin which perhaps currently doesn't allow unmanaged VMs to run on KVM host (i.e. VMs not managed by CloudStack I think aren't allowed to run on KVM hosts currently - I could be wrong). You can use mbx for local dev setup etc. as well.
Once this is done (which might take most of your initial training/getting up to speed time), following the advise Nicolas has proposed should be easier to implement.
itsayushpandey commentedon Aug 5, 2023
Hi @rohityadavcloud thank you for the pointers!
To verify whether cloudstack allows unmanaged VM's to run on a KVM host I performed the following steps :
Do you think this will suffice to test the corner case that you mentioned ?
Please let me know if you have any other advice for validating the support for unmanage VM's existence in cloudstack + KVM setup.
borisstoyanov commentedon Nov 9, 2023
I think we can close this once we get a doc PR. agree @nvazquez ?
weizhouapache commentedon Dec 14, 2023
can this be closed in favor of #7976 ?
cc @shwstppr
shwstppr commentedon Dec 14, 2023
Closing this with #7976 being merged. @nvazquez please reopen if we need anything more.