Skip to content

Commit

Permalink
Merge pull request #8718 from justxuewei/enable-vhost
Browse files Browse the repository at this point in the history
tests: Load vhost modules explicitly while Kata installing
  • Loading branch information
lifupan committed Dec 22, 2023
2 parents 32e1ba2 + 206ed6d commit dc9a0ac
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/common.bash
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ function install_kata() {
restart_crio_service
fi

load_vhost_mods
}

# creates a new kata configuration.toml hard link that
Expand Down Expand Up @@ -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
}

0 comments on commit dc9a0ac

Please sign in to comment.