Todo: qemu options.
[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 ----------------------------------------------------------------------
53
54 "Device independent" naming for devices.
55
56 With a Fedora-based appliance, using libata driver, devices have
57 "SCSI" names like /dev/sda.
58
59 With an EPEL-based appliance, using old ide driver, devices have names
60 like /dev/hda.
61
62 If we use virtio_blk, devices will have names like /dev/vda.
63
64 What a mess.
65
66 So the idea would be to add a device independent naming scheme, such
67 as the one used by grub:
68
69   "(hdX)"   X = 0 means 'a', X = 1 means 'b' and so on.
70   "(hdX,Y)" Device X, partition Y (in grub, this counts from 0 which is
71             deeply confusing).
72
73 There would have to be a very simple rule.  If guestfsd was expecting
74 a /dev block device or partition name, then the alternate form can be
75 used, and we would just look it up using the normal output of
76 guestfs_list_devices.
77
78 Maybe best is to use /dev/sda as the "standard" naming.  That
79 shouldn't cause conflicts in the appliance because we tightly control
80 what drivers are available.
81
82 Note there's a lot of hackery that currently exists in tests.c which
83 could be *removed* if we made this change.
84
85 Open: Should the substitution be done in the library layer or in the
86 daemon?
87
88 ----------------------------------------------------------------------
89
90 Qemu options -- After discussion with the KVM developers, they have
91 recommended some flags which will improve the safety and reliability
92 of KVM.  Need to test that these also work under qemu (or at least, do
93 no harm):
94
95 -no-hpet      HPET support is broken and should be disabled.
96
97 -rtc-td-hack  Keeps the rtc clock source track time correctly.
98
99 -drive file=...,if=[ide|virtio],cache=off
100               cache=off is necessary to improve reliability in the
101               event of a system crash when writing.