docker or vm

Asked by uniasc

Hello, Excuse me, I have a question, is the official buildd running in docker, sharing the kernel with the host machine, instead of using an independent kernel in the virtual machine. Is it the above, thank you.

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Colin Watson
Solved:
Last query:
Last reply:
Revision history for this message
Best Colin Watson (cjwatson) said :
#1

No - each builder has its own virtual machine. This is partly because we'd otherwise run into issues with nested containerization, but mostly because containers aren't secure enough against being escaped by malicious code.

In some simple cases it's possible to run launchpad-buildd in a container, but it's not a configuration we use or recommend.

Revision history for this message
uniasc (uniasc) said (last edit ):
#2

in my virtual machine used for test launchpad-buildd ,created by "lxc launch --vm ubuntu:20.04 lp-builddev".

$uname -anp
Linux lp-builddev 5.4.0-1092-kvm #98-Ubuntu SMP Fri May 19 09:21:45 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
the kernel is "5.4.0-1092-kvm"

but in your official building log,I found the kernel is "5.4.0-150-generic"
Kernel version: Linux bos03-amd64-007 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64

one is kvm ,the other is generic,

why ?
Is the “lxc launch -- vm ubuntu: 2.04 lp buildedev” command incorrect? Or did the official use other commands?
thanks.

Revision history for this message
uniasc (uniasc) said :
#3

Thanks Colin Watson, that solved my question.