1"use strict";(self.webpackChunksupportkc_new=self.webpackChunksupportkc_new||[]).push([[2416],{3905:(e,t,a)=>{a.d(t,{Zo:()=>c,kt:()=>k});var n=a(67294);function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function i(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?l(Object(a),!0).forEach((function(t){r(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function o(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a,n,r={},l=Object.keys(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)a=l[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var s=n.createContext({}),p=function(e){var t=n.useContext(s),a=t;return e&&(a="function"==typeof e?e(t):i(i({},t),e)),a},c=function(e){var t=p(e.components);return n.createElement(s.Provider,{value:t},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var a=e.components,r=e.mdxType,l=e.originalType,s=e.parentName,c=o(e,["components","mdxType","originalType","parentName"]),u=p(a),d=r,k=u["".concat(s,".").concat(d)]||u[d]||m[d]||l;return a?n.createElement(k,i(i({ref:t},c),{},{components:a})):n.createElement(k,i({ref:t},c))}));function k(e,t){var a=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=a.length,i=new Array(l);i[0]=d;var o={};for(var s in t)hasOwnProperty.call(t,s)&&(o[s]=t[s]);o.originalType=e,o[u]="string"==typeof e?e:r,i[1]=o;for(var p=2;p<l;p++)i[p]=a[p];return n.createElement.apply(null,i)}return n.createElement.apply(null,a)}d.displayName="MDXCreateElement"},96530:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>s,contentTitle:()=>i,default:()=>m,frontMatter:()=>l,metadata:()=>o,toc:()=>p});var n=a(87462),r=(a(67294),a(3905));const l={sidebar_position:2,sidebar_label:"Instance creation",title:"OpenStack"},i="Instance Creation and Virtual Machine Types",o={unversionedId:"Openstack/instancecreation",id:"Openstack/instancecreation",title:"OpenStack",description:"This document provides comprehensive instructions on creating instances and understanding the virtual machine types available.",source:"@site/docs-ncloud/Openstack/instancecreation.md",sourceDirName:"Openstack",slug:"/Openstack/instancecreation",permalink:"/supportkc/docs-ncloud/Openstack/instancecreation",draft:!1,tags:[],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2,sidebar_label:"Instance creation",title:"OpenStack"},sidebar:"tutorialSidebar",previous:{title:"Access to ncloud",permalink:"/supportkc/docs-ncloud/Openstack/access"},next:{title:"Quotas",permalink:"/supportkc/docs-ncloud/Openstack/quotas"}},s={},p=[{value:"Instance Creation",id:"instance-creation",level:2},{value:"Key Points for Instance Creation",id:"key-points-for-instance-creation",level:3},{value:"Step-by-Step Guide",id:"step-by-step-guide",level:3},{value:"List Resource Names and IDs",id:"list-resource-names-and-ids",level:4},{value:"Keypair Creation",id:"keypair-creation",level:4},{value:"Security Group Configuration",id:"security-group-configuration",level:4},{value:"Instance Creation",id:"instance-creation-1",level:4},{value:"Floating IP Creation and Assignment",id:"floating-ip-creation-and-assignment",level:4},{value:"SSH Access to VMs",id:"ssh-access-to-vms",level:4},{value:"Virtual Machine Types",id:"virtual-machine-types",level:2},{value:"Available Flavors",id:"available-flavors",level:3},{value:"Images",id:"images",level:3}],c={toc:p},u="wrapper";
1function m(e){let{components:t,...a}=e;return(0,r.kt)(u,(0,n.Z)({},c,a,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("h1",{id:"instance-creation-and-virtual-machine-types"},"Instance Creation and Virtual Machine Types"),(0,r.kt)("p",null,"This document provides comprehensive instructions on creating instances and understanding the virtual machine types available."),(0,r.kt)("h2",{id:"instance-creation"},"Instance Creation"),(0,r.kt)("p",null,'Instance creation can be done easily via OpenStack Horizon from the "Launch Instance" button on the Project -> Compute -> Instances Panel.'),(0,r.kt)("p",null,"However, you can also deploy an instance via OSC (OpenStack CLI) using the following steps:"),(0,r.kt)("h3",{id:"key-points-for-instance-creation"},"Key Points for Instance Creation"),(0,r.kt)("ul",null,(0,r.kt)("li",{parentName:"ul"},"Ensure a ",(0,r.kt)("strong",{parentName:"li"},"security group")," is selected that allows access to the VM from the Internet or private networks."),(0,r.kt)("li",{parentName:"ul"},"A ",(0,r.kt)("strong",{parentName:"li"},"keypair")," must be created and associated with the instance.")),(0,r.kt)("h3",{id:"step-by-step-guide"},"Step-by-Step Guide"),(0,r.kt)("h4",{id:"list-resource-names-and-ids"},"List Resource Names and IDs"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-bash"},"$ openstack image list\n$ openstack flavor list\n$ openstack security group list\n$ openstack network list\n$ openstack keypair list\n")),(0,r.kt)("h4",{id:"keypair-creation"},"Keypair Creation"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-bash"},"$ openstack keypair create --public-key ~/.ssh/id_rsa.pub <keypair-name>\n")),(0,r.kt)("h4",{id:"security-group-configuration"},"Security Group Configuration"),(0,r.kt)("p",null,"Create a security group with appropriate ingress and egress rules, or modify the default group:"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-bash"},"openstack security group rule create --ingress --proto tcp --remote-ip 0.0.0.0/0 --dst-port 22 default\n")),(0,r.kt)("h4",{id:"instance-creation-1"},"Instance Creation"),(0,r.kt)("ul",null,(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("strong",{parentName:"li"},"With Non-Persistent Storage"),":")),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-bash"},"$ openstack server create --image <image> --flavor <flavor> --security-group <security-group> --network <network> --key-name <keypair-name> <name>\n")),(0,r.kt)("p",null,"For sensitive data, it is recommended to use encrypted volumes. You can create and attach one as follows:"),(0,r.kt)("ol",null,(0,r.kt)("li",{parentName:"ol"},"Create the encrypted volume:",(0,r.kt)("pre",{parentName:"li"},(0,r.kt)("code",{parentName:"pre",className:"language-bash"},"openstack volume create --size <size> --type LUKS <volume-name>\n"))),(0,r.kt)("li",{parentName:"ol"},"Attach it to your server (after creation or later):",(0,r.kt)("pre",{parentName:"li"},(0,r.kt)("code",{parentName:"pre",className:"language-bash"},"openstack server add volume <server> <volume>\n")),(0,r.kt)("em",{parentName:"li"},"(See ",(0,r.kt)("a",{parentName:"em",href:"/supportkc/docs-ncloud/Openstack/mounting-storage"},"Mounting Storage")," for details on using the volume inside the VM)."))),(0,r.kt)("ul",null,(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("strong",{parentName:"li"},"With Persistent Storage")," (including encrypted volumes created as above):")),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-bash"},"$ openstack server create --image <image> --boot-from-volume <volume-size> --flavor <flavor> --security-group <security-group> --network <network> --key-name <keypair-name> <name>\n")),(0,r.kt)("h4",{id:"floating-ip-creation-and-assignment"},"Floating IP Creation and Assignment"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-bash"},"$ openstack floating ip create 130-dmz-openstack\n$ openstack server add floating ip <server> <floating-ip>\n")),(0,r.kt)("h4",{id:"ssh-access-to-vms"},"SSH Access to VMs"),(0,r.kt)("ul",null,(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("strong",{parentName:"li"}
1,"Rocky Linux"),":")),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-bash"},"$ ssh rocky@<floating-ip>\n")),(0,r.kt)("ul",null,(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("strong",{parentName:"li"},"Ubuntu"),":")),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-bash"},"$ ssh ubuntu@<floating-ip>\n")),(0,r.kt)("hr",null),(0,r.kt)("h2",{id:"virtual-machine-types"},"Virtual Machine Types"),(0,r.kt)("h3",{id:"available-flavors"},"Available Flavors"),(0,r.kt)("admonition",{title:"Caution",type:"caution"},(0,r.kt)("p",{parentName:"admonition"},"Keep in mind that changing the flavor may fail if the target host does not have enough available resources or if your project does not have sufficient quota. If that happens, please contact the Cloud Support team at ",(0,r.kt)("strong",{parentName:"p"},(0,r.kt)("a",{parentName:"strong",href:"mailto:[email protected]"},"[email protected]"))," for assistance.")),(0,r.kt)("p",null,"The table below describes the available flavors for use in the BSC OpenStackCloud:"),(0,r.kt)("table",null,(0,r.kt)("thead",{parentName:"table"},(0,r.kt)("tr",{parentName:"thead"},(0,r.kt)("th",{parentName:"tr",align:null},"Flavor"),(0,r.kt)("th",{parentName:"tr",align:null},"vCPU"),(0,r.kt)("th",{parentName:"tr",align:null},"RAM"),(0,r.kt)("th",{parentName:"tr",align:null},"Disk"))),(0,r.kt)("tbody",{parentName:"table"},(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"bsc.t"),(0,r.kt)("td",{parentName:"tr",align:null},"1"),(0,r.kt)("td",{parentName:"tr",align:null},"2 GB"),(0,r.kt)("td",{parentName:"tr",align:null},"60 GB")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"bsc.s"),(0,r.kt)("td",{parentName:"tr",align:null},"2"),(0,r.kt)("td",{parentName:"tr",align:null},"4 GB"),(0,r.kt)("td",{parentName:"tr",align:null},"60 GB")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"bsc.m"),(0,r.kt)("td",{parentName:"tr",align:null},"4"),(0,r.kt)("td",{parentName:"tr",align:null},"8 GB"),(0,r.kt)("td",{parentName:"tr",align:null},"60 GB")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"bsc.l"),(0,r.kt)("td",{parentName:"tr",align:null},"8"),(0,r.kt)("td",{parentName:"tr",align:null},"16 GB"),(0,r.kt)("td",{parentName:"tr",align:null},"60 GB")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"bsc.xl"),(0,r.kt)("td",{parentName:"tr",align:null},"12"),(0,r.kt)("td",{parentName:"tr",align:null},"24 GB"),(0,r.kt)("td",{parentName:"tr",align:null},"60 GB")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"bsc.2xl"),(0,r.kt)("td",{parentName:"tr",align:null},"16"),(0,r.kt)("td",{parentName:"tr",align:null},"32 GB"),(0,r.kt)("td",{parentName:"tr",align:null},"60 GB")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"bsc.mem.t"),(0,r.kt)("td",{parentName:"tr",align:null},"1"),(0,r.kt)("td",{parentName:"tr",align:null},"4 GB"),(0,r.kt)("td",{parentName:"tr",align:null},"60 GB")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"bsc.mem.s"),(0,r.kt)("td",{parentName:"tr",align:null},"2"),(0,r.kt)("td",{parentName:"tr",align:null},"8 GB"),(0,r.kt)("td",{parentName:"tr",align:null},"60 GB")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"bsc.mem.m"),(0,r.kt)("td",{parentName:"tr",align:null},"4"),(0,r.kt)("td",{parentName:"tr",align:null},"16 GB"),(0,r.kt)("td",{parentName:"tr",align:null},"60 GB")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"bsc.mem.l"),(0,r.kt)("td",{parentName:"tr",align:null},"8"),(0,r.kt)("td",{parentName:"tr",align:null},"32 GB"),(0,r.kt)("td",{parentName:"tr",align:null},"60 GB")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"bsc.mem.xl"),(0,r.kt)("td",{parentName:"tr",align:null},"12"),(0,r.kt)("td",{parentName:"tr",align:null},"48 GB"),(0,r.kt)("td",{parentName:"tr",align:null},"60 GB")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"bsc.mem.2xl"),(0,r.kt)("td",{parentName:"tr",align:null},"16"),(0,r.kt)("td",{parentName:"tr",align:null},"64 GB"),(0,r.kt)("td",{parentName:"tr",align:null},"60 GB")),(0,r.kt)("tr",{parentName:"tbody"},(0,r.kt)("td",{parentName:"tr",align:null},"bsc.mem.3xl"),(0,r.kt)("td",{parentName:"tr",align:null},"32"),(0,r.kt)("td",{parentName:"tr",align:null},"112 GB"),(0,r.kt)("td",{parentName:"tr",align:null},"60 GB")))),(0,r.kt)("h3",{id:"images"},"Images"),(0,r.kt)("p",null,"A selection of up-to-date images is maintained to ensure compatibility and performance."))}m.isMDXComponent=!0}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.