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

Re: [Xen-users] How to add cdrom in linux guest

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] How to add cdrom in linux guest
From: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Date: Wed, 13 Jun 2007 18:22:58 +0100
Cc: "Petersson, Mats" <Mats.Petersson@xxxxxxx>, Mohammad Zohny <mohamad.zohny@xxxxxxxxx>
Delivery-date: Wed, 13 Jun 2007 13:16:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <907625E08839C4409CE5768403633E0B02561E05@xxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <907625E08839C4409CE5768403633E0B02561E05@xxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.6
> > I have installed SLES10 as a guest on a para-virtualized XEN 3.0.4.
> > the host system is SLES10.
> > Now I want to add a cdrom to the guest machine, when I do
> > that by using "xm block-attach"
> > it adds a new hard disk to the guest not a cdrom.
>
> There doesn't seem to be a way to tell the guest that it's a CDROM -
> however, I'm not entirely sure that's necessary either - have you tried
> to mount the "disk" as a CDROM (something like "mount /dev/xvdb
> /mnt/cdrom -t iso9660 -r"). I think that should work - there's nothing
> really magical about a CDROM as long as you use it for data reads. If
> you want to use a CD recording facility, your only option is to have a
> separate disk controller and give that as a PCI device to the DomU.

There isn't a paravirtualised CDROM driver, just the "block driver" that makes 
everything appear as a hard disk.  As Mats says, you should still be able to 
mount it just fine, but getting the guest to see it as a CD-ROM isn't 
currently possible.

Is there any particular reason you need it to appear as a CD-ROM?

> > Also I need to make the guest boot from cd.
>
> You definitely can NOT boot from CDROM in a PV guest - only HVM guests
> can boot from CDROM.

Which is a shame.  It'd be nice one day to have a PV spec for booting from CD; 
currently we don't, which is annoying.

Cheers,
Mark

-- 
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!

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

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