From 6577b41d376f25256f47f2a609b01105bc62b264 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] Updated documentation. --- README | 42 +++++++++--------------------------------- 1 file changed, 9 insertions(+), 33 deletions(-) diff --git a/README b/README index bbf5742..7886193 100644 --- a/README +++ b/README @@ -52,12 +52,10 @@ Running Boot the candidate machine from the live CD or USB keydrive. You will need to have network access to another machine where it will -save the virtual disk images. Ideally that machine will have ssh -access (sshd service running), but there is also a simple network -daemon that you can run on the target machine. Note that the target -machine is usually the Xen host, but it doesn't need to be: you could -copy the images to a staging machine, and later copy them over to the -Xen host. +save the virtual disk images. That machine must have ssh access (sshd +service running). Note that the target machine is usually the Xen +host, but it doesn't need to be: you could copy the images to a +staging machine, and later copy them over to the Xen host. Note that the live CD doesn't modify any data on the candidate machine. @@ -70,13 +68,15 @@ While the live CD is booted a shell is available on other virtual consoles. Go to a virtual console using [ALT] [F2] and log in as root with no password. -If it works, the result will be disk images for each filesystem from -the candidate machine, which should boot directly or with the minimum -of changes. +If it works, the result will be a configuration file and disk images +for each block device (hard disk) from the candidate machine, which +should boot directly or with the minimum of changes. Booting P2V candidate under Xen ---------------------------------------------------------------------- + # virsh define p2v-foo-2008MMDDHHMM.conf + # virsh start foo Testing ---------------------------------------------------------------------- @@ -89,27 +89,3 @@ eg. from /var/lib/xen/images, to experiment with). For example: $ cp /var/lib/xen/images/rhel5gax32fv.img . $ make boot HDA=rhel5gax32fv.img qemu -m 512 -cdrom virt-p2v-0.1.iso -boot d -hda rhel5gax32fv.img - - -TCP transport and network daemon ----------------------------------------------------------------------- - -The preferred transport is ssh, but if you cannot use this then there -is an alternate TCP transport. (This transport is not encrypted). - -On the Xen host or staging server, install NetCat (the 'nc' command, -in Fedora and RHEL the package is also called 'nc'). - -Choose a free port number and make sure that it is not firewalled. - -Then run: - - nc -kl PORT > disks - -where PORT is replaced by the port number chosen above. - -After p2v has completed the 'disks' file will contain compressed -images of one or more disks. There is a Perl script called -virt-p2v-unpack which can unpack the file: - - virt-p2v-unpack disks -- 1.8.3.1