Difference between revisions of "How create a compatible model Cloud Ikoula"

From EN Ikoula wiki
⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
<br />This article has been created by an automatic translation software. You can view the article source [[:fr:Comment creer un modele compatible Cloud Ikoula|here]].<br /><span data-translate="fr"></span><br />
 +
<span data-link_translate_fr_title="Comment creer un modele compatible Cloud Ikoula"  data-link_translate_fr_url="Comment creer un modele compatible Cloud Ikoula"></span>[[:fr:Comment creer un modele compatible Cloud Ikoula]][[fr:Comment creer un modele compatible Cloud Ikoula]]
 +
<span data-link_translate_he_title="איך ליצור מודל תואם ענן Ikoula"  data-link_translate_he_url="%D7%90%D7%99%D7%9A+%D7%9C%D7%99%D7%A6%D7%95%D7%A8+%D7%9E%D7%95%D7%93%D7%9C+%D7%AA%D7%95%D7%90%D7%9D+%D7%A2%D7%A0%D7%9F+Ikoula"></span>[[:he:איך ליצור מודל תואם ענן Ikoula]][[he:איך ליצור מודל תואם ענן Ikoula]]
 +
<span data-link_translate_ro_title="Cum pentru a crea un model compatibil nor Ikoula"  data-link_translate_ro_url="Cum+pentru+a+crea+un+model+compatibil+nor+Ikoula"></span>[[:ro:Cum pentru a crea un model compatibil nor Ikoula]][[ro:Cum pentru a crea un model compatibil nor Ikoula]]
 +
<span data-link_translate_ru_title="Как создать совместимый модель облачных Ikoula"  data-link_translate_ru_url="%D0%9A%D0%B0%D0%BA+%D1%81%D0%BE%D0%B7%D0%B4%D0%B0%D1%82%D1%8C+%D1%81%D0%BE%D0%B2%D0%BC%D0%B5%D1%81%D1%82%D0%B8%D0%BC%D1%8B%D0%B9+%D0%BC%D0%BE%D0%B4%D0%B5%D0%BB%D1%8C+%D0%BE%D0%B1%D0%BB%D0%B0%D1%87%D0%BD%D1%8B%D1%85+Ikoula"></span>[[:ru:Как создать совместимый модель облачных Ikoula]][[ru:Как создать совместимый модель облачных Ikoula]]
 +
<span data-link_translate_pl_title="Jak utworzyć zgodnego modelu Cloud Ikoula"  data-link_translate_pl_url="Jak+utworzy%C4%87+zgodnego+modelu+Cloud+Ikoula"></span>[[:pl:Jak utworzyć zgodnego modelu Cloud Ikoula]][[pl:Jak utworzyć zgodnego modelu Cloud Ikoula]]
 
<span data-link_translate_ja_title="雲 Ikoula の互換性のあるモデルを作成する方法"  data-link_translate_ja_url="%E9%9B%B2+Ikoula+%E3%81%AE%E4%BA%92%E6%8F%9B%E6%80%A7%E3%81%AE%E3%81%82%E3%82%8B%E3%83%A2%E3%83%87%E3%83%AB%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95"></span>[[:ja:雲 Ikoula の互換性のあるモデルを作成する方法]][[ja:雲 Ikoula の互換性のあるモデルを作成する方法]]
 
<span data-link_translate_ja_title="雲 Ikoula の互換性のあるモデルを作成する方法"  data-link_translate_ja_url="%E9%9B%B2+Ikoula+%E3%81%AE%E4%BA%92%E6%8F%9B%E6%80%A7%E3%81%AE%E3%81%82%E3%82%8B%E3%83%A2%E3%83%87%E3%83%AB%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95"></span>[[:ja:雲 Ikoula の互換性のあるモデルを作成する方法]][[ja:雲 Ikoula の互換性のあるモデルを作成する方法]]
 
<span data-link_translate_ar_title="كيفية إنشاء نموذج متوافق مع "عكلة سحابة""  data-link_translate_ar_url="%D9%83%D9%8A%D9%81%D9%8A%D8%A9+%D8%A5%D9%86%D8%B4%D8%A7%D8%A1+%D9%86%D9%85%D9%88%D8%B0%D8%AC+%D9%85%D8%AA%D9%88%D8%A7%D9%81%D9%82+%D9%85%D8%B9+%22%D8%B9%D9%83%D9%84%D8%A9+%D8%B3%D8%AD%D8%A7%D8%A8%D8%A9%22"></span>[[:ar:كيفية إنشاء نموذج متوافق مع "عكلة سحابة"]][[ar:كيفية إنشاء نموذج متوافق مع "عكلة سحابة"]]
 
<span data-link_translate_ar_title="كيفية إنشاء نموذج متوافق مع "عكلة سحابة""  data-link_translate_ar_url="%D9%83%D9%8A%D9%81%D9%8A%D8%A9+%D8%A5%D9%86%D8%B4%D8%A7%D8%A1+%D9%86%D9%85%D9%88%D8%B0%D8%AC+%D9%85%D8%AA%D9%88%D8%A7%D9%81%D9%82+%D9%85%D8%B9+%22%D8%B9%D9%83%D9%84%D8%A9+%D8%B3%D8%AD%D8%A7%D8%A8%D8%A9%22"></span>[[:ar:كيفية إنشاء نموذج متوافق مع "عكلة سحابة"]][[ar:كيفية إنشاء نموذج متوافق مع "عكلة سحابة"]]
 
<span data-link_translate_zh_title="如何创建一个兼容模型云 Ikoula"  data-link_translate_zh_url="%E5%A6%82%E4%BD%95%E5%88%9B%E5%BB%BA%E4%B8%80%E4%B8%AA%E5%85%BC%E5%AE%B9%E6%A8%A1%E5%9E%8B%E4%BA%91+Ikoula"></span>[[:zh:如何创建一个兼容模型云 Ikoula]][[zh:如何创建一个兼容模型云 Ikoula]]
 
<span data-link_translate_zh_title="如何创建一个兼容模型云 Ikoula"  data-link_translate_zh_url="%E5%A6%82%E4%BD%95%E5%88%9B%E5%BB%BA%E4%B8%80%E4%B8%AA%E5%85%BC%E5%AE%B9%E6%A8%A1%E5%9E%8B%E4%BA%91+Ikoula"></span>[[:zh:如何创建一个兼容模型云 Ikoula]][[zh:如何创建一个兼容模型云 Ikoula]]
<span data-link_translate_ro_title="Cum pentru a crea un model compatibil nor Ikoula"  data-link_translate_ro_url="Cum+pentru+a+crea+un+model+compatibil+nor+Ikoula"></span>[[:ro:Cum pentru a crea un model compatibil nor Ikoula]][[ro:Cum pentru a crea un model compatibil nor Ikoula]]
 
<span data-link_translate_pl_title="Jak utworzyć zgodnego modelu Cloud Ikoula"  data-link_translate_pl_url="Jak+utworzy%C4%87+zgodnego+modelu+Cloud+Ikoula"></span>[[:pl:Jak utworzyć zgodnego modelu Cloud Ikoula]][[pl:Jak utworzyć zgodnego modelu Cloud Ikoula]]
 
 
<span data-link_translate_de_title="Wie erstellen Sie ein kompatibles Modell Cloud Ikoula"  data-link_translate_de_url="Wie+erstellen+Sie+ein+kompatibles+Modell+Cloud+Ikoula"></span>[[:de:Wie erstellen Sie ein kompatibles Modell Cloud Ikoula]][[de:Wie erstellen Sie ein kompatibles Modell Cloud Ikoula]]
 
<span data-link_translate_de_title="Wie erstellen Sie ein kompatibles Modell Cloud Ikoula"  data-link_translate_de_url="Wie+erstellen+Sie+ein+kompatibles+Modell+Cloud+Ikoula"></span>[[:de:Wie erstellen Sie ein kompatibles Modell Cloud Ikoula]][[de:Wie erstellen Sie ein kompatibles Modell Cloud Ikoula]]
 
<span data-link_translate_nl_title="Hoe maak een compatibel model Cloud Ikoula"  data-link_translate_nl_url="Hoe+maak+een+compatibel+model+Cloud+Ikoula"></span>[[:nl:Hoe maak een compatibel model Cloud Ikoula]][[nl:Hoe maak een compatibel model Cloud Ikoula]]
 
<span data-link_translate_nl_title="Hoe maak een compatibel model Cloud Ikoula"  data-link_translate_nl_url="Hoe+maak+een+compatibel+model+Cloud+Ikoula"></span>[[:nl:Hoe maak een compatibel model Cloud Ikoula]][[nl:Hoe maak een compatibel model Cloud Ikoula]]
Line 9: Line 13:
 
<span data-link_translate_pt_title="Como criar um modelo compatível nuvem Ikoula"  data-link_translate_pt_url="Como+criar+um+modelo+compat%C3%ADvel+nuvem+Ikoula"></span>[[:pt:Como criar um modelo compatível nuvem Ikoula]][[pt:Como criar um modelo compatível nuvem Ikoula]]
 
<span data-link_translate_pt_title="Como criar um modelo compatível nuvem Ikoula"  data-link_translate_pt_url="Como+criar+um+modelo+compat%C3%ADvel+nuvem+Ikoula"></span>[[:pt:Como criar um modelo compatível nuvem Ikoula]][[pt:Como criar um modelo compatível nuvem Ikoula]]
 
<span data-link_translate_es_title="Cómo crear un modelo compatible nube Ikoula"  data-link_translate_es_url="C%C3%B3mo+crear+un+modelo+compatible+nube+Ikoula"></span>[[:es:Cómo crear un modelo compatible nube Ikoula]][[es:Cómo crear un modelo compatible nube Ikoula]]
 
<span data-link_translate_es_title="Cómo crear un modelo compatible nube Ikoula"  data-link_translate_es_url="C%C3%B3mo+crear+un+modelo+compatible+nube+Ikoula"></span>[[:es:Cómo crear un modelo compatible nube Ikoula]][[es:Cómo crear un modelo compatible nube Ikoula]]
<span data-link_translate_fr_title="Comment creer un modele compatible Cloud Ikoula"  data-link_translate_fr_url="Comment_creer_un_modele_compatible_Cloud_Ikoula"></span>[[:fr:Comment creer un modele compatible Cloud Ikoula]][[fr:Comment creer un modele compatible Cloud Ikoula]]
+
<span data-link_translate_en_title="How create a compatible model Cloud Ikoula"  data-link_translate_en_url="How+create+a+compatible+model+Cloud+Ikoula"></span>[[:en:How create a compatible model Cloud Ikoula]][[en:How create a compatible model Cloud Ikoula]]
<br />
 
  
This article has been created by an automatic translation software. You can view the article source [[:fr:Comment creer un modele compatible Cloud Ikoula|here]].<br /><span data-translate="fr"></span>
+
{{#seo:
 +
|title=How create a compatible model Cloud Ikoula
 +
|title_mode=append
 +
|keywords=these,are,your,keywords
 +
|description=How create a compatible model Cloud Ikoula
 +
|image=Uploaded_file.png
 +
|image_alt=Wiki Logo
 +
}}
  
The following procedure explains how to create a model compatible with Cloud Ikoula from an installation from scratch (from a iso ).
+
The following procedure explains how to create a model compatible with the {{cloud public}} or the {{cloud privé}} starting an installation from scratch (from a iso).
  
  
In our example, we will create a GNU image /Linux Fedora 22.
+
In our example, we create a GNU image/Linux Fedora 22.
  
  
Log on to the interface  [https://cloudstack.ikoula.com/client/ Cloud Ikoula]  :
+
Sign in to [https://cloudstack.ikoula.com/client/ the management interface]  :
  
  
Click on  "Models " in the left menu :
+
Click "Models" in the left menu :
  
  
Line 29: Line 39:
  
  
Select the view "ISO"  :
+
Select the view "ISO"  :
  
  
Line 35: Line 45:
  
  
Click on the button "Save ISO " :
+
Click on the button "Save ISO" :
  
  
Line 41: Line 51:
  
  
Then fill in the fields :
+
Then fill in the fields :
  
  
Line 47: Line 57:
  
  
1: Enter the name you want for your image  
+
# Enter the name you want for your image ;
 +
# Enter a description for your image ;
 +
# Enter / Paste the URL HTTP (No https) full ISO file ;
 +
# Select the Cloud Ikoula area for which your image will be available ;
 +
# Check this box if you want an instance to be able to boot from your ISO ;
 +
# Specify the type of your ISO system, if your system and the version of it is in the list select it, otherwise choose one of the type "Other xxx" the most suitable. In our case, Fedora 22 was not available in the list we have so selected "Other Linux (64-bit)" ;
 +
# Check this box if you want your ISO to be downloaded once created.
  
2: Enter a description for your image
 
  
3: Enter /Paste the HTTP u (non-http) full iso file
+
Once your ISO registered, wait until it either in status "Loan : Yes" :
 
 
4:  Select the Cloud Ikoula area for which your image will be available
 
 
 
5: Select this checkbox if you want an instance to be able to boot from your iso
 
 
 
6: Indicate the type of system your ISO, if your system and the version of it is in the list select the otherwise choose one type  "Other xxx" the most suitable. In our case, Fedora 22 was not available in the list we have therefore selected  "Other Linux (64-bit)".
 
 
 
7: Check this case if you want that your ISO can be downloaded once created
 
 
 
 
 
Once your ISO registered, wait until it is in status "Loan : Yes" :
 
  
  
Line 68: Line 72:
  
  
Click on  "Instances" in the left menu :
+
Click "Instances" in the left menu :
  
  
Line 74: Line 78:
  
  
Click on the button "Add an instance " :
+
Click on the button "Add an instance" :
  
  
Line 80: Line 84:
  
  
Select your instance deployment area  :
+
Select the area of your instance deployment :
  
  
Line 86: Line 90:
  
  
Select ISO and click on  "Follow"
+
Select ISO and then click "Next" :
  
  
Line 92: Line 96:
  
  
Click on the tab "My ISOs" and select the iso you just create  :
+
Click on the tab "My ISOs" and check the ISO you just created :
  
  
Line 98: Line 102:
  
  
Select the offer for the calculation of your choice and then c "Follow"  
+
Select the offer for the calculation of your choice and then click "Next" :
  
  
Made slide the cursor to select the size of disk (GB ) that you want for your instance and therefore for your future model or enter the size (GB ) manually in the field and then confirm with the button "Entry " your keyboard to make the selected appears in the description at the top  :
+
Drag the slider to gand the size of disk (in the UK) that you want for your instance and therefore for your future model or enter the size (in the UK) manually in the fields and validate with the key "Entry" on your keyboard to make the size chosen to appear in description above :
  
  
Line 107: Line 111:
  
  
Click on  "Follow"
+
Click "Next" :
  
  
Continue the classic stages of deploying an instance (Affinity, nawork, instance name ) clicking on "Follow" at each time to validate and then click "Start VM "
+
Continue with the classic steps of deploying an instance (Affinity network, instance name) by clicking on "Next" at each time to validate and finally on "Start VM".
  
  
Once your instance has been deployed, click the name of the (from the Instances me) :
+
Once your instance deployed, click on the name of the (from the Instances menu) :
  
  
Line 119: Line 123:
  
  
Click on the button "See the consol" (Note that you see your ISO image attached to your instance into the details of this ) :
+
Click on the button "See the console" (Note that you see your ISO image attached to your instance in the details of this) :
  
  
Line 125: Line 129:
  
  
A new pop-up browser window will open (If this is not the case check that you not block it the pop up for the Cloud Ikoula interface ). This window is actually a web GUI console type VNC /KVM (écran/clavier/souris) your instance which will allow you to install the system on the disk of your instance :
+
A new pop-up browser window will open (If this is not the case check that you not block the pop up for the Cloud Ikoula interface). This window is actually a web graphical console type VNC/KVM (écran/clavier/souris) your instance that will allow you to install the system on the disk of your instance :
  
  
[[File:Create_image_cloudikoula_14.png|700px]]
+
[[File:Create_image_cloudikoula_14_aredimenssionner.png]]
  
  
Continue with the installation of your system with the partitioning and configuration you want (install the SSH package if prompted ), note, however, that the keyboard is not of type QWERTY (attention therefore to the definition of passwo).
+
Continue with the installation of your system with the partitioning and configuration you want (install the SSH package if requested)Note however that the keyboard is QWERTY type (so beware of the definition of the password).
  
  
At the end of the installation when it is asked to you click on restart, stop your instance to detach ISO  
+
At the end of the installation when it is asked to you click on restart, stop your instance to detach the ISO
  
  
Once your instance is stopped, click the name of your instance and then the button "Detach the ISO image" :
+
Once your instance stopped, click the name of your instance and then the button "Detach the ISO image" :
  
  
Line 143: Line 147:
  
  
Once the iso detached from your instance, you can again start it to start on the system that you just installed on the disk (ROOTDISK) of the latter.
+
ISO once detached from your instance, you can start it in order to start on the system that you have installed the disk (ROOTDISK) of the latter.
  
  
Line 149: Line 153:
  
  
Click on the button "See the consol" to see your booted system :
+
Click on the button "See the console" to see your system start :
  
  
Line 155: Line 159:
  
  
Connect with SSH to your instance (You must have create a firewall rule and redirection of port if your instance is in zone /network advance or an inbound rule of {{Template:Sécurité}} group if it is in zone basic and does not have rules iptables on your instance system ) to complete the configuration of the system to make it compatible with Cloud Ikoula.
+
Connect in SSH to your instance (You must have create a rule pare fire and redirection of port if your instance is in area/Advanced Networking or an inbound rule for group of {{Template:Sécurité}} If it is in the basic zone and not having rules iptables on your instance system) to complete the configuration of the system to make it compatible with the.{Cloud public}}.
  
  
With regard to a virtual context, we relied on a partitioning with LVM (root and swap logical volumes ) in order to easily resize our partitions in case of resizing or adding a virtual disk :
+
Being a virtual context, we relied on a partitioning with LVM (LVM root and swap) so you can easily resize our partitions in case of resizing or adding a virtual disk :
  
  
Line 202: Line 206:
  
  
Update the system if necessary (to adapt to your package manager ) :
+
Update the system if necessary (to tailor your package manager) :
  
  
Line 210: Line 214:
  
  
Please install the minimum packages which can be used to execute commands in settings "UserDat" during a deployment   for instance your templat : Vim, rsync, curl, wget, cloud-init, puppet, facte :
+
Please install at least packages that may be useful to run commands in settings "UserData" during a deployment to instance with your model : Vim, rsync, curl, wget. {{Template:Cloud}}-init, puppet, facter :
  
  
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
[root@Fedora22x64 system]# dnf list installed vim-enhanced rsync curl wget cloud-init puppet facter
+
[root@TM-Fedora22KB ~]# dnf install vim-enhanced rsync curl wget cloud-init puppet facter
Vérification de l'expiration des métadonnées effectuée il y a 0:30:24 sur Tue Oct  6 08:49:42 2015.
+
Vérification de l'expiration des métadonnées effectuée il y a 0:00:27 sur Thu Nov 26 12:32:31 2015.
Paquets installés
+
Le paquet rsync-3.1.1-6.fc22.x86_64 est déjto installé, ignorer
cloud-init.x86_64                                                                         0.7.6-3.fc22                                                                           @System
+
Le paquet curl-7.40.0-7.fc22.x86_64 est déjà installé, ignorer
curl.x86_64                                                                               7.40.0-7.fc22                                                                         @System
+
Le paquet wget-1.16.3-1.fc22.x86_64 est déjà installé, ignorer
facter.x86_64                                                                             2.4.1-1.fc22                                                                           @System
+
Dépendances résolues.
puppet.noarch                                                                             4.1.0-5.fc22                                                                           @System
+
===============================================================================================================================================================================================================================================================================
rsync.x86_64                                                                              3.1.1-6.fc22                                                                          @System
+
Paquet                                                                  Architecture                                                Version                                                                Dépôt                                                        Taille
vim-enhanced.x86_64                                                                       2:7.4.827-1.fc22                                                                       @System
+
===============================================================================================================================================================================================================================================================================
wget.x86_64                                                                               1.16.3-1.fc22                                                                         @System
+
Installation de :
 +
PyYAML                                                                  x86_64                                                      3.11-9.fc22                                                            updates                                                      168 k
 +
cloud-init                                                             x86_64                                                     0.7.6-3.fc22                                                           fedora                                                      434 k
 +
facter                                                                  x86_64                                                      2.4.1-1.fc22                                                          fedora                                                      105 k
 +
gpm-libs                                                                x86_64                                                     1.20.7-6.fc22                                                          fedora                                                        36 k
 +
hiera                                                                  noarch                                                      1.3.4-3.fc22                                                          updates                                                      29 k
 +
libselinux-ruby                                                        x86_64                                                      2.3-10.fc22                                                            updates                                                      135 k
 +
libyaml                                                                x86_64                                                      0.1.6-6.fc22                                                          fedora                                                        58 k
 +
puppet                                                                  noarch                                                      4.1.0-5.fc22                                                          updates                                                      1.2 M
 +
python-configobj                                                        noarch                                                      5.0.5-2.fc22                                                          fedora                                                        65 k
 +
python-jsonpatch                                                        noarch                                                      1.2-5.fc22                                                            fedora                                                        19 k
 +
python-jsonpointer                                                      noarch                                                      1.9-2.fc22                                                            updates                                                      17 k
 +
python-prettytable                                                      noarch                                                      0.7.2-4.fc22                                                          fedora                                                        42 k
 +
ruby                                                                    x86_64                                                      2.2.3-44.fc22                                                          updates                                                      74 k
 +
ruby-augeas                                                            x86_64                                                      0.5.0-6.fc22                                                           fedora                                                        28 k
 +
ruby-irb                                                                noarch                                                      2.2.3-44.fc22                                                          updates                                                      93 k
 +
ruby-libs                                                              x86_64                                                     2.2.3-44.fc22                                                          updates                                                      2.9 M
 +
ruby-shadow                                                            x86_64                                                      1.4.1-26.fc22                                                          fedora                                                        18 k
 +
rubygem-bigdecimal                                                      x86_64                                                      1.2.6-44.fc22                                                          updates                                                      86 k
 +
rubygem-io-console                                                      x86_64                                                      0.4.3-44.fc22                                                          updates                                                      56 k
 +
rubygem-json                                                            x86_64                                                      1.8.3-100.fc22                                                         updates                                                      65 k
 +
rubygem-pathspec                                                        noarch                                                      0.0.2-2.fc22                                                          updates                                                      17 k
 +
rubygem-psych                                                          x86_64                                                      2.0.8-44.fc22                                                          updates                                                      85 k
 +
rubygem-rdoc                                                            noarch                                                     4.2.0-44.fc22                                                         updates                                                      481 k
 +
rubygem-rgen                                                            noarch                                                      0.6.6-2.fc21                                                          fedora                                                        84 k
 +
rubygems                                                                noarch                                                      2.4.8-100.fc22                                                        updates                                                      269 k
 +
rubypick                                                                noarch                                                      1.1.1-4.fc22                                                          updates                                                      11 k
 +
vim-common                                                              x86_64                                                      2:7.4.827-1.fc22                                                      updates                                                      6.0 M
 +
vim-enhanced                                                           x86_64                                                     2:7.4.827-1.fc22                                                       updates                                                      1.1 M
 +
vim-filesystem                                                          x86_64                                                     2:7.4.827-1.fc22                                                       updates                                                      22 k
 +
 
 +
Résumé de la transaction
 +
===============================================================================================================================================================================================================================================================================
 +
Installation  29 Packages
 +
 
 +
Taille totale des téléchargements : 14 M
 +
Taille d'installation : 45 M
 +
Est-ce correct [o/N] : o
 
</syntaxhighlight>
 
</syntaxhighlight>
  
  
- Add the line "datasource_list: ['CloudStack']" at the beginning of the configuratio /etc/cloud/cloud.cfg (If you have installed cloud-init as shown above ) :
+
- Add the line "datasource_list: ['CloudStack']" at the beginning of the configuration file /etc/{{Template:Cloud}}/{{Template:Cloud}}.cfg (If you have installed {{Template:Cloud}}-init as shown above) :
  
  
Line 236: Line 277:
  
  
Retrieve archive containing the tools on our mirror Xen  :
+
Now you can launch the installation of the XenTools. To do this, you can follow the following article: [[Installation_des_XenTools_sur_une_instance_CloudStack]].
 
+
'''Attention''' ne rebootez pas votre machine après l'installation dex XenTools contrairement à ce qu'indique l'article.
 
 
<syntaxhighlight lang="bash">
 
[root@Fedora22x64 ~]# wget http://mirror03.ikoula.com/pub/citrix/xentools/linux65.zip
 
--2015-10-05 17:28:10--  http://mirror03.ikoula.com/pub/citrix/xentools/linux65.zip
 
Résolution de mirror03.ikoula.com (mirror03.ikoula.com)… 80.93.XX.XX, 2a00:c70:1:80:93:XX:XX:1
 
Connexion à mirror03.ikoula.com (mirror03.ikoula.com)|80.93.XX.XX|:80… connecté.
 
requête HTTP transmise, en attente de la réponse… 200 OK
 
Taille : 60474580 (58M) [application/zip]
 
Sauvegarde en : « linux65.zip »
 
 
 
linux65.zip                                  100%[===================================================================================================>]  57,67M  1,14MB/s  ds 50s
 
 
 
2015-10-05 17:29:00 (1,14 MB/s) — « linux65.zip » sauvegardé [60474580/60474580]
 
</syntaxhighlight>
 
 
 
 
 
Unpack it in the current directory  (requires unzip to be installed ) :
 
 
 
 
 
<syntaxhighlight lang="bash">
 
[root@Fedora22x64 ~]# unzip linux65.zip
 
Archive:  linux65.zip
 
  creating: linux65/
 
  creating: linux65/rhel4x/
 
  inflating: linux65/rhel4x/kernel-xenU-2.6.9-103.EL.xs6.5.0.68.i686.rpm
 
  inflating: linux65/rhel4x/mkinitrd-4.2.1.10-1.1.i386.rpm
 
  inflating: linux65/rhel4x/versions
 
  inflating: linux65/xe-linux-distribution
 
  inflating: linux65/xe-guest-utilities_6.5.0-1400_amd64.deb
 
  inflating: linux65/xe-guest-utilities_6.5.0-1400_i386.deb
 
  inflating: linux65/xe-guest-utilities-6.5.0-1400.i386.rpm
 
  inflating: linux65/xe-guest-utilities-6.5.0-1400.x86_64.rpm
 
  inflating: linux65/xe-guest-utilities-xenstore-6.5.0-1400.i386.rpm
 
  inflating: linux65/install.sh
 
  inflating: linux65/xe-guest-utilities-xenstore-6.5.0-1400.x86_64.rpm
 
  creating: linux65/debian-lenny/
 
  inflating: linux65/debian-lenny/linux-image-2.6.32-5-amd64_2.6.32-43.xs6.5.0.299_amd64.deb
 
  inflating: linux65/debian-lenny/linux-image-2.6-xen_2.6.32+0.xs299_i386.deb
 
  inflating: linux65/debian-lenny/linux-image-2.6.32-5-686-bigmem_2.6.32-43.xs6.5.0.299_i386.deb
 
  inflating: linux65/debian-lenny/linux-image-2.6-xen_2.6.32+0.xs299_amd64.deb
 
  inflating: linux65/debian-lenny/versions
 
  inflating: linux65/versions.rpm
 
  inflating: linux65/README.txt
 
  inflating: linux65/versions.deb
 
[root@Fedora22x64 ~]#
 
</syntaxhighlight>
 
 
 
 
 
Run the installation of the Xen tools :
 
  
 
+
We add the following lines into /etc/sysctl.conf (We disable IPv6 and applied some optimizations) :
<syntaxhighlight lang="bash">
 
[root@Fedora22x64 ~]# ./linux65/install.sh
 
Detected `Fedora release 22 (Twenty Two)' (fedora version 22).
 
 
 
The following changes will be made to this Virtual Machine:
 
  * update arp_notify sysctl.conf.
 
  * packages to be installed/upgraded:
 
    - xe-guest-utilities-6.5.0-1400.x86_64.rpm
 
    - xe-guest-utilities-xenstore-6.5.0-1400.x86_64.rpm
 
 
 
Continue? [y/n] y
 
 
 
attention : Génération d'index manquant(s) 4, merci d'attendre...
 
Préparation...                      ################################# [100%]
 
Mise à jour / installation...
 
  1:xe-guest-utilities-xenstore-6.5.0################################# [ 50%]
 
  2:xe-guest-utilities-6.5.0-1400    ################################# [100%]
 
 
 
You should now reboot this Virtual Machine.
 
</syntaxhighlight>
 
 
 
 
 
Restart your instance as this prompted  :
 
 
 
 
 
<syntaxhighlight lang="bash">
 
[root@Fedora22x64 ~]# reboot
 
</syntaxhighlight>
 
 
 
 
 
Vérification :
 
 
 
 
 
<syntaxhighlight lang="bash">
 
[root@Fedora22x64 ~]# systemctl status xe-linux-distribution.service
 
● xe-linux-distribution.service - LSB: XenServer Virtual Machine daemon providing host integration services
 
  Loaded: loaded (/etc/rc.d/init.d/xe-linux-distribution)
 
  Active: active (running) since lun. 2015-10-05 19:11:06 CEST; 13h ago
 
    Docs: man:systemd-sysv-generator(8)
 
  Process: 586 ExecStart=/etc/rc.d/init.d/xe-linux-distribution start (code=exited, status=0/SUCCESS)
 
  CGroup: /system.slice/xe-linux-distribution.service
 
          ├─ 631 /bin/bash /usr/sbin/xe-daemon -p /var/run/xe-daemon.pid
 
          └─2725 sleep 60
 
 
 
oct. 05 19:11:05 Fedora22x64 systemd[1]: Starting LSB: XenServer Virtual Machine daemon providing host integration services...
 
oct. 05 19:11:06 Fedora22x64 systemd[1]: Started LSB: XenServer Virtual Machine daemon providing host integration services.
 
oct. 05 19:11:06 Fedora22x64 xe-linux-distribution[586]: Mounting xenfs on /proc/xen: [  OK  ]
 
oct. 05 19:11:06 Fedora22x64 xe-linux-distribution[586]: Detecting Linux distribution version: [  OK  ]
 
oct. 05 19:11:06 Fedora22x64 xe-linux-distribution[586]: Starting xe daemon:  [  OK  ]
 
</syntaxhighlight>
 
 
 
 
 
You can delete the installation files  :
 
 
 
 
 
<syntaxhighlight lang="bash">
 
[root@Fedora22x64 ~]# rm -rf linux65*
 
[root@Fedora22x64 ~]#
 
</syntaxhighlight>
 
 
 
 
 
We add the following lines in  /etc/sysctl.conf (It disables API 6 and applied some optimizations ):
 
  
  
Line 379: Line 309:
  
  
Then we execute the command "sysctl -p" :
+
Then we execute the command "sysctl -p" :
  
  
Line 400: Line 330:
  
  
It modifies the SELinux policy to pass it from  "enforcing" à "permissive" :
+
Changed SELinux policy to spend it in "enforcing" à "permissive" :
  
  
Line 419: Line 349:
  
  
If your system has rules of origin firewall, please stoppper and disable it, in our case example :
+
If your system has rules pare original light, please stop and disable it, in our case example :
  
  
Line 430: Line 360:
  
  
It verifies that it has more rules of responsible  :
+
We check that there are more rules loaded :
  
  
Line 446: Line 376:
  
  
We now install the Cloud guests scripts on which are based the functionality of change of password, hostname, userdata's SSH keys :
+
We will now install the scripts {{Template:Cloud}} guests that rely on features of change of password, hostname, the userdata's, SSH keys :
 
 
 
 
- First, retrieve the archive containing the scripts on our mirror  (Edit fedora 22 by centos7, debian8 or ubunt1404 in the following u) :
 
  
  
 +
- First get the scripts on our mirror using the wget command (Edit fedora22 by centos7debian8 or ubuntu1404 in the following URL) :
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
[root@Fedora22x64 ~]# wget http://mirror02.ikoula.com/priv/citrix/scripts/systemd/fedora22/cloud-set-guest-scripts.tar.gz
+
wget http://mirror02.ikoula.com/priv/citrix/scripts/systemd/fedora22/systemd/cloud-set-guest-hostname.service -P /lib/systemd/system/
--2015-10-06 09:57:13--  http://mirror02.ikoula.com/priv/citrix/scripts/systemd/fedora22/cloud-set-guest-scripts.tar.gz
+
wget http://mirror02.ikoula.com/priv/citrix/scripts/systemd/fedora22/systemd/cloud-set-guest-password.service -P /lib/systemd/system/
Résolution de mirror02.ikoula.com (mirror02.ikoula.com)… 80.93.XX.XX, 2a00:c70:1:80:93:XX:XX:1
+
wget http://mirror02.ikoula.com/priv/citrix/scripts/systemd/fedora22/systemd/cloud-set-guest-sshkey.service -P /lib/systemd/system/
Connexion à mirror02.ikoula.com (mirror02.ikoula.com)|80.93.XX.XX|:80… connecté.
+
wget http://mirror02.ikoula.com/priv/citrix/scripts/systemd/fedora22/systemd/cloud-set-guest-userdata.service -P /lib/systemd/system/
requête HTTP transmise, en attente de la réponse… 200 OK
+
wget http://mirror02.ikoula.com/priv/citrix/scripts/systemd/fedora22/init.d/cloud-set-guest-hostname -P /etc/init.d
Taille : 2965 (2,9K) [application/x-gzip]
+
wget http://mirror02.ikoula.com/priv/citrix/scripts/systemd/fedora22/init.d/cloud-set-guest-password -P /etc/init.d
Sauvegarde en : « cloud-set-guest-scripts.tar.gz »
+
wget http://mirror02.ikoula.com/priv/citrix/scripts/systemd/fedora22/init.d/cloud-set-guest-sshkey -P /etc/init.d
 
+
wget http://mirror02.ikoula.com/priv/citrix/scripts/systemd/fedora22/init.d/cloud-set-guest-userdata -P /etc/init.d
cloud-set-guest-scripts.tar.gz                100%[===================================================================================================>]  2,90K  --.-KB/s  ds 0s
 
 
 
2015-10-06 09:57:13 (279 MB/s) — « cloud-set-guest-scripts.tar.gz » sauvegardé [2965/2965]
 
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
+
- We activate our service units :
- Extract the conten :
 
 
 
 
 
<syntaxhighlight lang="bash">
 
[root@Fedora22x64 ~]# tar xvzf cloud-set-guest-scripts.tar.gz
 
cloud-set-guest-hostname
 
cloud-set-guest-hostname.service
 
cloud-set-guest-password
 
cloud-set-guest-password.service
 
cloud-set-guest-sshkey
 
cloud-set-guest-sshkey.service
 
cloud-set-guest-userdata
 
cloud-set-guest-userdata.service
 
readme.txt
 
</syntaxhighlight>
 
 
 
 
 
- Move the files .service in  /lib/systemd/system/ :
 
 
 
 
 
<syntaxhighlight lang="bash">
 
[root@Fedora22x64 ~]# mv cloud-set-guest-*.service /lib/systemd/system/
 
[root@Fedora22x64 ~]#
 
</syntaxhighlight>
 
 
 
 
 
- Move the other files in  /etc/init.d/
 
 
 
 
 
<syntaxhighlight lang="bash">
 
[root@Fedora22x64 ~]# rm -f cloud-set-guest-scripts.tar.gz
 
[root@Fedora22x64 ~]# mv cloud-set-guest-* /etc/init.d/
 
[root@Fedora22x64 ~]#
 
</syntaxhighlight>
 
 
 
 
 
- It enables our service units :
 
 
 
  
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
Line 527: Line 414:
  
  
- We purge the DHCP leases file (path and name of file to suit the need ) :
+
- We purge the DHCP leases file (path and name of file to suit the need) :
  
  
Line 535: Line 422:
  
  
- On purge master logs files and command history  :
 
  
 +
- On retire la ligne ''MACADDR'' du fichier /etc/sysconfig/network-scripts/ifcfg-eth0 (Similarly, to adapt according to your distribution).
 +
<syntaxhighlight lang="bash">
 +
[root@fedora22 ~]#  grep -v ^MACADDR ifcfg-eth0 > ifcfg-eth0.tmp && rm -f ifcfg-eth0 && mv ifcfg-eth0.tmp ifcfg-eth0
 +
</syntaxhighlight>
 +
 +
- We purge master logs files and command history :
  
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
Line 548: Line 440:
  
  
- It created the model of our quit instance :
+
- We created the model of our instance stopped :
  
  
On the Cloud Ikoula interface, go in  "Instances" then click on the name of your instance
+
On the Cloud Ikoula interface, go to the "Instances" then click on the name of your instance  
  
  
Click on  "See Volumes" :
+
Click "See Volumes" :
  
  
Line 560: Line 452:
  
  
Click on the name of your volume ROOTDISK :
+
Click on the name of your volume ROOTDISK :
  
  
Line 566: Line 458:
  
  
Click on the button "Create a templat" :
+
Click on the button "Create a template" :
  
  
Line 572: Line 464:
  
  
Give the name and the description that you want to your model, choose the same type of bone than that of your instance, check "Password enabled " et "dynamic resizing " (If you have respectively set up the cloud-set-guest-password script and installed the xentools ) :
+
Give the name and the description that you want to your model, choose the same type of bone than that of your instance, check "Password enabled" et "dynamic resizing" (If you have respectively set up the script {{Template:Cloud}}-set-guest-password and installed the xentools) :
  
  
Line 578: Line 470:
  
  
Once finished creating your template  :
+
After the creation of your model is finished :
  
  
Line 584: Line 476:
  
  
You can find it in "Models " :
+
You can find it in "Models" :
  
  
Line 590: Line 482:
  
  
The name of your template and click the tab "Area" to verify that its status is ready (Loan : Yes)  :
+
Click your model name and then click the tab "Areas" to verify that its status is ready (Loan : Yes)  :
  
  
Line 596: Line 488:
  
  
You can now deploy new instances with your compatible model Cloud Ikoula  (you will need to select your model in the tab "My template" the instance deployment wizard) :
+
You can now deploy new instances with your compatible model {{Cloud public}} (you will need to select your model in the tab "My models" the wizard of deploying instance) :
  
  
 
[[File:Create_image_cloudikoula_27.png]]
 
[[File:Create_image_cloudikoula_27.png]]
  
 +
 +
This article seem useful to you ? <vote />
  
 
[[Category:cloudstack]]
 
[[Category:cloudstack]]
 
[[Category:public_cloud]]
 
[[Category:public_cloud]]
 
[[Category:private_cloud]]
 
[[Category:private_cloud]]
 
 
<br />
 
<br />
 
<comments />
 
<comments />

Latest revision as of 15:10, 24 September 2021


This article has been created by an automatic translation software. You can view the article source here.

fr:Comment creer un modele compatible Cloud Ikoula he:איך ליצור מודל תואם ענן Ikoula ro:Cum pentru a crea un model compatibil nor Ikoula ru:Как создать совместимый модель облачных Ikoula pl:Jak utworzyć zgodnego modelu Cloud Ikoula ja:雲 Ikoula の互換性のあるモデルを作成する方法 ar:كيفية إنشاء نموذج متوافق مع "عكلة سحابة" zh:如何创建一个兼容模型云 Ikoula de:Wie erstellen Sie ein kompatibles Modell Cloud Ikoula nl:Hoe maak een compatibel model Cloud Ikoula it:Come creare un modello compatibile Cloud Ikoula pt:Como criar um modelo compatível nuvem Ikoula es:Cómo crear un modelo compatible nube Ikoula en:How create a compatible model Cloud Ikoula

The following procedure explains how to create a model compatible with the public cloud or the private cloud starting an installation from scratch (from a iso).


In our example, we create a GNU image/Linux Fedora 22.


Sign in to the management interface :


Click "Models" in the left menu :


Create image cloudikoula 01.png


Select the view "ISO" :


Create image cloudikoula 02.png


Click on the button "Save ISO" :


Create image cloudikoula 03.png


Then fill in the fields :


Create image cloudikoula 04.png


  1. Enter the name you want for your image ;
  2. Enter a description for your image ;
  3. Enter / Paste the URL HTTP (No https) full ISO file ;
  4. Select the Cloud Ikoula area for which your image will be available ;
  5. Check this box if you want an instance to be able to boot from your ISO ;
  6. Specify the type of your ISO system, if your system and the version of it is in the list select it, otherwise choose one of the type "Other xxx" the most suitable. In our case, Fedora 22 was not available in the list we have so selected "Other Linux (64-bit)" ;
  7. Check this box if you want your ISO to be downloaded once created.


Once your ISO registered, wait until it either in status "Loan : Yes" :


Create image cloudikoula 05.png


Click "Instances" in the left menu :


Create image cloudikoula 06.png


Click on the button "Add an instance" :


Create image cloudikoula 07.png


Select the area of your instance deployment :


Create image cloudikoula 08.png


Select ISO and then click "Next" :


Create image cloudikoula 09.png


Click on the tab "My ISOs" and check the ISO you just created :


Create image cloudikoula 10.png


Select the offer for the calculation of your choice and then click "Next" :


Drag the slider to gand the size of disk (in the UK) that you want for your instance and therefore for your future model or enter the size (in the UK) manually in the fields and validate with the key "Entry" on your keyboard to make the size chosen to appear in description above :


Create image cloudikoula 11.png


Click "Next" :


Continue with the classic steps of deploying an instance (Affinity network, instance name) by clicking on "Next" at each time to validate and finally on "Start VM".


Once your instance deployed, click on the name of the (from the Instances menu) :


Create image cloudikoula 12.png


Click on the button "See the console" (Note that you see your ISO image attached to your instance in the details of this) :


Create image cloudikoula 13.png


A new pop-up browser window will open (If this is not the case check that you not block the pop up for the Cloud Ikoula interface). This window is actually a web graphical console type VNC/KVM (écran/clavier/souris) your instance that will allow you to install the system on the disk of your instance :


Create image cloudikoula 14 aredimenssionner.png


Continue with the installation of your system with the partitioning and configuration you want (install the SSH package if requested)Note however that the keyboard is QWERTY type (so beware of the definition of the password).


At the end of the installation when it is asked to you click on restart, stop your instance to detach the ISO


Once your instance stopped, click the name of your instance and then the button "Detach the ISO image" :


Create image cloudikoula 15.png


ISO once detached from your instance, you can start it in order to start on the system that you have installed the disk (ROOTDISK) of the latter.


Create image cloudikoula 16.png


Click on the button "See the console" to see your system start :


Create image cloudikoula 17.png


Connect in SSH to your instance (You must have create a rule pare fire and redirection of port if your instance is in area/Advanced Networking or an inbound rule for group of Security If it is in the basic zone and not having rules iptables on your instance system) to complete the configuration of the system to make it compatible with the.{Cloud public}}.


Being a virtual context, we relied on a partitioning with LVM (LVM root and swap) so you can easily resize our partitions in case of resizing or adding a virtual disk :


[root@Fedora22x64 ~]# fdisk -l
Disque /dev/xvda : 50 GiB, 53687091200 octets, 104857600 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Type d'étiquette de disque : dos
Identifiant de disque : 0xa1c87ad9

Périphérique Amorçage  Début       Fin  Secteurs Taille Id Type
/dev/xvda1               2048      4095      2048     1M 83 Linux
/dev/xvda2   *           4096   1955839   1951744   953M 83 Linux
/dev/xvda3            1955840 104857599 102901760  49,1G 8e LVM Linux


Disque /dev/mapper/vg01-root : 48,1 GiB, 51610910720 octets, 100802560 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets

Disque /dev/mapper/vg01-swap : 1 GiB, 1073741824 octets, 2097152 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets


[root@Fedora22x64 ~]# pvs
  PV         VG   Fmt  Attr PSize  PFree
  /dev/xvda3 vg01 lvm2 a--  49,07g    0
[root@Fedora22x64 ~]# vgs
  VG   #PV #LV #SN Attr   VSize  VFree
  vg01   1   2   0 wz--n- 49,07g    0
[root@Fedora22x64 ~]# lvs
  LV   VG   Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root vg01 -wi-ao---- 48,07g
  swap vg01 -wi-ao----  1,00g


Update the system if necessary (to tailor your package manager) :


[root@Fedora22x64 ~]# dnf upgrade


Please install at least packages that may be useful to run commands in settings "UserData" during a deployment to instance with your model : Vim, rsync, curl, wget. cloud-init, puppet, facter :


[root@TM-Fedora22KB ~]# dnf install vim-enhanced rsync curl wget cloud-init puppet facter
Vérification de l'expiration des métadonnées effectuée il y a 0:00:27 sur Thu Nov 26 12:32:31 2015.
Le paquet rsync-3.1.1-6.fc22.x86_64 est déjto installé, ignorer
Le paquet curl-7.40.0-7.fc22.x86_64 est déjà installé, ignorer
Le paquet wget-1.16.3-1.fc22.x86_64 est déjà installé, ignorer
Dépendances résolues.
===============================================================================================================================================================================================================================================================================
 Paquet                                                                  Architecture                                                Version                                                                Dépôt                                                        Taille
===============================================================================================================================================================================================================================================================================
Installation de :
 PyYAML                                                                  x86_64                                                      3.11-9.fc22                                                            updates                                                      168 k
 cloud-init                                                              x86_64                                                      0.7.6-3.fc22                                                           fedora                                                       434 k
 facter                                                                  x86_64                                                      2.4.1-1.fc22                                                           fedora                                                       105 k
 gpm-libs                                                                x86_64                                                      1.20.7-6.fc22                                                          fedora                                                        36 k
 hiera                                                                   noarch                                                      1.3.4-3.fc22                                                           updates                                                       29 k
 libselinux-ruby                                                         x86_64                                                      2.3-10.fc22                                                            updates                                                      135 k
 libyaml                                                                 x86_64                                                      0.1.6-6.fc22                                                           fedora                                                        58 k
 puppet                                                                  noarch                                                      4.1.0-5.fc22                                                           updates                                                      1.2 M
 python-configobj                                                        noarch                                                      5.0.5-2.fc22                                                           fedora                                                        65 k
 python-jsonpatch                                                        noarch                                                      1.2-5.fc22                                                             fedora                                                        19 k
 python-jsonpointer                                                      noarch                                                      1.9-2.fc22                                                             updates                                                       17 k
 python-prettytable                                                      noarch                                                      0.7.2-4.fc22                                                           fedora                                                        42 k
 ruby                                                                    x86_64                                                      2.2.3-44.fc22                                                          updates                                                       74 k
 ruby-augeas                                                             x86_64                                                      0.5.0-6.fc22                                                           fedora                                                        28 k
 ruby-irb                                                                noarch                                                      2.2.3-44.fc22                                                          updates                                                       93 k
 ruby-libs                                                               x86_64                                                      2.2.3-44.fc22                                                          updates                                                      2.9 M
 ruby-shadow                                                             x86_64                                                      1.4.1-26.fc22                                                          fedora                                                        18 k
 rubygem-bigdecimal                                                      x86_64                                                      1.2.6-44.fc22                                                          updates                                                       86 k
 rubygem-io-console                                                      x86_64                                                      0.4.3-44.fc22                                                          updates                                                       56 k
 rubygem-json                                                            x86_64                                                      1.8.3-100.fc22                                                         updates                                                       65 k
 rubygem-pathspec                                                        noarch                                                      0.0.2-2.fc22                                                           updates                                                       17 k
 rubygem-psych                                                           x86_64                                                      2.0.8-44.fc22                                                          updates                                                       85 k
 rubygem-rdoc                                                            noarch                                                      4.2.0-44.fc22                                                          updates                                                      481 k
 rubygem-rgen                                                            noarch                                                      0.6.6-2.fc21                                                           fedora                                                        84 k
 rubygems                                                                noarch                                                      2.4.8-100.fc22                                                         updates                                                      269 k
 rubypick                                                                noarch                                                      1.1.1-4.fc22                                                           updates                                                       11 k
 vim-common                                                              x86_64                                                      2:7.4.827-1.fc22                                                       updates                                                      6.0 M
 vim-enhanced                                                            x86_64                                                      2:7.4.827-1.fc22                                                       updates                                                      1.1 M
 vim-filesystem                                                          x86_64                                                      2:7.4.827-1.fc22                                                       updates                                                       22 k

Résumé de la transaction
===============================================================================================================================================================================================================================================================================
Installation   29 Packages

Taille totale des téléchargements : 14 M
Taille d'installation : 45 M
Est-ce correct [o/N] : o


- Add the line "datasource_list: ['CloudStack']" at the beginning of the configuration file /etc/cloud/cloud.cfg (If you have installed cloud-init as shown above) :


[root@fedora22 ~]# head -n1 /etc/cloud/cloud.cfg
datasource_list: ['CloudStack']


Now you can launch the installation of the XenTools. To do this, you can follow the following article: Installation_des_XenTools_sur_une_instance_CloudStack. Attention ne rebootez pas votre machine après l'installation dex XenTools contrairement à ce qu'indique l'article.

We add the following lines into /etc/sysctl.conf (We disable IPv6 and applied some optimizations) :


#Disable IPv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.eth0.disable_ipv6 = 1

#Disable Swap
vm.swappiness = 0

#Improve memory management
vm.dirty_ratio = 60
vm.dirty_background_ratio = 2
#No overcommitment of available memory
vm.overcommit_ratio = 0
vm.overcommit_memory = 0

#Set maximum amount of memory allocated to shm to 256MB
kernel.shmmax = 268435456
kernel.shmall = 268435456

#Keep at least 64MB of free RAM space available
vm.min_free_kbytes = 65535


Then we execute the command "sysctl -p" :


[root@Fedora22x64 init.d]# sysctl -p
net.ipv4.conf.all.arp_notify = 1
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.eth0.disable_ipv6 = 1
vm.swappiness = 0
vm.dirty_ratio = 60
vm.dirty_background_ratio = 2
vm.overcommit_ratio = 0
vm.overcommit_memory = 0
kernel.shmmax = 268435456
kernel.shmall = 268435456
vm.min_free_kbytes = 65535


Changed SELinux policy to spend it in "enforcing" à "permissive" :


[root@Fedora22x64 ~]# sed -i 's/SELINUX=enforcing/SELINUX=permissive/g' /etc/sysconfig/selinux
[root@Fedora22x64 ~]# setenforce Permissive
[root@Fedora22x64 ~]# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   permissive
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      29


If your system has rules pare original light, please stop and disable it, in our case example :


[root@Fedora22x64 ~]# systemctl stop firewalld.service
[root@Fedora22x64 ~]# systemctl disable firewalld.service
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.


We check that there are more rules loaded :


[root@Fedora22x64 ~]# iptables -vnL
Chain INPUT (policy ACCEPT 34 packets, 2240 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 32 packets, 3568 bytes)
 pkts bytes target     prot opt in     out     source               destination


We will now install the scripts cloud guests that rely on features of change of password, hostname, the userdata's, SSH keys :


- First get the scripts on our mirror using the wget command (Edit fedora22 by centos7debian8 or ubuntu1404 in the following URL) :

wget http://mirror02.ikoula.com/priv/citrix/scripts/systemd/fedora22/systemd/cloud-set-guest-hostname.service -P /lib/systemd/system/
wget http://mirror02.ikoula.com/priv/citrix/scripts/systemd/fedora22/systemd/cloud-set-guest-password.service -P /lib/systemd/system/
wget http://mirror02.ikoula.com/priv/citrix/scripts/systemd/fedora22/systemd/cloud-set-guest-sshkey.service -P /lib/systemd/system/
wget http://mirror02.ikoula.com/priv/citrix/scripts/systemd/fedora22/systemd/cloud-set-guest-userdata.service -P /lib/systemd/system/
wget http://mirror02.ikoula.com/priv/citrix/scripts/systemd/fedora22/init.d/cloud-set-guest-hostname -P /etc/init.d
wget http://mirror02.ikoula.com/priv/citrix/scripts/systemd/fedora22/init.d/cloud-set-guest-password -P /etc/init.d
wget http://mirror02.ikoula.com/priv/citrix/scripts/systemd/fedora22/init.d/cloud-set-guest-sshkey -P /etc/init.d
wget http://mirror02.ikoula.com/priv/citrix/scripts/systemd/fedora22/init.d/cloud-set-guest-userdata -P /etc/init.d

- We activate our service units :

[root@Fedora22x64 ~]# systemctl enable cloud-set-guest-hostname.service
Created symlink from /etc/systemd/system/multi-user.target.wants/cloud-set-guest-hostname.service to /usr/lib/systemd/system/cloud-set-guest-hostname.service.
[root@Fedora22x64 ~]# systemctl enable cloud-set-guest-password.service
Created symlink from /etc/systemd/system/multi-user.target.wants/cloud-set-guest-password.service to /usr/lib/systemd/system/cloud-set-guest-password.service.
[root@Fedora22x64 ~]# systemctl enable cloud-set-guest-sshkey.service
Created symlink from /etc/systemd/system/multi-user.target.wants/cloud-set-guest-sshkey.service to /usr/lib/systemd/system/cloud-set-guest-sshkey.service.
[root@Fedora22x64 ~]# systemctl enable cloud-set-guest-userdata.service
Created symlink from /etc/systemd/system/multi-user.target.wants/cloud-set-guest-userdata.service to /usr/lib/systemd/system/cloud-set-guest-userdata.service.


[root@Fedora22x64 ~]# systemctl -l | grep cloud-set
  cloud-set-guest-hostname.service                                                          loaded active exited    CloudStack Set Guest Hostname
  cloud-set-guest-password.service                                                          loaded active exited    CloudStack Set Guest Password Reset
  cloud-set-guest-sshkey.service                                                            loaded active exited    CloudStack Set Guest Ssh Key
  cloud-set-guest-userdata.service                                                          loaded active exited    CloudStack Set Guest Userdata


- We purge the DHCP leases file (path and name of file to suit the need) :


[root@fedora22 ~]# > /var/lib/dhclient/dhclient.leases


- On retire la ligne MACADDR du fichier /etc/sysconfig/network-scripts/ifcfg-eth0 (Similarly, to adapt according to your distribution).

[root@fedora22 ~]#  grep -v ^MACADDR ifcfg-eth0 > ifcfg-eth0.tmp && rm -f ifcfg-eth0 && mv ifcfg-eth0.tmp ifcfg-eth0

- We purge master logs files and command history :

[root@Fedora22x64 ~]# list=`find /var/log/ -type f`
[root@Fedora22x64 ~]# for arg in $list ; do > $arg ; done
[root@Fedora22x64 ~]# list=`find /var/log/ -name "*.gz"`
[root@Fedora22x64 ~]# for arg in $list ; do /bin/rm $arg ; done
[root@Fedora22x64 ~]# > .bash_history
[root@Fedora22x64 ~]# history -c && shutdown -h now && exit


- We created the model of our instance stopped :


On the Cloud Ikoula interface, go to the "Instances" then click on the name of your instance


Click "See Volumes" :


Create image cloudikoula 20.png


Click on the name of your volume ROOTDISK :


Create image cloudikoula 21.png


Click on the button "Create a template" :


Create image cloudikoula 22.png


Give the name and the description that you want to your model, choose the same type of bone than that of your instance, check "Password enabled" et "dynamic resizing" (If you have respectively set up the script cloud-set-guest-password and installed the xentools) :


Create image cloudikoula 23.png


After the creation of your model is finished :


Create image cloudikoula 24.png


You can find it in "Models" :


Create image cloudikoula 25.png


Click your model name and then click the tab "Areas" to verify that its status is ready (Loan : Yes) :


Create image cloudikoula 26.png


You can now deploy new instances with your compatible model public cloud (you will need to select your model in the tab "My models" the wizard of deploying instance) :


Create image cloudikoula 27.png


This article seem useful to you ?

0



You are not allowed to post comments.