Commit Graph

8632 Commits

Author SHA1 Message Date
Richard W.M. Jones
307c83177c Update copyright dates for 2016.
Run the following command over the source:

  perl -pi.bak -e 's/(20[01][0-9])-2015/$1-2016/g' `git ls-files`
2016-01-02 21:19:51 +00:00
Richard W.M. Jones
9958dffc08 builder: Update Fedora 23 ppc64le image which was broken.
This updates commit d92758d8bb.
2015-12-19 21:30:50 +00:00
Richard W.M. Jones
d92758d8bb builder: Add Fedora 23 ppc64/ppc64le images. 2015-12-19 13:32:25 +00:00
Richard W.M. Jones
eed0e7a2e0 builder: Fix Fedora ppc64/ppc64le build scripts to use correct version. 2015-12-19 09:57:36 +00:00
Pino Toscano
d7753a8eb9 tests: add a couple of iSCSI-related test cases 2015-12-18 17:10:25 +01:00
Pino Toscano
079984a8b8 drives: allow authentication for iSCSI
Now that both the direct and libvirt backends handle authentication with
iSCSI correctly, we can allow this in the library.
2015-12-18 11:17:23 +01:00
Pino Toscano
b2598ce890 launch: direct: manually compose iscsi:// URIs
Move the creation of iscsi URIs away from make_uri, composing them
manually: this is needed because libxml assumes colons (':') to separate
user and password for the authority part, while with iscsi URIs the
separator is percentage ('%'), which would be percent-encoded by libxml.
2015-12-18 11:17:23 +01:00
Richard W.M. Jones
7ecad8d4f7 daemon: Improve debug information from command*.
Do some fake quoting so people don't get worried that we aren't
quoting the commands we run.  See:
https://www.redhat.com/archives/libguestfs/2015-December/msg00080.html
2015-12-17 11:27:04 +00:00
Richard W.M. Jones
6d90cf5eb2 daemon: Make command*f flags parameter unsigned.
It's a bitmask, so unsigned is the right choice.  eg. We can more
easily print it using %x.

This patch changes the size of the fd mask and the values of the
COMMAND_FLAG_* constants, but since these are internal definitions
that doesn't matter.
2015-12-17 11:15:14 +00:00
Richard W.M. Jones
346a8aa303 Version 1.31.30. 1.31.30 2015-12-16 13:27:16 +00:00
Richard W.M. Jones
8e5a431a59 po: Add pt_BR to list of linguas.
Commit e6f7d23782 added new po files for
pt_BR to po/ and po-docs/ (they are only very minimal).  However they
were not added to the list of linguas, so amongst other things the
files were not included in EXTRA_DIST automatically.
2015-12-16 13:27:16 +00:00
Richard W.M. Jones
cbe698b9c9 po: Fix two faults in the uk.po file.
./uk.po:1049: 'msgid' and 'msgstr' entries do not both end with '\n'
./uk.po:9638: format specifications in 'msgid' and 'msgstr' for argument 2 are not the same

This updates commit e6f7d23782.
2015-12-16 13:27:08 +00:00
Richard W.M. Jones
adfe577ee9 hacking: index.html.in is now stored in git under website/ directory. 2015-12-16 12:44:51 +00:00
Richard W.M. Jones
e44de65ec9 builder: Add CentOS 7.2 image. 2015-12-15 18:40:36 +00:00
Richard W.M. Jones
e69e9c1ece builder: website: Update comment in centos.sh script. 2015-12-15 18:20:17 +00:00
Richard W.M. Jones
43e0d25f8d fish: tests: Don't open phony fedora.img for write in parallel.
Two tests opened the phony Fedora image in parallel without the
readonly flag.  This occasionally resulted in strange errors
(especially observed in test-inspect.sh).  Add the --readonly flag to
avoid this.
2015-12-15 17:01:44 +00:00
Richard W.M. Jones
8ec4ebb952 Update release notes. 2015-12-15 16:49:30 +00:00
Richard W.M. Jones
7e8ff29710 Update gnulib to latest. 2015-12-15 16:31:50 +00:00
Richard W.M. Jones
e6f7d23782 Add latest translations pulled from Zanata. 2015-12-15 16:31:50 +00:00
Richard W.M. Jones
ddd9d479cc Update translations and send to Zanata. 2015-12-15 16:31:41 +00:00
Richard W.M. Jones
5c02ad3375 Update BUGS. 2015-12-15 16:31:34 +00:00
Pino Toscano
9c3b4f6ad8 daemon: improve internal commandrvf
- add a flag to request chroot for the process, which is done only as
  very last (before chdir) operation before exec'ing the process in the
  child: this avoids using CHROOT_IN & CHROOT_OUT around command*
  invocations, and reduces the code spent in chroot mode
- add failure checks for dup2, open, and chdir done in child, not
  proceeding to executing the process if they fail
- open /dev/null without O_CLOEXEC, so it stays available for the
  exec'ed process, and thus we don't need to provide an own fd for stdin

Followup of commit fd2f175ee7, thanks also
to the notes and hints provided by Mateusz Guzik.
2015-12-15 15:00:11 +01:00
Richard W.M. Jones
6c6c3ea675 build: Disable -Wstack-protector warning.
Fires with gcc 5.3.1 (on Fedora 23).  It's a completely useless
warning since it just tells you that a function couldn't use the stack
protector.
2015-12-14 22:38:52 +00:00
Kashyap Chamarthy
b314f6700a guestfs.pod: Update reference to libguestfs internals 2015-12-14 21:23:20 +00:00
Richard W.M. Jones
cc717138a9 customize: Capitalize the first character in --sm-credentials help text.
Prior to this commit:

$ virt-builder --help
[...]
  --sm-attach SELECTOR         Attach to a subscription-manager pool
  --sm-credentials SELECTOR    credentials for subscription-manager
  --sm-register                Register using subscription-manager

Really the generator ought to check this.
2015-12-11 15:51:21 +00:00
Pino Toscano
4be1587b33 inspect: recognize the PLD Linux distribution
Just basic identification, with name and version read from
/etc/os-release.
2015-12-10 14:06:14 +01:00
Richard W.M. Jones
545fc84775 perl: Add missing backslash in CLEANFILES rule.
This fixes commit a2edda266e.

Thanks: Jean-Christophe Manciot.
2015-12-06 16:24:32 +00:00
Richard W.M. Jones
f48361ed04 Version 1.31.29. 1.31.29 2015-12-05 23:45:07 +00:00
Richard W.M. Jones
0339b3d7a5 builder: Add Fedora 23 i686 image (RHBZ#1288733).
This includes the DNF fix, see
commit 59ea51d358.
2015-12-05 23:41:25 +00:00
Pino Toscano
a090a48f44 builder: create temporary images in the cachedir (RHBZ#1288201)
Temporary images can be quite big, more than the space available in
$TMPDIR when it's on a tmpfs; hence, place them in our cachedir
instead.
2015-12-04 11:06:35 +01:00
Richard W.M. Jones
5c7c4666e4 resize: Add a regression test for RHBZ#1285847. 2015-12-02 16:18:14 +00:00
Richard W.M. Jones
b3bc670c71 resize: Work around regression in sfdisk (RHBZ#1285847).
'sfdisk --part-type' used to merely set the MBR ID byte in the
partition.  However since sfdisk was rewritten, it now "helpfully"
corrupts the first sector of the partition if you change the type byte
from an ordinary partition to an extended partition.

So we need to change the order in which we sets the partition type
byte, to do it before copying the partition content.

This fixes a major regression in the way that virt-resize handles any
guest with logical partitions (specifically Ubuntu guests).
2015-12-02 16:18:14 +00:00
Richard W.M. Jones
8eb9ad0fb2 POTFILES: Escape dot in regular expression. 2015-12-02 16:18:14 +00:00
Richard W.M. Jones
59ea51d358 builder: Rebuild Fedora 23 image with new DNF (RHBZ#1280029, RHBZ#1278382).
We also need to add a small hack to the build script to ensure the
latest dnf is really included.
2015-12-01 13:03:31 +00:00
Richard W.M. Jones
4085acc67f builder: pxzcat: If write fails, display correct error message.
If uncompressing a template to a filesystem which is nearly full,
virt-builder displays an error which points to the wrong (source) file:

$ virt-builder fedora-22
[   1.2] Downloading: http://libguestfs.org/download/builder/fedora-22.xz
[   1.7] Planning how to build this image
[   1.7] Uncompressing
/home/rjones/.cache/virt-builder/fedora-22.x86_64.1: No space left on device
/home/rjones/.cache/virt-builder/fedora-22.x86_64.1: No space left on device
/home/rjones/.cache/virt-builder/fedora-22.x86_64.1: No space left on device
/home/rjones/.cache/virt-builder/fedora-22.x86_64.1: No space left on device

(The error message is usually printed once by each thread, so it is
printed several times.)

Change the error message to point to the output file, which might be a
temporary or the final file depending on the build plan:

$ virt-builder fedora-22
[   1.1] Downloading: http://libguestfs.org/download/builder/fedora-22.xz
[   1.6] Planning how to build this image
[   1.6] Uncompressing
fedora-22.img: No space left on device
fedora-22.img: No space left on device
fedora-22.img: No space left on device
fedora-22.img: No space left on device
2015-11-27 09:08:07 +00:00
Richard W.M. Jones
8120c6c903 Version 1.31.28. 1.31.28 2015-11-24 22:59:36 +00:00
Richard W.M. Jones
2ee2003d56 daemon: Allow --channel fd:N
In this case, the daemon has been passed an open file descriptor which
it uses directly for the channel.
2015-11-24 19:13:39 +00:00
Richard W.M. Jones
49ad09bae3 launch: direct: aarch64: Add gic-version=host to -M option.
On ARM machines with vGICv3, we need to use the extra -M
parameter gic-version=3 (or gic-version=2 for the old vGIC).

qemu can detect this feature for us if we pass gic-version=host,
so add that to the -M option.  Unfortunately we cannot detect if
qemu itself supports this parameter, but this change only affects
aarch64.

Thanks: Wei Huang
2015-11-24 18:39:52 +00:00
Richard W.M. Jones
6e15468337 builder: rhel: Fix path in rhel-aarch64.sh. 2015-11-24 15:41:56 +00:00
Pino Toscano
51362c9638 fuse: fix return value of guestunmount for unmounted paths
Exit with 3 as return value when fusermount fails, because the specified
mount point is not considered mounted for the user.  This is in line
with what the guestunmount documentation says.

Adapt the test-guestunmount-fd test to the updated return value.

Thanks to: Maxim Perevedentsev.
2015-11-24 16:28:06 +01:00
Richard W.M. Jones
e49680bdd6 fish: ps_restore is only used when HAVE_LIBREADLINE is defined.
Thanks: Keresztes Péter-Zoltán
2015-11-24 11:14:37 +00:00
Pino Toscano
fd2f175ee7 daemon: always provide stdin when running chroot commands (RHBZ#1280029)
When running commands in the mounted guest (using the "command" API, and
APIs based on it), provide the /dev/null from the appliance as open fd
for stdin.  Commands usually assume stdin is open if they didn't close
it explicitly, so this should avoid crashes or misbehavings due to that.
2015-11-20 14:55:46 +01:00
Pino Toscano
0799ac4bf4 build: disable -Winline
Older GCC versions (e.g. < 4.9) may complain about inline functions that
cannot be inlined (growing the generated code). It is not really a
problem for us, so just suppress again the warning.

Followup of commit c37c554fc5.
2015-11-20 14:54:20 +01:00
Richard W.M. Jones
37e145140b v2v: Add full stop after multi-line error message. 2015-11-20 10:27:53 +00:00
Richard W.M. Jones
6faa0bb331 v2v: Clean up the documentation for virt-v2v-copy-to-local.
Don't duplicate the instructions in two different man pages.
Put the conversion steps into virt-v2v(1) only.

This updates commit 87adc30163.
2015-11-20 09:53:35 +00:00
Richard W.M. Jones
0721b8d7f3 v2v: Fix valgrind of virt-v2v-copy-to-local.
This fixes commit 87adc30163.
2015-11-20 08:22:01 +00:00
Richard W.M. Jones
b193908514 build: Add virt-v2v-copy-to-local to installcheck.
This updates commit 87adc30163.
2015-11-19 22:53:18 +00:00
Richard W.M. Jones
9fbb956b14 Version 1.31.27. 1.31.27 2015-11-19 22:51:17 +00:00
Richard W.M. Jones
87adc30163 v2v: Add a new tool virt-v2v-copy-to-local.
This allows certain guests which virt-v2v cannot access to be copied
off the remote hypervisor and converted.  Essentially this just
automates the process of copying the guest's disks and adjusting the
libvirt XML.

This also adds a test of the new tool.
2015-11-19 21:51:42 +00:00
Richard W.M. Jones
05a80e6088 v2v: xml: Add a binding for XmlUnsetProp. 2015-11-19 19:17:41 +00:00