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

xen-users

[Top] [All Lists]

Re: [Xen-users] dd trough scp with tar

To: "David Hl??ik" <david@xxxxxxxxx>
Subject: Re: [Xen-users] dd trough scp with tar
From: Michael Jinks <mjinks@xxxxxxxxxxxx>
Date: 2008年4月25日 16:43:48 -0500
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: 2008年4月25日 14:44:19 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <cba415ca0804251348r44afea9exf6145d5887bde05a@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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <cba415ca0804251348r44afea9exf6145d5887bde05a@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.13 (2006年08月11日)
On Fri, Apr 25, 2008 at 10:48:17PM +0200, David Hl??ik wrote:
>
> i will inside virtual machine on ESX boot from Live-CD of CentOS , using dd
> i will transfer images trought scp to CentOs machine with xen. I believe
> this one should work, machines on ESX are Windows2003 Servers.
> So what i need to find is how to write a command which will transfer image
> trought scp , but for faster transfer also compress it before using tar, or
> gzip.
>
> *so my input will be dd if=/dev/sda1 , my output will be gzipped or tarred
> image on second side. sda1.img.gz*
> **
dd will produce a raw image of the disk; at that level, there aren't any
files for tar to work on, it's just one long stream of bytes. scp also
works from files, so unless you were to save your image locally first,
e.g.,
 # dd if=/dev/sda1 of=/tmp/sda1.img
 # scp /tmp/sda1.img me@xxxxxxxxxxxxxxxxxxxx:
...scp isn't the right tool to use either.
You could do something like this. Where "foo.example.com" is the Xen
machine which will receive the image, and we're logged in to your system
running the CentOS CD (note: this is one command line; the backslash is
just there to make that explicit and isn't necessary if you type this
all in at the prompt):
 # dd if=/dev/sda1 | gzip | ssh root@xxxxxxxxxxxxxxx \
 "gzip -d > /path/to/vm/images/windows2003sda.img"
HTH,
--michael
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: [Xen-users] RE: [CentOS] dd trough scp with tar , Joseph L. Casale
Next by Date: Re: [Xen-users] Can someone please build a Xen 3.2 rpm for CentOS 5.1x64? , Nico Kadel-Garcia
Previous by Thread: [Xen-users] RE: [CentOS] dd trough scp with tar , Joseph L. Casale
Next by Thread: Re: [Xen-users] dd trough scp with tar , Martin Hierling
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /