CD-ROM device is no longer accessible after installing the Hyper-V Linux Integration Services in a Red Hat or CentOS virtual machine

SYMPTOMS

Consider the following scenario:

· Red Hat or CentOS is installed in a Hyper-V virtual machine.

· The Linux Integration Services are installed in the virtual machine.

· After the Linux Integration Services are installed, the CD-ROM (/dev/cdrom) is no longer accessible in the virtual machine.

· If the Linux Integration Services are uninstalled, the CD-ROM is accessible in the virtual machine.

CAUSE

This issue occurs because the Hyper-V Linux Integration Services unloads the ata_piix driver in order to provide an optimized IDE driver (hv_blkvsc) for the root file system. To get access to the CD-ROM device, the Linux Integration Services must be uninstalled.

WORKAROUND

To work around this issue, mount the ISO in the virtual machine. To mount an ISO file in the virtual machine, the following command must be run before executing the mount command:

# insmod /lib/modules/$(uname -r)/kernel/drivers/ata/ata_piix.ko

Alternatively, copy the ISO file into the virtual machine and mount it using the -o loop option.

MORE INFORMATION

For more information about Hyper-V, visit the following Microsoft website: http://technet.microsoft.com/en-us/library/cc753637(WS.10).aspx

 

參考資料

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

*

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料