Running commands inside virtual machines
You can execute commands and transfer files inside virtual machines either by using the vinfra command-line tool or directly from the compute node that hosts the virtual machine. These methods provide administrative access to the guest operating system without requiring SSH or RDP connectivity.
The appropriate method depends on the VM's connectivity and the level of administrative access to the infrastructure:
- The
vinframethod requires theguest_execrole and is intended for privileged administrative operations. - The
virsh x-execmethod requires direct access to the compute node and is typically used for troubleshooting or recovery scenarios.