From: Andrew Lyon Subject: change cd iso image in hvm but loop not changed? Date: Sun, 26 Jul 2009 15:00:24 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen-devel List-Id: xen-devel@lists.xenproject.org Hi, 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 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 /root/t.iso I then used xenstore-write to change the iso image: xenstore-write /local/domain/0/backend/vbd/3/5632/params /home/admin/isos/sql2k8.iso 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. Andy