Ok I managed to hack sidecar example to dump console into file in virt-launcher pod. This should be enough for now!Sidecar is great!
On Wednesday, April 14, 2021 at 2:49:22 PM UTC-4 nirmoy...@gmail.com wrote:Ok I managed to hack sidecar example to dump console into file in virt-launcher pod. This should be enough for now!Sidecar is great!great that you were able to find a work arounddumping serial console to k8s logs is something i've thought about in the past. One solution is that we could create a container within the VMI pod just for capturing the serial log output. We'd stream the serial console to the stdout of that container which would then make it available through standard kubectl tooling, like 'kubectl logs my-vmi-pod -c console'
--
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/0311a3e3-aa8b-401b-a371-8c4d8c0e8f27n%40googlegroups.com.
On Wednesday, April 14, 2021 at 2:49:22 PM UTC-4 nirmoy...@gmail.com wrote:Ok I managed to hack sidecar example to dump console into file in virt-launcher pod. This should be enough for now!Sidecar is great!great that you were able to find a work arounddumping serial console to k8s logs is something i've thought about in the past. One solution is that we could create a container within the VMI pod just for capturing the serial log output. We'd stream the serial console to the stdout of that container which would then make it available through standard kubectl tooling, like 'kubectl logs my-vmi-pod -c console'Having a consistent solution for that sounds great. I like your idea right away for debugging cases (so not enabled by default). In general it would be great if we could "just" enable this for default. We may need a different solution for that, to not create too much memory overhead per VM.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubevirt-dev/CAPjOJFvnkcwza0UyfKpxN8KH0%2BtQ97skkKKn6--8vQiXDeztqg%40mail.gmail.com.
On Wednesday, April 14, 2021 at 2:49:22 PM UTC-4 nirmoy...@gmail.com wrote:Ok I managed to hack sidecar example to dump console into file in virt-launcher pod. This should be enough for now!Sidecar is great!great that you were able to find a work arounddumping serial console to k8s logs is something i've thought about in the past. One solution is that we could create a container within the VMI pod just for capturing the serial log output. We'd stream the serial console to the stdout of that container which would then make it available through standard kubectl tooling, like 'kubectl logs my-vmi-pod -c console'
--
--
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/CABJz62N%2BBgHnoB_3%2BGR8OR9q6%3Dag220J7VhycHbu_V4dafcW4g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubevirt-dev/CALDPj7vpD7JfK0UPnHRkkdtBN892Ew3KFr5aVZRbmj%2B%3D-Vsgnw%40mail.gmail.com.
Emmmm, this is the version of the type pty (similar like the version of file with side car), which hijike the socket for the virt console access interactively, so we lose the console access as there is no unix socket to accept the streaming in/out anymore.It indeed works, but the penalty is the loss of "virt console".
--
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/CAPjOJFvEuiZZygYbojeRYRewR-A_DsHFYEToJUowm-09rk9fjA%40mail.gmail.com.
Thanks David.Yeap, I agree with this, this is indeed one of the solutions we are thinking of, the other table of option is to modify the libvirt to wire in the flag, I am not sure at this stage which one is easier though, do you have some insight or experience here?