If a VM cannot access a network for some reason, you can still run commands in it from the node the VM resides on. The VM in question must have the guest tools installed in it (refer to Managing guest tools).
You will need the VM ID that you can obtain with
vinfra service compute server list. You can also use a virsh domain name that you can get using