JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle VM Server for SPARC 2.2 Administration Guide     Oracle VM Server for SPARC
search filter icon
search icon

Document Information

Preface

Part I Oracle VM Server for SPARC 2.2 Software

1.  Overview of the Oracle VM Server for SPARC Software

2.  Installing and Enabling Software

3.  Oracle VM Server for SPARC Security

4.  Setting Up Services and the Control Domain

5.  Setting Up Guest Domains

6.  Setting Up I/O Domains

7.  Using Virtual Disks

Introduction to Virtual Disks

Managing Virtual Disks

How to Add a Virtual Disk

How to Export a Virtual Disk Back End Multiple Times

How to Change Virtual Disk Options

How to Change the Timeout Option

How to Remove a Virtual Disk

Virtual Disk Identifier and Device Name

Virtual Disk Appearance

Full Disk

Single-Slice Disk

Virtual Disk Back End Options

Read-only (ro) Option

Exclusive (excl) Option

Slice (slice) Option

Virtual Disk Back End

Physical Disk or Disk LUN

How to Export a Physical Disk as a Virtual Disk

Physical Disk Slice

How to Export a Physical Disk Slice as a Virtual Disk

How to Export Slice 2

File and Volume

File or Volume Exported as a Full Disk

How to Export a File as a Full Disk

How to Export a ZFS Volume as a Full Disk

File or Volume Exported as a Single-Slice Disk

How to Export a ZFS Volume as a Single-Slice Disk

Exporting Volumes and Backward Compatibility

Summary of How Different Types of Back Ends Are Exported

Guidelines for Exporting Files and Disk Slices as Virtual Disks

Configuring Virtual Disk Multipathing

Virtual Disk Multipathing and Virtual Disk Timeout

How to Configure Virtual Disk Multipathing

CD, DVD and ISO Images

How to Export a CD or DVD From the Service Domain to the Guest Domain

How to Export an ISO Image From the primary Domain to Install a Guest Domain

Virtual Disk Timeout

Virtual Disk and SCSI

Virtual Disk and the format Command

Using ZFS With Virtual Disks

Configuring a ZFS Pool in a Service Domain

Storing Disk Images With ZFS

Examples of Storing Disk Images With ZFS

How to Create a Disk Image Using a ZFS Volume

How to Create a Disk Image Using a ZFS File

How to Export the ZFS Volume

How to Export the ZFS File

How to Assign the ZFS Volume or File to a Guest Domain

Creating a Snapshot of a Disk Image

How to Create a Snapshot of a Disk Image

Using Clone to Provision a New Domain

Cloning a Boot Disk Image

Using Volume Managers in a Logical Domains Environment

Using Virtual Disks on Top of Volume Managers

Using Virtual Disks on Top of Solaris Volume Manager

Using Virtual Disks When VxVM Is Installed

Using Volume Managers on Top of Virtual Disks

Using ZFS on Top of Virtual Disks

Using Solaris Volume Manager on Top of Virtual Disks

Using VxVM on Top of Virtual Disks

8.  Using Virtual Networks

9.  Migrating Domains

10.  Managing Resources

11.  Managing Domain Configurations

12.  Performing Other Administration Tasks

Part II Optional Oracle VM Server for SPARC Software

13.  Oracle VM Server for SPARC Physical-to-Virtual Conversion Tool

14.  Oracle VM Server for SPARC Configuration Assistant (Oracle Solaris 10)

15.  Using the Oracle VM Server for SPARC Management Information Base Software

16.  Logical Domains Manager Discovery

17.  Using the XML Interface With the Logical Domains Manager

Glossary

Index

CD, DVD and ISO Images

You can export a compact disc (CD) or digital versatile disc (DVD) the same way you export any regular disk. To export a CD or DVD to a guest domain, export slice 2 of the CD or DVD device as a full disk; that is, without the slice option.


Note - You cannot export the CD or DVD drive itself; you only can export the CD or DVD that is inside the CD or DVD drive. Therefore, a CD or DVD must be present inside the drive before you can export it. Also, to be able to export a CD or DVD, that CD or DVD cannot be in use in the service domain. In particular, the Volume Management file system, volfs service must not use the CD or DVD. See How to Export a CD or DVD From the Service Domain to the Guest Domain for instructions on how to remove the device from use by volfs.


If you have an International Organization for Standardization (ISO) image of a CD or DVD stored in file or on a volume, and export that file or volume as a full disk then it appears as a CD or DVD in the guest domain.

When you export a CD, DVD, or an ISO image, it automatically appears as a read-only device in the guest domain. However, you cannot perform any CD control operations from the guest domain; that is, you cannot start, stop, or eject the CD from the guest domain. If the exported CD, DVD, or ISO image is bootable, the guest domain can be booted on the corresponding virtual disk.

For example, if you export a Oracle Solaris OS installation DVD, you can boot the guest domain on the virtual disk that corresponds to that DVD and install the guest domain from that DVD. To do so, when the guest domain reaches the ok prompt, use the following command.

ok boot /virtual-devices@100/channel-devices@200/disk@n:f

Where n is the index of the virtual disk representing the exported DVD.


Note - If you export a Oracle Solaris OS installation DVD and boot a guest domain on the virtual disk that corresponds to that DVD to install the guest domain, then you cannot change the DVD during the installation. So you might need to skip any step of the installation requesting a different CD/DVD, or you will need to provide an alternate path to access this requested media.


How to Export a CD or DVD From the Service Domain to the Guest Domain

  1. From the service domain, check whether the volume management daemon, vold, is running and online.
    service# svcs volfs
    STATE          STIME    FMRI
    online         12:28:12 svc:/system/filesystem/volfs:default
  2. Do one of the following.
    • If the volume management daemon is not running or online, go to Step 3.

    • If the volume management daemon is running and online, as in the example in Step 1, do the following:

    1. Edit the /etc/vold.conf file and comment out the line starting with the following words.
      use cdrom drive....

      See the vold.conf(4) man page.

    2. Insert the CD or DVD in the CD or DVD drive.
    3. From the service domain, restart the volume management file system service.
      service# svcadm refresh volfs
      service# svcadm restart volfs
  3. From the service domain, find the disk path for the CD-ROM device.
    service# cdrw -l
    Looking for CD devices...
       Node                   Connected Device                 Device type
    ----------------------+--------------------------------+-----------------
    /dev/rdsk/c1t0d0s2    | MATSHITA CD-RW  CW-8124   DZ13 | CD Reader/Writer
  4. Export the CD or DVD disk device as a full disk.
    primary# ldm add-vdsdev /dev/dsk/c1t0d0s2 cdrom@primary-vds0
  5. Assign the exported CD or DVD to the guest domain.

    The following shows how to assign the exported CD or DVD to domain ldg1:

    primary# ldm add-vdisk cdrom cdrom@primary-vds0 ldg1
Exporting a CD or DVD Multiple Times

A CD or DVD can be exported multiple times and assigned to different guest domains. See How to Export a Virtual Disk Back End Multiple Times for more information.

How to Export an ISO Image From the primary Domain to Install a Guest Domain

This procedure shows how to export an ISO image from the primary domain and use it to install a guest domain. This procedure assumes that both the primary domain and the guest domain are configured.

For example, the following ldm list shows that both the primary and ldom1 domains are configured:

# ldm list
NAME             STATE    FLAGS   CONS    VCPU  MEMORY   UTIL  UPTIME
primary          active   -n-cv   SP      4     4G       0.3%  15m
ldom1            active   -t---   5000    4     1G        25%  8m
  1. Add a virtual disk server device to export the ISO image.

    In this example, the ISO image is /export/images/sol-10-u8-ga-sparc-dvd.iso.

    # ldm add-vdsdev /export/images/sol-10-u8-ga-sparc-dvd.iso dvd-iso@primary-vds0
  2. Stop the guest domain.

    In this example, the logical domain is ldom1.

    # ldm stop-domain ldom1
    LDom ldom1 stopped
  3. Add the virtual disk for the ISO image to the logical domain.

    In this example, the logical domain is ldom1.

    # ldm add-vdisk s10-dvd dvd-iso@primary-vds0 ldom1
  4. Restart the guest domain.

    In this example, the logical domain is ldom1.

    # ldm start-domain ldom1
    LDom ldom1 started
    # ldm list
    NAME             STATE    FLAGS   CONS    VCPU  MEMORY   UTIL  UPTIME
    primary          active   -n-cv   SP      4     4G       0.4%  25m
    ldom1            active   -t---   5000    4     1G       0.0%  0s

    In this example, the ldm list command shows that the ldom1 domain has just been started.

  5. Connect to the guest domain.
    # telnet localhost 5000
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    
    Connecting to console "ldom1" in group "ldom1" ....
    Press ~? for control options ..
  6. Verify the existence of the ISO image as a virtual disk.
    {0} ok show-disks
    a) /virtual-devices@100/channel-devices@200/disk@1
    b) /virtual-devices@100/channel-devices@200/disk@0
    q) NO SELECTION
    Enter Selection, q to quit: q

    In this example, the newly added device is /virtual-devices@100/channel-devices@200/disk@1.

  7. Boot the guest domain to install from the ISO image.

    In this example, boot from the f slice of the /virtual-devices@100/channel-devices@200/disk@1 disk.

    {0} ok boot /virtual-devices@100/channel-devices@200/disk@1:f