mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-24 22:43:05 +00:00
tests: Load vhost modules explicitly while Kata installing
The default network backend of runtime-rs with Dragonball is vhost-net after #8609 merged. The tests might be failed if vhost modules are not loaded. Fixes: #8717 Signed-off-by: Xuewei Niu <niuxuewei.nxw@antgroup.com>
This commit is contained in:
parent
32e1ba2525
commit
206ed6d77d
@ -393,6 +393,7 @@ function install_kata() {
|
||||
restart_crio_service
|
||||
fi
|
||||
|
||||
load_vhost_mods
|
||||
}
|
||||
|
||||
# creates a new kata configuration.toml hard link that
|
||||
@ -714,3 +715,10 @@ function get_test_version(){
|
||||
|
||||
get_dep_from_yaml_db "${db}" "${dependency}"
|
||||
}
|
||||
|
||||
# Load vhost, vhost_net, vhost_vsock modules.
|
||||
function load_vhost_mods() {
|
||||
sudo modprobe vhost
|
||||
sudo modprobe vhost_net
|
||||
sudo modprobe vhost_vsock
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user