Saturday, March 28, 2020

Create Oracle Cloud Instance from preserved Boot Volume.

4:15 AM Posted by Dilli Raj Maharjan , No comments



Boot Volume Introduction.

A boot volume for the instance is created every time we lauch a virtual machine(VM) or bare metal instance. A boot volume contains OS and can up to 32 TB in size. Boot volume is associated with that instance until we terminate the instance. While terminating instance we have option to preserve boot disk. By default, boot volume is preserved during instance termination. There is an option to delete boot volume while instance get terminated.

Steps to create Oracle Cloud Instance from preserved Boot Volume.

While terminating any compute instance in Oracle Cloud Infrastructure, Following pop-up message will be displayed. Do not selection option "Permanently delete the attached Boot Volume". Selecting the option will delete the boot volume permanently and there is no option to recover deleted boot volume. Click on Terminate Instance button to terminate instance.



While listing the list of Boot Volumes we can see that Boot Volume web2 still available.




Create Instance option is disabled if the boot volume is attached to any compute instance. As in image below, Boot Volume web1 is attached to web1 compute instance so option to create instance from boot volume is disabled.



Compute Instance web2 is already terminated preserving boot volume. Basically boot volume web2 is detached from the compute instance so option Create Instance is activated. Click on Create Instance option to create instance from preserved boot volume.



Type Name of Compute Instance. The name can be any name but try to use meaningful name for simplicity.



Provide additional details as SSH Keys and change shape, Network and Storage options if required. Click on Create button to create compute instance.



Now we can noticed that Compute Instance web2 is in PROVISIONING state.



Once instance is successfully created we can see the state of instance has changed to RUNNING.




Now we can ssh to the instance created.