To register HDLM devices by using the virsh command:
If you install HDLM in an environment in which KVM is used, you need to register HDLM devices into the hardware configuration file (/etc/libvirt/qemu/domain-name.xml). For details on the hardware configuration file, see the OS documentation.
Execute the following command to check the domain name and operating status of the guest OS.
# virsh list --all Id Name State ---------------------------------- 1 domK runningThe underlined part indicates the domain name.
If the guest OS is running, stop it.
For details on how to stop the guest OS, see the OS documentation.
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 (/dev/sddlmac) as the IDE device (/dev/hdb) into the guest OS:
<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 disk type, target dev, and target bus, see the OS documentation.
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 (/dev/sda) to the HDLM device (/dev/sddlmad):
For details on which SCSI devices correspond to which HDLM devices, see Displaying corresponding information about an HDLM device, SCSI device, and LDEV.
Execute the following command to enable the settings in the hardware configuration file.
# virsh define /etc/libvirt/qemu/domK.xml
Start the guest OS.
For details on how to start the guest OS, see the OS documentation.