Virtual I/O Server Optical Commands
These are the commend you can use on the VIOS for both HMC (mandatory to use the below) and IVM (optional but also available on the GUI).
Use VIOS command line interface - by example:
Preparing the VIO Server
- Create a 16 GB Virtual Optical Library (Repository) in the Storage Pool "Clients"
- mkrep -sp Clients -size 16G
- Under the covers - creates 16G /var/vio/VMLibrary filesystem in volume group Clients
- Rip the current physical CD/DVD into the Library with a name AIX61.iso
- mkvopt -name AIX61.iso -dev cd0 -ro
- For a file already on the disk replace
- mkvopt -name AIX61.iso -file /tmp/my_file_AIX61.iso -ro
- Prepare a read/write device (note no -ro)
- mkvopt -name new.iso -size 1G
Preparing the Client LPAR
- For the LPAR, create a Virtual Optical Device (vhost0 already in the LPAR)
- mkvdev -fbo -vadapter vhost0
- Outuut will be like: vtopt0 available
Loading the virtual CD/DVD
- Load the AIX61.iso Library Media into the LPARs device
- loadopt -vtd vtopt0 -disk AIX61.iso
- To undo
Using the virtual device on the Client LPAR
- Boot LPAR from virtual CD to install the OS
- Or to access the virtual CD/DVD
- Use: cfgmgr to find the new device
- Mount the CD/DVD just as you would a physical device
VIO Server side listing what is mounted
To list what is where:
- List vtopt devices: lsdev -virtual | grep vtopt
- List the virtual image loaded
- lsdev -dev vtopt6 -attr
- Example output
attribute value description user_settable
LogicalUnitAddr 0x8200000000000000 Logical Unit Address False
aix_tdev /var/vio/VMLibrary/dvd.AIX612.iso Target Device Name True