Installing Linux on PowerVM LPAR by using virtual DVD (vDVD)
You can install Linux® on PowerVM® by using virtual DVD (vDVD). The vDVD installation method works only if IBM® Virtual SCSI (vSCSI) is configured on the Virtual I/O Server (VIOS).
You must create a virtual media repository and virtual DVD (vDVD) in VIOS by using the following steps.
- Log in to VIOS by using the following command:
$ ssh padmin@<VIOS_IP>
- Verify whether a virtual media repository is already defined on the VIOS server by running the
following command:
$ lsrep
- If the lsrep command returns the result as
The DVD repository has not been created yet
, create a virtual media repository by using the following command:
The rootvg is the name of the storage pool and 40G is the size of the virtual media library.$ mkrep -sp rootvg -size 40G
- If the lsrep command returns the result as
- Verify whether the virtual media repository is defined correctly by using the lsrep command.
- Download the Linux ISO (RHEL or SLES) and copy it to the location /home/padmin.
- Check the vhost Number assigned to your LPAR by using the following command:
In the following example LPAR is lp6 with partition ID 6 and vHost name is vhost1.$ lsmap -all
$ lsmap -all SVSA Physloc Client Partition ID -------------------------------------------------------------------- vhost1 U9043.MRX.13F4B7X-V100-C106 0x00000006 VTD vtscsi5 Status Available LUN 0x8100000000000000 Backing device lp6-disk1 Physloc Mirrored N/A
- Create virtual optical device (vtopt) on identified vHost by using the following command:
In this example the vHost name is vhost1.$ mkvdev -fbo -vadapter vhost1
- Create virtual DVD (vDVD) in VIOS by using the following command:
$ mkvopt -name myimage -file /home/padmin/name_of_the_image.iso –ro
- Attach the virtual DVD created to the LPAR's virtual optical device (vtopt) on which you want to
install Linux by using the following command:
Here myimage is the vDVD name and vtop8 is the virtual optical device.$ loadopt -f -release -disk myimage -vtd vtopt8
- Check whether the vDVD is attached by using the following command:
Following is an example of the returned result of lsmap -all command.$ lsmap –all
SVSA Physloc Client Partition ID ------------------------------------------------------------- Vhost1 U9043.MRX.13F4B7X-V100-C106 0x00000006 VTD vtopt0 Status Available LUN 0x8100000000000000 Backing device Physloc Mirrored N/A VTD vtopt8 Status Available LUN 0x8200000000000000 Backing device /var/vio/VMLibrary/myimage Physloc Mirrored N/A
Note: Make a note of the logical unit number (LUN) which is used to start the installation in LPAR. In this example, the LUN is 0x8200000000000000.
To install the Linux operating system (OS) by using
vDVD, complete the following steps:
- To install RHEL operating system on PowerVM, see Installation guidelines from RedHat.
- To install SLES operating system on PowerVM, see Installation guidelines from SUSE.