Ignorer les liens de navigation | |
Quitter l'aperu | |
Installation des systèmes Oracle Solaris 11 Oracle Solaris 11 Information Library (Français) |
Partie I Options d'installation Oracle Solaris 11
1. Présentation des options d'installation
Partie II Installation à partir du média d'installation
2. Préparation à l'installation
4. Utilisation du programme d'installation en mode texte
5. Installations automatisées initialisées à partir d'un média
6. Annulation de la configuration ou reconfiguration d'une instance Oracle Solaris
Partie III Installation à l'aide d'un serveur d'installation
7. Installation automatisée de plusieurs clients
8. Configuration d'un serveur d'installation
9. Personnalisation des installations
10. Approvisionnement du système client
11. Configuration du système client
12. Installation et configuration des zones
13. Exécution d'un script personnalisé lors de la première initialisation
15. Installation de systèmes clients
Configuration système requise pour les clients
Configuration système requise pour les clients SPARC et x86
Configuration système requise supplémentaire pour les clients SPARC
Configuration d'un client d'installation
Configuration d'un client SPARC
Suppression d'un client à partir d'un service
Utilisation de Secure Shell pour contrôler à distance les installations
Contrôle à distance des installations de client x86
Contrôle des installations de clients SPARC
Installation d'un client SPARC
Séquence d'initialisation réseau des clients SPARC
Exemple de sortie d'initialisation réseau SPARC
Séquence d'initialisation réseau des clients x86
Exemple de sortie d'initialisation réseau x86
Messages d'installation du client
Initialisez le client pour démarrer l'installation. Cette section vous montre exactement comment initialiser un client SPARC ou x86. Cette section décrit également comment surveiller à distance la progression de l'installation.
Vous pouvez activer l'accès réseau à un client d'installation automatisée en utilisant ssh. Cet accès permet d'observer à distance un processus d'installation.
Activez-le en définissant l'option livessh sur enable dans le fichier de configuration d'installation. Lorsque cet accès est activé, vous pouvez vous connecter au client AI à l'aide du nom d'utilisateur et du mot de passe, jack.
Pour les systèmes x86, le fichier de configuration menu.lst est créé de la manière suivante :
Si vous avez utilisé la commande installadm create-client, le nom de fichier est /etc/netboot/menu.lst.01adresse_MAC, où adresse_MAC correspond à l'adresse MAC qui a été spécifiée dans la commande installadm create-client.
Si vous n'avez pas utilisé la commande installadm create-client le nom de fichier est /etc/netboot/nom_service/menu.lst , où nom_service correspond au nom du service d'installation qui a été créé par la commande installadm create-service.
Dans ce fichier, les options sont fournies en tant que paramètres du noyau. Dans l'exemple suivant, les options livessh et install_debug sont définies sur enable.
kernel$ ... -B install_media=...,livessh=enable,install_debug=enable
Pour les systèmes SPARC, le fichier system.conf peut être accessible par l'intermédiaire du répertoire d'image réseau du service monté dans le répertoire /etc/netboot : /etc/netboot/svcname/system.conf .
Dans le fichier system.conf, les options sont définies en tant que paires nom-valeur. Dans l'exemple suivant, l'option livessh est définie sur enable.
$ cat /etc/netboot/svc1/system.conf ... livessh=enable ...
Utilisez la commande suivante pour initialiser les clients SPARC à partir de l'invite OBP :
ok boot net:dhcp - install
Les événements suivants se produisent pendant l'initialisation AI d'un client SPARC :
Le client est initialisé et récupère l'adresse IP et l'emplacement du fichier d'initialisation wanboot-cgi à partir du serveur DHCP.
Le programme wanboot-cgi lit wanboot.conf et envoie l'emplacement du binaire d'initialisation via une connexion WAN au client.
Le binaire d'initialisation via la connexion WAN est téléchargé à l'aide du protocole HTTP, et le client initialise le programme d'initialisation via la connexion WAN.
Le programme d'initialisation via une connexion WAN obtient le fichier boot_archive et le SE Oracle Solaris est initialisé.
Les archives d'image solaris.zlib et solarismisc.zlib sont téléchargées via le protocole HTTP.
Le manifeste AI et les profils de configuration système sont téléchargés à partir d'un service d'installation AI spécifié soit à partir de la recherche mDNS, soit à partir du fichier system.conf.
Le programme d'installation AI est appelé à l'aide du manifeste AI pour effectuer l'installation du SE Oracle Solaris sur le client.
La séquence d'initialisation affiche la sortie suivante :
{0} ok boot net:dhcp - install SPARC Enterprise T5120, No Keyboard Copyright 2008 Sun Microsystems, Inc. All rights reserved. OpenBoot 4.29.1, 16256 MB memory available, Serial #81036844. Ethernet address 0:14:4f:d4:86:2c, Host ID: 84d4862c. Boot device: /pci@0/pci@0/pci@1/pci@0/pci@2/network@0:dhcp File and args: - install 1000 Mbps full duplex Link up Timed out waiting for BOOTP/DHCP reply <time unavailable> wanboot info: WAN boot messages->console <time unavailable> wanboot info: configuring /pci@0/pci@0/pci@1/pci@0/pci@2/network@0:dhcp 1000 Mbps full duplex Link up <time unavailable> wanboot info: Starting DHCP configuration <time unavailable> wanboot info: DHCP configuration succeeded <time unavailable> wanboot progress: wanbootfs: Read 368 of 368 kB (100%) <time unavailable> wanboot info: wanbootfs: Download complete Fri Aug 26 14:34:53 wanboot progress: miniroot: Read 221327 of 221327 kB (100%) Fri Aug 26 14:34:53 wanboot info: miniroot: Download complete SunOS Release 5.11 Version snv_175 64-bit Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved. Remounting root read/write Probing for device nodes ... Preparing network image for use Downloading solaris.zlib --2011-08-26 13:47:31-- http://host1:5555/install/images/sparc_snv175//solaris.zlib idn_decode failed (9): `System iconv failed' Resolving host1... 10.80.238.5 idn_decode failed (9): `System iconv failed' Connecting to host1|10.80.238.5|:5555... connected. HTTP request sent, awaiting response... 200 OK Length: 135977984 (130M) [text/plain] Saving to: `/tmp/solaris.zlib' 100%[======================================>] 135,977,984 22.3M/s in 6.0s 2011-08-26 13:47:37 (21.7 MB/s) - `/tmp/solaris.zlib' saved [135977984/135977984] Downloading solarismisc.zlib --2011-08-26 13:47:37-- http://host1:5555/install/images/sparc_snv175//solarismisc.zlib idn_decode failed (9): `System iconv failed' Resolving host1... 10.80.238.5 idn_decode failed (9): `System iconv failed' Connecting to host1|10.80.238.5|:5555... connected. HTTP request sent, awaiting response... 200 OK Length: 18826752 (18M) [text/plain] Saving to: `/tmp/solarismisc.zlib' 100%[======================================>] 18,826,752 21.7M/s in 0.8s 2011-08-26 13:47:37 (21.7 MB/s) - `/tmp/solarismisc.zlib' saved [18826752/18826752] Downloading .image_info --2011-08-26 13:47:37-- http://host1:5555/install/images/sparc_snv175//.image_info idn_decode failed (9): `System iconv failed' Resolving host1... 10.80.238.5 idn_decode failed (9): `System iconv failed' Connecting to host1|10.80.238.5|:5555... connected. HTTP request sent, awaiting response... 200 OK Length: 82 [text/plain] Saving to: `/tmp/.image_info' 100%[======================================>] 82 --.-K/s in 0s 2011-08-26 13:47:37 (2.22 MB/s) - `/tmp/.image_info' saved [82/82] Done mounting image Configuring devices. Hostname: solaris Service discovery phase initiated Service name to look up: default-sparc Service discovery finished successfully Process of obtaining install manifest initiated Using the install manifest obtained via service discovery Automated Installation started The progress of the Automated Installation will be output to the console Detailed logging is in the logfile at /system/volatile/install_log Press RETURN to get a login prompt at any time. solaris console login: 13:48:35 Install Log: /system/volatile/install_log 13:48:35 Using XML Manifest: /system/volatile/ai.xml 13:48:35 Using profile specification: /system/volatile/profile 13:48:35 Using service list file: /var/run/service_list 13:48:35 Starting installation. 13:48:35 0% Preparing for Installation 13:48:36 100% manifest-parser completed. 13:48:36 0% Preparing for Installation 13:48:36 1% Preparing for Installation 13:48:37 2% Preparing for Installation 13:48:37 3% Preparing for Installation 13:48:37 4% Preparing for Installation 13:48:47 7% target-discovery completed. 13:48:47 === Executing Target Selection Checkpoint == 13:48:48 Selected Disk(s) : c3t0d0 13:48:48 13% target-selection completed. 13:48:48 17% ai-configuration completed. 13:49:01 19% target-instantiation completed. 13:49:02 19% Beginning IPS transfer 13:49:02 Creating IPS image 13:50:58 Installing packages from: 13:50:58 solaris 13:50:58 origin: http://pkg.example.com/solaris/ 14:48:40 21% generated-transfer-1491-1 completed. 14:48:41 23% initialize-smf completed. 14:48:43 Installing SPARC bootblk to root pool devices: ['/dev/rdsk/c3t0d0s0'] 14:48:43 Setting openprom boot-device 14:48:44 33% boot-configuration completed. 14:48:44 35% update-dump-adm completed. 14:48:45 37% setup-swap completed. 14:48:45 40% set-flush-ips-content-cache completed. 14:48:47 42% device-config completed. 14:48:49 44% apply-sysconfig completed. 14:48:49 46% transfer-zpool-cache completed. 14:49:03 87% boot-archive completed. 14:49:04 89% transfer-ai-files completed. 14:49:04 99% create-snapshot completed. 14:49:05 Automated Installation succeeded. 14:49:05 You may wish to reboot the system at this time. Automated Installation finished successfully The system can be rebooted now Please refer to the /system/volatile/install_log file for details After reboot it will be located at /var/sadm/system/logs/install_log
Lancez l'installation du client x86 à l'aide de l'une des méthodes suivantes pour initialiser à partir du réseau :
Appuyez sur la touche de fonction appropriée. Par exemple, certains systèmes utilisent F12 pour initialiser à partir du réseau.
Changez l'ordre d'initialisation dans le BIOS.
Lors de l'initialisation du client, sélectionnez le périphérique réseau d'initialisation.
Les événements suivants se produisent pendant l'initialisation AI d'un client x86 :
Le client est initialisé et obtient une adresse IP, et le fichier d'initialisation, pxegrub, est téléchargé depuis l'emplacement fourni par le serveur DHCP.
Le fichier d'initialisation pxegrub est chargé et lit un fichier menu.lst.
Le fichier d'initialisation pxegrub obtient le fichier boot_archive et le SE Oracle Solaris est initialisé en utilisant TFTP.
Les archives d'image réseau, solaris.zlib et solarismisc.zlib, sont téléchargées par le biais du protocole HTTP tel que proposé par le menu GRUB.
Le manifeste AI et les profils de configuration système sont téléchargés à partir d'un service d'installation AI spécifié soit à partir de la recherche mDNS, soit à partir de l'entrée du menu GRUB initialisé.
Le programme d'installation AI est appelé à l'aide du manifeste AI pour effectuer l'installation.
Lorsque le système a été initialisé via PXE, le message suivant s'affiche brièvement avant l'affichage du menu GRUB :
Intel(R) Boot Agent PXE Base Code (PXE-2.1 build 0.86) Copyright(C) 1997-2007, Intel Corporation CLIENT MAC ADDR 00 14 4F 29 04 12 GUID FF2000008 FFFF FFFF FFFF 7BDA264F1400 CLIENT IP: 10.6.68.29 MASK: 255.255.255.0 DHCP IP: 10.6.68.49 GATEWAY: 10.6.68.1
Le menu GRUB s'affiche avec deux entrées de menu. Sélectionnez la seconde entrée pour lancer une installation automatisée :
Oracle Solaris 11 11/11 Text Installer and command line Oracle Solaris 11 11/11 Automated Install
L'entrée GRUB par défaut "Text Installer and command line" initialise l'image sans démarrer une installation automatisée "mains libres". Sélectionnez la deuxième entrée dans le menu GRUB, "Automated Install" pour lancer une installation automatisée. Si vous sélectionnez la première entrée de menu, lorsque le client est initialisé, un menu s'affiche comme illustré dans la section Démarrage de l'installation après initialisation sans lancement de l'installation. Utilisez ce menu pour examiner ou installer le système.
Une fois l'image sélectionnée, les messages suivants s'affichent :
Remounting root read/write snv_175 64-bit Probing for device nodes ...acle and/or its affiliates. All rights reserved. Preparing network image for use Downloading solaris.zlib --2011-08-26 07:35:13-- http://10.80.238.5:5555//install/images/i386_snv175/solaris.zlib Connecting to 10.80.238.5:5555... connected. HTTP request sent, awaiting response... 200 OK Length: 130032128 (124M) [text/plain] Saving to: `/tmp/solaris.zlib' 100%[======================================>] 130,032,128 16.4M/s in 8.3s 2011-08-26 07:35:22 (14.9 MB/s) - `/tmp/solaris.zlib' saved [130032128/130032128] Downloading solarismisc.zlib --2011-08-26 07:35:22-- http://10.80.238.5:5555//install/images/i386_snv175/solarismisc.zlib Connecting to 10.80.238.5:5555... connected. HTTP request sent, awaiting response... 200 OK Length: 18758144 (18M) [text/plain] Saving to: `/tmp/solarismisc.zlib' 100%[======================================>] 18,758,144 21.7M/s in 0.8s 2011-08-26 07:35:23 (21.7 MB/s) - `/tmp/solarismisc.zlib' saved [18758144/18758144] Downloading .image_info --2011-08-26 07:35:23-- http://10.80.238.5:5555//install/images/i386_snv175/.image_info Connecting to 10.80.238.5:5555... connected. HTTP request sent, awaiting response... 200 OK Length: 241 [text/plain] Saving to: `/tmp/.image_info' 100%[======================================>] 241 --.-K/s in 0s 2011-08-26 07:35:23 (29.3 MB/s) - `/tmp/.image_info' saved [241/241] Done mounting image Configuring devices. Hostname: solaris Service discovery phase initiated Service name to look up: default-i386 Service discovery finished successfully Process of obtaining install manifest initiated Using the install manifest obtained via service discovery Automated Installation started The progress of the Automated Installation will be output to the console Detailed logging is in the logfile at /system/volatile/install_log Press RETURN to get a login prompt at any time. solaris console login: 07:35:35 Install Log: /system/volatile/install_log 07:35:35 Using XML Manifest: /system/volatile/ai.xml 07:35:35 Using profile specification: /system/volatile/profile 07:35:35 Using service list file: /var/run/service_list 07:35:36 Starting installation. 07:35:36 0% Preparing for Installation 07:35:36 100% manifest-parser completed. 07:35:36 0% Preparing for Installation 07:35:36 1% Preparing for Installation 07:35:36 2% Preparing for Installation 07:35:36 3% Preparing for Installation 07:35:37 4% Preparing for Installation 07:35:51 7% target-discovery completed. 07:35:51 === Executing Target Selection Checkpoint == 07:35:51 Selected Disk(s) : c7t0d0 07:35:51 13% target-selection completed. 07:35:51 17% ai-configuration completed. 07:36:23 19% target-instantiation completed. 07:36:23 19% Beginning IPS transfer 07:36:23 Creating IPS image 07:36:41 Installing packages from: 07:36:41 solaris 07:36:41 origin: http://pkg.example.com/solaris/ 07:53:29 21% generated-transfer-1006-1 completed. 07:53:29 23% initialize-smf completed. 07:53:30 Setting console boot device property to ttya 07:53:30 Disabling graphical console in boot loader 07:53:30 Creating Legacy GRUB config directory: /rpool/boot/grub 07:53:30 Installing boot loader to devices: ['/dev/rdsk/c7t0d0s0'] 07:53:31 33% boot-configuration completed. 07:53:31 35% update-dump-adm completed. 07:53:31 37% setup-swap completed. 07:53:31 40% set-flush-ips-content-cache completed. 07:53:32 42% device-config completed. 07:53:46 44% apply-sysconfig completed. 07:53:46 46% transfer-zpool-cache completed. 07:54:08 87% boot-archive completed. 07:54:08 89% transfer-ai-files completed. 07:54:09 99% create-snapshot completed. 07:54:09 Automated Installation succeeded. 07:54:09 You may wish to reboot the system at this time. Automated Installation finished successfully The system can be rebooted now Please refer to the /system/volatile/install_log file for details After reboot it will be located at /var/sadm/system/logs/install_log
Les messages suivants sont communs aux deux installations SPARC et x86.
Si le client parvient à s'initialiser et à télécharger les fichiers d'installation, le message suivant s'affiche :
Automated Installation started The progress of the Automated Installation will be output to the console Detailed logging is in the logfile at /system/volatile/install_log Press RETURN to get a login prompt at any time.
Vous pouvez vous connecter en tant que root avec le mot de passe solaris pour surveiller les messages d'installation dans /system/volatile/install_log. Une fois que l'installation des packages à partir d'IPS a démarré, ce fichier journal ne peut être mis à jour pendant une période prolongée.
Si le message suivant s'affiche, l'installation est terminée :
Automated Installation finished successfully The system can be rebooted now Please refer to the /system/volatile/install_log file for details After reboot it will be located at /var/sadm/system/logs/install_log
Si vous avez configuré une réinitialisation automatisée dans le manifeste AI, le système est réinitialisé à ce stade. Pour spécifier la réinitialisation automatique après une installation réussie, définissez l'attribut auto_reboot de la balise <ai_instance> sur true. La valeur par défaut est false, ce qui signifie que le client n'est pas réinitialisé automatiquement après une installation réussie.