mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-05-06 21:52:54 +08:00
fix: init ifb kernel module (#24746)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user