Mapping iso image
From Linux on Power wiki
How to boot from an ISO-image
- 1. Login to VIO as padmin
- 2. Become root # oem_setup_env
- 3. Increase /opt or any other filesystem to provide space for iso-images
- 4. Put your iso image (using ftp) to /opt/iso
- 4. Create a logical volume
# mklv -y cdlv -t cdrfs rootvg 700M
- 5. Copy iso-image to the created volume. I used SUSE SLES9 SP2 CD1
# dd if=/opt/iso/SLES-9-SP-2-ppc-GM-CD1.iso of=/dev/rcdlv bs=8M
- 6. Check if you can mount it localy
# mount -v cdrfs -o ro /dev/cdlv /cdrom # ls /cdrom ARCHIVES.gz README.pt_BR initrd64 COPYING README.zh_CN install COPYING.de README.zh_TW installpmac COPYRIGHT SLES-LICENSE installpmac64 COPYRIGHT.de TRANS.TBL linux ChangeLog boot ls-lR.gz INDEX.gz content media.1 ISERIES64 directory.yast ppc LICENSE.TXT docu pubring.gpg Notes driverupdate rr_moved README etc servicepack.tar.gz README.de gpg-pubkey-0dfb3188-41ed929b.asc suse README.es gpg-pubkey-15c17deb-3f9e80c9.asc suseboot README.fr gpg-pubkey-3d25d3d9-36e12d04.asc vmlinux32 README.it gpg-pubkey-9c800aca-40d8063e.asc vmlinux64 README.ja_JP index.html yaboot.chrp README.ko initrd32 yaboot.txt
# umount /cdrom
- 7. Create virtual device mapping
$ mkvdev -vdev cdlv -vadapter vhost6 vtscsi4 Available
# lsmap -all
--------------- -------------------------------------------- ------------------ vhost6 U9124.720.100486A-V1-C9 0x00000000 VTD vtscsi4 LUN 0x8100000000000000 Backing device cdlv Physloc
8. Boot your client LPAR, select this device as a hard disk
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM Elapsed time since release of system processors: 46131 mins 51 secs Config file read, 148 bytes Welcome to SuSE Linux (SLES9)! Use "install" to boot the pSeries 64bit kernel Use "install32" to boot the 32bit RS/6000 kernel You can pass the option "noinitrd" to skip the installer. Example: install noinitrd root=/dev/sda4 Welcome to yaboot version 1.3.11.SuSE Enter "help" to get some basic usage information boot:
Known problems
- I tried following setup with only one vscsi adapter and nothing more and was able to select it in SMS. As soon as a network card was added, I could only select the network card. No boot from virtualized iso image was possible.
- With network card selected I was able to boot through OF menu (press 8 for OpenFirmware menu)
0 > boot disk Elapsed time since release of system processors: 46479 mins 9 secs Config file read, 148 bytes Welcome to SuSE Linux (SLES9)! Use "install" to boot the pSeries 64bit kernel Use "install32" to boot the 32bit RS/6000 kernel You can pass the option "noinitrd" to skip the installer. Example: install noinitrd root=/dev/sda4 Welcome to yaboot version 1.3.11.SuSE Enter "help" to get some basic usage information boot:
Also worked:
0 > boot v-scsi@30000002
