Under Construction

Copying from a USB device

If for example an installation image was copied onto a USB stick, and then plugged into one of the USB ports of a physical HMC, the installation image can be imported onto the HMC using the command “hmc cpviosimg” and specifying the USB device. The name of the USB device can be determined using the command “hmc lsmediadev“:

LPAR-Tool
$ hmc lsmediadev hmc01
DEVICE     TYPE  MOUNT_POINT  DESCRIPTION  LABEL
/dev/sda   6     -            disk drive   -
/dev/sdb1  3     -            USB device   -
$
HMC-CLI
hscroot@hmc01:~> lsmediadev
device=/dev/sda,type=6,description=disk drive
device=/dev/sdb1,type=3,description=USB device
hscroot@hmc01:~>

The output in this case shows that the name of the USB device is /dev/sdb1.

The installation image on the USB device can then be copied to the HMC by specifying the location “usb:/dev/sdb1” and any image name:

LPAR-Tool
$ hmc cpviosimg hmc01 usb:/dev/sdb1 VIOS_4.1.0.0
$
HMC-CLI
hscroot@hmc01:~> cpviosimg --device /dev/sdb1 -r usb -n VIOS_4.1.0.0
hscroot@hmc01:~>

The file system on the USB device is mounted automatically.

The command “hmc lsviosimg” can then be used to check whether the image is actually available via the HMC:

LPAR-Tool
$ hmc lsviosimg hmc01
NAME          SIZE     IMAGE_FILES
VIOS_4.1.0.0  3487.68  dvdimage.v1.iso
$
HMC-CLI
hscroot@hmc01:~> lsviosimg
name=VIOS_4.1.0.0,size=3487.55,image_files=dvdimage.v1.iso
hscroot@hmc01:~>