IBM®
Skip to main content
    Country/region [select]      Terms of use
 
 
    
     Home      Products      Services & solutions      Support & downloads      My account     
 
developerworks > My developerWorks >  Dashboard > AIX > ... > Movies > VIOS_Optical_Commands
developerWorks
Log In   View a printable version of the current page.
Overview Connect Spaces Forums Wikis
VIOS_Optical_Commands
Added by nagger, last edited by nagger on Feb 11, 2009
Labels: 
(None)

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
    • unloadopt -vtd vtopt0

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


 
    About IBM Privacy Contact