Skip to content
Menu
Cloud Gal 42
  • Home
Cloud Gal 42

Installing Debian on OCI

November 13, 2020May 13, 2021 by admin

Download Debian –

  1. Go to https://cloud.debian.org/images/cloud/OpenStack/9.13.7-20201108/
  2. Download debian-9.13.7-20201108-openstack-amd64.qcow2

Upload Debian to Oracle Cloud Infrastructure –

  1. Login to your OCI Console, for instance, https://console.us-ashburn-1.oraclecloud.com/
  2. Go to Object Storage and pick or create a bucket
  3. Upload debian-9.13.7-20201108-openstack-amd64.qcow2 to the bucket

Import Debian Custom Image –

  1. Login to your OCI Console, for instance, https://console.us-ashburn-1.oraclecloud.com/
  2. Go to Compute -> Custom Images and click on Import Image
  3. Select Import from Object Storage Bucket option
  4. Select the right bucket and then the uploaded debian image object
  5. Select Image Type as QCOW2
  6. Select Paravirtualized Mode
  7. Click on Import

Create VM on OCI using Debian Custom Image –

  1. Login to your OCI Console, for instance, https://console.us-ashburn-1.oraclecloud.com/
  2. Go to Compute -> Instances and click on Create Instance
  3. Click on Change Image, go to Custom Image tab
  4. Select the imported Debian image
  5. For the purpose of this tutorial, assign a public IP
  6. Generate new key pair or use an existing one
  7. Click on Create

Logging in to Debian VM on OCI –

  • Sample Windows PowerShell ssh command –
ssh -i 'C:\Users\Amrita\debian\ssh-key-2020-11-12.key' debian@<public IP>
  • If OpenSSH is not installed, do the following –
# Install the OpenSSH Client
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0

# Install the OpenSSH Server
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0

Comment if you face any issues.

Related

6 thoughts on “Installing Debian on OCI”

  1. Ananda says:
    December 29, 2021 at 6:01 pm

    I just want to say thank you. You helped me a lot.

    Reply
    1. admin says:
      February 15, 2022 at 3:48 pm

      Glad to hear it!

      Reply
  2. Andreas says:
    March 25, 2022 at 9:58 am

    Thanks for this post, with some changes (see below) it worked perfectly!

    Notes/changes:
    1. The location of the Debian images has moved. The images are now available here: https://cloud.debian.org/images/cloud/ – for our purposes I selected the “genericcloud” one.
    2. If you have created a private bucket or are re-using an existing one which is private, it is crucial that you go to the bucket -> Objects -> navigate to your qcow2 image -> click on the three dots and select “Create pre-authenticated request”. Then copy that URL and in the Create image UI select “Import from an Object Storage URL”, then paste the previously shown URL there. Everything else is the same. Without this, the import fails with an authorization error.

    Reply
    1. admin says:
      May 3, 2022 at 7:51 pm

      Thank you, Andreas. I am sure others will find this valuable!

      Reply
  3. Jorge says:
    May 6, 2022 at 4:31 pm

    I executed that approach, but the connection to VM not works using ssh, i have a prompt in a console connection where it’s requesting add login and password?

    Reply
  4. Rafael says:
    August 4, 2022 at 6:52 pm

    Hi Andreas, thank you for the post. I followed the instructions but I can’t connect to my Debian 10 (buster) installation.

    When trying to SSH into it, I get “Connection closed by XXXXXXX port 22”. (I run several other VMs, both Windows and “Red Hat” Linux without any issue.)

    I can connect to the VM using Oracle Console (Cloud Shell), but is asks for a user and password and I don’t have one. I tried every “default” combination but I can’t login.

    Any idea what could be wrong?

    Any help is appreciated. Thanks!

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Role of AI/ML in Cybersecurity
  • QuickGuide: Security on OCI
  • The Cloud Management Plane
  • Secure Installation and Configuration of Virtualized Cloud Datacenters
  • Cloud Datacenter: Hardware-specific Security Configuration Requirements

Recent Comments

  • Rafael on Installing Debian on OCI
  • Jorge on Installing Debian on OCI
  • admin on Installing Debian on OCI
  • Andreas on Installing Debian on OCI
  • admin on Installing Debian on OCI

Archives

  • December 2022
  • February 2022
  • September 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • February 2021
  • January 2021
  • November 2020
  • October 2020

Categories

  • aws
  • bcdr
  • cloud
  • cloudsecurity
  • compliance
  • informationsecurity
  • oracle
  • pci
  • QuickGuide
  • security
©2025 Cloud Gal 42 | Powered by WordPress and Superb Themes!