Configuring devices with the virtual server

The domain configuration-XML file specifies virtual devices that are defined along with the virtual server.

Before you begin

  • Ensure that the devices are prepared for the use of the virtual server.
  • Devices that can be attached to an already defined virtual server are configured in separate device configuration-XML files.

Procedure

  1. Optional: To improve the performance of I/O operations on DASDs and SCSI disks, specify the number of I/O threads to be supplied for the virtual server.
    iothreads element: <number-of-IOthreads>
    (see <iothreads>)
    Example:
    <domain>
        ...
        <iothreads>1</iothreads>
        ...
    </domain>
  2. Specify a configuration-XML for each device.

    Configuring devices describes how to specify a configuration-XML for a device.

  3. For each device to be defined with the virtual server, place the configuration-XML as a child element of the devices element in the domain configuration-XML file.

Example

<domain type="kvm">
    <iothreads>1</iothreads>
    ...
    <devices>
        ...
        <disk type="block" device="disk">
            <driver name="qemu" type="raw" cache="none" io="native" iothread="1"/>
            <source dev="/dev/mapper/36005076305ffc1ae00000000000020d3"/>
            <target dev="vda" bus="virtio"/>
        </disk>
        ...
    </devices>
</domain>