Sign in to the Oracle Cloud My Services application at https://cloud.oracle.com/sign_in. The My Services Dashboard page is displayed.
Click the
menu at the upper left corner of the page and select Oracle Compute Cloud Service.
The Oracle Compute Cloud Service console is displayed.
On the Instances page, click Create Instance.
The Create Instance wizard starts.
On the Image page, select the image that you want to use. For the purpose of this tutorial, select OL_6.4_UEKR4_x86_64. Click the button to go to the next page.
On the Shape page, select an appropriate shape for your instance. The shape determines the number of CPUs and RAM that your instance will have. For the purpose of this tutorial, select oc3 (OCPUs: 1, Memory: 7.5 GB). Click the button to go to the next page.
On the Instance page, select or enter the following, and then click the button to go to the next page.
High Availability Policy: Retain the default setting, Active.
Name: Enter an appropriate name, or retain the default.
Label: Enter a label to help identify the instance, or retain the default. The label is used to list the instance on the Instances page.
Description: Enter a description, if required.
Tags: Specify a tag to help identify your instance, if required.
SSH Keys: Click this field or start typing to see a list of available SSH public keys. To add a new SSH public key:
Click Add SSH Public Key.
Enter a name for the SSH public key.
Click Select File and navigate to the folder where your SSH public key is saved, or paste the public key in the Value field.
Click Add.
The SSH public key is added and appears in the list of SSH keys that you want to associate with the instance.
Custom Attributes: This field allows you to customize your instance by providing additional information specific to each instance. For example, you might have specified certain scripts in the custom machine image that you use to boot your instance. Such scripts could require instance-specific user data. You can enter that instance-specific user data in this field, in JSON format. The information that you enter here is stored as user data on your instance. After the instance is created, the attributes that you specify here are available within the instance at http://192.0.0.192/latest/userdata.
For the purpose of this tutorial, leave this field blank.
On the Network page, to accept the default settings for the shared network and add an interface to an IP network, enter or select the following. When you're done, click the button to go to the next page.
DNS Hostname Prefix: Enter a string that will be used as a prefix in the domain host name for your instance. For the purpose of this tutorial, you can leave this blank.
Network Options: Select whether you want to configure an interface on the shared network or one or more interfaces on IP networks. Select both options.
IP Network Options
Click Configure Interface. In the Configure IP Network Interface dialog box, select or enter the following and then click Save:
Interface: Select the interface that you want to add to the specified IP network. You can select any interface from eth0 to eth7. After you select all the interfaces that you want to add to IP networks, the first available interface is assigned to the shared network. You can’t add, delete, or modify interface allocations after an instance is created.
For this tutorial, select eth1.
vNIC Name: Retain the default vNIC name or enter another name. The name you enter can contain a maximum of four characters. The three-part vNIC name is generated using this name. It has the format /Compute-identity_domain/username/instanceName_vnicName. For this tutorial, retain the default vNIC name.
IP Network: Specify the IP network that you want to add this interface to. When you add an instance to an IP network, the specified interface of the instance is assigned an IP address on the specified IP network. After the instance is created, you can view information about each interface on the Instance Details page.
If you haven’t created the IP network that you want to add your instance to, you can do so now.
Click Create IP Network.
Enter a name for the IP network. For this tutorial, enter IPnet1.
Enter the required IP address prefix for the IP network, in CIDR format. For example, enter 192.168.0.1/24.
You can select an IP exchange to add this IP network to. For this tutorial, leave this field blank.
Enter a description and tags for the IP network, if required, and then click Create. The IP network is created and selected in the IP Network field.
Static IP Address: You can specify a private IP address for this interface. The private IP address must be unused and it must belong to the subnet of the selected IP network. Remember, too, that certain IP addresses in a subnet are reserved. For example, the first unicast IP address of any IP network is reserved for the default gateway, the DHCP server, and the DNS server of that IP network.
If no static IP address is specified, an IP address from the specified IP network is allocated dynamically, when the instance is created. Dynamically allocated IP addresses might change if the instance is shut down and restarted, or deleted and re-created.
For this tutorial, leave this field blank.
Public IP Address: You can select an available public IP address for this interface. When the instance is created, you can configure security rules and access control lists for your IP network to enable access to this IP address over the public Internet. If you don’t select an IP reservation now, you can associate a public IP address with this interface later by creating or updating an IP reservation.
For this tutorial, leave this field blank.
Cloud IP Address: You can select an available cloud IP reservation for this interface. When the instance is created, this IP address can be accessed by other Oracle Cloud services without being accessible over the public Internet. If you don’t select a cloud IP address now, you can associate a cloud IP address with this interface later by creating or updating an IP reservation.
For this tutorial, leave this field blank.
MAC Address: You can specify the MAC address of the interface, in hexadecimal format. Ensure that the MAC addresses that you specify are unique within each IP network exchange and each IP network. If you specify a duplicate MAC address, each vNIC with that MAC address is disabled.
For this tutorial, leave this field blank.
Virtual NIC Sets: You can select the vNICsets that you want to add this interface to. Each interface is added to the default vNICset by default. If you select other vNICsets to add this interface to, you can remove it from the default vNICset. However, ensure that you add each interface to at least one vNICset, to enable communication to that interface. After the instance is created, communication with each vNIC depends on the vNICsets it belongs to and the access control lists that apply to each vNICset. You can also add or remove vNICs from a vNICset after the instance is created.
For this tutorial, don't specify any additional vNICsets. Retain the default vNICset.
DNS: You can specify DNS A record names for the instance. You can specify up to eight DNS A record names for each interface on an IP network. These names can be queried by instances on any IP network in the same IP network exchange. If no static IP address is specified for the interface, an IP address on the specified IP network is assigned automatically. After the instance is launched, the defined names are associated with the IP address that was automatically allocated to the interface.
For this tutorial, leave this field blank.
Name Servers: You can enter the name servers that are sent through DHCP as option 6. You can specify a maximum of eight name server IP addresses per interface.
For this tutorial, leave this field blank.
Search Domains: You can enter the search domains that should be sent through DHCP as option 119. You can enter a maximum of eight search domain zones per interface.
For this tutorial, leave this field blank.
Default Gateway: You can select this option if you want to use this interface as the default gateway. However, this option is used only when your instance isn't added to the shared network. When your instance is added to the shared network as well as one or more IP networks, the shared network interface acts as the default gateway. All network traffic uses the specified default gateway, unless a different interface is explicitly configured for an application within the instance.
For this tutorial, don't select this option.
Shared Network Options
Public IP Address: To associate a permanent public IP address with the instance, select Persistent Public IP Reservation. If you select an autogenerated public IP address, the IP address persists while the instance is running, but will change if you delete the instance and create it again later.
If you’ve already created an IP address reservation, select it from the list. Otherwise, create one now.
Click Create IP Reservation.
In the Create Public IP Reservation dialog box, enter a name for the IP reservation and then click Create.
The IP reservation is created and selected.
Security Lists: You can add your instance to one or more security lists. When you add an instance to a security list, you can control access to or from this instance by creating security rules that use the specified security list as a source or destination. If you don’t specify any security list, the instance is added to the default security list, default/default. This security list is used as the destination in the default security rule DefaultPublicSSHAccess, which enables SSH access. For the purpose of this tutorial, leave this field blank to enable SSH access to your instance.
On the Storage page, to use a persistent boot disk, accept the default settings and click the button to go to the next page.
If you want to attach storage volumes to your instance, then do the following:
If you've already created a bootable storage volume or storage volumes for applications and data, then click Attach Existing Volume. In the Attach Existing Storage Volume dialgo box, select or enter the following and then click Add.
Attach Storage Volume: Select the storage volume that you want to attach.
Attach as Disk #: Enter a disk index number. The disk number that you specify here determines the device name. The disk attached at index 1 is named /dev/xvdb, the disk at index 2 is /dev/xvdc, the disk at index 3 is /dev/xvdd, and so on.
Boot Drive: Select this option to use the specified storage volume as the boot disk. The storage volume that you select here must have the same image as the image that you selected on the Image page. When you select this option, the disk number is automatically set to 1.
To create and attach storage volumes, click Add New Volume. In the Add New Storage Volume dialog box, select or enter the following and then click Add.
Name: Enter a name for the storage volume.
Size: The size is set automatically to accommodate the disk size that’s specified in the image that you selected earlier. If you want a larger boot disk than that specified in the image, then enter a larger size. If you don't want to use this volume as a boot disk, then you can specify a size smaller than the image size.
Storage Property: Select a storage property. For storage volumes that require low latency and high IOPS, such as for storing database files, select storage/latency. For all other storage volumes, select storage/default.
Description: (Optional) Enter a description.
Attach as Disk #: Accept the default disk number or enter a higher number. The disk number that you specify here determines the device name. The disk attached at index 1 is named /dev/xvdb, the disk at index 2 is /dev/xvdc, the disk at index 3 is /dev/xvdd, and so on.
Boot Drive: Select this option to use the specified storage volume as the boot disk. When you select this option, the disk number is automatically set to 1.
On the Review page, verify the information that you've entered and then click Create.
Oracle Compute Cloud Service instances are provisioned and managed using orchestrations. The following orchestrations are created by the Create Instance wizard:
<name>_master: This is the master orchestration that controls individual orchestrations for the instance and for the storage volumes to be created, if any.
<name>_instance: This orchestration creates the instance. If storage volumes are created during instance creation, this orchestration waits for the storage volumes to be online before starting.
<name>_storage: This orchestration creates the specified storage volumes, if any.
where <name> is the name of the instance specified in the Create Instance wizard.
To view the status of your storage volumes and instances, check the status of the corresponding orchestration:
Click the Orchestrations tab.
The Orchestrations page shows a list of orchestrations along with the status of each orchestration. While resources are being provisioned, the orchestration shows the status Starting. When all resources in an orchestration have been provisioned successfully, the orchestration shows the status Ready. In case of issues in provisioning resources, the orchestration shows the status Error.
You can also view details of an orchestration for more information. Go to the appropriate orchestration, and from the