WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-devel] Re: [Xen-users] Can not find the cdrom device in /dev/ after

To: "Petersson, Mats" <Mats.Petersson@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Re: [Xen-users] Can not find the cdrom device in /dev/ after booted into xen(3.0.3)
From: "Liang Yang" <multisyncfe991@xxxxxxxxxxx>
Date: Fri, 1 Dec 2006 09:38:57 -0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 01 Dec 2006 08:39:05 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <907625E08839C4409CE5768403633E0B018E1794@xxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi Mats,

Thanks for your reply. I still have two questions:
1. Your answer still does not explain why Linux native listed the CD-ROM device as /dev/cdrom while Xen Linux (using the same distribution, i.e. RHEL Server 4.4) does not.

2. If I want to install HVM Linux from CDROM instead of file image, how can I define the cdrom in .hvm file: disk = [ 'phy:/dev/sdb,hda,w', 'phy:/dev/cdrom,hdc:cdrom,r' ] will not work as /dev/cdrom is not available. Then I tried disk = [ 'phy:/dev/sdb,hda,w', 'phy:/dev/hdc,hdc:cdrom,r' ]. It still does not work as /dev/hdc is not available either.

How can I create /dev/hdc for my cd-rom?

Regards,

Liang

----- Original Message ----- From: "Petersson, Mats" <Mats.Petersson@xxxxxxx> To: "Liang Yang" <multisyncfe991@xxxxxxxxxxx>; <xen-devel@xxxxxxxxxxxxxxxxxxx>
Cc: <xen-users@xxxxxxxxxxxxxxxxxxx>
Sent: Friday, December 01, 2006 9:22 AM
Subject: RE: [Xen-users] Can not find the cdrom device in /dev/ after booted into xen(3.0.3)




-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Liang Yang
Sent: 01 December 2006 16:12
To: xen-devel@xxxxxxxxxxxxxxxxxxx
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Can not find the cdrom device in /dev/
after booted into xen(3.0.3)

Hello,

I just did a fresh installation of Xen 3.0.3. However, I can
not find my
cd-rom device under /dev/ after I booted into Xen. If I
booted into Linux
native (RHELAS 4.4), CD-ROM device is there and listed as
/dev/cdrom. I know
Xen changed the CD-ROM access mode from HVM domain. But for
Xen domain0, it
should still be listed as /dev/cdrom, right?

/dev/cdrom is a "link" to the actual /dev/[sh]d[abcd] device that is the
CDROM drive. As far as I understand, it's normally created by the
distributions initrd. You may be able to disassemble your distributions
initrd and find the line that creates this link - but the fact is that
different distributions do this slightly differently.

Much easier to just use /dev/[sh]d[abcd] for your cdrom.

--
Mats

I think the driver for CD-ROM must be already loaded and it
is hided by Xen
somehow. I checked a Linux Server beta version which has
integrated Xen on
the same platform, I can find the cdrom device in /dev/. I
remember Xen
3.0.2 does not have this problem either.

Could anyone share some solutions?

Thanks,

Liang


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users




_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>