I am experimenting with proxmox and virtualization and this is my first post. But I am a relatively experienced networking, windows, macos and linux engineer, with some programming experience. If my experiments are successful I intend to run proxmox on 2+ x 32 core AMD EPYC workstations, configured with 22 x 12TB HDD, 16 x 4TB SSD, 512GB of RAM, 2 x Quadro RTX 4000 and used for 4K video editing and storage by 2 users simultaneously.
The proxmox host runs samba, along with VM's. I am attempting to pass variables (e.g. proxmox server hostname and VM guest hostname) from a proxmox server to windows and/or linux 10 VM's running on the same host, without manually setting these parameters or variables in the guest VM after boot.
I want to do this for many reasons including; automating logon and drive mapping scripts in the guest VM referring to the proxmox samba host (great for single host single VM installations such as a notebook), being able to use/change the proxmox VM name as the guest host name without needing to change it in the VM itself (great for inexperienced users running a clone vm on a single host when the primary vm on that host has failed, again handy for notebook installations of proxmox), etc. I will then reuse these scripts for any new proxmox installation.
It seems to me that many others would want to do similar things, but in my searches I have not found any simple solutions to the problem without manually setting the proxmox host name and the VM's host name in VM scripts.
Any ideas of how to pass user defined variables or parameters from the Proxmox server to any guest VM the server hosting the VM and then how to access those variables or parameters in the guest VM would be greatly appreciated. I would prefer bash scripts, or windows powershell scripts for access of the information passed.
I have experimented with qemu-guest-agent but it appears to only allow specific information defined by qemu-guest-agent, rather than user-defined information, but as I said, I am inexperienced in these matters.
Thanks in advance.
Regards
ajm
The proxmox host runs samba, along with VM's. I am attempting to pass variables (e.g. proxmox server hostname and VM guest hostname) from a proxmox server to windows and/or linux 10 VM's running on the same host, without manually setting these parameters or variables in the guest VM after boot.
I want to do this for many reasons including; automating logon and drive mapping scripts in the guest VM referring to the proxmox samba host (great for single host single VM installations such as a notebook), being able to use/change the proxmox VM name as the guest host name without needing to change it in the VM itself (great for inexperienced users running a clone vm on a single host when the primary vm on that host has failed, again handy for notebook installations of proxmox), etc. I will then reuse these scripts for any new proxmox installation.
It seems to me that many others would want to do similar things, but in my searches I have not found any simple solutions to the problem without manually setting the proxmox host name and the VM's host name in VM scripts.
Any ideas of how to pass user defined variables or parameters from the Proxmox server to any guest VM the server hosting the VM and then how to access those variables or parameters in the guest VM would be greatly appreciated. I would prefer bash scripts, or windows powershell scripts for access of the information passed.
I have experimented with qemu-guest-agent but it appears to only allow specific information defined by qemu-guest-agent, rather than user-defined information, but as I said, I am inexperienced in these matters.
Thanks in advance.
Regards
ajm