Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
debian_install_instructions [2018/05/19 12:36] 5.155.173.110 |
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 |
- | * now we need to make scripts run automatically on system startup , | + | |
- | from xenica package get the script files (xenica_assign_ip,xenica_auostart.sh) and put inside /etc/ | + | |
- | so that you will have the file locations as follows<code>/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 | + | assign the executable mode to the file by the command <code>chmod +x /etc/xenicastart.sh</code> |
- | chmod +x /etc/xenica_auostart.sh</code> | + | |
Issue the following commands: | Issue the following commands: | ||
- | <code>update-rc.d xenica_assign_ip.sh start 20 | + | <code>update-rc.d xenicastart.sh start 20</code> |
- | update-rc.d xenica_auostart.sh start 20</code> | + | |
Line 70: | 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 and edit the line | + | * now open the script at /etc/xenicastart.sh 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> | <code>(echo n; echo p; echo 3; echo 16775168; echo ; echo t; echo 3; echo 8e; echo w) | fdisk -u /dev/xvda</code> | ||
to the number you got in step 5 +1 | to the number you got in step 5 +1 |