How to execute code whithin guest from the host

Kei

Well-Known Member
May 29, 2016
88
2
48
38
Hello, I have a simple question.
Let's say I clone a VM. The clone will have the same network configuration of the original VM (I am not using DHCP). Now, is it possible to execute some kind of code inside proxmox to edit the /etc/network/interfaces file of the cloned guest?

Thank you!
 
you can also use the guest agent to execute commands
via
Code:
qm guest exec ID -- your-commands-here

see man qm
 
you can also use the guest agent to execute commands
via
Code:
qm guest exec ID -- your-commands-here

see man qm

Hi guys, thank you for the response. Is it possible that I cannot run any of these two commands with PVE 4.4-20?
Maybe this version is too old?
 
I've installed PVE 5.4 on a test VM and indeed these commands do show up. I will schedule an update ASAP. Thank you!!