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] problem on cloing guest

To: antoine.benkemoun@xxxxxx
Subject: Re: [Xen-users] problem on cloing guest
From: Stephen Liu <satimis@xxxxxxxxx>
Date: Mon, 15 Sep 2008 20:09:35 +0800 (CST)
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 15 Sep 2008 05:10:13 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=WjnfGV8JtwYTF23ke75BfGcZ3qNUKRyKOK7G2ToAi83RxWNx96GDmwKyjsJbsQA3lhVJmPgyJJLsdTz5UrwD4DgnOo5DnRH0z+XvjW/R3ATMCzfgzY0wCBL6DDZUNPHpzD7rvUBGRx1YdhrLfAEi4VfBePHo37JqsmhXicjFE0g=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <fc1cbedb0809150017s29e418cal29ce370795993cd3@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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi Antoine,


Thanks for your advice


antoine.benkemoun@xxxxxx wrote:

> the error is most likely because you deleted some lines in
> xen-tools.cfg. 


Here is xen-tools.conf


# cat /etc/xen-tools/xen-tools.conf

size   = 4Gb      # Disk image size.
memory = 128Mb    # Memory size
swap   = 128Mb    # Swap size
# noswap = 1      # Don't use swap at all for the new system.
fs     = ext3     # use the EXT3 filesystem for the disk image.
dist   = sarge    # Default distribution to install.
image  = sparse   # Specify sparse vs. full disk images.

passwd = 1

mirror = http://ftp.au.debian.org/debian/
* end *


> You don't need to use xen-create-image because you
> already have the image since you copied it from a previous guest.
> The solution is to directly create the .cfg file located in /etc/xen
> in order to tell it to use your image :-) 


# ls /etc/xen/
auto                  xen1.satimis.com.cfg    xend-pci-permissive.sxp 
xmexample1
qemu-ifup             xen2.satimis.com.cfg    xend-pci-quirks.sxp     
xmexample2
scripts               xend-config.sxp         xm-config-xenapi.xml    
xmexample.hvm
xen1.example.com.cfg  xend-config-xenapi.sxp  xm-config.xml           
xmexample.vti
* end *


Whether you meant running;

# cp -p /etc/xen/xen1.satimis.com.cfg /etc/xen/xen3.satimis.com.cfg

then changing the content on the newly created xen3.satimis.com.cfg for
xen3?


And then;

# mkdir /vserver/domains/xen3.satimis.com/

# cp -p /vserver/domains/xen1.satimis.com/swap.img
/vserver/domains/xen3.satimis.com/
# cp -p /vserver/domains/xen1.satimis.com/disk.img
/vserver/domains/xen3.satimis.com/


> You shoild be able to find
> an example file easily.


I have been googling around unable to find an example.  All come across
are running lvcreate.   Unfortunately I don't have partition on HD nor
running LVM.


B.R.
Stephen L


> On 9/15/08, Stephen Liu <satimis@xxxxxxxxx> wrote:
> > Hi folks,
> >
> >
> > Host - Debian Etch
> >
> >
> > Encountered problem on cloing guest.
> >
> > Remark: No partition on HD nor have LVM
> >
> >
> > Steps performed as follows;
> >
> >
> > # find / -name *.img
> > /initrd.img
> > /vserver/domains/xen1.satimis.com/swap.img
> > /vserver/domains/xen1.satimis.com/disk.img
> > /vserver/domains/xen2.satimis.com/swap.img
> > /vserver/domains/xen2.satimis.com/disk.img
> >
> >
> > # mount -o loop /vserver/domains/xen2.satimis.com/disk.img /mnt
> > No complaint
> >
> >
> > # xen-create-image --copy=/mnt --hostname=xen3.satimis.com
> > --ip=192.168.0.113 --dist=etch
> >
> > General Infomation
> > --------------------
> > Hostname       :  xen3.satimis.com
> > Distribution   :  etch
> > Fileystem Type :  ext3
> >
> > Size Information
> > ----------------
> > Image size     :  4Gb
> > Swap size      :  128Mb
> > Image type     :  sparse
> > Memory size    :  128Mb
> > Kernel path    :  /boot/vmlinuz-2.6.18-xen
> >
> > Networking Information
> > ----------------------
> > IP Address 1   : 192.168.0.113
> > Netmask        : 255.255.255.0
> > Gateway        : 192.168.0.1
> >
> > Error:  No recognised installation type.
> >
> > Logfile produced at:
> >          /var/log/xen-tools/xen3.satimis.com.log
> > * end *
> >
> >
> > # tail /var/log/xen-tools/xen3.satimis.com.log
> > Image type     :  sparse
> > Memory size    :  128Mb
> > Kernel path    :  /boot/vmlinuz-2.6.18-xen
> >
> > Networking Information
> > ----------------------
> > IP Address 1   : 192.168.0.113
> > Netmask        : 255.255.255.0
> > Gateway        : 192.168.0.1
> > Error:  No recognised installation type.
> > * end *
> >
> >
> > What does it mean "Error:  No recognised installation type"?
> >
> >
> > Please advise how to fix the problem.  TIA
> >
> >
> > B.R.
> > Stephen L
> >
> > Send instant messages to your online friends
> http://uk.messenger.yahoo.com
> >
> > _______________________________________________
> > Xen-users mailing list
> > Xen-users@xxxxxxxxxxxxxxxxxxx
> > http://lists.xensource.com/xen-users
> >
> 
> 
> -- 
> Antoine Benkemoun
> Tel : 03.51.53.57.00
> Port : 06.32.88.59.35
> 


Send instant messages to your online friends http://uk.messenger.yahoo.com 

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