Commit Graph

7077 Commits

Author SHA1 Message Date
Richard W.M. Jones
334dee64a2 FAQ: Repeat advice to use ./run.
The two adjacent sections can be read separately, and the second
section doesn't mention not using make install / using ./run, so
repeat it a second time.
2014-09-09 20:27:33 +01:00
Richard W.M. Jones
163eb3b7a1 resize: Support for expanding XFS filesystems. 2014-09-09 17:06:39 +01:00
Richard W.M. Jones
aebe00e5c6 Version 1.27.41. 1.27.41 2014-09-09 16:02:44 +01:00
Richard W.M. Jones
a2107981a6 daemon: Run 'udevadm settle' with debugging and warn if the command fails. 2014-09-09 15:48:41 +01:00
Richard W.M. Jones
6b379ab598 Version 1.27.40. 1.27.40 2014-09-09 15:42:05 +01:00
Richard W.M. Jones
59136518f1 v2v: Calculate dracut/mkinitrd kernel version correctly (RHBZ#1138182).
Thanks: Tingting Zheng.
2014-09-09 15:23:25 +01:00
Pino Toscano
e89ab6dde4 tests: sysprep: slightly improve output
Add minor spacing changes, and report the image being sysprep'ed, so it
is easier to spot which image caused some warning message.
2014-09-09 15:10:33 +02:00
Richard W.M. Jones
be1c696500 v2v: Check if there is sufficient free space for conversion (RHBZ#1139543).
Before trying to perform the conversion, estimate if there is
sufficient free space on the guest filesystem(s) for the conversion to
be successful.

If not, you will see an error similar to this one:

[   6.0] Checking for sufficient free disk space in the guest
virt-v2v: error: not enough free space for conversion on filesystem '/'.
4354048 bytes free < 20000000 bytes needed
2014-09-09 10:46:55 +01:00
Richard W.M. Jones
4fc333d0ef p2v: Use matchbox (window manager) in the virt-p2v ISO.
virt-p2v can run without a window manager.  However it then sits in
the top left corner of the screen.  Add a lightweight window manager
to the ISO so that position and geometry hints work.
2014-09-08 13:13:01 +01:00
Richard W.M. Jones
e52ec0a3df p2v: Whitespace change in options list. 2014-09-08 11:07:03 +01:00
Richard W.M. Jones
a12745a481 Version 1.27.39. 1.27.39 2014-09-06 20:51:55 +01:00
Richard W.M. Jones
0866d22381 p2v: Add scripts to make disk or kickstart-based P2V ISO.
Two scripts are added, replacing the make targets from the
previous commit:

virt-p2v-make-disk: Builds a virt-p2v disk or USB key using
virt-builder.

virt-p2v-make-kickstart: Builds a kickstart file (only) which can be
fed to livecd-creator or similar tools on Red Hat-derived distros.

Kickstart generation is slightly different: Instead of requiring the
downstream 'libguestfs-pvhelper' package, the kickstart now embeds the
virt-p2v binary(!) making it self-contained and downstream packaging
simpler.

In addition there are documentation changes.
2014-09-06 20:51:54 +01:00
Richard W.M. Jones
8e6478dc7d p2v: Remove p2v-iso directory.
As part of reworking the scripts that are used to build the P2V ISO,
first remove the separate p2v-iso directory.  Similar scripts and
documentation will be introduced back into the p2v/ directory in
following commits.
2014-09-06 19:50:38 +01:00
Richard W.M. Jones
e1ee037096 p2v: Temporarily remove Configure Network button.
We will ship 1.28 without the capability of configuring the network
(ie. DHCP will always be used).
2014-09-06 19:50:38 +01:00
Richard W.M. Jones
a743f57cb8 p2v: Ensure the current version of virt-p2v is always displayed.
This will help with debugging customer problems.
2014-09-06 19:50:37 +01:00
Richard W.M. Jones
d7edde6b6d p2v: Success message should have info logo, not error logo. 2014-09-06 13:49:42 +01:00
Richard W.M. Jones
d82cf08ce1 daemon: Check return value of end_stringsbuf.
Found by Coverity.
2014-09-05 20:05:40 +01:00
Richard W.M. Jones
255ec57875 Version 1.27.38. 1.27.38 2014-09-05 15:24:38 +01:00
Richard W.M. Jones
d85c38155a appliance: Add guestfs_shadow.aug to EXTRA_DIST.
Fixes commit 61917136f5.
2014-09-05 15:19:07 +01:00
Pino Toscano
553677398b customize: use augeas to change passwords
Make use of augeas to load and edit /etc/shadow, now that we have
(either from upstream or by ourselves) a lens handling it.
2014-09-05 15:57:56 +02:00
Pino Toscano
a0cf4b3407 sysprep: remove comment and notes about /etc/shadow lens
We are either using the upstream lens, or our copy of it, to handle
/etc/shadow, so now removing entries from it works.
2014-09-05 15:57:56 +02:00
Pino Toscano
61917136f5 appliance: daemon: import and use upstream shadow lens
Import the upstream lens for the shadow file, just with a different
identifier and not matching /etc/shadow by default. Instead, apply a
transformation to have it match /etc/shadow only if the version of
augeas is at least 1.2.1 [1].

[1] While the last upstream version is 1.2.0, all the development seems
to happen in master, so whatever the next version is going to be
numbered (e.g. 1.2.1 or 1.3.0), the check will be fine anyway.
2014-09-05 15:57:56 +02:00
Pino Toscano
d01fbe8666 daemon: add a way to check for the version of augeas
Query augeas for its version when required, i.e. only once when using
the new augeas_is_version function.
2014-09-05 15:57:56 +02:00
Richard W.M. Jones
54e32eb8e2 v2v: -i libvirt, -i libvirtxml: Print libvirt XML when debugging. 2014-09-05 14:44:48 +01:00
Richard W.M. Jones
35d49cd9de v2v: When locating initramfs, ignore kdump initramfs images (RHBZ#1138184).
Thanks: Tingting Zheng.
2014-09-05 14:13:34 +01:00
Richard W.M. Jones
096c05a750 v2v: -i libvirt: Check the domain is not running (RHBZ#1138586).
It will print an error like this:

  virt-v2v: error: internal error: invalid argument: libvirt domain 'windows'
  is running, it must be shut down in order to perform virt-v2v conversion

This only works for libvirt domains, and is explicitly disabled for
test:/// URIs since these domains are always "running", but we use
these URIs for testing.
2014-09-05 13:44:41 +01:00
Pino Toscano
de93b9060d daemon: make aug_close cleanup available for all
Just code motion, no behaviour changes.
2014-09-05 11:30:19 +02:00
Pino Toscano
a935db30e5 v2v: R_OK is in Unix module 2014-09-05 11:30:18 +02:00
Richard W.M. Jones
922da70651 v2v: -i disk: Add a clearer error message if the disk doesn't exist or is not readable. 2014-09-05 09:54:32 +01:00
Richard W.M. Jones
d12f1ee99c v2v: -i disk: Don't fail if filename has no extension.
Unhelpfully, Filename.chop_extension throws an exception if the
filename has no extension (instead of just returning the filename).
Therefore the -i disk option would fail if you passed any filename
that didn't have an extension.
2014-09-05 09:49:39 +01:00
Richard W.M. Jones
54995514cb Update gnulib to latest. 2014-09-04 16:14:35 +01:00
Pino Toscano
0fc7cbe99b v2v: skip test-v2v-i-ova.sh if rhsrvany.exe is not installed 2014-09-04 17:09:13 +02:00
Richard W.M. Jones
03c9834cf3 Version 1.27.37. 1.27.37 2014-09-04 14:58:04 +01:00
Richard W.M. Jones
c3b3f68397 v2v: Add test OVF file to EXTRA_DIST.
This fixes commit 90b1e9845f.
2014-09-04 14:57:35 +01:00
Pino Toscano
ba65af3435 customize: fix locking accounts with passwords
When setting the password for a locked account, make sure to still write
the password after the "!!" marker, otherwise the account will have no
password.
2014-09-04 15:31:02 +02:00
Richard W.M. Jones
5edb78d1ae v2v: docs: Clarify how ESX & Xen imports happen through libvirt. 2014-09-04 12:55:40 +01:00
Richard W.M. Jones
f243418d23 v2v: Add support for access to remote RHEL 5 Xen hosts over ssh. 2014-09-04 12:55:35 +01:00
Richard W.M. Jones
0c295c8e23 v2v: -i libvirtxml: Detect disk format using any <driver type=...> field.
Previously we only looked for <driver name=qemu type=...>.  However
for Xen imports, the name field could be name=tap (or other values in
fact).  Since there can only be one <driver/> element under <disk/>,
look for any <driver type=...> in order to get the disk format.

A further complication for Xen is that type=aio means "raw" (for
obscure historical reasons), so map that.

Thanks: Dan Berrangé.
2014-09-04 12:39:38 +01:00
Richard W.M. Jones
27a5ef9131 v2v: Move json-generating code into separate module.
Just code motion so we can reuse the same code for making
`json:' remote SSH URLs.
2014-09-04 12:09:02 +01:00
Richard W.M. Jones
d5662fe035 -i ova: Tidy up the description in the manual page.
This updates commit 90b1e9845f.
2014-09-04 11:19:24 +01:00
Shahar Havivi
90b1e9845f v2v: adding input -i ova
Adding ability for v2v to get Vmware ova file as an input.

Signed-off-by: Shahar Havivi <shaharh@redhat.com>
2014-09-04 09:59:14 +01:00
Richard W.M. Jones
44ca9d563a launch: libvirt / p2v: Fix empty_element macro.
The empty_element macro was not safe when used in a "naked" if
statement such as:

  if (config->flags & FLAG_ACPI) empty_element ("acpi");

Fix the macro so it uses do { ... } while (0) to make it safe here.
2014-09-03 14:01:20 +01:00
Richard W.M. Jones
5791197642 v2v: Don't hard-code list of -i and -o options in help output.
We can now get it from Modules_list.
2014-09-03 12:37:40 +01:00
Richard W.M. Jones
82b7385292 v2v: Update TODO. 2014-09-03 12:37:40 +01:00
Richard W.M. Jones
941ebaa5e4 mllib: error: Clearer message about how to enable debugging. 2014-09-03 12:37:40 +01:00
Richard W.M. Jones
711c32b0d9 mllib: Wrap errors at column 76 instead of column 72.
Allows for slightly wider, better looking error messages.
2014-09-03 12:37:40 +01:00
Richard W.M. Jones
bb362f6878 OCaml virt-* tools: Handle pretty printing of exceptions through a common library function. 2014-09-03 12:37:39 +01:00
Pino Toscano
e52742e6d3 sysprep: user-account: remove the correct home
Query using augeas for the home directory of an user, instead of
hardcoding /home/<username>.
2014-09-03 11:13:54 +02:00
Richard W.M. Jones
ee5470d083 v2v: Clarify documentation for -o local. 2014-09-02 23:40:28 +01:00
Richard W.M. Jones
11b1e2862b v2v: Update TODO. 2014-09-02 22:40:13 +01:00