No devices found while creating a new XEN based linux VM in Red Hat Enterprise Linux 5.8
Issue
- Using the following command to create a guest:
# virt-install --name <vm-name> --ram <value> --disk path=/<path-to-img-file>,size=<size-in-GB> --network network=default --location=<ISO-file location for installation>
- OR using the cdrom of the host directly:
# virt-install --name <vm-name> --ram <value> --disk path=/<path-to-img-file>,size=<size-in-GB> --network network=default --cdrom /dev/cdrom
ERROR Paravirtualized guests cannot install off cdrom media.
- Following errors were observed in the xend.log:
[2012-06-04 09:28:11 xend.XendDomainInfo 3999] DEBUG (XendDomainInfo:677) Checking for duplicate for uname: /virt/iso/rhel-server-5.8-x86_64-dvd.iso [file:/virt/iso/rhel-server-5.8-x86_64-dvd.iso], dev: xvdb, mode: r
[2012-06-04 09:28:11 xend 3999] DEBUG (blkif:27) exception looking up device number for xvdb: [Errno 2] No such file or directory: '/dev/xvdb'
[2012-06-04 09:28:11 xend 3999] DEBUG (blkif:27) exception looking up device number for xvdb: [Errno 2] No such file or directory: '/dev/xvdb'
[2012-06-04 09:28:11 xend 3999] DEBUG (DevController:133) DevController: writing {'virtual-device': '51728', 'device-type': 'disk', 'protocol': 'x86_64-abi', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vbd/1/51728'} to /local/domain/1/device/vbd/51728.
[2012-06-04 09:28:11 xend 3999] DEBUG (DevController:135) DevController: writing {'domain': 'rhn01', 'frontend': '/local/domain/1/device/vbd/51728', 'format': 'raw', 'dev': 'xvdb', 'state': '1', 'params': '/virt/iso/rhel-server-5.8-x86_64-dvd.iso', 'mode': 'r', 'online': '1', 'frontend-id': '1', 'type': 'file'} to /local/domain/0/backend/vbd/1/51728.
- Getting following screen while using the above command:
Welcome to Red Hat Enterprise Linux Server
+-----------------+ No driver found +------------------+
| |
| Unable to find any devices of the type |
| needed for this installation type. |
| Would you like to manually select your |
| driver or use a driver disk? |
| |
| +---------------+ +-------------------+ +------+ |
| | Select driver | | Use a driver disk | | Back | |
| +---------------+ +-------------------+ +------+ |
| |
| |
+------------------------------------------------------+
<Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen
Environment
- Red Hat Enterprise Linux 5.8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.