I'm looking to instance a private only virtual machine on SoftLayer using the SLCLI. So far this command creates an instance but critically it automatically assigns a Public Interface which I do not want and does not create the machine on the specific Private VLAN I want either:
# slcli vs create --image 1060669 --hostname ejkpoc --domain ejk.co.uk --cpu 1 --memory 1 --datacenter lon02 --postinstall https://10.1.1.13/files/bootstrap-rhel-5.sh --billing hourly
Any ideas from the community on what to change the commands to to get the desired result? I'll keep hacking away in parallel ...
Thanks EJK
***************** UPDATE
So having tried some more I now have the correct structure for the command line:
slcli vs create --billing=hourly --image=1060669 --hostname=ejkpoc --domain=ejk.co.uk --cpu=1 --memory=1 --datacenter=lon02 --postinstall=https://10.1.1.13/files/bootstrap-rhel-5.sh --vlan-private=1138
But this errors with:
SoftLayerAPIError(SoftLayer_Exception_Public): Could not obtain network VLAN with id #1138.
Cheers EJK
**************** UPDATE
Definitely the right VLAN ... 1138
And 1138 is the only integer value I have to act as an ID ...
Thank EJK
*********** UPDATE
Nelson was right the VLAN ID is located in the URL so mine was
https://control.softlayer.com/network/vlans/1227409
this line now works and machines are creating on the right private VLAN .. BUT!!! They are coming with a public VLAN too even though I don't want that .. command so far that works
slcli vs create --billing=hourly --image=1060669 --hostname=ejkpoc --domain=ejk.co.uk --cpu=1 --memory=1 --datacenter=lon02 --postinstall=https://10.1.1.13/files/bootstrap-rhel-5.sh --vlan-private=1227409
The major trouble with the assignment of a public for me is that all of the postinstall bootstrap with attaches to Chef etc. is now registering the FQDN of the public - yuck! Cheers EJK
************ UPDATE
All working now ... I missed out the "--private" option on the above SLCLI command ... Many thanks Nelson !!!
