Pod creation for VM

14 views
Skip to first unread message

Ume Habiba

unread,
Sep 6, 2023, 9:45:10 AM9/6/23
to kubevirt-dev
Hi,
I looking into the source code of kubervirt and I am interested to know how kubevirt is creating a pod for each VM. Can you please direct me to the code where kubevirt is creating pod for VM and scheduling it?

Thank you.

Best,
Habiba

Ryan Hallisey US

unread,
Sep 6, 2023, 10:01:08 AM9/6/23
to kubevirt-dev
This diagram has lots of details that point to code paths - https://github.com/kubevirt/kubevirt/blob/main/docs/kubevirt-create-vmi-seq-diagram.svg.

See if that helps.

-Ryan

Felix Matouschek

unread,
Sep 6, 2023, 10:07:23 AM9/6/23
to Ume Habiba, kubevirt-dev
Hi Habiba,

these places should be a good start:

https://github.com/kubevirt/kubevirt/blob/afb3719538016533e6d329438e1bcea665c55e69/pkg/virt-controller/watch/vm.go#L958
https://github.com/kubevirt/kubevirt/blob/ba917d1325e8eae05da83f205c4b963ab03120a7/pkg/virt-controller/watch/vmi.go#L1142

Felix
> --
> You received this message because you are subscribed to the Google
> Groups "kubevirt-dev" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to kubevirt-dev...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/kubevirt-dev/a64b52e8-58a2-4c87-92ab-cf4519c3e811n%40googlegroups.com
> .

Reply all
Reply to author
Forward
0 new messages