 |
» |
|
|
 |
Sur le système VM Host, chargez les fichiers *.ISO de Red Hat Advanced Server 4 Update 4 (ou Update 5) dans le répertoire suivant : /var/opt/hpvm/ISO-images/linux/ |
Utilisez les noms de fichiers suivants :
RHEL4-U4-ia64-AS-disc1.iso
RHEL4-U4-ia64-AS-disc2.iso
RHEL4-U4-ia64-AS-disc3.iso
RHEL4-U4-ia64-AS-disc4.iso
RHEL4-U4-ia64-AS-disc5.iso
Pour des raisons de sécurité, vous devez marquer les images ISO en lecture seule. Créez une machine virtuelle avec un périphérique disque et cinq périphériques DVD, un pour chaque fichier ISO. Spécifiez le type de système d'exploitation LINUX, ainsi qu'un commutateur réseau virtuel. Par exemple : # hpvmcreate -P linux1 -B manual -O LINUX -c 1 -r 2G \
-a dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc1.iso \
-a dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc2.iso \
-a dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc3.iso \
-a dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc4.iso \
-a dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc5.iso \
-a disk:scsi::lv:/dev/vg00/rguest1 \
-a network:lan::vswitch:switch1 |
Si vous créez tous les DVD virtuels sur l'invité, vous n'êtes pas obligé d'entrer plusieurs commandes EJ et IN durant la procédure d'installation. Sur le système VM Host, démarrez la machine virtuelle : # hpvmstart -P linux1
(C) Copyright 2000 - 2007 Hewlett-Packard Development Company, L.P.
Opening minor device and creating guest machine container
Creation of VM, minor device 1
Allocating guest memory: 2048MB
allocating low RAM (0-80000000, 2 048MB)
/opt/hpvm/lbin/hpvmapp (/var/opt/hpvm/uuids
/eaccd6e4-b004-11db-bd1f-00306ef4693e/vmm_config.next):
Allocated 2147483648 bytes at 0x6000000100000000
allocating firmware RAM (ffaa0000-ffab5000, 84KB)
/opt/hpvm/lbin/hpvmapp (/var/opt/hpvm/uuids
/eaccd6e4-b004-11db-bd1f-00306ef4693e/vmm_config.next):
Allocated 86016 bytes at 0x6000000180000000
Loading boot image
Image initial IP=102000 GP=62E000
Initialize guest memory mapping tables
Starting event polling thread
Starting thread initialization
Daemonizing....
hpvmstart: Successful start initiation of guest 'linux1' |
Utilisez la commande hpvmconsole pour vous connecter à l'invité. Amorcez l'invité. Il existe deux manières d'amorcer l'invité : Pour amorcer à partir du shell EFI : Accédez au shell EFI. Par exemple : fs0 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun0,Lun0)/HD(Part1,Sig5D1D1134-C809-11DB-9AEB-000000000000)
fs1 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun0,Lun0)/HD(Part2,Sig5DB58D88-C809-11DB-9AEB-000000000000)
fs2 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun1,Lun0)/CDROM(Entry0)
|
L'interface EFI répertorie les périphériques avec des systèmes de fichiers détectés comme fs{n}. Dans l'exemple ci-dessus, fs0 et fs1 sont d'anciens systèmes de fichiers présents sur le disque. fs2 est le système de fichiers correspondant au DVD virtuel/image ISO Linux amorçable, comme indiqué par la mention CD-ROM. Amorcez le premier DVD d'installation, qui est indiqué dans la table de mappage de périphériques par /CDROM en entrant les commandes suivantes : shell > fsn:
fsn > bootia64
|
Où n correspond au DVD virtuel.
L'exemple suivant illustre comment amorcer à partir de fs0 : # hpvmconsole -P linux1
- - - - - - - - - - Prior Console Output - - - - - - - - - -
Device mapping table
fs0 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun1,Lun0)/CDROM(Entry0)
blk0 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun0,Lun0)
blk1 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun1,Lun0)
blk2 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun1,Lun0)/CDROM(Entry0)
blk3 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun2,Lun0)
blk4 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun3,Lun0)
blk5 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun4,Lun0)
blk6 : Acpi(PNP0A03,0)/Pci(0|0)/Scsi(Pun5,Lun0)
Shell> fs0:
fs0:>bootia64 |
Pour amorcer à partir du menu File : Quittez le shell EFI. Sélectionnez Boot from a file. Sélectionnez l'option Removable Media Boot. Appuyez sur Entrée. L'invité s'amorce à partir du support.
Ajoutez l'option console=ttyS0. Entrez la commande suivante : ELILO boot: linux console=ttyS0 |
 |  |  |  |  | REMARQUE : Si vous n'ajoutez pas cette option, l'invité se bloque car il tente d'exécuter un programme d'installation graphique sans affichage. Si cela se produit, réinitialisez la machine virtuelle. Entrez Ctrl/B pour accéder à la console virtuelle. Entrez la commande RS pour redémarrer la machine virtuelle. Reprenez la procédure d'installation. |  |  |  |  |
Le processus d'installation continue : Uncompressing Linux... done
Loading initrd initrd.img...done
Linux version 2.6.9-42.EL (bhcompile@altix2.build.redhat.com) (gcc version 3.4.6 20060404
(Red Hat 3.4.6-2)) #1 SMP Wed Jul 12 23:25:09 EDT 2006
.
9.
.
Welcome to Red Hat Enterprise Linux
+--------------+ CD Found +--------------+
| |
| To begin testing the CD media before |
| installation press OK. |
| |
| Choose Skip to skip the media test |
| and start the installation. |
| |
| +----+ +------+ |
| | OK | | Skip | |
| +----+ +------+ |
| |
| |
+----------------------------------------+
<Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen
|
Sur l'écran CD Found, sélectionnez Skip. Le programme d'amorçage présente une séquence d'écrans qui vous permettent de personnaliser Linux. Répondez à chaque écran comme décrit dans le Tableau 6-2. (Remarque : ces entrées sont des suggestions ; elles ne sont pas obligatoires.) Tableau 6-2 Écrans d'installation Linux | Titre de l'écran | Entrée typique |
|---|
| Red Hat Enterprise Linux AS | Entrez OK. | | Language Selection | Sélectionnez votre langue et entrez OK. | | Disk Partitioning Setup | Sélectionnez Autopartition. | | Automatic Partitioning | Sélectionnez Remove all partitions. Sélectionnez le lecteur sda. Entrez OK. | | Warning (about remove all) | Entrez Yes. | | Partitioning | Entrez OK. | | Network Configuration for eth0 | Tapez l'adresse IP et le masque de sous-réseau de l'invité. Entrez OK. | | Miscellaneous Network Settings | Tapez l'adresse IP passerelle et au moins une adresse IP de serveur DNS. Entrez OK. | | Hostname Configuration | Sélectionnez manually. Tapez le nom d'hôte complet de l'invité (par exemple, linux1.abc.com). Entrez OK. | | Firewall | Entrez Customize. | | Customize Firewall Configuration | Sélectionnez l'accès à accorder et entrez OK. | | Security Enhanced Linux | Sélectionnez Disabled et entrez OK. | | Language Support | Sélectionnez votre langue principale et des langues supplémentaires, puis entrez OK. | | Time Zone Selection | Sélectionnez une ville dans votre fuseau horaire dans la liste déroulante, puis entrez OK. | | Root Password | Tapez le mot de passe root de l'invité dans chaque entrée, puis entrez OK. | | Package Defaults | Sélectionnez Customize software selection, puis entrez OK. | | Package Group Selection | Faites défiler l'écran jusqu'en bas, sélectionnez Everything, puis entrez OK. | | Installation to begin | Entrez OK. | | Required Install Media | Entrez Continue | | Processing | Patientez que le pourcentage de progression ait atteint 100 %. | | Install Starting | Observez le processus d'installation. | | Package Installation | Observez la progression. | | Complete | Entrez Reboot |
 |  |  |  |  | REMARQUE : Si vous utilisez des images ISO pour l'installation, vous pouvez laisser les images de CD virtuel montées, afin de pouvoir facilement installer des logiciels supplémentaires ultérieurement. |  |  |  |  |
L'invité est réamorcé et affiche une séquence d'amorçage Linux normale sur la console. EFI Boot Manager ver 1.10 [14.62] [Build: Wed Sep 6 11:13:44 2007]
Please select a boot option
Red Hat Enterprise Linux AS
EFI Shell [Built-in]
Boot option maintenance menu
Use ^ and v to change option(s). Use Enter to select an option
Loading.: Red Hat Enterprise Linux AS
Starting: Red Hat Enterprise Linux AS
ELILO boot:
Uncompressing Linux... done
Loading initrd initrd-2.6.9-42.EL.img...done
<< Nombreuses lignes supprimées à cet endroit >>
Red Hat Enterprise Linux AS release 4 (Nahant Update 4)
Kernel 2.6.9-42.EL on an ia64
guest1.abc.com login: |
Vous pouvez si vous le souhaitez supprimer les périphériques DVD virtuels de l'invité avec la commande hpvmmodify. Par exemple, sur le VM Host : # hpvmmodify -P guest1 \
-d dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc1.iso \
-d dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc2.iso \
-d dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc3.iso \
-d dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc4.iso \
-d dvd:scsi::file:/var/opt/hpvm/ISO-images/linux/RHEL4-U4-ia64-AS-disc5.iso |
|