This section provides an example of using the CLI to create a Linux server cloud.
The following are the steps to configure Linux cloud using the CLI method:
Procedure
- Create your cloud as follows:
[admin:10-50-0-2]: > configure cloud LSC
- Configure IPAM. For details, see Configuring Avi Load Balancer IPAM.
- Attach an IPAM profile as follows:
[admin:10-50-0-2]: cloud> ipam_provider_ref LSC
- Create Linux server configuration as follows:
[admin:10-50-0-2]: cloud> linuxserver_configuration [admin:10-50-0-2]: cloud:linuxserver_configuration> hosts host_ip 10.50.0.5 [admin:10-50-0-2]: cloud:linuxserver_configuration:hosts> host_attr attr_key CPU attr_val 2 New object being created [admin:10-50-0-2]: cloud:linuxserver_configuration:hosts:host_attr> save [admin:10-50-0-2]: cloud:linuxserver_configuration:hosts> host_attr attr_key MEMORY attr_val 4 New object being created [admin:10-50-0-2]: cloud:linuxserver_configuration:hosts:host_attr> save [admin:10-50-0-2]: cloud:linuxserver_configuration:hosts> host_attr attr_key DPDK attr_val No New object being created [admin:10-50-0-2]: cloud:linuxserver_configuration:hosts:host_attr> save [admin:10-50-0-2]: cloud:linuxserver_configuration:hosts> host_attr attr_key SE_INBAND_MGMT attr_val True New object being created [admin:10-50-0-2]: cloud:linuxserver_configuration:hosts:host_attr> save [admin:10-50-0-2]: cloud:linuxserver_configuration:hosts> save
Repeat the above host steps to incorporate additional Service Engines.
- Create SSH user. For details, see Public Key Management on SE Hosts.
- Save your config as follows:
[admin:10-50-0-2]: cloud:linuxserver_configuration> save [admin:10-50-0-2]: cloud> save
- Configue the Linux server using the following commands:
configure cloud LSC linuxserver_configuration
- After specifying the Linux server configuration, you can go to edit mode using the following command:
[admin:10-50-0-2]: cloud:linuxserver_configuration> new
- Copy in the host data and change the SE resource variables and
ssh_user_ref
accordingly as follows:hosts: - host_attr: - attr_key: CPU attr_val: '2' - attr_key: MEMORY attr_val: '4' - attr_key: DPDK attr_val: 'No' - attr_key: SE_INBAND_MGMT attr_val: 'True' host_ip: addr: 10.50.0.4 type: V4 - host_attr: - attr_key: CPU attr_val: '2' - attr_key: MEMORY attr_val: '4' - attr_key: DPDK attr_val: 'No' - attr_key: SE_INBAND_MGMT attr_val: 'True' host_ip: addr: 10.50.0.6 type: V4 se_inband_mgmt: false se_log_disk_size_GB: 5 se_sys_disk_size_GB: 10 ssh_user_ref: root