Deploy Scanner Instance Using Command Line
PERSCODE in the form of user data can also be provided through the command line. In this case, you will not be prompted to enter the code on the console.
Perform the following steps to provide the PERSCODE using the command line.
- Create a file and add the following line in it.
PERSCODE=xxxxxxxxxxxxxx
PROXY_URL= username:password@proxyhost:port
(This is optional ) - Run the following commands to launch an instance.
Obtain your net-id
OpenStack network list
- Run the following command to create an instance.
openstack server create --flavor < FLAVOR > --image < SCANNER IMAGE > --nic net-id= < NET_ID > --security-group < SECURITY_GROUP > --user-data < FILE > < INSTANCE_NAME >
If you do not provide PERSCODE in the form of userdata, you are prompted to enter it on the GUI console.
-
Run the following commands on the Controller Node.
Obtain your net-id
openstack network list
- Run the following command to create an instance
openstack server create --flavor < FLAVOR > --image < IMAGE_NAME > --nic net-id= < PROVIDER_NET_ID > --security-group < SECURITY_GROUP > < INSTANCE_NAME >
If PERSCODE is not provided by the user, the following error is returned.
Press Enter and type in your personalization code.
The instance status will be ACTIVE after it is successfully launched.