implementing bash script in ProxMox VE?

jl25

New Member
Feb 21, 2017
3
1
1
31
Hello,

Basically, I am running an LXC Ubuntu container and a Windows 7 VM in my environment. I want to be able to clone these and have each clone designated with a unique host name.

I have read that bash scripting might help me accomplish this but I am lost on how I would implement this with my virtual environment?

Any help would be appreciated as I am new to ProxMox. Thank you.
 
For containers, you can just clone your machine (or do a dump and restore) to a new id and hostname, so nothing fancy there.

For Windows, this is more tricky. Normally, you'll lose your activation by cloning with uuid change, so be aware of that. Concerning the hostname and IP, you can use DHCP which sets the IP and hostname, but not the windows netbios name. You can script this with e.g. autoit based on the hostname, but you cannot do it with bash.