[LINUX] [IBM Cloud] Place the ISO file in the object storage

This is how to upload the iso file to the object storage of IBM Cloud and boot the VSI as an image.

Premise

① Select "Object Storage" from the "Storage" tab on the portal. 20180615151444.jpg Image quality is too bad!
(2) Click "Add Container" and enter the container name.
③ Click the created container and click "Add File" I can upload it, but

** Up to 20MB maximum size for uploading / downloading files from the portal ** There is a limitation.

(^ ω ^) ・ ・ ・ ・ I can't put anything

So upload the file via the Linux server. In this case, there is no size limit.

④ Introduce Swift client to Linux First, click "Display Credentials" on screen ①. 20180615152507.jpg Check "Username", "Password", and "Endpoint Authentication".

The endpoint is "Public" when sending from a terminal that can connect externally, When sending from a server with Softlayer's private LAN such as VSI, make a note of "private".
Log in to the terminal that sends the file, Install the pip command, swift-client.

yum install epel-release
yum install python-pip
pip install pip --upgrade
pip install python-swiftclient

Environment variable settings

~/.bash_profile


export ST_AUTH=https://tok02.objectstorage.softlayer.net/auth/v1.0/
export ST_USER=xxxxxxxxxxxx
export ST_KEY=xxxxxxxxxxxxxxxxxx

Enter the credentials you wrote down in USER and KEY. AUTH is sent via public from a server with an internet connection outside Softlayer in this procedure.

Reflect

. ~/.bash_profile

⑤ Upload the file

Container list display

swift list

File list display in the container

swift list container name

Upload file

swift upload container name/xxxxx.iso --use-slo --segment-thread 30

When completed, you can see it from the portal. However, it is not ready for use yet.
⑥ Import the uploaded file as an image

Portal "Device" ⇒ "Management" ⇒ "Image" Click the Import Image tab. 20180615154915.jpg Select the account, cluster, container where the file is stored, and file name to import.

When completed, it will appear as an image template, so It is possible to "boot from the image" on the device details screen. The image template costs $ 25 / GB per month, but the file itself is stored only for the object storage fee, so You can delete the image after use and import it whenever you need it.

That's it

Recommended Posts

[IBM Cloud] Place the ISO file in the object storage
Get Google Cloud Storage object list in Java
Convert the cURL API to a Python script (using IBM Cloud object storage)
Download the file in Python
[Python] Change the Cache-Control of the object uploaded to Cloud Storage
Save the binary file in Python
[Cloudian # 2] Try to display the object storage bucket in Python (boto3)
The story of the "hole" in the file
The meaning of ".object" in Django
Implemented in Dataflow to copy the hierarchy from Google Drive to Google Cloud Storage
Just print the selected object in Blender
Read the file line by line in Python
Read the file line by line in Python
Operate Sakura's cloud object storage from Python
[Python] Read the specified line in the file
Extract only the file name excluding the directory in the directory
Save the object to a file with pickle
In bash, "Delete the file if it exists".