3c123d49cc6a9e91a3470edd07ba8e172555f933
[libguestfs.git] / TODO
1 Ideas for the Python bindings:
2 https://www.redhat.com/archives/fedora-virt/2009-April/msg00114.html
3
4 ----------------------------------------------------------------------
5
6 We badly need to actually implement the FTP server mentioned in the
7 documentation.
8
9 Or: Implement a FUSE-based filesystem.  See the FUSE mountlo
10 project which does something similar, albeit only to single
11 filesystems:
12
13 http://sourceforge.net/project/showfiles.php?group_id=121684&package_id=150116
14
15 ----------------------------------------------------------------------
16
17 BufferIn and BufferOut should turn into <char *, int> and simple
18 strings in other languages that can handle 8 bit clean strings.
19 Limit on transfers would still be 2MB for these types.
20  - then implement write-file properly
21  - and implement read-file
22
23 ----------------------------------------------------------------------
24
25 Implement febootstrap command.
26
27 ----------------------------------------------------------------------
28
29 Complete the Haskell bindings (see discussion on haskell-cafe).
30
31 ----------------------------------------------------------------------
32
33 Complete the bindings tests - must test the return values and
34 error cases.
35
36 ----------------------------------------------------------------------
37
38 For virt-inspector:
39
40  - Make a libvirt XML config
41
42  - Test over available OSes
43
44  - Add 'reged' / NT registry support.
45
46 ----------------------------------------------------------------------
47
48 Use virtio_blk by default.  It's faster and more natural.
49 Unfortunately it seems like this will rename all devices - see next
50 item.
51
52 Note: virtio_blk *IS* supported by all our minimum platforms,
53 ie. CentOS 5.3, Fedora 11, Debian.
54
55 ----------------------------------------------------------------------
56
57 Qemu options -- After discussion with the KVM developers, they have
58 recommended some flags which will improve the safety and reliability
59 of KVM.  Need to test that these also work under qemu (or at least, do
60 no harm):
61
62 -no-hpet      HPET support is broken and should be disabled.
63
64 -rtc-td-hack  Keeps the rtc clock source track time correctly.
65
66 -drive file=...,if=[ide|virtio],cache=off
67               cache=off is necessary to improve reliability in the
68               event of a system crash when writing.
69
70 ----------------------------------------------------------------------
71
72 "Standalone/local mode"
73
74 Instead of running guestfsd (the daemon) inside qemu, there should be
75 an option to just run guestfsd directly.
76
77 The architecture in this mode would look like:
78
79      +------------------+
80      | main program     |
81      |------------------|
82      | libguestfs       |
83      +--------^---------+
84           |   | reply
85       cmd |   |
86      +----v-------------+
87      | guestfsd         |
88      +------------------+
89
90 Notes:
91
92 (1) This only makes sense if we are running as root.
93
94 (2) There is no console / kernel messages in this configuration, but
95 we might consider capturing stderr from the daemon.
96
97 (3) guestfs_config and guestfs_add_drive become no-ops.
98
99 Obviously in this configuration, commands are run directly on the
100 local machine's disks.  You could just run the commands themselves
101 directly, but libguestfs provides a convenient API and language
102 bindings.  Also deals with tricky stuff like parsing the output of the
103 LVM commands.  Also we get to leverage other code such as
104 virt-inspector.
105
106 This is mainly useful from live CDs, ie. virt-p2v.
107
108 Should we bother having the daemon at all and just link the guestfsd
109 code directly into libguestfs?
110
111 ----------------------------------------------------------------------
112
113 guestfs rescue shell
114
115 Have a kernel command line option to enable a rescue shell
116 from guestfsd.
117
118 ----------------------------------------------------------------------
119
120 PPC problems:
121
122   ppc (32 bit) works with qemu from git, however there is no serial console
123
124   ppc64 requires extra parameters:
125     -M mac99 -cpu ppc64
126   however it still fails:
127     invalid/unsupported opcode: 01 - 01 - 1a (06301e83) 00000000018c2738 1
128     invalid bits: 00400000 for opcode: 0b - 19 - 15 (2d746572) 0000000000009230
129
130   no serial console in ppc or ppc64 because no one can tell us what
131   console=ttyXX option to use