Skip to contentSkip to conversation

What opens /dev/cdrom when guest is started

DISCUSSION Miroslav Rezanina 2 participants 3 messages Aug 26, 2009

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 2 lines · Miroslav Rezanina

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

Quoted 12 lines

Does anybody knows what opens /dev/cdrom during guest creation?

Regards,
Miroslav Rezanina

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#2 lore raw
Quoted 10 lines

From: "Andrew Lyon" <[email protected]>
To: "Miroslav Rezanina" <[email protected]>
Cc: [email protected]
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

Quoted 2 lines · Miroslav Rezanina

Hi,
when I start HVM guest that has assigned physical cdrom device

Quoted 8 lines

(/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

Hi Andy,

thanks for answer. Unfortunately this is not my case. There is only guest image mapped to loop device.

Regards,
Mirek

Quoted 13 lines
Quoted 13 lines

Does anybody knows what opens /dev/cdrom during guest creation?

Regards,
Miroslav Rezanina

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Signature · 2 lines
Miroslav Rezanina
Software Engineer - Virtualization Team - XEN kernel