pengutils.utils.cli_guest_cmd module

Guest Command CLI

This script provides a command-line interface (CLI) for running a command in a rehosted guest via a vsock Unix socket. It is inspired by guest_cmd.py and uses Click for the CLI interface.

Example usage

cli_guest_cmd.py --socket /tmp/vsocket --port 12341234 "ls -l /"

Options

  • --socket: Path to vsock Unix socket (default: auto-search for ‘vsocket’ in /tmp/*)

  • --port: Vsock port number (default: 12341234)

  • command: Command to run in the guest (required)