implementing bash script in ProxMox VE?

jl25

New Member
Feb 21, 2017
3
1
1
30
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.
 

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!