So far we have created virtual media as copies of physical disks or ISO images. In some cases, however, a virtual medium should be written to by a client LPAR, e.g. to store an mksysb on a virtual CD.
For such cases, an empty virtual medium with a desired capacity can be created with the “vios mkmedia” command:
$ vios mkmedia ms12-vio1 mksysb_aix01.iso 4G $
Note: The desired size can simply be given as an argument after the virtual media name. Alternatively, the form “size=4G” can also be used.
Since the virtual media is intended to be used to write a mksysb, we didn’t specify a “ro” argument for read-only. Listing the virtual media shows that the new virtual media has write permissions: