3. Creating an HDLM Environment
3.12 Settings for KVM
If you install HDLM in an environment in which KVM is used, you need to register
HDLM devices into the hardware configuration file (
domain-name
documentation.
To register HDLM devices by using the
1.
Execute the following command to check the domain name and operating status
of the guest OS.
# virsh list --all
Id Name
----------------------------------
1
domK
The underlined part indicates the domain name.
2.
If the guest OS is running, stop it.
For details on how to stop the guest OS, see the OS documentation.
3.
To register a new HDLM device, register the HDLM device into the hardware
configuration file.
The following example shows how to register the HDLM device (
sddlmac
<disk type='block' device='disk'>
<source dev='/dev/sddlmac'/>
<target dev='hdb' bus='ide'/>
</disk>
For details on the values that can be specified for
target bus
4.
To migrate an environment that uses a SCSI device to an environment that uses
an HDLM device, change the SCSI device registered in the hardware
configuration file to an HDLM device.
The following example shows how to edit the hardware configuration file when
migrating the SCSI device (
Before:
<source dev='/dev/sda'/>
260
). For details on the hardware configuration file, see the OS
.xml
running
) as the IDE device (
/dev/hdb
, see the OS documentation.
/dev/sda
/etc/libvirt/qemu/
command:
virsh
State
) into the guest OS:
disk type
) to the HDLM device (
/dev/
,
, and
target dev
):
/dev/sddlmad