git.annexia.org
/
virt-p2v.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3f6e983
)
gzip network traffic.
author
rjones
<devnull@localhost>
Sat, 15 Sep 2007 12:15:58 +0000
(13:15 +0100)
committer
rjones
<devnull@localhost>
Sat, 15 Sep 2007 12:15:58 +0000
(13:15 +0100)
README.developers
patch
|
blob
|
history
virt-p2v.sh
patch
|
blob
|
history
diff --git
a/README.developers
b/README.developers
index
6ba0733
..
ac1f8e9
100644
(file)
--- a/
README.developers
+++ b/
README.developers
@@
-63,7
+63,7
@@
for devices in /sys/block.
For (b) we can simply use 'dd' and 'ssh'. The general plan is to do
this:
For (b) we can simply use 'dd' and 'ssh'. The general plan is to do
this:
- dd if=/dev/disk | gzip | ssh xenhost 'cat > /var/lib/xen/images/disk.img'
+ dd if=/dev/disk | gzip | ssh xenhost '
z
cat > /var/lib/xen/images/disk.img'
If the user doesn't have sshd installed on the Xen host, then they can
also opt for a pure TCP transport:
If the user doesn't have sshd installed on the Xen host, then they can
also opt for a pure TCP transport:
@@
-71,7
+71,7
@@
also opt for a pure TCP transport:
dd if=/dev/disk | gzip | nc xenhost port
and on the remote host they do:
dd if=/dev/disk | gzip | nc xenhost port
and on the remote host they do:
- nc -l
-p port > /var/lib/xen/images/disk.img
+ nc -l
port > /var/lib/xen/images/disks.gz
For (c) we can use device-mapper snapshots to mount a ramdisk above
the disks themselves. This allows us to make non-destructive changes
For (c) we can use device-mapper snapshots to mount a ramdisk above
the disks themselves. This allows us to make non-destructive changes
diff --git
a/virt-p2v.sh
b/virt-p2v.sh
index
274b087
..
ae0d021
100755
(executable)
--- a/
virt-p2v.sh
+++ b/
virt-p2v.sh
@@
-639,11
+639,11
@@
for dev in $devices_to_send; do
gigs=$(($sectors/2/1024/1024))
echo "Sending /dev/$dev (${gigs} GB) to remote machine"
gigs=$(($sectors/2/1024/1024))
echo "Sending /dev/$dev (${gigs} GB) to remote machine"
- dd if=/dev/mapper/snap_$dev |
+ dd if=/dev/mapper/snap_$dev |
gzip --best |
case "$remote_transport" in
ssh)
ssh -p "$remote_port" "$remote_host" \
case "$remote_transport" in
ssh)
ssh -p "$remote_port" "$remote_host" \
- "cat > $remote_directory/$name"
+ "
z
cat > $remote_directory/$name"
;;
tcp)
echo "p2v $name $sectors" > header
;;
tcp)
echo "p2v $name $sectors" > header