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-devel

Re: [Xen-users] Changing CD Images (ISO files) in QEMU Console

To: "Mr. Teo En Ming (Zhang Enming)" <space.time.universe@xxxxxxxxx>
Subject: Re: [Xen-users] Changing CD Images (ISO files) in QEMU Console
From: Andrew Lyon <andrew.lyon@xxxxxxxxx>
Date: Wed, 11 Nov 2009 19:25:29 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 11 Nov 2009 11:26:22 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=S+P14ZwRq0W/4JsW69SSlHZFuQtPISiBFlcKykFLroQ=; b=T0bbcNvX+JSp++eptcvYhFL4kOb/fVG434hOzW+iHwI5d31CIBG2lwkvqNjz+OZZhq ig6tgdB+hMgQoDNj8Mg5uEsc7KrMHnWTGfDeVun4ony2hk22waly8fh4f+q/CJYnzmKf UOSgHu0ajApp/qbP9PzqHB5UL9GRsvsU/uwj0=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=XOKomBHMq2ZOfmKIwLfHd+ClGUAFnCPKQOC1LN75lezzCA3bXlxTzFE/L8AbePm7GA qijg80UUY3rrOLrj1bEk4sQVNZl+cS+a68r6wLwYAmfVJArjwFI5L/MrG0r0zH7vsJLV iUvB/lerHTw3XtBBvQvdDs98mkIM8VYIiJ9lM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <f712b9cf0911020452p277607daj5d5aa92baf1faea9@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <f712b9cf0911020452p277607daj5d5aa92baf1faea9@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Mon, Nov 2, 2009 at 12:52 PM, Mr. Teo En Ming (Zhang Enming)
<space.time.universe@xxxxxxxxx> wrote:
> Hi,
>
> I have tried to change CD ISO images during a HVM install using the
> following commands but it doesn't work. After changing the CD ISO image, it
> doesn't detect the new ISO image.
>
> (qemu) eject -f hdc
> (qemu) change hdc /media/hitachi/cd-rom-image.iso
>
> Any ideas?
>
> --
> Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical
> Engineering)
> Alma Maters:
> (1) Singapore Polytechnic
> (2) National University of Singapore
> My Primary Blog: http://teo-en-ming-aka-zhang-enming.blogspot.com
> My Secondary Blog: http://enmingteo.wordpress.com
> My Youtube videos: http://www.youtube.com/user/enmingteo
> Email: space.time.universe@xxxxxxxxx
> MSN: teoenming@xxxxxxxxxxx
> Mobile Phone (SingTel): +65-9648-9798
> Mobile Phone (Starhub Prepaid): +65-8369-2618
> Age: 31 (as at 30 Oct 2009)
> Height: 1.78 meters
> Race: Chinese
> Dialect: Hokkien
> Street: Bedok Reservoir Road
> Country: Singapore
>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
>

I use a different method to change iso image for hvm domU:

Use xm block-list <domid> to find the cdrom be-path for the domain, for example:

 xm block-list 5
Vdev  BE handle state evt-ch ring-ref BE-path
768    0    0     4      9      16383 /local/domain/0/backend/vbd/5/768
5632   0    0     1      -1     -1    /local/domain/0/backend/vbd/5/5632

Having identified the cdrom device (5632) you can check what iso image
it is connected to:

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

(nothing returned)

To connect a new iso image:

xenstore-write /local/domain/0/backend/vbd/5/5632/params
/mnt/gl3-tb1_store/MWWin2003R2SvrStdx86_BX2SVOL_EN.iso

And you can now see that it is connected:

xenstore-read /local/domain/0/backend/vbd/5/5632/params
/mnt/gl3-tb1_store/MWWin2003R2SvrStdx86_BX2SVOL_EN.iso


This method works with both emulated devices and with gplpv drivers.

Andy

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

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