Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
debian_install_instructions [2015/08/27 13:18]
admin
debian_install_instructions [2018/07/03 21:22] (current)
orwah
Line 1: Line 1:
-<fs x-large>Creating Debian Templates</fs>+====== ​Creating Debian Templates ​======
  
 Mainly you will need to create debian VM manually and then do the following steps to the template before converting it to Template Mainly you will need to create debian VM manually and then do the following steps to the template before converting it to Template
Line 48: Line 48:
  
  
-</​code>​<wrap hi>Note: the sizes are not important</​wrap>​ +</​code> ​__Note:__ the sizes are not important 
-  ​- <​code>​Put ​the script file (assign_ip_from_xenstore_debian.sh) inside /etc/ +  ​ 
-so that you will have the file location ​as follows +   
-/etc/xenica_assign_ip.sh +  *   **now we need to make scripts run automatically on system startup** ,  
-</​code>​ +get the script file: xenicastart.sh from your xenica package (or you can get it from [[HERE]]), and put inside /etc/ 
-  ​- ​assign the executable mode to the file by the command<​code>​ +so that you will have the file locations ​as follows ​<​code>​/etc/xenicastart.sh</​code>​ 
- chmod +x /etc/assign_ip_from_xenstore_debian.sh</​code>​ + ​assign the executable mode to the file by the command <​code>​chmod +x /etc/xenicastart.sh</​code>​ 
-  - make sure xentools installed +Issue the following commands: 
-  ​install in the vm parted package<​code>​+<​code>​update-rc.d xenicastart.sh start 20</​code>​ 
 + 
 +  
 +  * make sure xentools installed 
 +  ​install in the vm parted package<​code>​
 apt-get install parted</​code>​ apt-get install parted</​code>​
-  ​do fdisk -ul and write down the number you get in this section<​code>​+  ​do fdisk -ul and write down the number you get in this section<​code>​
 fdisk -ul  fdisk -ul 
 dev/​xvda1 ​  ​* ​       2048      499711 ​     248832 ​  ​83 ​ Linux dev/​xvda1 ​  ​* ​       2048      499711 ​     248832 ​  ​83 ​ Linux
Line 64: Line 68:
 /​dev/​xvda2 ​         501758 ​   16775167 ​    ​8136705 ​   5  Extended /​dev/​xvda2 ​         501758 ​   16775167 ​    ​8136705 ​   5  Extended
 </​code>​in my case it was 16775167 (the end of /dev/xvda2 partition) </​code>​in my case it was 16775167 (the end of /dev/xvda2 partition)
-  ​now open the script at /etc/assign_ip_from_xenstore_debian.sh<​code>​ +  ​now open the script at /etc/xenicastart.sh and edit the line 
-and edit the line +<​code>​(echo n; echo p; echo 3; echo 16775168; echo ; echo t; echo 3; echo 8e; echo w) | fdisk -u /dev/xvda</​code>​ 
-(echo n; echo p; echo 3; echo 16775168; echo ; echo t; echo 3; echo 8e; echo w) | fdisk -u /dev/xvda +to the number you got in step 5 +1 
-to the number you got in step 5 +1</​code>​ +  ​convert to template
-  ​- add the line <​code>/​etc/​assign_ip_from_xenstore_debian.sh</​code>​ to the file /​etc/​rc.local +
-  - convert to template+
  
  
  • debian_install_instructions.1440681490.txt.gz
  • Last modified: 2015/08/27 13:18
  • by admin