“如何创建一个兼容模型云 Ikoula”的版本间的差异

来自Chinese Ikoula Wiki
Jump to navigation Jump to search
 
(未显示同一用户的7个中间版本)
第1行: 第1行:
 +
<br />这篇文章是从由软件进行自动翻译。你可以[[:fr:Comment creer un modele compatible Cloud Ikoula|看到这篇文章的源代码]]<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_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_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_it_title="Come creare un modello compatibile Cloud Ikoula"  data-link_translate_it_url="Come+creare+un+modello+compatibile+Cloud+Ikoula"></span>[[:it:Come creare un modello compatibile Cloud Ikoula]][[it:Come creare un modello compatibile Cloud Ikoula]]
 
<span data-link_translate_it_title="Come creare un modello compatibile Cloud Ikoula"  data-link_translate_it_url="Come+creare+un+modello+compatibile+Cloud+Ikoula"></span>[[:it:Come creare un modello compatibile Cloud Ikoula]][[it:Come creare un modello compatibile Cloud 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_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_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]]
 
<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]]
<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]]
+
下面的过程说明如何创建一个模型与兼容 {{cloud public}} 或 {{cloud privé}} 从零开始安装 (从 iso).
<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_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]]
 
<br />
 
 
 
这篇文章是从由软件进行自动翻译。你可以[[:fr:Comment creer un modele compatible Cloud Ikoula|看到这篇文章的源代码]]<br /><span data-translate="fr"></span>
 
 
 
 
 
 
 
  
  
 +
在我们的示例中,我们创建一个 GNU 图像/Linux Fedora 22.
  
  
下面的过程说明如何创建一个模型与云 Ikoula 兼容从从头安装 (从 iso ).
+
登录到 [https://cloudstack.ikoula.com/client/ 管理接口] :
  
  
在我们的示例中,我们将创建一个 GNU 图像 /Linux Fedora 22.
+
单击 "模型" 在左边的菜单 :
 
 
 
 
登录界面  [https://cloudstack.ikoula.com/client/ 云 Ikoula]  :
 
 
 
 
 
单击 "模型 " 在左边的菜单 :
 
  
  
第32行: 第29行:
  
  
选择视图 "ISO "  :
+
选择视图 "ISO"  :
  
  
第38行: 第35行:
  
  
单击按钮 "保存 ISO " :
+
单击按钮 "保存 ISO" :
  
  
第44行: 第41行:
  
  
然后填写字段  :
+
然后填写的字段 :
  
  
第50行: 第47行:
  
  
1: 输入你想要为你的形象的名称
+
# 输入你想要为你的图像的名称 ;
 
+
# 输入你的形象的描述 ;
2: 输入你的形象的说明
+
# 输入 / 粘贴 URL HTTP (没有 https) 完整的 ISO 文件 ;
 
+
# 选择你的形象将对其可用的云 Ikoula 区域 ;
3: 输入 /HTTP url 粘贴  (https ) 完全符合 iso 文件  
+
# 选中此框,如果你想要一个实例,以便能够从您的 ISO 引导 ;
 +
# 指定您的 ISO 系统的类型,如果您的系统和它的版本是在列表中选择它,否则请选择类型之一 "其他 xxx" 最合适。在我们的例子,Fedora 22 不是我们所以选择的列表中的可用 "其他 Linux (64-位)" ;
 +
# 选中此框,如果您希望您的 ISO 下载一次创建。
  
4:  选择你的形象将对其可用的云 Ikoula 区域
 
  
5: 选中此复选框,如果你想要一个实例,以便能够从您的 iso 启动
+
一旦您的 ISO 注册,等到它要么在状态 "贷款 : 是的" :
 
 
6: 您的 ISO,表明系统的类型,如果您的系统和它的版本是在列表中选择,否则选择一种类型  "其他 xxx " 最合适。在我们的例子,Fedora  22 不是我们因此选择的列表中的可用  "其他 Linux  (64-位 )".
 
 
 
7: 检查这种情况下,如果你想要可以下载您的 ISO 一旦创建
 
 
 
 
 
一旦您的 ISO 注册,等到它地位  "贷款 : 是啊 " :
 
  
  
第71行: 第62行:
  
  
单击 "实例 " 在左边的菜单 :
+
单击 "实例" 在左边的菜单 :
  
  
第77行: 第68行:
  
  
单击按钮 "添加实例 " :
+
单击按钮 "添加实例" :
  
  
第83行: 第74行:
  
  
选择您的实例部署区域  :
+
选择实例部署的区域 :
  
  
第89行: 第80行:
  
  
选择 ISO,然后点击  "之后 "
+
选择 ISO,然后单击 "下一个" :
  
  
第95行: 第86行:
  
  
在选项卡上单击  "我 ISOs " 选择您刚刚创建的 iso  :
+
单击选项卡 "我 ISOs" 并检查您刚刚创建的 ISO :
  
  
第101行: 第92行:
  
  
选择您所选择的计算服务,然后点击  "之后 "  
+
选择您所选择的计算报价,然后单击 "下一个" :
  
  
由滑动光标来选择磁盘的大小  (GB ) 您要为您的实例,因此为你的未来模型或输入的大小 (GB ) 在该字段中手动,然后确认与按钮  "进入 " 你的键盘,使所选显示在顶部说明  :
+
拖动滑块以获得磁盘的大小 (在英国) 您要为您的实例,因此为你的未来模型或输入的大小 (在英国) 在字段中手动和验证与键 "条目" 在你的键盘,使选择要显示在上面描述的大小 :
  
  
第110行: 第101行:
  
  
单击 "之后 "
+
单击 "下一个" :
  
  
继续部署实例的经典阶段  (亲和性、 网络、 实例名称 ) 点击  "之后 " 在每次验证,然后单击  "启动 VM "
+
继续经典的步骤的部署实例 (亲和网络,实例名称) 通过点击 "下一个" 在每个时间来验证,最后对 "启动虚拟机".
  
  
一旦已部署您的实例,请单击名称  (从实例菜单 ) :
+
一旦部署,您的实例的名称,单击 (从实例菜单) :
  
  
第122行: 第113行:
  
  
单击按钮 "请参阅控制台 " (你看看你的 ISO 映像附加到您的实例的细节的这注 ) :
+
单击按钮 "请参阅控制台" (请注意,你看到你的 ISO 映像附加到您的实例在细节的这) :
  
  
第128行: 第119行:
  
  
将打开一个新的弹出浏览器窗口 (如果这不是案件的检查,你不阻止它的云 Ikoula 界面弹出窗口 ).此窗口是实际上 web GUI 控制台类型 VNC /KVM (écran/clavier/souris) 您将允许您在您的实例的磁盘上安装系统的实例 :
+
将打开一个新的弹出浏览器窗口 (如果这不是你不阻止的弹出窗口的云 Ikoula 接口的案件检查).此窗口实际上是 web 图形控制台类型 VNC/KVM (écran/clavier/souris) 您将允许您在您的实例的磁盘上安装系统的实例 :
  
  
第134行: 第125行:
  
  
继续您的系统分区和你想要的配置与安装 (如果系统提示您安装 SSH 包 )但是请注意,键盘不是类型 qwerty 键盘的  (注意因此定义的密码 ).
+
继续您的系统分区和你想要的配置与安装 (如果要求,安装 SSH 包)但是请注意,键盘是 qwerty 键盘类型 (因此,提防密码的定义).
  
  
在安装时它被问到你结束单击重新启动时,停止您的实例分离 ISO  
+
在安装时它被问到你结束单击重新启动时,停止您的实例分离 ISO
  
  
一旦停止您的实例,请单击您的实例,然后按钮的名称  "分离的 ISO 镜像 " :
+
一旦您的实例停止,请单击您的实例,然后按钮的名称 "分离的 ISO 镜像" :
  
  
第146行: 第137行:
  
  
一次 iso 脱离您的实例,您可以再次启动它,在你刚安装的磁盘的系统上启动  (ROOTDISK ) 答案是后者。
+
ISO 一次脱离您的实例,您可以启动它才能开始在系统上安装的磁盘 (ROOTDISK) 答案是后者。
  
  
第152行: 第143行:
  
  
单击按钮 "请参阅控制台 " 看到你引导的系统  :
+
单击按钮 "请参阅控制台" 看到您的系统启动 :
  
  
第158行: 第149行:
  
  
SSH 连接到您的实例 (您必须具有创建防火墙规则和重定向端口的如果您的实例是在区 /先进的网络   或如果它处于带基本,没有规则 iptables 实例系统上的安全组的入站的规则 ) 完成的系统以使它与云 Ikoula 兼容的配置。
+
SSH 连接到您的实例 (您必须创建一个规则削火和重定向的端口,如果你实例所在的地区/先进的网络 或组的入站的规则 {{Template:Sécurité}} 如果它是在基本的区域和没有规则 iptables 实例系统上) 要完成配置系统,使其与兼容。{Cloud public}}.
  
  
在一个虚拟的背景下,我们依靠使用 LVM 分区 (根和交换逻辑卷 ) 为了方便地调整大小调整大小或添加虚拟磁盘分区  :
+
作为一个虚拟的上下文,我们依赖于使用 LVM 分区 (LVM 根和交换) 所以你可以轻易调整大小调整大小或添加虚拟磁盘分区 :
  
  
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
[root@Fedora22x64 ~]# fdisk -l
 
[root@Fedora22x64 ~]# fdisk -l
Disque /dev/xvda : 50 GiB, 53687091200 octets, 104857600 secteurs
+
Disque /dev/xvda : 50 GiB, 53687091200 oct和s, 104857600 secteurs
 
Unités : secteur de 1 × 512 = 512 octets
 
Unités : secteur de 1 × 512 = 512 octets
 
Taille de secteur (logique / physique) : 512 octets / 512 octets
 
Taille de secteur (logique / physique) : 512 octets / 512 octets
第205行: 第196行:
  
  
如果需要更新系统  (适应您软件包管理器 ) :
+
如果需要,更新系统 (定制您的软件包管理器) :
  
  
第213行: 第204行:
  
  
请安装的最低的软件包可以用来设置在执行命令  "UserData " 在部署期间  例如与  您的模板  : Vim,rsync,卷曲,wget,云 init,傀儡,因素  :
+
请安装至少包可能是有用的在设置中运行命令 "UserData" 在部署到与您的模型实例 : Vim,rsync,卷曲,wget。 {{Template:Cloud}}-init,傀儡因素 :
  
  
 
<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éj自 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>
  
  
- 添加行 "datasource_list : ['CloudStack']" 在配置文件的开头 /etc/cloud/cloud.cfg (如果您已经安装云 init,如上所示 ) :
+
- 添加行 "datasource_list: ['CloudStack']" 在配置文件的开头 //{{Template:Cloud}}/{{Template:Cloud}}.cfg (如果你已经安装了 {{Template:Cloud}}-如上所示的初始化) :
  
  
第239行: 第267行:
  
  
检索包含在我们的镜子 Xen 工具存档  :
+
现在你可以启动 XenTools 的安装。为此,您可以按照以下文章: [[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>
 
 
 
 
 
将它解压缩到当前目录中  (需要解压缩安装 ) :
 
 
 
 
 
<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>
 
 
 
 
 
运行安装 Xen 工具  :
 
 
 
 
 
<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>
 
 
 
 
 
重新启动您的实例作为这提示  :
 
 
 
 
 
<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>
 
  
 
+
我们添加到下列行 /etc/sysctl.conf (我们禁用 IPv6 并应用一些优化) :
您可以删除安装文件  :
 
 
 
 
 
<syntaxhighlight lang="bash">
 
[root@Fedora22x64 ~]# rm -rf linux65*
 
[root@Fedora22x64 ~]#
 
</syntaxhighlight>
 
 
 
 
 
我们添加中的以下行  /etc/sysctl.conf (它将禁用 API 6 并应用一些优化 ):
 
  
  
第382行: 第299行:
  
  
然后我们执行命令 "sysctl -p" :
+
然后我们执行命令 "sysctl -p" :
  
  
第403行: 第320行:
  
  
它修改 SELinux 政策通过它从  "执行 " à "纵容 " :
+
SELinux 政策有所改变,要把钱花在 "强制执行" à "许可" :
  
  
第422行: 第339行:
  
  
如果您的系统具有的起源防火墙规则,请 stoppper 并在我们的案例中禁用它, :
+
如果您的系统已削减原光的规则,请停止并禁用它,在我们的案例 :
  
  
第433行: 第350行:
  
  
它会验证它具有更多的负责任的规则  :
+
我们检查加载是更多的规则 :
  
  
第449行: 第366行:
  
  
我们现在安装云客人脚本上早就基于更改密码、 主机名、 userdata 的 SSH 密钥的功能  :
+
我们现在将安装脚本 {{Template:Cloud}} 依赖的功能的客人更改密码、 主机名、 userdata,SSH 密钥 :
 
 
 
 
- 首先,检索包含我们的镜子上的脚本存档  (编辑 fedora 22 由 centos 7debian 8 或 ubuntu 1404 在下面的 url ) :
 
 
 
 
 
<syntaxhighlight lang="bash">
 
[root@Fedora22x64 ~]# wget http://mirror02.ikoula.com/priv/citrix/scripts/systemd/fedora22/cloud-set-guest-scripts.tar.gz
 
--2015-10-06 09:57:13--  http://mirror02.ikoula.com/priv/citrix/scripts/systemd/fedora22/cloud-set-guest-scripts.tar.gz
 
Résolution de mirror02.ikoula.com (mirror02.ikoula.com)… 80.93.XX.XX, 2a00:c70:1:80:93:XX:XX:1
 
Connexion à mirror02.ikoula.com (mirror02.ikoula.com)|80.93.XX.XX|:80… connecté.
 
requête HTTP transmise, en attente de la réponse… 200 OK
 
Taille : 2965 (2,9K) [application/x-gzip]
 
Sauvegarde en : « cloud-set-guest-scripts.tar.gz »
 
 
 
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>
 
 
 
 
 
- 提取的内容  :
 
  
  
 +
- 首先我们使用 wget 命令的镜子上得到脚本 (编辑软呢帽22 由 centos7debian8 或 ubuntu1404 在下面的 URL) :
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
[root@Fedora22x64 ~]# tar xvzf 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/
cloud-set-guest-hostname
+
wget http://mirror02.ikoula.com/priv/citrix/scripts/systemd/fedora22/systemd/cloud-set-guest-password.service -P /lib/systemd/system/
cloud-set-guest-hostname.service
+
wget http://mirror02.ikoula.com/priv/citrix/scripts/systemd/fedora22/systemd/cloud-set-guest-sshkey.service -P /lib/systemd/system/
cloud-set-guest-password
+
wget http://mirror02.ikoula.com/priv/citrix/scripts/systemd/fedora22/systemd/cloud-set-guest-userdata.service -P /lib/systemd/system/
cloud-set-guest-password.service
+
wget http://mirror02.ikoula.com/priv/citrix/scripts/systemd/fedora22/init.d/cloud-set-guest-hostname -P /etc/init.d
cloud-set-guest-sshkey
+
wget http://mirror02.ikoula.com/priv/citrix/scripts/systemd/fedora22/init.d/cloud-set-guest-password -P /etc/init.d
cloud-set-guest-sshkey.service
+
wget http://mirror02.ikoula.com/priv/citrix/scripts/systemd/fedora22/init.d/cloud-set-guest-sshkey -P /etc/init.d
cloud-set-guest-userdata
+
wget http://mirror02.ikoula.com/priv/citrix/scripts/systemd/fedora22/init.d/cloud-set-guest-userdata -P /etc/init.d
cloud-set-guest-userdata.service
 
readme.txt
 
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
+
- 我们激活我们服务单位 :
- 在中移动文件.service  /lib/systemd/system/ :
 
 
 
 
 
<syntaxhighlight lang="bash">
 
[root@Fedora22x64 ~]# mv cloud-set-guest-*.service /lib/systemd/system/
 
[root@Fedora22x64 ~]#
 
</syntaxhighlight>
 
 
 
 
 
- 在中移动其他文件  /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>
 
 
 
 
 
- 它使我们的服务单位  :
 
 
 
  
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
第530行: 第404行:
  
  
- 我们清除 DHCP 租约文件 (要适应需要的文件的路径和名称 ) :
+
- 我们清除 DHCP 租约文件 (要适应需要的文件的路径和名称) :
  
  
第538行: 第412行:
  
  
- 关于清除主日志文件和命令历史记录  :
 
  
 +
- On retire la ligne ''MACADDR'' du fichier /etc/sysconfig/network-scripts/ifcfg-eth0 (同样,以适应您的分布).
 +
<syntaxhighlight lang="bash">
 +
[root@fedora22 ~]#  grep -v ^MACADDR ifcfg-eth0 > ifcfg-eth0.tmp && rm -f ifcfg-eth0 && mv ifcfg-eth0.tmp ifcfg-eth0
 +
</syntaxhighlight>
 +
 +
- 我们清除主日志文件和命令历史记录 :
  
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
第551行: 第430行:
  
  
- 它创建的模型我们退出实例  :
+
- 我们创建停止我们实例的模型 :
  
  
在云 Ikoula 界面上,进去  "实例 " 然后点击你的实例的名称
+
在云 Ikoula 界面上,请转到 "实例" 然后点击你的实例的名称  
  
  
单击 "请参阅卷 " :
+
单击 "请参阅卷" :
  
  
第563行: 第442行:
  
  
单击您的卷 ROOTDISK 名称  :
+
单击您的卷 ROOTDISK 的名称 :
  
  
第569行: 第448行:
  
  
单击按钮 "创建一个模板 " :
+
单击按钮 "创建模板" :
  
  
第575行: 第454行:
  
  
给的名称和你想要向您的模型,说明选择相同类型的骨比您的实例,检查  "启用密码 " et "动态调整大小 " (如果您已经分别设置云组客人密码脚本并安装 xentools ) :
+
给的名称和你想要向您的模型,说明选择相同类型的骨比您的实例,请检查 "启用密码" et "动态调整大小" (如果你已经分别设置了脚本 {{Template:Cloud}}-设置来宾密码和安装 xentools) :
  
  
第581行: 第460行:
  
  
一次完成模板的创建  :
+
你的模型的创建完毕后 :
  
  
第587行: 第466行:
  
  
你可以找到它在 "模型 " :
+
你可以找到它在 "模型" :
  
  
第593行: 第472行:
  
  
你的模板,单击选项卡的名称  "区域 " 要验证其状态是否准备好了  (贷款 : 是啊 )  :
+
单击您的型号名称,然后单击选项卡 "地区" 要验证其状态准备好了 (贷款 : 是的)  :
  
  
第599行: 第478行:
  
  
现在可以将新实例部署与您的兼容模型云 Ikoula  (您将需要在选项卡中选择您的型号 "我的模板 " 实例部署向导) :
+
现在可以将新实例部署与您的兼容模式 {{Cloud public}} (您将需要在选项卡中选择您的型号 "我的模特" 该向导部署实例) :
  
  
 
[[File:Create_image_cloudikoula_27.png]]
 
[[File:Create_image_cloudikoula_27.png]]
  
 +
 +
这篇文章似乎对你有用 ? <vote />
  
 
[[Category:cloudstack]]
 
[[Category:cloudstack]]
 
[[Category:公共云]]
 
[[Category:公共云]]
 
[[Category:私有云]]
 
[[Category:私有云]]
<br />
 
<comments />
 
<br />
 
<comments />
 
<br />
 
<comments />
 
<br />
 
<comments />
 
<br />
 
<comments />
 
 
<br />
 
<br />
 
<comments />
 
<comments />

2017年2月9日 (四) 11:50的最新版本


这篇文章是从由软件进行自动翻译。你可以看到这篇文章的源代码

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 下面的过程说明如何创建一个模型与兼容 公共云私有云 从零开始安装 (从 iso).


在我们的示例中,我们创建一个 GNU 图像/Linux Fedora 22.


登录到 管理接口 :


单击 "模型" 在左边的菜单 :


Create image cloudikoula 01.png


选择视图 "ISO" :


Create image cloudikoula 02.png


单击按钮 "保存 ISO" :


Create image cloudikoula 03.png


然后填写的字段 :


Create image cloudikoula 04.png


  1. 输入你想要为你的图像的名称 ;
  2. 输入你的形象的描述 ;
  3. 输入 / 粘贴 URL HTTP (没有 https) 完整的 ISO 文件 ;
  4. 选择你的形象将对其可用的云 Ikoula 区域 ;
  5. 选中此框,如果你想要一个实例,以便能够从您的 ISO 引导 ;
  6. 指定您的 ISO 系统的类型,如果您的系统和它的版本是在列表中选择它,否则请选择类型之一 "其他 xxx" 最合适。在我们的例子,Fedora 22 不是我们所以选择的列表中的可用 "其他 Linux (64-位)" ;
  7. 选中此框,如果您希望您的 ISO 下载一次创建。


一旦您的 ISO 注册,等到它要么在状态 "贷款 : 是的" :


Create image cloudikoula 05.png


单击 "实例" 在左边的菜单 :


Create image cloudikoula 06.png


单击按钮 "添加实例" :


Create image cloudikoula 07.png


选择实例部署的区域 :


Create image cloudikoula 08.png


选择 ISO,然后单击 "下一个" :


Create image cloudikoula 09.png


单击选项卡 "我 ISOs" 并检查您刚刚创建的 ISO :


Create image cloudikoula 10.png


选择您所选择的计算报价,然后单击 "下一个" :


拖动滑块以获得磁盘的大小 (在英国) 您要为您的实例,因此为你的未来模型或输入的大小 (在英国) 在字段中手动和验证与键 "条目" 在你的键盘,使选择要显示在上面描述的大小 :


Create image cloudikoula 11.png


单击 "下一个" :


继续经典的步骤的部署实例 (亲和网络,实例名称) 通过点击 "下一个" 在每个时间来验证,最后对 "启动虚拟机".


一旦部署,您的实例的名称,单击 (从实例菜单) :


Create image cloudikoula 12.png


单击按钮 "请参阅控制台" (请注意,你看到你的 ISO 映像附加到您的实例在细节的这) :


Create image cloudikoula 13.png


将打开一个新的弹出浏览器窗口 (如果这不是你不阻止的弹出窗口的云 Ikoula 接口的案件检查).此窗口实际上是 web 图形控制台类型 VNC/KVM (écran/clavier/souris) 您将允许您在您的实例的磁盘上安装系统的实例 :


Create image cloudikoula 14 aredimenssionner.png


继续您的系统分区和你想要的配置与安装 (如果要求,安装 SSH 包)但是请注意,键盘是 qwerty 键盘类型 (因此,提防密码的定义).


在安装时它被问到你结束单击重新启动时,停止您的实例分离 ISO


一旦您的实例停止,请单击您的实例,然后按钮的名称 "分离的 ISO 镜像" :


Create image cloudikoula 15.png


ISO 一次脱离您的实例,您可以启动它才能开始在系统上安装的磁盘 (ROOTDISK) 答案是后者。


Create image cloudikoula 16.png


单击按钮 "请参阅控制台" 看到您的系统启动 :


Create image cloudikoula 17.png


在 SSH 连接到您的实例 (您必须创建一个规则削火和重定向的端口,如果你实例所在的地区/先进的网络 或组的入站的规则 安全 如果它是在基本的区域和没有规则 iptables 实例系统上) 要完成配置系统,使其与兼容。{Cloud public}}.


作为一个虚拟的上下文,我们依赖于使用 LVM 分区 (LVM 根和交换) 所以你可以轻易调整大小调整大小或添加虚拟磁盘分区 :


[root@Fedora22x64 ~]# fdisk -l
Disque /dev/xvda : 50 GiB, 53687091200 oct和s, 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


如果需要,更新系统 (定制您的软件包管理器) :


[root@Fedora22x64 ~]# dnf upgrade


请安装至少包可能是有用的在设置中运行命令 "UserData" 在部署到与您的模型实例 : Vim,rsync,卷曲,wget。 云计算-init,傀儡因素 :


[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éj自 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


- 添加行 "datasource_list: ['CloudStack']" 在配置文件的开头 /等/云计算/云计算.cfg (如果你已经安装了 云计算-如上所示的初始化) :


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


现在你可以启动 XenTools 的安装。为此,您可以按照以下文章: 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.

我们添加到下列行 /etc/sysctl.conf (我们禁用 IPv6 并应用一些优化) :


#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


然后我们执行命令 "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


SELinux 政策有所改变,要把钱花在 "强制执行" à "许可" :


[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


如果您的系统已削减原光的规则,请停止并禁用它,在我们的案例 :


[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.


我们检查加载是更多的规则 :


[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


我们现在将安装脚本 云计算 依赖的功能的客人更改密码、 主机名、 userdata,SSH 密钥 :


- 首先我们使用 wget 命令的镜子上得到脚本 (编辑软呢帽22 由 centos7debian8 或 ubuntu1404 在下面的 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

- 我们激活我们服务单位 :

[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


- 我们清除 DHCP 租约文件 (要适应需要的文件的路径和名称) :


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


- On retire la ligne MACADDR du fichier /etc/sysconfig/network-scripts/ifcfg-eth0 (同样,以适应您的分布).

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

- 我们清除主日志文件和命令历史记录 :

[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


- 我们创建停止我们实例的模型 :


在云 Ikoula 界面上,请转到 "实例" 然后点击你的实例的名称


单击 "请参阅卷" :


Create image cloudikoula 20.png


单击您的卷 ROOTDISK 的名称 :


Create image cloudikoula 21.png


单击按钮 "创建模板" :


Create image cloudikoula 22.png


给的名称和你想要向您的模型,说明选择相同类型的骨比您的实例,请检查 "启用密码" et "动态调整大小" (如果你已经分别设置了脚本 云计算-设置来宾密码和安装 xentools) :


Create image cloudikoula 23.png


你的模型的创建完毕后 :


Create image cloudikoula 24.png


你可以找到它在 "模型" :


Create image cloudikoula 25.png


单击您的型号名称,然后单击选项卡 "地区" 要验证其状态准备好了 (贷款 : 是的) :


Create image cloudikoula 26.png


现在可以将新实例部署与您的兼容模式 公共云 (您将需要在选项卡中选择您的型号 "我的模特" 该向导部署实例) :


Create image cloudikoula 27.png


这篇文章似乎对你有用 ?

0



您未被允许发表评论。