An SGD deployment can be provisioned as a virtual machine (VM) template, enabling integration with hypervisor hosts and cloud services.
The process of deploying SGD as a VM template involves the following steps:
Create a VM template for your SGD deployment.
Install and configure your SGD deployment in a VM.
The following SGD deployment scenarios are supported for a VM template:
Basic SGD server: A single SGD server.
This deployment uses TCP ports 443 (HTTPS) and 5307 (AIP).
See Section 1.6.1, “Creating a VM Template for a Basic SGD Server Deployment”.
Single host Gateway: An SGD Gateway and a single SGD server running on the same host.
This deployment uses a single TCP port 443 (HTTPS and AIP+SSL).
You can use the tarantella discover gateway command to discover and configure an SGD Gateway that is installed on the same VM as an SGD server.
See Section 1.6.2, “Creating a VM Template for a Single Host Gateway Deployment”.
Prepare a VM template image.
Use the tarantella prepare image command to prepare an SGD deployment to be used as a template image.
See Section 1.6.3, “Examples of Preparing a VM Template Image”.
Integrate the VM template with one of the following:
A hypervisor: For example, Oracle VM VirtualBox or Oracle VM.
See the hypervisor documentation for details of how to use a VM template.
A cloud service: For example, Oracle Compute Cloud or Amazon Elastic Compute Cloud (EC2).
See Section 1.6.4, “Configuring Support for Cloud Services”.
Use the following steps to create a VM template for a basic SGD server deployment.
Install the SGD software in a VM.
For the basic SGD server deployment, install the main SGD component.
This is described in Section 1.2, “Installing the Main SGD Component”.
Run the tarantella start command, as instructed by the SGD installation program.
Configure the SGD server.
Use the Administration Console to create user profile objects, application objects, and application server objects.
This is described in Chapter 3, Getting Started With SGD.
Stop the SGD server, as follows:
# tarantella stop
Prepare a VM image for your SGD deployment.
On the SGD server, run the following command:
# tarantella prepare image
Additional options may be required in some cases. See Section 1.6.3, “Examples of Preparing a VM Template Image” for examples of using other command options.
Perform any required modifications to the VM's operating system, to make it ready for use as a template.
Generate the VM template image file.
See your hypervisor documentation for the steps required to generate a VM template image file.
Use the following steps to create a VM template for a single host Gateway deployment.
Install the SGD software in a VM.
For the single host Gateway deployment, do the following:
Install the main SGD component.
This is described in Section 1.2, “Installing the Main SGD Component”.
Run the tarantella start command, as instructed by the SGD installation program.
Install the SGD Gateway software.
This is described in Installing the SGD Gateway in the Oracle Secure Global Desktop Gateway Administration Guide.
Run the /opt/SUNWsgdg/bin/gateway setup command, as instructed by the Gateway installation program.
Configure the SGD server.
Use the Administration Console to create user profile objects, application objects, and application server objects.
This is described in Chapter 3, Getting Started With SGD.
Stop all running SGD components.
Stop the SGD server:
# tarantella stop
Stop the SGD Gateway:
# /opt/SUNWsgdg/bin/gateway stop
Configure the SGD Gateway.
On the SGD server, use the tarantella discover gateway command to discover and configure an SGD Gateway that is installed on the same host as an SGD server.
# tarantella discover gateway --local
Prepare the VM image for your SGD deployment.
On the SGD server, run the following command:
# tarantella prepare image
Additional options may be required in some cases. See Section 1.6.3, “Examples of Preparing a VM Template Image” for examples of using other command options.
Perform any required modifications to the VM's operating system, to make it ready for use as a template.
Generate the VM template image file.
See your hypervisor documentation for the steps required to generate a VM template image file.
To enable SGD to reconfigure automatically following start up of an instance, you must prepare the VM template image. This process involves configuring the parameters that must be provided when the instance is started. Required parameters might include the external DNS hostname of the new instance, for example.
The following examples show how to prepare a VM template image using the tarantella prepare command.
To prepare a template image for a basic SGD server deployment:
# tarantella prepare image
To prepare a template image for a single host Gateway deployment:
# tarantella discover gateway --local # tarantella prepare image
To prepare an Oracle Compute Cloud Service template image:
# tarantella prepare image --deployment-script oracle-compute.sh \ --require-password --require-externalname
where
oracle-compute.sh
is the deployment script used for Oracle Compute Cloud Service.In this example, the password of the
sgdadmin
user and the public IP address must be configured for the VM instance.To prepare an Amazon EC2 template image:
# tarantella prepare image --deployment-script amazon-ec2.sh \ --require-password
where
amazon-ec2.sh
is the deployment script used for Amazon EC2 cloud services.In this example, the password of the
sgdadmin
user must be configured for the VM instance.
By default, SGD includes support for the Oracle Compute Cloud Service and the Amazon EC2 service. SGD provides support for these cloud services by using a deployment script.
A deployment script queries the cloud service for the information needed to start an SGD instance. For example, the IP address or hostname of the instance.
The following deployment scripts are provided with SGD:
oracle-compute.sh
, for the Oracle Compute Cloud Service.See Section 1.6.4.1, “Creating an SGD Instance in Oracle Compute Cloud Service”.
amazon-ec2.sh
, for the Amazon EC2 service.See Section 1.6.4.2, “Creating an SGD Instance in Amazon EC2 Service”.
Deployment scripts are located in the
/opt/tarantella/var/deploymentscripts
directory on an SGD server.
You specify the required deployment script when you use the tarantella prepare image command to prepare a VM template image. For example:
# tarantella prepare image --deployment-script script-name
where script-name
is the name of the
deployment script.
Use the following steps to create a VM instance in Oracle Compute Cloud Service.
(Optional) Create a VM template image for your SGD deployment.
For a basic SGD server deployment, see Section 1.6.1, “Creating a VM Template for a Basic SGD Server Deployment”.
For a single host Gateway deployment, see Section 1.6.2, “Creating a VM Template for a Single Host Gateway Deployment”.
Use this deployment if you require single-port access to your VM instances.
Specify the following options when you prepare the VM image.
# tarantella prepare image --deployment-script oracle-compute.sh \ --require-password --require-externalname
(Optional) Upload the VM template image to Oracle Cloud Compute Service.
In Oracle Compute Cloud Service, this is called a machine image.
Create and configure a new VM instance.
NoteFor more detailed information on creating and configuring an instance in Oracle Cloud Compute Service, see the Oracle Cloud Compute Service documentation.
Log in to your Oracle Cloud Dashboard and locate the SGD machine image in the image list.
Create a new instance from the SGD machine image.
Configure the instance, as follows:
Set the instance sizing, as appropriate for your deployment.
Use a pre-defined public IP address for the instance.
Set the following Custom Attributes for the instance:
{ "public-ip-address": "
instance-ip-address
", "sgdadmin-pwd": "sgdadmin-password
" }where
instance-ip-address
is the public IP address you configured for the instance andsgdadmin-password
is the password for thesgdadmin
user on the SGD server.NoteIf you know the hostname for the instance, you can use the
"public-hostname"
attribute instead of the"public-ip-address"
attribute.
Complete the process of creating the instance.
Enable access to the instance on TCP port 443.
Log in to the instance.
Go to
https://
, wherepublic-ip-address
/sgdpublic-ip-address
is the public IP address of the instance. Log in as thesgdadmin
user, using the password specified in the custom attributes for the instance.When prompted, change the
sgdadmin
user password.
Use the following steps to create a VM instance in Amazon EC2 service.
(Optional) Create a VM template image for your SGD deployment.
For a basic SGD server deployment, see Section 1.6.1, “Creating a VM Template for a Basic SGD Server Deployment”.
For a single host Gateway deployment, see Section 1.6.2, “Creating a VM Template for a Single Host Gateway Deployment”.
Use this deployment if you require single-port access to your VM instances.
Specify the following options when you prepare the VM image.
# tarantella prepare image --deployment-script amazon-ec2.sh --require-password
(Optional) Upload the VM template image to Amazon Web Services (AWS).
In AWS, this is called an Amazon machine image (AMI).
Create and configure a VM instance.
NoteFor more detailed information on creating and configuring an instance in Amazon EC2, see the Amazon EC2 documentation.
Log in to AWS and find the SGD AMI in the AWS Marketplace.
Create a new instance from the SGD AMI.
Configure the instance, as follows:
Select an Instance Type, as appropriate for your deployment.
Set the following User Data for the instance:
sgdadmin-pwd=
sgdadmin-password
where
sgdadmin-password
is the password for thesgdadmin
user on the SGD server.
Complete the process of creating the instance.
Enable access to the instance on TCP port 443.
Log in to the instance.
Go to https://
public-hostname
/sgd, wherepublic-hostname
is the external DNS hostname of the instance. Log in as thesgdadmin
user, using the password specified in the user data for the instance.When prompted, change the
sgdadmin
user password.
This section includes some basic troubleshooting topics for creating and using SGD VM templates.
If you specify the SGD hostname as part of the
name of an object, the object name is not updated
automatically when a new VM instance is created. The default
Tarantella Server
application server object
which represents the SGD host is updated
automatically.
For best results, avoid using the hostname string when naming an SGD object.