kata-containers/tests/functional/kata-agent-apis/api-tests
Sumedh Alok Sharma c7c811071a agent-ctl: Add option --vm to boot pod VM for testing.
This change introduces a new command line option `--vm`
to boot up a pod VM for testing. The tool connects with
kata agent running inside the VM to send the test commands.
The tool uses `hypervisor` crates from runtime-rs for VM
lifecycle management. Current implementation supports
Qemu & Cloud Hypervisor as VMMs.

In summary:
- tool parses the VMM specific runtime-rs kata config file in
/opt/kata/share/defaults/kata-containers/runtime-rs/*
- prepares and starts a VM using runtime-rs::hypervisor vm APIs
- retrieves agent's server address to setup connection
- tests the requested commands & shutdown the VM

Fixes #11566

Signed-off-by: Sumedh Alok Sharma <sumsharma@microsoft.com>
2025-08-11 11:03:18 +00:00
..
test_copy_file.bats ci: Add tests for CopyFile api. 2024-09-11 10:54:01 +05:30
test_create_container.bats agent-ctl: Add support to test kata-agent's container creation APIs. 2024-11-01 22:18:54 +05:30
test_set_policy.bats agent-ctl: Add SetPolicy support 2024-09-18 10:53:49 +05:30
test_vm_GuestDetails.bats agent-ctl: Add option --vm to boot pod VM for testing. 2025-08-11 11:03:18 +00:00