From 5aeae06608eaf4e8d19cfa63478b65b534ebc50b Mon Sep 17 00:00:00 2001 From: Jian Qiu Date: Wed, 29 Apr 2026 23:49:10 +0800 Subject: [PATCH] fix: init ifb kernel module (#24746) Co-authored-by: Qiu Jian --- pkg/hostman/hostinfo/hostinfo.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/hostman/hostinfo/hostinfo.go b/pkg/hostman/hostinfo/hostinfo.go index 0ebc7a10b8..4f453f3fa4 100644 --- a/pkg/hostman/hostinfo/hostinfo.go +++ b/pkg/hostman/hostinfo/hostinfo.go @@ -507,6 +507,12 @@ func (h *SHostInfo) prepareEnv() error { if err != nil { return errors.Wrap(err, "Failed to activate tun/tap device") } + + _, err = procutils.NewRemoteCommandAsFarAsPossible("modprobe", "ifb", "numifbs=0").Output() + if err != nil { + return errors.Wrap(err, "Failed to activate ifb device") + } + output, err := procutils.NewRemoteCommandAsFarAsPossible("modprobe", "vhost_net").Output() if err != nil { log.Warningf("modprobe vhost_net error: %s", output)