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

Re: [Xen-users] Xensource VM in Xen

To: "Joseph L. Casale" <JCasale@xxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Xensource VM in Xen
From: "Todd Deshane" <deshantm@xxxxxxxxx>
Date: Wed, 30 Jul 2008 23:14:46 -0400
Cc: Nicod <nicolas.daneau@xxxxxxxxx>, "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 30 Jul 2008 20:15:49 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Wo1p5zxFRpDl9wmLZ4hKXNW+nTDbvothpEELrCSPsD0=; b=RYAda70Rvkx19nE5S7PEpgjHgpors3iYHhL216zeNIX+hJNGelmO/WbjCvcQx9y7Yu cq4OJu9oiRRtuVqKG0iF1+ecg2FecQgWq4UjzeM1d8anFU+t1SOlbvdJFOACOtAjZ/eh upQYAe+jKQ1kDuAyv/pe5Rhq1ErrXDjuzv7Kk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:cc:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:references; b=HZ/OveDp8YvsypBQszcvgtIOj1W+pSoKCofhe2zqDz2dZ5bfZnlfQlbU3ZQLCapbjB 84tzRfs9Vw4mVOj+m+fUslH3v9uU/KjKj0wANs3TFC4aW3jCqfMsjQOhuen/12cflD3S dyhhIWqevliyuHeYjQhF2lWkUNp5JqzVTLG+E=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <49627735003F5C479100225C339F9FE06FE6AF0FDD@xxxxxxxxxxxxxxxxxxxxxx>
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: <18565204.post@xxxxxxxxxxxxxxx> <49627735003F5C479100225C339F9FE06FE6AF0FDD@xxxxxxxxxxxxxxxxxxxxxx>
Reply-to: deshantm@xxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, Jul 30, 2008 at 3:53 PM, Joseph L. Casale
<JCasale@xxxxxxxxxxxxxxxxx> wrote:
>>We are currently using XenSource Express with 3 VM. As we need more domU
>>(limited on 4 on XenSource Express) and as we need PCI passtrought (Asterisk
>>FXO/S pci card) we plan to "migrate" to a "pure" Xen. The question is: can
>>we can reuse the VM build in XenSource without any change??? I didn't found
>>anything in wiki or faq regarding this point...
>
> Recent thread one this, I believe you can, just uninstall the tools first. 
> Given that xensource uses lvm, you may be able to export the raw disc image 
> out of lvm into a file for use on the xen server or even back into an lv.
>
The volume group on the second partition of a logical volume is tricky
to handle, but definitely doable (as mentioned earlier).

Quick HOWTO

Find the UUID of your vdi

lvchange -a y /dev/<PV Name>-<sr-uuid>/LV-<vdi UUID>

kpartx -av /dev/<PV Name>-<sr-uuid>/LV-<vdi UUID>

now, /dev/mapper will contain two partitions, the first is the boot
partition of the guest
and the second is a LVM partition that has a VG in it.

if you need the boot partition, then simply mount

/dev/mapper/<PV Name>-<sr-uuid>/LV-<vdi UUID>p1

For the VG, simply do a vgscan to make it available.
(usually VogGroup00)

Then you can lvscan and lvchange -a y the root file system
(usually LogVol00)

then just mount the LogVol00 to get the data off.

This is the rough idea, if noone posts a real HOWTO before I get a
chance to then I
can clean up the one I have been working on and post that.


> As for the Asterisk idea, my experience so far is that it sort of works, but 
> not reliably enough for production, and I tried for a while. Don't do it...
>

Out of curiosity, what is the problem with Asterisk running on Xen?

Cheers,
Todd

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



-- 
Todd Deshane
http://todddeshane.net
check out our book: http://runningxen.com

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

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