Added links to support mailing list.
[virt-p2v.git] / README.developers
1 Support
2 ----------------------------------------------------------------------
3
4 Please send all queries, patches, bug reports etc. to the
5 et-mgmt-tools mailing list:
6
7   http://www.redhat.com/mailman/listinfo/et-mgmt-tools
8
9 Source repository
10 ----------------------------------------------------------------------
11
12 If you have Mercurial installed, then:
13
14   hg clone http://hg.et.redhat.com/virt/applications/virt-p2v--devel
15
16 Background reading
17 ----------------------------------------------------------------------
18
19 About Live CDs / livecd-creator tool:
20
21   http://fedoraproject.org/wiki/FedoraLiveCD/LiveCDHowTo
22
23 The files in this directory
24 ----------------------------------------------------------------------
25
26 p2v.ks.in
27
28   Kickstart file which describes how to build the live CD.  This is
29   essentially the configuration file for livecd-creator.  Most
30   importantly it lists the RPMs which are needed on the live CD.
31
32 virt-p2v
33
34   This is the virt-p2v P2V configuration tool itself.  It is
35   installed on the live CD as /usr/bin/virt-p2v and runs after the
36   live CD has booted.  All the P2V stuff happens from this script. It
37   uses the 'dialog' program to ask questions.
38
39 inittab
40
41   Replacement /etc/inittab.
42
43 iso-attach
44
45   Attach newer virt-p2v scripts to pre-built ISOs (used by 'make update').
46
47 extras/
48
49   Anything under here is copied onto the ISO squashfs.  In particular
50   this contains paravirt drivers for Red Hat Enterprise Linux,
51   CentOS and friends.
52
53 General implementation plan
54 ----------------------------------------------------------------------
55
56 User boots the live CD.  The job of the live CD is to:
57
58 (a) Find local disks.
59
60 (b) Copy the disk image(s) over to the Xen host.
61
62 (c) Change certain files (eg. /etc/fstab may contain references to
63 disk devices, which need to be changed when running under Xen).
64
65 (d) BUT, the live CD must be totally non-destructive.  It cannot
66 modify the local disks in any way.
67
68 (e) The above steps are not automatic.  We need to ask the user some
69 questions along the way.
70
71 For (a) there are various methods to detect local devices.  We sniff
72 for devices in /sys/block.
73
74 For (b) we can simply use 'dd' and 'ssh'.  The general plan is to do
75 this:
76
77   dd if=/dev/disk | ssh -C xenhost 'cat > /var/lib/xen/images/disk.img'
78
79 For (c) we can use device-mapper snapshots to mount a ramdisk above
80 the disks themselves.  This allows us to make non-destructive changes
81 to files, and still see the "modified" block device (d).  A hairy
82 script looks for candidate files to modify.