How to execute code whithin guest from the host

Kei

Active Member
May 29, 2016
88
2
28
37
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!!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!