-
Notifications
You must be signed in to change notification settings - Fork 128
Add bios+cbfs support for runv #453
Conversation
|
Sadly, I found that cbfs.rom made from latest cbfs file exceed 8MB which makes it impossible to start container, I've modified our own qemu to remove this restriction, and it works well since then. qemu patches: |
e3e3832 to
629c607
Compare
|
@WeiZhang555 see hyperhq/hyperstart#280 how to solve this problem without patching QEMU. |
|
@dvoytik So the solution is, exclude kernel modules to make cbfs file smaller than 8MB? Are we sure we dont need these kernel modules for making runv work correctly? |
|
I think most of the modules are for netfilter or cgroup support. @WeiZhang555 |
|
This parameter by default is off -> the kernel modules are included. If one enables this parameter then apparently she uses a custom kernel (the name of the flag implies this). In my case I use custom kernel without modules, so I use this parameter.
Btw I don't understand who needs modules in guest kernel for containers, but it's another off-topic issue.
|
|
If so, I think hyperhq/hyperstart#280 should make sense, by the way, @dvoytik is my colleague from our Germany Team working on this too :) @gnawux |
629c607 to
2980935
Compare
|
Refactored, ping @laijs |
2980935 to
91f61ee
Compare
91f61ee to
2f42970
Compare
2f42970 to
5f6bd0e
Compare
|
ping @laijs Rebased. |
5f6bd0e to
3d50a26
Compare
|
#514 was implemented for you... |
|
So are you suggesting me adding new flag "--cbfs" and "--kernel" directly for runv containerd? And as I can see, this new cbfs factory isn't needed any more. |
|
Sure |
|
OK. I'll do a refactor~ |
3d50a26 to
d1d1e6f
Compare
Export and Support starting VM with bios+cbfs from runv command, also use CBFS as first choice when kernel also exists. Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
d1d1e6f to
c2bd4b8
Compare
|
@laijs Updated again~ |
Add bios+cbfs support for runv
Export and Support starting VM with bios+cbfs from runv command line,
also use CBFS as first choice when kernel also exists.
Signed-off-by: Zhang Wei zhangwei555@huawei.com