Merge pull request #8718 from justxuewei/enable-vhost

tests: Load vhost modules explicitly while Kata installing
This commit is contained in:
Fupan Li 2023-12-22 14:52:49 +08:00 committed by GitHub
commit dc9a0ac8ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -393,6 +393,7 @@ function install_kata() {
restart_crio_service restart_crio_service
fi fi
load_vhost_mods
} }
# creates a new kata configuration.toml hard link that # creates a new kata configuration.toml hard link that
@ -714,3 +715,10 @@ function get_test_version(){
get_dep_from_yaml_db "${db}" "${dependency}" 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
}