I have been adding virtual servers via a command line script and as I went to add a second virtual server to an IP address that was already assigned - I started to get some errors. I have since figured out that I needed to add the IP’s to the “shared” list and used the switch --shared-ip vice --ip in order to add multiple servers to the same IP address.
Is there any way to switch a private IP address to a shared one in Virtualmin? The only way I can figure out how to do this is to delete all of the servers that I have created, put my list of IP addresses in the shared IP list and then re-create everything. Was hoping there would be an easier way.
Also is there a command line function that would allow me to add IP addresses to this shared list via script?
Hmm, resellers is a Pro feature. It would seem that the GPL version of the script does not take that into account there. I suppose the coders will need to take a look at this.
I solved this by removing the reference to list_resellers on line 64 and then deleted all of my virtual servers and ran the create-shared-address script before I ran the create-domain with a shared-ip flag…
I had the eth0’s assigned (my sys admins did this when they set up my server), if yours are not set, you will not need the --ip-already flag.