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] Convert CentOS system to Xen image?

On Wed, 2008-04-02 at 16:32 +0300, Igor Chubin wrote:
> On Mi, Apr 02, 2008 at 08:41:40 -0400, James Pifer wrote:
> > Attempted to do this using netcat + ssh and here's my next problem. The
> > CentOS server is using LVM, so instead of getting an img file of around
> > 8 gig that I expected, I got one that is 18 gig, or the size of the LV. 
> 
> 
> If you use netcat (and dd), you will get image
> with the size of underlying harddisk.
> 
> (not LV, but whole disk).
> 
> 
> What command have you use to copy image?
> 
> If you use line
> 
>     cat /dev/DEVICE | nc ...
> 


I used:
cat /dev/ida/c0d0p2 | nc -l -p 3000

Then on dom0 I used:
netcat centoshost 3000 > centos.img

James


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

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