Wrapping an interactive shell around qm guest exec

ispirto

Renowned Member
Oct 20, 2012
37
1
73
Virtuozzo 7 has a way to run interactive shell for qemu guests referenced at https://docs.openvz.org/openvz_command_line_reference.webhelp/_prlctl_enter.html

It requires only the qemu guest agent installed on the guest.

So I believe they have somehow wrapped an interactive shell around the qemu agent's guest-exec method.

Proxmox has qm guest exec <vmid> <command> working great.

I was wondering if there is a way to implement a wrapper shell for interaction with the guest's OS just like Virtuozzo 7 has with Proxmox.
 
  • Like
Reactions: hitman
my suggestion would be for ip change :-)

qm guest exec 209 netsh interface ipv4 set address name="Ethernet" static 192.168.3.8 255.255.255.0 192.168.3.1

209 = vmid