/
guestfs-release-notes.pod
2346 lines (1533 loc) · 76.2 KB
/
guestfs-release-notes.pod
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
=encoding utf8
=head1 NAME
guestfs-release-notes - libguestfs Release Notes
=begin comment
NOTE! Pre-release notes for the next stable version of libguestfs.
Updated to commit 3147500f15ca7299a09a48af514459d793d04c1a
=end comment
=begin comment
<script>
document.body.style.backgroundImage = "url('draft.png')";
document.body.style.backgroundRepeat = "no-repeat";
</script>
=end comment
=head1 RELEASE NOTES FOR LIBGUESTFS 1.22
These release notes only cover the differences from the previous
stable/dev branch split (1.20.0). For detailed changelogs, please see
the git repository, or the ChangeLog file distributed in the tarball.
=head2 New features
=head3 API
Remote access to disks:
=over 4
=item *
Network Block Device (nbd)
=item *
Secure Shell (ssh)
=item *
HTTP and HTTPS
=item *
FTP and FTPS
=item *
iSCSI
=item *
Gluster
=item *
Ceph/rbd
(Mike Kelly)
=item *
Sheepdog
=item *
TFTP
=back
The SYSLINUX and EXTLINUX bootloaders can now be installed in disk
images using the API.
Inspection can now handle filesystems such as btrfs where subvolumes
are separately mountable (Matthew Booth).
"Attach methods" are now known as "backends". Compatibility with
existing code is preserved.
Filenames can contain ':', as long as newer QEMU is being used.
=head3 Tools
Virt-alignment-scan and virt-df scan multiple guests in parallel.
Guestmount now passes errno accurately back to userspace in almost
all cases.
Guestfish and other tools can now use a URI-like syntax to access
remote disks, eg:
guestfish -a ssh://example.com/path/to/disk.img
Guestfish and guestmount now allow you to specify the filesystem type
when mounting, which is more secure (Dave Vasilevsky).
Guestfish is now the "guest filesystem shell".
Guestfish allows only C<1> C<true> C<t> C<yes> C<y> C<on> C<0>
C<false> C<f> C<no> C<n> C<off> for boolean values (case insensitive),
and gives an error for all other strings.
New tool C<guestunmount> for unmounting FUSE filesystems safely.
C<guestmount --no-fork> flag prevents guestmount from daemonizing.
Virt-resize now uses sparse copies by default, saving considerable
space for guests which are mostly empty.
Bash tab completion has been rewritten and can now handle most tools,
and correctly tab-complete C<--long> options. In addition, bash
completion scripts are loaded on demand.
=head3 Language bindings
The Java API now supports events.
The Python object now inherits from the C<object> base class.
Python methods which previously returned lists of tuples can now
be made to return a Python dict. For backwards compatibility, you
have to enable this by using the constructor option
S<C<guestfs.GuestFS (python_return_dict=True)>>.
The PHP bindings are now tested properly, and have had multiple fixes.
The long-deprecated Perl C<Sys::Guestfs::Lib> library has been
removed.
L<https://www.redhat.com/archives/libguestfs/2013-April/msg00001.html>
=head3 Examples
New example program showing how to enable debugging and capture
log messages.
=head3 Other
Distributors can add arbitrary extra packages to the appliance by
doing:
./configure --with-extra-packages="list of package names"
Distributors can use:
./configure --with-supermin-extra-options="..."
to add arbitrary extra options to supermin.
=head2 Security
No security issues were found in this release.
=head2 New APIs
cp-r
extlinux
feature-available
get-program
is-whole-device
part-get-gpt-type
part-set-gpt-type
rename
set-program
syslinux
C only:
guestfs_event_to_string
=head2 Internals
The febootstrap tool has now been renamed to "supermin". Libguestfs
can use either, but now prefers "supermin".
L<http://people.redhat.com/~rjones/supermin/>
libxml2 is required to build libguestfs.
The hivexregedit program (from hivex) is required to build from git.
Internal functions can no longer be used unless the caller defines
C<-DGUESTFS_PRIVATE=1>.
Enable C compiler warnings in Python, Ruby bindings.
Fail early and clearly if libvirt does not support qemu/KVM (eg. if
default libvirt connection is to Xen).
C<make print-subdirs> rule, useful for selectively running tests.
Multiple fixes to allow separated (sourcedir != builddir) builds.
Multiple fixes to Haskell bindings.
C<ln> and C<ln-f> APIs now capture C<errno> correctly.
Language binding tests use (mostly) a standard numbering scheme and
aim to test the same range of features in each language. Also the
number of launches required has been reduced so these tests should run
much more quickly.
Library code internally uses GCC C<__attribute__((cleanup))> (if
available) to simplify memory allocation.
Internal header files have been reorganized. See the comments in
C<src/guestfs-internal*.h>
Internal code shared between the library and certain tools is now
located in a static C<libutils> library.
Almost all subdirectories can now use parallel builds, although note
that the top-level directories still build in series.
Use of C<PATH_MAX> and C<NAME_MAX> has been eliminated from the code.
The Java API now requires JVM E<ge> 1.6.
Force use of C<serial-tests> with automake E<ge> 1.12.
Use of sockets in the library protocol layer is abstracted, allowing
other non-POSIX layers to be added in future (see
C<src/conn-socket.c>).
C<qemu-img info --output json> is used if available, for more secure
parsing of the output of this command.
Distros can now use C<make INSTALLDIRS=vendor install> to place Ruby
bindings in vendordir. This eliminates a non-upstream patch carried
by both Fedora and Debian.
Valgrind log files are now written to C<tmp/valgrind-I<DATE>-I<PID>.log>
C<make clean> cleans the local C<tmp/> directory.
The C API tests have been rewritten using a more flexible generator
language that allows arbitrary C code to be executing during tests.
=head2 Bugs fixed
=begin comment
./bugs-in-changelog.sh 1.20.0..
=end comment
=over 4
=item L<https://bugzilla.redhat.com/961812>
Segfault in inspect-fs.c in mountable code
=item L<https://bugzilla.redhat.com/957772>
tar-out and base64-out quoting error
=item L<https://bugzilla.redhat.com/957380>
libguestfs: error: btrfsvol:/dev/sda2/root: root device not found: only call this function with a root device previously returned by guestfs_inspect_os
=item L<https://bugzilla.redhat.com/948324>
inspection fails if libosinfo is not installed
=item L<https://bugzilla.redhat.com/928995>
file on zero-sized file now produces "empty " instead of "empty"
=item L<https://bugzilla.redhat.com/921292>
qemu: could not open disk image /tmp/.../snapshot1: Permission denied
=item L<https://bugzilla.redhat.com/921040>
"error: external command failed, see earlier error messages" message needs to change
=item L<https://bugzilla.redhat.com/920225>
libguestfs should use --output json (if supported) to safely parse the output of qemu-img command
=item L<https://bugzilla.redhat.com/916780>
feature request: guestmount --with-cleanup-pipefd
=item L<https://bugzilla.redhat.com/914934>
oom-killer kills guestfsd when tar-in a lot of data
=item L<https://bugzilla.redhat.com/914931>
FileIn commands cause segfault if appliance dies during the file copy in
=item L<https://bugzilla.redhat.com/913145>
Misc leaks in virNetClientProgramCall in libvirt 1.0.2
=item L<https://bugzilla.redhat.com/912499>
Security context on image file gets reset
=item L<https://bugzilla.redhat.com/909836>
libguestfs-test-tool --qemu segfaults
=item L<https://bugzilla.redhat.com/909624>
Unexpected non-tail recursion in recv_from_daemon results in stack overflow in very long-running API calls that send progress messages
=item L<https://bugzilla.redhat.com/908322>
virt-tar fails on non-existent directory names "error in chunked encoding at /home/rjones/d/libguestfs/tools/virt-tar line 272."
=item L<https://bugzilla.redhat.com/908321>
virt-cat fails on directory names "/dev/stdout: error in chunked encoding"
=item L<https://bugzilla.redhat.com/907554>
btrfs causes subsequent ntfs-3g filesystem to fail
=item L<https://bugzilla.redhat.com/905341>
"No such file or directory" when execute "hivex-commit"
=item L<https://bugzilla.redhat.com/903620>
btrfs_subvolume_list broken due to change in subvolume list output
=item L<https://bugzilla.redhat.com/895910>
guestmount: rename() incorrectly follows symbolic links
=item L<https://bugzilla.redhat.com/895905>
guestmount: link() incorrectly returns ENOENT, when it should be EXDEV
=item L<https://bugzilla.redhat.com/895904>
checksums-out fail to compute the checksums of all regular files in directory
=item L<https://bugzilla.redhat.com/894545>
libguestfs FTBFS on Fedora 19 because of new ruby
=item L<https://bugzilla.redhat.com/890027>
virt-sysprep: Setting hostname, domain name and pretty name on Fedora 18 correctly
=item L<https://bugzilla.redhat.com/887971>
pvcreate fails if partition contains a swap signature
=item L<https://bugzilla.redhat.com/887520>
zero_free_space: open: /sysroot//ujqqq135.rd3: Cannot allocate memory
=item L<https://bugzilla.redhat.com/886915>
libguestfs with libvirt attach-method fails with odd error if default hypervisor is Xen
=item L<https://bugzilla.redhat.com/847549>
Addng a zero-length virtio-scsi disk causes: qemu-kvm: hw/scsi-bus.c:1568: scsi_req_complete: Assertion `req->status == -1' failed.
=item L<https://bugzilla.redhat.com/811649>
libguestfs cannot open disk images which are symlinks to files that contain ':' (colon) character
=item L<https://bugzilla.redhat.com/664558>
RFE: Allow to set log callback in Ruby bindings
=back
=for comment ################################################################
=head1 RELEASE NOTES FOR LIBGUESTFS 1.20
These release notes only cover the differences from the previous
stable/dev branch split (1.18.0). For detailed changelogs, please see
the git repository, or the ChangeLog file distributed in the tarball.
=head2 New features
=head3 libvirt and sVirt (SELinux confinement)
You can I<optionally> use libvirt to launch and manage the backend
appliance by:
=over 4
=item *
setting C<LIBGUESTFS_ATTACH_METHOD=libvirt[:URI]>
=item *
using C<./configure --with-default-attach-method=libvirt[:URI]>
=item *
or calling the API method C<guestfs_set_attach_method>
=back
SVirt (SELinux confinement) is used to secure the libguestfs
appliance, if the libvirt backend is selected.
=head3 virtio-scsi, larger number of drives, hotplugging
Virtio-scsi is now used by default, if it is available. This greatly
increases the number of drives that can be added to a single
libguestfs handle (up to 255).
You can now hotplug drives (add and remove drives after launch).
Libguestfs can now handle E<gt> 25 disks, in all APIs, tools and tests.
You can label drives when adding them, then refer to them by label
(C</dev/disk/guestfs/LABEL>) instead of having to use device names
(C</dev/sda>).
=head3 new library features
POSIX Access Control Lists (ACLs) and Linux filesystem capabilities
can now be read and written through the API.
Windows Dynamic Disks are now supported. The metadata can only be
read (volumes cannot be modified or created). However the
data/filesystems in the volumes themselves can be mounted, read and
written (Matthew Booth).
Hivex (Windows Registry editing) is now directly supported through the
API, making reading or editing the Windows Registry much more
efficient.
Several libguestfs APIs were reimplemented so they no longer have any
limits on output. The reimplemented APIs are: C<guestfs_cat>,
C<guestfs_find>, C<guestfs_read_file>, C<guestfs_read_lines>,
C<guestfs_write>, C<guestfs_write_append>, C<guestfs_lstatlist>,
C<guestfs_lxattrlist>, C<guestfs_readlinklist>, C<guestfs_ls>.
=head3 virt tools
C<guestfish touch 'win:c:\new_file'> now works as expected.
C<guestfish> has a new I<--network> option, which enables the user
network in libguestfs.
You can set C<GUESTFISH_PS1> to use fancy prompts in C<guestfish>.
C<rsync>, C<ssh>, C<less> and C<lrzip> commands are now available in
virt-rescue. In addition, C<rsync> can be used through the API for
doing incremental copies.
C<virt-sparsify> uses qcow2 v3 for increased efficiency.
C<virt-sysprep> enhancements:
=over 4
=item *
generate new UUIDs for PVs and VGs
=item *
remove the local machine ID (Wanlong Gao)
=item *
remove ABRT data (Wanlong Gao)
=item *
remove puppet keys and log files (Wanlong Gao)
=item *
remove process accounting files (Wanlong Gao)
=item *
new I<--firstboot> parameter allowing firstboot scripts
for customizing guests
=item *
remove HOSTNAME field from C<ifcfg-eth*> files (Wanlong Gao)
=item *
miscellaneous improvements for SuSE (Olaf Hering)
=item *
remove man pages cache (Wanlong Gao)
=item *
remove crash data generated by kexec-tools (Wanlong Gao)
=back
C<virt-make-fs> can now create virtual floppy disks (VFDs).
C<guestmount> has a I<--pid-file> option, which can be used to avoid a
race condition between unmounting the filesystem and using the
underlying disk image.
=head3 language bindings
Full-featured Lua bindings have been added in this release
(thanks to Jerome Vuarand for many suggestions).
In Ruby, optional arguments hash is optional.
In Python, optional arguments now don't use special "sentinel"
values, so any integer can be passed as an optional argument.
Erlang bindings now come with examples and tests.
Erlang bindings now handle 64 bit integer parameters correctly.
The automated 'bindtests' now test for 64 bit cleanliness in parameter
passing. Several bugs in the bindings were found and fixed as a
result.
Better handling of blocking and non-blocking functions should make
libguestfs calls more efficient.
=head3 inspection
Windows guests with unlimited-sized Registries are now supported.
By adding the hivex API to the libguestfs API, it is much more
efficient and easier to inspect and modify the Windows Registry
in guests.
Better support for SuSE guests (Olaf Hering).
Return the architecture of installed applications (John Eckersberg).
Windows 8 is now supported.
Fedora 18 is now supported.
Inspection of ISOs/CDs/DVDs can now use the libosinfo database.
=head3 ports
Libguestfs without the appliance can be compiled on Mac OS X
(Masami HIRATA).
RHEL 5 is now explicitly supported through the 'oldlinux' branch
in upstream git.
PowerPC 64 bit is now supported. Also libguestfs has been
examined for endianness bugs and these have been fixed.
=head3 daemon
A man page for the daemon (L<guestfsd(8)>) is included.
=head2 Security
=head3 guestfish history file
The C<$HOME/.guestfish> history file is now created with 0600
permissions (instead of 0644 before) so it is no longer world
readable.
=head3 CVE-2012-2690
Old versions of both C<virt-edit> and the C<guestfish> C<edit> command
created a new file containing the changes but did not set the
permissions, etc of the new file to match the old one. The result
of this was that if you edited a security sensitive file such as
C</etc/shadow> then it would be left world-readable after the edit.
This issue was assigned CVE-2012-2690, and is fixed in libguestfs E<ge> 1.16.
For further information, see
L<https://bugzilla.redhat.com/show_bug.cgi?id=788642>
=head2 New APIs
acl-delete-def-file
acl-get-file
acl-set-file
canonical-device-name
cap-get-file
cap-set-file
create-flags
device-index
disk-has-backing-file
disk-format
disk-virtual-size
filesystem-available
fill-dir
fstrim
get-cachedir
get-libvirt-requested-credentials
get-libvirt-requested-credential-prompt
get-libvirt-requested-credential-challenge
get-libvirt-requested-credential-defresult
get-tmpdir
hivex-close
hivex-commit
hivex-node-add-child
hivex-node-children
hivex-node-delete-child
hivex-node-get-child
hivex-node-get-value
hivex-node-name
hivex-node-parent
hivex-node-set-value
hivex-node-values
hivex-open
hivex-root
hivex-value-key
hivex-value-type
hivex-value-utf8
hivex-value-value
inspect-list-applications2 (John Eckersberg)
list-ldm-volumes
list-ldm-partitions
ldmtool-create-all
ldmtool-diskgroup-disks
ldmtool-diskgroup-name
ldmtool-diskgroup-volumes
ldmtool-remove-all
ldmtool-scan
ldmtool-scan-devices
ldmtool-volume-hint
ldmtool-volume-partitions
ldmtool-volume-type
ls0
max-disks
mke2fs (Wanlong Gao)
mklost-and-found
mkswap [added label and uuid optional arguments]
mktemp (Wanlong Gao)
nr-devices
parse-environment
parse-environment-list
rm-f
rsync
rsync-in
rsync-out
set-cachedir
set-libvirt-supported-credentials
set-libvirt-requested-credential
set-tmpdir
shutdown [backported to 1.16 and 1.18]
tar-in [added compress flag]
tar-out [added compress, numericowner, excludes flags]
umount [added force and lazy optional arguments]
utsname
xfs-admin (Wanlong Gao)
xfs-growfs (Wanlong Gao)
xfs-info (Wanlong Gao)
xfs-repair (Wanlong Gao)
In the C API only:
guestfs_push_error_handler
guestfs_pop_error_handler
=head2 Internals
qemu E<ge> 1.1 is required (E<ge> 1.2 preferred).
febootstrap E<ge> 3.20 is required.
libvirt is optional, but if you want to use the new libvirt
backend for launching the appliance then libvirt E<ge> 0.10.2 would
be required.
Coverity has been run over the complete codebase, and many
issues fixed (thanks Ondrej Vasik, Kamil Dudka).
Functions which previously had no optargs can now be converted to ones
with optargs, making extending the API much more flexible. Source and
binary backwards compatibility is preserved for users of the API.
The way that libguestfs APIs and structures are represented in the
generator has changed to use an OCaml struct instead of a tuple. This
makes generator descriptions more flexible and easier to understand.
For details see commits 39d1a7db and eb185eef.
Separation of the library code into more files:
=over 4
=item *
Launch backends are now located in separate files
eg. C<src/launch-appliance.c>, C<src/launch-libvirt.c>.
=item *
Generated action code is now split over several C<src/action*.c>
files, for faster compilation.
=item *
The huge C<src/guestfs.c> file is now split into smaller logical
units.
=back
POD (documentation) is now generated using a rewritten Perl
program instead of pod2* + shell scripts.
Man pages now contain stable dates (Hilko Bengen).
Skipped tests now exit with code 77, so they appear as
C<SKIP:> in C<make check> output.
The parallel mount-local test has been rewritten in C (RHBZ#838081).
Ruby 1.8.5 is now supported (though Ruby E<ge> 1.9 is preferred).
Perl bindings can be disabled via C<./configure --disable-perl>
(Wulf C. Krueger). Note that Perl is still required in order to build
libguestfs.
Java bindings are now enabled/disabled using C<./configure --with-java>
or C<./configure --without-java> (Wulf C. Krueger).
New configure options C<./configure --enable-code-profiling> and
C<./configure --enable-code-coverage>.
Multiple fixes to use of 64 bit integers in language bindings.
The appliance backend now uses sgabios instead of vgabios
(Dan Berrange).
The C<./run> script now sets enough environment variables that you
can run OCaml, Python, Ruby, Java, GJS, Erlang, Lua programs.
C<./run --test> flag for running tests with minimal output. It also
prints the time taken to run each test.
The C<./run> script now builds up paths cumulatively, meaning that you
can use C<./run> twice, or use the libguestfs and libvirt C<./run>
scripts together.
You can extract a list of external commands required by the
daemon, making building the appliance on certain distros easier
(Olaf Hering).
The C<virt-rescue> command is now tested during C<make check>.
The generator now removes unused generated files. This helps
when going back and forth with git rebase, git bisect, etc.
Tests now run in a separate toplevel C<tmp/> directory in the source.
This allows the directory to be labelled for SELinux (sVirt), and also
makes it easier to clean up.
C<make syntax-check> now works to a greater extent, and many problems
in the main code that were found by syntax-check have been fixed
(thanks Jim Meyering).
Emacs mode (-*- foo -*-) has been added to generated files.
Progress bar output is now sent to C</dev/tty> so it doesn't end up in
the regular output of the program. virt-resize and virt-sparsify now
suppress progress bars if stdout is not a tty.
There is now a C<./configure --without-libvirt> option. This is
useful for testing that the code still compiles without libvirt.
There is now an internal mini-library for running commands. This
allows us to redirect errors from external commands into events.
Code for handling temporary directories and the appliance cache was
completely overhauled.
Code for temporarily ignoring/disabling errors now looks like this:
guestfs_push_error_handler (g, NULL, NULL);
guestfs_mkdir (g, "/foo"); /* We don't care if this fails. */
guestfs_pop_error_handler (g);
The C<tests/extra> directory has gone. The "extra tests" are now
split into separately runnable targets, such as C<make check-valgrind>.
Use C<make help> to get a summary of the targets.
The C<lpj> option is passed to the appliance kernel when using TCG.
This should improve clock stability (thanks Marcelo Tosatti,
Olaf Hering).
=head2 Bugs fixed
=begin comment
./bugs-in-changelog.sh 1.18.0..
=end comment
=over 4
=item L<https://bugzilla.redhat.com/882417>
libguestfs tools fail with odd error messages if TMPDIR is not an absolute path
=item L<https://bugzilla.redhat.com/882299>
Windows 8 guest disks can't be mounted: "The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option."
=item L<https://bugzilla.redhat.com/881953>
libguestfs: migration to /etc/hostname, /etc/vconsole.conf, /etc/locale.conf
=item L<https://bugzilla.redhat.com/880801>
virt-df with two -a options displays incorrect disk image name
=item L<https://bugzilla.redhat.com/879416>
libguestfs-test-tool pauses when you use --help option
=item L<https://bugzilla.redhat.com/876579>
mke2fs API does not apply block device naming translation to journaldevice optarg
=item L<https://bugzilla.redhat.com/860235>
SELinux policy ought to allow qemu to write to unconfined_u:object_r:user_tmp_t:s0
=item L<https://bugzilla.redhat.com/859949>
RFE: inspect-list-applications does not return the architecture of RPM packages
=item L<https://bugzilla.redhat.com/859885>
inspect-list-applications does not list all installed RPM packages with same name and different versions
=item L<https://bugzilla.redhat.com/859876>
guestfish printed paths are not canonicalized
=item L<https://bugzilla.redhat.com/859875>
Progress bar output should go to tty(?) stderr(?)
=item L<https://bugzilla.redhat.com/858696>
virt-sysprep reports Guestfs.Error("read_lines: fopen: /etc/sysconfig/network: No such file or directory") on some Fedora guests
=item L<https://bugzilla.redhat.com/858128>
libguestfs fail to list devices added by add-drive-ro-with-if twice
=item L<https://bugzilla.redhat.com/858126>
virt-inspector fail to work with some windows guests
=item L<https://bugzilla.redhat.com/853762>
virt-sparsify should use a more robust method to detect the input format
=item L<https://bugzilla.redhat.com/853393>
libvirt doesn't label console, serial sockets
=item L<https://bugzilla.redhat.com/853159>
virt-rescue in Fedora 18 is completely broken
=item L<https://bugzilla.redhat.com/852394>
libguestfs inspection limits registries to 100 MiB
=item L<https://bugzilla.redhat.com/852194>
virt-sparsify --compress fails if output is raw format
=item L<https://bugzilla.redhat.com/847881>
RFE: allow extra arguments (like --exclude) to tar-out
=item L<https://bugzilla.redhat.com/847880>
tar-out should allow (or force) --numeric-owner
=item L<https://bugzilla.redhat.com/845522>
guestfish "copy-out / localdir" command fails with "No such file or directory"
=item L<https://bugzilla.redhat.com/845488>
Long filenames on NTFS cause tar-out, copy-out etc to fail with error "Cannot open: File name too long"
=item L<https://bugzilla.redhat.com/842307>
RFE: Need help designing and implementing selinux policy for libguestfs/sVirt
=item L<https://bugzilla.redhat.com/840572>
virt-make-fs / tar-in should support vfat properly
=item L<https://bugzilla.redhat.com/840115>
guestfish touch problem - case_sensitive_path API expects the file to exist
=item L<https://bugzilla.redhat.com/836710>
Data loss when writing to qcow2-format disk files
=item L<https://bugzilla.redhat.com/834712>
lvresize, lvresize-free fail unnecessarily if you don't change the size of the LV: "New size (nn extents) matches existing size (nn extents)"
=item L<https://bugzilla.redhat.com/824716>
compress-device-out didn't support bzip2
=item L<https://bugzilla.redhat.com/824043>
guestfish unrecognized mount option gives confusing error message
=item L<https://bugzilla.redhat.com/823887>
Filenames containing Chinese characters can't be created on vfat filesystems
=item L<https://bugzilla.redhat.com/823885>
virt-make-fs cannot create vfat filesystem containing filesystems with chinese characters
=item L<https://bugzilla.redhat.com/823883>
virt-make-fs -t fat fails with an obscure error message
=item L<https://bugzilla.redhat.com/823821>
Inspection fails when /etc/HOSTNAME is empty
=item L<https://bugzilla.redhat.com/801117>
libguestfs cannot get icon for Windows 8
=item L<https://bugzilla.redhat.com/798979>
Ubuntu install CDs from oneiric onwards are not recognized: "multi-boot operating systems are not supported"
=item L<https://bugzilla.redhat.com/782167>
libguestfs doesn't recognize Windows Dynamic disks in some configurations, eg. spanned
=item L<https://bugzilla.redhat.com/713678>
Not all febootstrap messages are redirected to log callbacks
=item L<https://bugzilla.redhat.com/627675>
libguestfs inspector code cannot handle /dev/disk/by-id/* paths
=item L<https://bugzilla.redhat.com/602997>
part-get-bootable gives wrong result with an unordered part layout
=back
=for comment ################################################################
=head1 RELEASE NOTES FOR LIBGUESTFS 1.18
These release notes only cover the differences from the previous
stable/dev branch split (1.16.0). For detailed changelogs, please see
the git repository, or the ChangeLog file distributed in the tarball.
=head2 New features
=head3 virt tools
- virt-sysprep has been rewritten and expanded (thanks Wanlong Gao)
http://libguestfs.org/virt-sysprep.1.html
- virt-sparsify --zero is a new option that zeroes the named
partition or filesystem
- virt-sparsify can now safely sparsify Linux swap partitions
- virt-sparsify fixed so it cleans up after ^C
http://libguestfs.org/virt-sparsify.1.html
- a new tool 'libguestfs-make-fixed-appliance' is provided to build
fixed appliances that can be copied to other machines that don't
have febootstrap support
http://libguestfs.org/libguestfs-make-fixed-appliance.1.html
- virt-filesystems now displays the parents (containers) of MD
devices and volume groups