-
Notifications
You must be signed in to change notification settings - Fork 262
Use case documentation needed: provisioning VM using libvirt #913
Comments
First of all, I think I need to start libvirt plugin, right?
This led me to assuming that this function didn't run for some reason: |
After trying to set a breakpoint it says So it means it isn't imported anywhere, right? So I went to see where all providers are imported and look what I found: Git blame led to this: #872 Looking back found this: #718 Apparently there are some issues with go buildings for libvirt. It probably makes sense to make plugins/providers actually installable as separate binaries. Not sure whether it is designed that way. |
So, this is how I build infrakit with libvirt provider:
And it works:
Now I need to figure out how to provide libvirt URI and then - how to start some instances, and then - how to configure those instances. |
It was quite hard to find. To provide libvirt URIs we use this: For example:
To start instances the command line is this:
Where
Now I need to figure out how to generate those kernel and initrd files. |
It looks like linuxkit can generate those files. Installed linuxkit like this:
Running it like this
where linuxkit is here: https://github.com/linuxkit/linuxkit/blob/master/linuxkit.yml Unfortunately, kernel 4.14.74 causes kernel panic when running in qemu. So I switched to 4.4.159 Now I need to solve the next problem: how to build those images or copy them to the remote libvirtd host (when using |
We could perhaps extend the functionality from here https://github.com/docker/infrakit/tree/master/pkg/x/remoteboot ? |
Not sure I understand. Currently I'm struggling to find steps needed to provision kvm instances according to some yaml file. And configure those instances with docker swarm/kubernetes. Here's a list of problems I found along the way (some of them solved):
I'm currently on step 7. It looks like something to do with libvirtxml (libvirt/libvirt-go-xml#25) |
BTW VNC instead of video device working fine (problem 6):
|
Ok, the problem with RNG is that vendored copy isn't updated for more than a year: |
What do I need first? Do I need to write a playbook?
I'm looking to setup something like this:
It looks like currently infrakit supports CLI-based deployment using playbooks. Do I get it right?
So if I somehow create a playbook, I would be able to provision a libvirt-based instance?
The text was updated successfully, but these errors were encountered: