Miroslav Rezanina
2009-Aug-26 13:32 UTC
[Xen-devel] What opens /dev/cdrom when guest is started
Hi, when I start HVM guest that has assigned physical cdrom device (/dev/cdrom), I see there are two handles open. One is open by qemu-dm and is used by guest. However, what holds second handle? This is hold for whole time guest is running. Does anybody knows what opens /dev/cdrom during guest creation? Regards, Miroslav Rezanina _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Andrew Lyon
2009-Aug-26 14:31 UTC
Re: [Xen-devel] What opens /dev/cdrom when guest is started
On Wed, Aug 26, 2009 at 2:32 PM, Miroslav Rezanina<mrezanin@redhat.com> wrote:> Hi, > when I start HVM guest that has assigned physical cdrom device (/dev/cdrom), I see there are two handles open. One is open by qemu-dm and is used by guest. However, what holds second handle? This is hold for whole time guest is running.Try losetup -a , it may have been setup as a loop device for use with stubdom, that certainly happens with iso images Andy> > Does anybody knows what opens /dev/cdrom during guest creation? > > Regards, > Miroslav Rezanina > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Miroslav Rezanina
2009-Aug-26 15:09 UTC
Re: [Xen-devel] What opens /dev/cdrom when guest is started
> From: "Andrew Lyon" <andrew.lyon@gmail.com> > To: "Miroslav Rezanina" <mrezanin@redhat.com> > Cc: xen-devel@lists.xensource.com > Sent: Wednesday, August 26, 2009 4:31:12 PM GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna > Subject: Re: [Xen-devel] What opens /dev/cdrom when guest is started > > On Wed, Aug 26, 2009 at 2:32 PM, Miroslav > Rezanina<mrezanin@redhat.com> wrote: > > Hi, > > when I start HVM guest that has assigned physical cdrom device > (/dev/cdrom), I see there are two handles open. One is open by qemu-dm > and is used by guest. However, what holds second handle? This is hold > for whole time guest is running. > > Try losetup -a , it may have been setup as a loop device for use with > stubdom, that certainly happens with iso images > > AndyHi Andy, thanks for answer. Unfortunately this is not my case. There is only guest image mapped to loop device. Regards, Mirek> > > > > Does anybody knows what opens /dev/cdrom during guest creation? > > > > Regards, > > Miroslav Rezanina > > > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel > >-- Miroslav Rezanina Software Engineer - Virtualization Team - XEN kernel _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel