![Forrest logo](/images/logo.png)
qm-guest-exec:tldr:9531b
qm-guest-exec: Execute a specific command via a guest agent with a specified timeout of 10 seconds.
$ qm guest exec ${vm_id} ${arg1 arg2 ---} --timeout ${10}
try on your machine
This command is using the "qm guest exec" command to execute a command inside a virtual machine (VM).
Here's a breakdown of the command syntax:
- "qm guest exec": This is the base command used to execute a command inside a VM.
- "${vm_id}": This is a placeholder for the ID of the VM where the command will be executed. You need to replace "${vm_id}" with the actual ID of the VM.
- "${arg1 arg2 ---}": These are additional arguments or parameters that you want to pass along with the command being executed inside the VM. It's indicated here as "${arg1 arg2 ---}" as a placeholder. You need to replace "${arg1 arg2 ---}" with the actual arguments or parameters you want to pass.
- "--timeout ${10}": This is an additional option to specify the maximum time (in seconds) the execution of the command should be allowed before it times out. In this case, it specifies a timeout of 10 seconds.
To use this command, you need to replace "${vm_id}" with the actual ID of the VM and "${arg1 arg2 ---}" with the specific arguments or parameters you want to pass to the command. Additionally, make sure to adjust the timeout value if desired.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.