Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
linux_template_creation [2020/05/18 08:25]
orwah
linux_template_creation [2020/05/18 08:30] (current)
orwah
Line 29: Line 29:
 ''​Overall Process remains the same most of the Linux variants, Just the scripts you need to upload accordingly as per your Linux Version.''​ ''​Overall Process remains the same most of the Linux variants, Just the scripts you need to upload accordingly as per your Linux Version.''​
  
----- 
  
 {{ :​user:​1clicknewvm.png?​direct |}} {{ :​user:​1clicknewvm.png?​direct |}}
  
----- 
  
  
Line 39: Line 37:
  
 ---- ----
 +
 **Step 2**: Enter the Name and Description of the template and Click Next **Step 2**: Enter the Name and Description of the template and Click Next
  
----- 
  
 {{ :​user:​3selectname.png?​direct |}} {{ :​user:​3selectname.png?​direct |}}
  
 ---- ----
 +
 **Step 3:** Select the appropriate ISO file from the ISO library and Click Next **Step 3:** Select the appropriate ISO file from the ISO library and Click Next
  
----- 
  
 {{ :​user:​4selecetiso.png?​direct |}} {{ :​user:​4selecetiso.png?​direct |}}
  
 ---- ----
 +
 **Step 4:** Select the Homeserver where you want to create the VM and Click Next **Step 4:** Select the Homeserver where you want to create the VM and Click Next
  
----- 
  
 {{ :​user:​5selecthomeserver.png?​direct |}} {{ :​user:​5selecthomeserver.png?​direct |}}
  
 ---- ----
 +
 **Step 5:** Select the CPU and RAM as per your requirements and Click Next **Step 5:** Select the CPU and RAM as per your requirements and Click Next
  
----- 
  
 {{ :​user:​6selectcpumemory.png?​direct |}} {{ :​user:​6selectcpumemory.png?​direct |}}
  
 ---- ----
 +
 **Step 6:** Select the storage like shown below and Click next **Step 6:** Select the storage like shown below and Click next
  
----- 
  
 {{ :​user:​7selectstorage.png?​direct |}} {{ :​user:​7selectstorage.png?​direct |}}
  
 ---- ----
 +
 **Step 7:** Select the Netowork as Shown below and click next **Step 7:** Select the Netowork as Shown below and click next
  
----- 
  
 {{ :​user:​8selectnetwork.png?​direct |}} {{ :​user:​8selectnetwork.png?​direct |}}
  
 ---- ----
 +
 **Step 8:** Click on "Start the VM automatically"​ and Select "​Create VM" ​ **Step 8:** Click on "Start the VM automatically"​ and Select "​Create VM" ​
  
 The VM will be created on the Server You've selected and will start The VM will be created on the Server You've selected and will start
  
----- 
  
 {{ :​user:​9createvm.png?​direct |}} {{ :​user:​9createvm.png?​direct |}}
  
 ---- ----
 +
 **Step 9:** Select Install the Operating System from the Boot screen and Install the OS as per your configurations. **Step 9:** Select Install the Operating System from the Boot screen and Install the OS as per your configurations.
  
----- 
  
 {{ :​user:​10installos.png?​direct |}} {{ :​user:​10installos.png?​direct |}}
  
 ---- ----
-**Step 10:** The __Most Important thing__ while Installing the OS is that you need to <fc #​ff0000>​create partitions</​fc>​ you can create partitions as shown below, //+ 
 +**Step 10:**  
 +The __Most Important thing__ while Installing the OS is that you need to <fc #​ff0000>​create partitions</​fc>​ you can create partitions as shown below, //
  
 The below are partitioning schemes that we have in our templates// The below are partitioning schemes that we have in our templates//
Line 103: Line 103:
 ''​Note:​ All are MBR,ext based templates'' ​ ''​Note:​ All are MBR,ext based templates'' ​
  
----- +\\
-//+
 **<fc #​ff0000><​fs medium>​Centos 6</​fs></​fc>​** **<fc #​ff0000><​fs medium>​Centos 6</​fs></​fc>​**
  
Line 136: Line 135:
 <fs medium>​**<​fc #​800080>​If you want to create your Custom partitioning scheme please modify this portions of the script as per your disk scheme</​fc>​**</​fs>​ <fs medium>​**<​fc #​800080>​If you want to create your Custom partitioning scheme please modify this portions of the script as per your disk scheme</​fc>​**</​fs>​
  
- 
----- 
  
  
Line 153: Line 150:
 Here you can see there is no Swap present on this VM, we are going to create a 1GB swap file and use it as normal swap Here you can see there is no Swap present on this VM, we are going to create a 1GB swap file and use it as normal swap
  
----- 
  
 {{ :​user:​12noswap.png?​direct |}} {{ :​user:​12noswap.png?​direct |}}
Line 178: Line 174:
  
 **Step 14:** **Step 14:**
-How aggressively the server will use this swap space can be controlled by modifying the system’s swappiness value.//+How aggressively the server will use this swap space can be controlled by modifying the system’s swappiness value.\\
 To change the swappiness value edit /​etc/​sysctl.conf and add the following line. To change the swappiness value edit /​etc/​sysctl.conf and add the following line.
 <​code>​vm.swappiness=60</​code>​ <​code>​vm.swappiness=60</​code>​
 {{ :​user:​16swappiness.png?​direct |}} {{ :​user:​16swappiness.png?​direct |}}
 +
  
 ---- ----
Line 191: Line 188:
 sudo swapon -s</​code>​ sudo swapon -s</​code>​
 {{ :​user:​17swapon.png?​direct |}} {{ :​user:​17swapon.png?​direct |}}
 +
  
 ---- ----
 +
  
 **Step 16:** Using the command "free -h" we can check the allotted swap space as shown below **Step 16:** Using the command "free -h" we can check the allotted swap space as shown below
  
----- 
  
 {{ :​user:​181gbswap.png?​direct |}} {{ :​user:​181gbswap.png?​direct |}}
 +
  
 ---- ----
 +
  
 **Step 17:** Next we are going to Install Xentools in the VM, for the Xenica functions to work. **Step 17:** Next we are going to Install Xentools in the VM, for the Xenica functions to work.
Line 208: Line 208:
  
 {{ :​user:​0xentools.png?​direct |}} {{ :​user:​0xentools.png?​direct |}}
 +
  
 ---- ----
 +
  
 **Step 18:** **Step 18:**
Line 216: Line 218:
 (you can get the suitable xenicastart file from [[https://​wiki.xenmodule.com/​os_templates/​xenicastart.html|HERE]]) (you can get the suitable xenicastart file from [[https://​wiki.xenmodule.com/​os_templates/​xenicastart.html|HERE]])
  
----- 
  
 {{ :​user:​19xenicastart.png |}} {{ :​user:​19xenicastart.png |}}
 +
  
 ---- ----
 +
  
 **Step 19:** Assign the executable mode to the file by the command **Step 19:** Assign the executable mode to the file by the command
Line 235: Line 238:
 ''​Could not read Ip Address from the xenstore. It seems IP Address is not written to xenstore.''​ ''​Could not read Ip Address from the xenstore. It seems IP Address is not written to xenstore.''​
  
----- 
  
 {{ :​user:​21couldnotread-confirm.png |}} {{ :​user:​21couldnotread-confirm.png |}}
Line 250: Line 252:
 /​etc/​xenicastart.sh</​code>​ /​etc/​xenicastart.sh</​code>​
  
----- 
  
 {{ :​user:​22rclocalnew.png |}} {{ :​user:​22rclocalnew.png |}}
Line 258: Line 259:
 **Step 22:** Assign the executable mode to the file by the command **Step 22:** Assign the executable mode to the file by the command
 <​code>​chmod +x /​etc/​rc.local</​code>​ <​code>​chmod +x /​etc/​rc.local</​code>​
- 
----- 
  
 {{ :​user:​23chmodrclocal.png?​direct |}} {{ :​user:​23chmodrclocal.png?​direct |}}
  • linux_template_creation.txt
  • Last modified: 2020/05/18 08:30
  • by orwah