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/
Home Products Support Community News


[Xen-devel] change cd iso image in hvm but loop not changed?

To: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] change cd iso image in hvm but loop not changed?
From: Andrew Lyon <andrew.lyon@xxxxxxxxx>
Date: Sun, 26 Jul 2009 15:00:24 +0100
Delivery-date: Sun, 26 Jul 2009 07:00:55 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=ya1MA42/kp+X+slyB3SQolJMRnURnDG02JqAF5gKIJo=; b=RKA8DxGUIqzJoRFgitiVACS2KYy2kvbZpMbIikksXou7JOBDBRqV1JfZhfRBKaHnhT AvGMjXENkTYW6q9YyaLxTkX0fU1J7Wzf6JtvfeD3siCvtNBQ+Et93Kgxx1Kb0ytXyYHv ZpJyCB4NlTqRYOidHlxPX5G/MzHSpMbNqjDck=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=Hq24xoqyGTALEK8tSuzlTsElIu2RK4ECBwii8O+loNhCWAoCA4DbUhmclVJtoWWFwz 9I7pWl42izyb6ncuD40Y+F4khdW/D4RiVDD9sGHIOV63lRJSOKPfGIOs1OHBJzbW3MrL iDYkoPNuhuC5nluUTb+RWGOYVCE9zKcxYKcd4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

I booted a windows hvm with a iso image (/root/t.iso) connected to the
cdrom, I then changed the iso image using the following technique:

I used xm block-list <domid> to find the cdrom be-path:

5632   0    0     1      -1     -1    /local/domain/0/backend/vbd/3/5632

To make absolutely sure I got the right device I used xenstore-read:

xenstore-read /local/domain/0/backend/vbd/3/5632/params


I then used xenstore-write to change the iso image:

 xenstore-write /local/domain/0/backend/vbd/3/5632/params

After a few seconds the new cd appears in windows, however there is
still a loop device setup for the original iso image:

losetup -a
/dev/loop/0: [0802]:1517 (/root/t.iso)

Why is this setup? if the cd can be changed without mounting the new
iso as a loop device why do it in the first place?

the hvm has gplpv drivers loaded but they do not provide cdrom, it is emulated.


Xen-devel mailing list

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