Brovanture OCI

Unlock the power of OCI: Building a Windows VM Server from scratch in an hour

Tej Bhople
Brovanture Consultant

Introduction

Oracle Cloud Infrastructure (OCI) is a robust and feature-rich cloud platform that enables businesses to harness the power of virtualization. In this blog post, we will show you how to unlock the power of OCI through the process of building a Windows VM server on OCI from scratch. By following our step-by-step instructions, you will be able to set up your own Windows VM Server in just an hour, leveraging the full potential of OCI’s capabilities. Let’s dive in and unlock the power of OCI!

This flowchart provides a high-level overview of the steps involved:

Brovanture OCI

Step 1: Sign up for OCI

To get started, sign up for an OCI account if you haven’t already. The sign-up process is quick and straightforward, and it will provide you with the necessary credentials to access OCI’s services. https://cloud.oracle.com.

Step 2: Create a compartment

A compartment is a logical container that helps organize and isolate resources within an OCI tenancy.

  1. On the OCI home page, open the navigation menu, and click Identity & Security. Under Identity, click Compartments.

A list of the compartments in your tenancy is displayed. You can choose existing compartment or create new compartment.

  1. Click Create Compartment.

Brovanture OCI

Brovanture OCI

Brovanture OCI

Step 3: Create a Virtual Cloud Network (VCN)

Either we can create VCN Subnet separately or we can create them while creating VM server. I used the later option.

From OCI navigation menu Click on Compute and then click on Instances.

Brovanture OCI

Click on Create Instance

Brovanture OCI

Brovanture OCI

You can give a logical name to the instance and select the compartment in which you want to create the instance.

An availability domain is a standalone, independent data centre that is physically isolated from other availability domains to provide high availability. I just selected the first availability domain.

Brovanture OCI

Brovanture OCI

Brovanture OCI

From available shapes, select the configuration of your required VM server. I have selected the minimal required for an Enterprise Performance Management (EPM) installation.

A Virtual Cloud Network (VCN) is the foundation of your network infrastructure on OCI. Create a VCN and configuring this will provide the networking resources for your Windows VM server.

Step 4: Create a Subnet Within the VCN

Create a subnet that will host your Windows VM. Specify the CIDR block for the subnet, subnet type (public or private), and choose the appropriate routing table.

Step 5: Configure Security Lists Security

After this, you need to specify details of boot volume (C Drive of VM)

Brovanture OCI

Step 6: Create a Windows VM

Click on Create Instance.  This will take you to the instance details screen.

Brovanture OCI

This gives us VM server with IP address mentioned as public IP address. This will allow us to connect to server using RDP.

Tried it and it failed ☹

Brovanture OCI

This brings us to another step 5 to configure security list. We can complete it after VCN is ready or when RDP fails 😊

We need to add our IP address to IP allowlist.

  1. Open the navigation menu and click Compute. Under Compute, click Instances.
  2. Click the instance that you’re interested in.
  3. Under Instance details, for Virtual cloud network, click the name of the cloud network.
  4. To add the rule to a network security group that the instance belongs to.
  • a. Under Resources, click Network Security Groups.
  • b. Click the network security group that you’re interested in.

Brovanture OCI

  • c. Click Security lists , then click default security list

Brovanture OCi

  • d. Click Add Ingress Rule

Brovanture OCI

  • e. Click Add.

Brovanture OCI

5. Return to the Instance details page: Open the navigation menu and click Compute. Under Compute, click Instances. Click the instance.

Try to connect now. Change your password on first logon and then go ahead.

Brovanture OCI

Brovanture OCI

Great!, we are now connected to our OCI server.

Step 7: Configure Storage

For storage, we will be creating another volume on server – similar to D drive. It is called Block volume.

  1. Open the navigation menu and click Storage. Under Block Storage, click Block Volumes.

Brovanture OCI

2. Click Create Block Volume.

Brovanture OCI

3. Fill in the required volume information:

    • Name: A user-friendly name or description. Avoid entering confidential information.
    • Domain: Must be in the same availability domainas the instance.
    • Volume Size and Performance
      • Size: Must be between 50 GBand 32 TB.
      • Volume Performance: Optionally, you can select the appropriate performance level for your requirements.
    • Backup Policy: Optionally, you can select the appropriate backup policy for your requirements

Brovanture OCI

4. Click Create Block Volume.

Brovanture OCI

Attach this volume to Server

  1. Open the navigation menu and click Compute. Under Compute, click Instances.
  2. In the Instanceslist, click the instance that you want to attach a volume to.
  3. In the Resources section, click Attached Block Volumes.

Brovanture OCI

4. Click Attach Block Volume.

Brovanture OCI

5. Specify the volume you want to attach to. To use the volume name, choose SELECT VOLUMEand then select the volume from the Block Volume drop-down list.

6. Select the volume attachment type, iSCSIParavirtualized, or Let Oracle Cloud Infrastructure choose the best attachment type. I went with iSCSI.

Brovanture OCI

Brovanture OCI

7. Click Attach.

Brovanture OCI

Step 8: Configure Networking

Login to server, open iSCSI initiator

Brovanture OCI

Discovery tab > Discover Portal

Brovanture OCI

Brovanture OCI

Give IP and Port of newly created Block volume. Click OK.

Click on Targets Tab.

Brovanture OCI

Select the block volume and click connect. It shows connected.

Brovanture OCI

Go to computer management

Brovanture OCI

Step 9: Secure with essential VM update

Right click on Disk 1, new simple volume

Brovanture OCI

Brovanture OCI

Brovanture OCI

And our server is ready. I am going to use it for EPM. Maybe you are aware of it from naming conventions 😊

Until next time

Tej