[PATCH] inspect: document OpenMandriva as detected distro
by Pino Toscano
Also extend the virt-inspector RNG schema to allow it.
Followup of commit a4ef6716b4119e476949c55f1bc12d81e735f0c0.
---
generator/actions_inspection.ml | 4 ++++
inspector/virt-inspector.rng | 1 +
2 files changed, 5 insertions(+)
diff --git a/generator/actions_inspection.ml b/generator/actions_inspection.ml
index 809344c8c..054bd8b75 100644
--- a/generator/actions_inspection.ml
+++ b/generator/actions_inspection.ml
@@ -246,6 +246,10 @@ NetBSD.
OpenBSD.
+=item \"openmandriva\"
+
+OpenMandriva.
+
=item \"opensuse\"
OpenSUSE.
diff --git a/inspector/virt-inspector.rng b/inspector/virt-inspector.rng
index 1e3a58af8..7807e4d7c 100644
--- a/inspector/virt-inspector.rng
+++ b/inspector/virt-inspector.rng
@@ -94,6 +94,7 @@
<value>neokylin</value>
<value>netbsd</value>
<value>openbsd</value>
+ <value>openmandriva</value>
<value>opensuse</value>
<value>oraclelinux</value>
<value>pardus</value>
--
2.24.1
4 years, 11 months
[v2v PATCH] docs: remove paragraph about VMware tools on Windows
by Pino Toscano
Starting from libguestfs/virt-v2v 1.39.12, virt-v2v attempts to
uninstall the VMware tools from Windows guests, so there is no need to
remove them manually before the conversion.
Thanks to: Ming Xie.
---
docs/virt-v2v-input-vmware.pod | 36 ----------------------------------
1 file changed, 36 deletions(-)
diff --git a/docs/virt-v2v-input-vmware.pod b/docs/virt-v2v-input-vmware.pod
index 11adf1b6..ec905376 100644
--- a/docs/virt-v2v-input-vmware.pod
+++ b/docs/virt-v2v-input-vmware.pod
@@ -107,18 +107,6 @@ If you find a folder of files called F<I<guest>.vmx>,
F<I<guest>.vmxf>, F<I<guest>.nvram> and one or more F<.vmdk> disk
images, then you can use this method.
-=head2 VMX: Remove VMware tools from Windows guests
-
-For Windows guests, you should remove VMware tools before conversion.
-Although this is not strictly necessary, and the guest will still be
-able to run, if you don't do this then the converted guest will
-complain on every boot. The tools cannot be removed after conversion
-because the uninstaller checks if it is running on VMware and refuses
-to start (which is also the reason that virt-v2v cannot remove them).
-
-This is not necessary for Linux guests, as virt-v2v is able to remove
-VMware tools.
-
=head2 VMX: Guest must be shut down
B<The guest must be shut down before conversion starts>. If you don't
@@ -320,18 +308,6 @@ Virt-v2v is able to import guests from VMware’s OVA (Open
Virtualization Appliance) files. Only OVAs exported from VMware
vSphere will work.
-=head2 OVA: Remove VMware tools from Windows guests
-
-For Windows guests, you should remove VMware tools before conversion.
-Although this is not strictly necessary, and the guest will still be
-able to run, if you don't do this then the converted guest will
-complain on every boot. The tools cannot be removed after conversion
-because the uninstaller checks if it is running on VMware and refuses
-to start (which is also the reason that virt-v2v cannot remove them).
-
-This is not necessary for Linux guests, as virt-v2v is able to remove
-VMware tools.
-
=head2 OVA: Create OVA
To create an OVA in vSphere, use the "Export OVF Template" option
@@ -384,18 +360,6 @@ Virt-v2v uses libvirt for access to vCenter, and therefore the input
mode should be I<-i libvirt>. As this is the default, you don't need
to specify it on the command line.
-=head2 vCenter: Remove VMware tools from Windows guests
-
-For Windows guests, you should remove VMware tools before conversion.
-Although this is not strictly necessary, and the guest will still be
-able to run, if you don't do this then the converted guest will
-complain on every boot. The tools cannot be removed after conversion
-because the uninstaller checks if it is running on VMware and refuses
-to start (which is also the reason that virt-v2v cannot remove them).
-
-This is not necessary for Linux guests, as virt-v2v is able to remove
-VMware tools.
-
=head2 vCenter: URI
The libvirt URI of a vCenter server looks something like this:
--
2.24.1
4 years, 11 months
[PATCH] po: reduce the list of extracted sources
by Pino Toscano
Prune from the list of sources where to extract messages various sources
with no messages:
- .pl and .pm files, as they do not contain messages: almost all the
.pl files are tests, and the only .pm file is the Perl Sys::Guestfs
module, which wraps the XS extension
- dummy.c sources; they are empty sources used to build OCaml-only
targets using automake
- gperf generated sources
- C/OCaml tests
---
Makefile.am | 6 ++++--
po/POTFILES | 23 -----------------------
po/POTFILES-ml | 11 -----------
3 files changed, 4 insertions(+), 36 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index ec342225a..25255a62d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -328,11 +328,12 @@ docs/C_SOURCE_FILES: configure.ac
po/POTFILES: configure.ac
rm -f $@ $@-t
cd $(srcdir); \
- find $(DIST_SUBDIRS) -name '*.c' -o -name '*.pl' -o -name '*.pm' | \
+ find $(DIST_SUBDIRS) -name '*.c' | \
grep -v -E '^(examples|gnulib|perl/(blib|examples)|po-docs|tests|test-data|bundled)/' | \
- grep -v -E '/((guestfs|rc)_protocol\.c)$$' | \
+ grep -v -E '/((guestfs|rc)_protocol\.c|dummy\.c)$$' | \
grep -v -E '^python/utils\.c$$' | \
grep -v -E '^perl/lib/Sys/Guestfs\.c$$' | \
+ grep -v -E '.*-(tests|gperf)\.c$$' | \
LC_ALL=C sort -u > $@-t
mv $@-t $@
@@ -341,6 +342,7 @@ po/POTFILES-ml: configure.ac
cd $(srcdir); \
find builder common/ml* customize dib get-kernel resize sparsify sysprep -name '*.ml' | \
grep -v '^builder/templates/' | \
+ grep -v -E '.*_tests\.ml$$' | \
LC_ALL=C sort > $@-t
mv $@-t $@
diff --git a/po/POTFILES b/po/POTFILES
index 64eb3f9ce..3cd1ddd47 100644
--- a/po/POTFILES
+++ b/po/POTFILES
@@ -12,23 +12,15 @@ cat/log.c
cat/ls.c
cat/tail.c
common/edit/file-edit.c
-common/errnostring/errnostring-gperf.c
common/errnostring/errnostring.c
-common/mlcustomize/dummy.c
-common/mlgettext/dummy.c
-common/mlpcre/dummy.c
common/mlpcre/pcre-c.c
common/mlprogress/progress-c.c
-common/mlstdutils/dummy.c
common/mltools/JSON_parser-c.c
-common/mltools/dummy.c
common/mltools/getopt-c.c
common/mltools/tools_utils-c.c
common/mltools/uri-c.c
common/mlutils/c_utils-c.c
-common/mlutils/dummy.c
common/mlutils/unix_utils-c.c
-common/mlvisit/dummy.c
common/mlvisit/visit-c.c
common/mlxml/xml-c.c
common/options/config.c
@@ -43,7 +35,6 @@ common/parallel/domains.c
common/parallel/estimate-max-threads.c
common/parallel/parallel.c
common/progress/progress.c
-common/qemuopts/qemuopts-tests.c
common/qemuopts/qemuopts.c
common/structs/structs-cleanups.c
common/structs/structs-print.c
@@ -54,9 +45,7 @@ common/utils/utils.c
common/visit/visit.c
common/windows/windows.c
customize/crypt-c.c
-customize/dummy.c
customize/perl_edit-c.c
-customize/test-password.pl
daemon/9p.c
daemon/acl.c
daemon/augeas.c
@@ -181,9 +170,7 @@ daemon/zerofree.c
df/df.c
df/main.c
df/output.c
-dib/dummy.c
diff/diff.c
-docs/make-internal-documentation.pl
edit/edit.c
erlang/actions-0.c
erlang/actions-1.c
@@ -196,7 +183,6 @@ erlang/dispatch.c
erlang/main.c
erlang/structs.c
fish/alloc.c
-fish/cmds-gperf.c
fish/cmds.c
fish/completion.c
fish/copy.c
@@ -246,7 +232,6 @@ fuse/guestunmount.c
fuse/test-fuse.c
fuse/test-guestmount-fd.c
fuse/test-guestunmount-fd.c
-get-kernel/dummy.c
gobject/src/optargs-add_domain.c
gobject/src/optargs-add_drive.c
gobject/src/optargs-add_drive_scratch.c
@@ -405,7 +390,6 @@ lib/tmpdirs.c
lib/tsk.c
lib/uefi.c
lib/umask.c
-lib/unit-tests.c
lib/version.c
lib/wait.c
lib/whole-file.c
@@ -415,8 +399,6 @@ make-fs/make-fs.c
ocaml/guestfs-c-actions.c
ocaml/guestfs-c-errnos.c
ocaml/guestfs-c.c
-perl/bindtests.pl
-perl/lib/Sys/Guestfs.pm
php/extension/guestfs_php.c
python/actions-0.c
python/actions-1.c
@@ -431,9 +413,6 @@ python/structs.c
rescue/escape.c
rescue/rescue.c
rescue/suggest.c
-rescue/test-virt-rescue.pl
-resize/dummy.c
-resize/test-virt-resize.pl
ruby/ext/guestfs/actions-0.c
ruby/ext/guestfs/actions-1.c
ruby/ext/guestfs/actions-2.c
@@ -443,6 +422,4 @@ ruby/ext/guestfs/actions-5.c
ruby/ext/guestfs/actions-6.c
ruby/ext/guestfs/handle.c
ruby/ext/guestfs/module.c
-sparsify/dummy.c
-sysprep/dummy.c
test-tool/test-tool.c
diff --git a/po/POTFILES-ml b/po/POTFILES-ml
index 96de6837b..a9b6efdaa 100644
--- a/po/POTFILES-ml
+++ b/po/POTFILES-ml
@@ -4,7 +4,6 @@ builder/cmdline.ml
builder/downloader.ml
builder/index.ml
builder/index_parser.ml
-builder/index_parser_tests.ml
builder/ini_reader.ml
builder/languages.ml
builder/list_entries.ml
@@ -23,37 +22,27 @@ common/mlcustomize/customize_cmdline.ml
common/mlcustomize/firstboot.ml
common/mlgettext/common_gettext.ml
common/mlpcre/PCRE.ml
-common/mlpcre/pcre_tests.ml
common/mlprogress/progress.ml
common/mlstdutils/guestfs_config.ml
common/mlstdutils/std_utils.ml
-common/mlstdutils/std_utils_tests.ml
common/mlstdutils/stringMap.ml
common/mlstdutils/stringSet.ml
common/mltools/JSON.ml
common/mltools/JSON_parser.ml
-common/mltools/JSON_parser_tests.ml
-common/mltools/JSON_tests.ml
common/mltools/URI.ml
common/mltools/checksums.ml
common/mltools/curl.ml
common/mltools/getopt.ml
-common/mltools/getopt_tests.ml
-common/mltools/machine_readable_tests.ml
common/mltools/planner.ml
common/mltools/regedit.ml
common/mltools/registry.ml
-common/mltools/tools_messages_tests.ml
common/mltools/tools_utils.ml
-common/mltools/tools_utils_tests.ml
common/mltools/urandom.ml
common/mltools/xpath_helpers.ml
common/mlutils/c_utils.ml
-common/mlutils/c_utils_unit_tests.ml
common/mlutils/unix_utils.ml
common/mlv2v/uefi.ml
common/mlvisit/visit.ml
-common/mlvisit/visit_tests.ml
common/mlxml/xml.ml
customize/append_line.ml
customize/crypt.ml
--
2.24.1
4 years, 11 months
[PATCH] docs: exclude dummy.c sources
by Pino Toscano
They are empty sources used to build OCaml-only targets using automake,
so there is no documentation to extract.
---
Makefile.am | 1 +
docs/C_SOURCE_FILES | 13 -------------
2 files changed, 1 insertion(+), 13 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index d3cf64cc1..ec342225a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -320,6 +320,7 @@ docs/C_SOURCE_FILES: configure.ac
grep -v -E '/(guestfs|rc)_protocol\.' | \
grep -v -E '.*/errnostring\.' | \
grep -v -E '.*-gperf\.' | \
+ grep -v -E '/dummy.c$$' | \
LC_ALL=C sort -u > $@-t
mv $@-t $@
diff --git a/docs/C_SOURCE_FILES b/docs/C_SOURCE_FILES
index c2d1c3465..c9fc3533e 100644
--- a/docs/C_SOURCE_FILES
+++ b/docs/C_SOURCE_FILES
@@ -12,21 +12,14 @@ cat/ls.c
cat/tail.c
common/edit/file-edit.c
common/edit/file-edit.h
-common/mlcustomize/dummy.c
-common/mlgettext/dummy.c
-common/mlpcre/dummy.c
common/mlpcre/pcre-c.c
common/mlprogress/progress-c.c
-common/mlstdutils/dummy.c
common/mltools/JSON_parser-c.c
-common/mltools/dummy.c
common/mltools/getopt-c.c
common/mltools/tools_utils-c.c
common/mltools/uri-c.c
common/mlutils/c_utils-c.c
-common/mlutils/dummy.c
common/mlutils/unix_utils-c.c
-common/mlvisit/dummy.c
common/mlvisit/visit-c.c
common/mlxml/xml-c.c
common/options/config.c
@@ -67,7 +60,6 @@ common/visit/visit.h
common/windows/windows.c
common/windows/windows.h
customize/crypt-c.c
-customize/dummy.c
customize/perl_edit-c.c
daemon/9p.c
daemon/acl.c
@@ -202,7 +194,6 @@ df/df.c
df/main.c
df/output.c
df/virt-df.h
-dib/dummy.c
diff/diff.c
edit/edit.c
erlang/actions-0.c
@@ -270,7 +261,6 @@ fuse/guestunmount.c
fuse/test-fuse.c
fuse/test-guestmount-fd.c
fuse/test-guestunmount-fd.c
-get-kernel/dummy.c
inspector/inspector.c
java/actions-0.c
java/actions-1.c
@@ -370,7 +360,6 @@ rescue/escape.c
rescue/rescue.c
rescue/rescue.h
rescue/suggest.c
-resize/dummy.c
ruby/ext/guestfs/actions-0.c
ruby/ext/guestfs/actions-1.c
ruby/ext/guestfs/actions-2.c
@@ -381,6 +370,4 @@ ruby/ext/guestfs/actions-6.c
ruby/ext/guestfs/actions.h
ruby/ext/guestfs/handle.c
ruby/ext/guestfs/module.c
-sparsify/dummy.c
-sysprep/dummy.c
test-tool/test-tool.c
--
2.24.1
4 years, 11 months
[PATCH 0/3] Various dist/build fixes
by Pino Toscano
Fix one dist issue, and various builddir!=srcdir issues, also with the
patch proposed in the Debian bug #946594.
Patch #3 applies also to the virt-v2v repository, and will be committed
there too (with references to the libguestfs commit).
Pino Toscano (3):
inspector: ship the actual test script
tests: fix srcdir references
build: fix make implicit dependencies on ml/mli files
align/test-virt-alignment-scan-docs.sh | 2 +-
builder/templates/Makefile.am | 4 +++-
builder/templates/validate.sh | 4 ++--
builder/test-docs.sh | 4 ++--
builder/test-virt-index-validate.sh | 10 +++++-----
cat/test-docs.sh | 10 +++++-----
customize/test-virt-customize-docs.sh | 2 +-
df/test-virt-df-docs.sh | 2 +-
dib/test-virt-dib-docs.sh | 2 +-
diff/test-virt-diff-docs.sh | 2 +-
edit/test-virt-edit-docs.sh | 2 +-
fish/test-docs.sh | 2 +-
format/test-virt-format-docs.sh | 2 +-
fuse/test-docs.sh | 4 ++--
get-kernel/test-virt-get-kernel-docs.sh | 2 +-
inspector/Makefile.am | 2 +-
inspector/test-virt-inspector-docs.sh | 2 +-
inspector/test-virt-inspector-luks.sh | 2 +-
inspector/test-virt-inspector.sh | 2 +-
make-fs/test-virt-make-fs-docs.sh | 2 +-
rescue/test-virt-rescue-docs.sh | 2 +-
resize/test-virt-resize-docs.sh | 2 +-
sparsify/test-virt-sparsify-docs.sh | 2 +-
subdir-rules.mk | 6 +++---
sysprep/test-virt-sysprep-docs.sh | 2 +-
test-tool/test-libguestfs-test-tool-docs.sh | 2 +-
26 files changed, 41 insertions(+), 39 deletions(-)
--
2.23.0
4 years, 11 months
[common PATCH] tests: fix srcdir references
by Pino Toscano
Make sure to properly reference to files in the source directory.
---
mltools/test-tools-messages.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mltools/test-tools-messages.sh b/mltools/test-tools-messages.sh
index 0e24d6c..73e1beb 100755
--- a/mltools/test-tools-messages.sh
+++ b/mltools/test-tools-messages.sh
@@ -25,4 +25,4 @@ set -x
$TEST_FUNCTIONS
skip_if_skipped
-$PYTHON parse_tools_messages_test.py
+$PYTHON "$srcdir/parse_tools_messages_test.py"
--
2.23.0
4 years, 11 months
[v2v PATCH 0/3] Various dist/build fixes
by Pino Toscano
Fix one dist issue, and almost all the builddir!=srcdir issues.
(For the record, only 3 tests still fail in that setup.)
Pino Toscano (3):
libvirt-ocaml: add libvirt_c.h as source
tests: fix path to sources of fake-virtio-win.iso
tests: fix srcdir references
bundled/libvirt-ocaml/Makefile.am | 1 +
test-data/fake-virtio-win/Makefile.am | 2 +-
tests/rhbz1232192.sh | 2 +-
tests/test-v2v-cdrom.sh | 4 ++--
tests/test-v2v-floppy.sh | 4 ++--
tests/test-v2v-i-ova-as-root.sh | 2 +-
tests/test-v2v-i-ova-bad-sha1.sh | 2 +-
tests/test-v2v-i-ova-bad-sha256.sh | 2 +-
tests/test-v2v-i-ova-formats.sh | 4 ++--
tests/test-v2v-i-ova-good-checksums.sh | 2 +-
tests/test-v2v-i-ova-gz.sh | 4 ++--
tests/test-v2v-i-ova-invalid-manifest1.sh | 2 +-
tests/test-v2v-i-ova-invalid-manifest2.sh | 2 +-
tests/test-v2v-i-ova-snapshots.sh | 6 +++---
tests/test-v2v-i-ova-subfolders.sh | 6 +++---
tests/test-v2v-i-ova-tar.sh | 6 +++---
tests/test-v2v-i-ova-two-disks.sh | 6 +++---
tests/test-v2v-i-ova.sh | 4 ++--
tests/test-v2v-i-vmx.sh | 2 +-
tests/test-v2v-mac.sh | 4 ++--
tests/test-v2v-networks-and-bridges.sh | 4 ++--
tests/test-v2v-o-rhv.sh | 2 +-
tests/test-v2v-o-vdsm-options.sh | 2 +-
tests/test-v2v-print-estimate.sh | 2 +-
tests/test-v2v-print-source.sh | 4 ++--
tests/test-v2v-sound.sh | 2 +-
v2v/test-v2v-python-syntax.sh | 4 ++--
27 files changed, 44 insertions(+), 43 deletions(-)
--
2.23.0
4 years, 11 months
virt-sparsify error message.
by gilles2.lebris@laposte.net
Hello,
I'm using virt-sparsify on a new server and I get an error message:
# virt-sparsify img img2
[ 0.0] Create overlay file in /tmp to protect source disk
[ 0.1] Examine source disk
virt-sparsify: error: libguestfs error: guestfs_launch failed.
This usually means the libguestfs appliance failed to start or crashed.
Here is libguestfs-test-tool output:
http://pastebin.com/3EZNxAeR
I would really appreciate any help or hint
Thanks in advance.
4 years, 11 months
(no subject)
by TEP
Installing debian-9, for using with hassio in docker. Followed steps in
this tutorial:
https://www.home-assistant.io/blog/2017/11/29/hassio-virtual-machine/
This is linux mint on a lenovo computer, unsure what you would need to
troubleshoot the following error.
Please advise how to go forward.
Sincerely
Tor
Info hardware:
lenovo yoga 2 pro, model: yb05031832
lshw
WARNING: you should run this program as super-user.
teev-ha
description: Computer
width: 64 bits
capabilities: smp vsyscall32
*-core
description: Motherboard
physical id: 0
*-memory
description: System memory
physical id: 0
size: 3868MiB
*-cpu
product: Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz
vendor: Intel Corp.
physical id: 1
bus info: cpu@0
size: 2384MHz
capacity: 2700MHz
width: 64 bits
capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8
apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss
ht tm pbe syscall nx pdpe1gb rdtscp x86-64 constant_tsc arch_perfmon pebs
bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq
dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1
sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm
abm cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi
flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid
xsaveopt dtherm ida arat pln pts md_clear flush_l1d cpufreq
*-pci
description: Host bridge
product: Haswell-ULT DRAM Controller
vendor: Intel Corporation
physical id: 100
bus info: pci@0000:00:00.0
version: 0b
width: 32 bits
clock: 33MHz
configuration: driver=hsw_uncore
resources: irq:0
*-display
description: VGA compatible controller
product: Haswell-ULT Integrated Graphics Controller
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 0b
width: 64 bits
clock: 33MHz
capabilities: vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:43 memory:b0000000-b03fffff
memory:a0000000-afffffff ioport:3000(size=64) memory:c0000-dffff
*-multimedia:0
description: Audio device
product: Haswell-ULT HD Audio Controller
vendor: Intel Corporation
physical id: 3
bus info: pci@0000:00:03.0
version: 0b
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list
configuration: driver=snd_hda_intel latency=0
resources: irq:58 memory:b0518000-b051bfff
*-generic:0
description: Signal processing controller
product: Haswell-ULT Thermal Subsystem
vendor: Intel Corporation
physical id: 4
bus info: pci@0000:00:04.0
version: 0b
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list
configuration: driver=proc_thermal latency=0
resources: irq:16 memory:b0510000-b0517fff
*-usb:0
description: USB controller
product: 8 Series USB xHCI HC
vendor: Intel Corporation
physical id: 14
bus info: pci@0000:00:14.0
version: 04
width: 64 bits
clock: 33MHz
capabilities: xhci bus_master cap_list
configuration: driver=xhci_hcd latency=0
resources: irq:41 memory:b0500000-b050ffff
*-communication UNCLAIMED
description: Communication controller
product: 8 Series HECI #0
vendor: Intel Corporation
physical id: 16
bus info: pci@0000:00:16.0
version: 04
width: 64 bits
clock: 33MHz
capabilities: cap_list
configuration: latency=0
resources: memory:b0520000-b052001f
*-multimedia:1
description: Audio device
product: 8 Series HD Audio Controller
vendor: Intel Corporation
physical id: 1b
bus info: pci@0000:00:1b.0
version: 04
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list
configuration: driver=snd_hda_intel latency=0
resources: irq:44 memory:b051c000-b051ffff
*-pci
description: PCI bridge
product: 8 Series PCI Express Root Port 1
vendor: Intel Corporation
physical id: 1c
bus info: pci@0000:00:1c.0
version: e4
width: 32 bits
clock: 33MHz
capabilities: pci normal_decode bus_master cap_list
configuration: driver=pcieport
resources: irq:40 memory:b0400000-b04fffff
*-network
description: Wireless interface
product: Wireless 7260
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:01:00.0
logical name: wlp1s0
version: 6b
serial: 5c:c5:d4:6a:74:80
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=iwlwifi
driverversion=4.15.0-72-generic firmware=17.948900127.0 ip=192.168.86.101
latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:45 memory:b0400000-b0401fff
*-usb:1
description: USB controller
product: 8 Series USB EHCI #1
vendor: Intel Corporation
physical id: 1d
bus info: pci@0000:00:1d.0
version: 04
width: 32 bits
clock: 33MHz
capabilities: ehci bus_master cap_list
configuration: driver=ehci-pci latency=0
resources: irq:23 memory:b0524000-b05243ff
*-isa
description: ISA bridge
product: 8 Series LPC Controller
vendor: Intel Corporation
physical id: 1f
bus info: pci@0000:00:1f.0
version: 04
width: 32 bits
clock: 33MHz
capabilities: isa bus_master cap_list
configuration: driver=lpc_ich latency=0
resources: irq:0
*-storage
description: SATA controller
product: 8 Series SATA Controller 1 [AHCI mode]
vendor: Intel Corporation
physical id: 1f.2
bus info: pci@0000:00:1f.2
version: 04
width: 32 bits
clock: 66MHz
capabilities: storage ahci_1.0 bus_master cap_list
configuration: driver=ahci latency=0
resources: irq:42 ioport:3088(size=8) ioport:3094(size=4)
ioport:3080(size=8) ioport:3090(size=4) ioport:3060(size=32)
memory:b0523000-b05237ff
*-serial UNCLAIMED
description: SMBus
product: 8 Series SMBus Controller
vendor: Intel Corporation
physical id: 1f.3
bus info: pci@0000:00:1f.3
version: 04
width: 64 bits
clock: 33MHz
configuration: latency=0
resources: memory:b0521000-b05210ff ioport:3040(size=32)
*-generic:1
description: Signal processing controller
product: 8 Series Thermal
vendor: Intel Corporation
physical id: 1f.6
bus info: pci@0000:00:1f.6
version: 04
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list
configuration: driver=intel_pch_thermal latency=0
resources: irq:18 memory:b0522000-b0522fff
WARNING: output may be incomplete or inaccurate, you should run this
program as super-user.
teev@teev-HA:~$
Error:
teev@teev-HA:~$ sudo virt-builder debian-9 \
> --output /var/lib/libvirt/images/hassio.img \
> --format qcow2 \
> --size 10G \
> --root-password password:test123 \
> --hostname hassio \
> --firstboot-command "dpkg-reconfigure openssh-server"
[sudo] passord for teev:
[ 1,7] Downloading: http://libguestfs.org/download/builder/debian-9.xz
[ 2,5] Planning how to build this image
[ 2,5] Uncompressing
[ 16,6] Resizing (using virt-resize) to expand the disk to 10,0G
virt-builder: error: libguestfs error: qemu-img:
/var/lib/libvirt/images/hassio.img: qemu-img exited with error status 1.
To see full error messages you may need to enable debugging.
Do:
export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1
and run the command again. For further information, read:
http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs
You can also run 'libguestfs-test-tool' and post the *complete* output
into a bug report or message to the libguestfs mailing list.
If reporting bugs, run virt-builder with debugging enabled and include the
complete output:
virt-builder -v -x [...]
teev@teev-HA:~$ libguestfs-test-tool
************************************************************
* IMPORTANT NOTICE
*
* When reporting bugs, include the COMPLETE, UNEDITED
* output below in your bug report.
*
************************************************************
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
XDG_RUNTIME_DIR=/run/user/1000
SELinux: sh: 1: getenforce: not found
guestfs_get_append: (null)
guestfs_get_autosync: 1
guestfs_get_backend: direct
guestfs_get_backend_settings: []
guestfs_get_cachedir: /var/tmp
guestfs_get_direct: 0
guestfs_get_hv: /usr/bin/qemu-system-x86_64
guestfs_get_memsize: 500
guestfs_get_network: 0
guestfs_get_path: /usr/lib/x86_64-linux-gnu/guestfs
guestfs_get_pgroup: 0
guestfs_get_program: libguestfs-test-tool
guestfs_get_recovery_proc: 1
guestfs_get_smp: 1
guestfs_get_sockdir: /run/user/1000
guestfs_get_tmpdir: /tmp
guestfs_get_trace: 0
guestfs_get_verbose: 1
host_cpu: x86_64
Launching appliance, timeout set to 600 seconds.
libguestfs: launch: program=libguestfs-test-tool
libguestfs: launch: version=1.36.13
libguestfs: launch: backend registered: unix
libguestfs: launch: backend registered: uml
libguestfs: launch: backend registered: libvirt
libguestfs: launch: backend registered: direct
libguestfs: launch: backend=direct
libguestfs: launch: tmpdir=/tmp/libguestfsVov1Hm
libguestfs: launch: umask=0022
libguestfs: launch: euid=1000
libguestfs: is_openable: /dev/kvm: Ikke tilgang
libguestfs: warning: current user is not a member of the KVM group (group
ID 130). This user cannot access /dev/kvm, so libguestfs may run very
slowly. It is recommended that you 'chmod 0666 /dev/kvm' or add the current
user to the KVM group (you might need to log out and log in again).
libguestfs: begin building supermin appliance
libguestfs: run supermin
libguestfs: command: run: /usr/bin/supermin
libguestfs: command: run: \ --build
libguestfs: command: run: \ --verbose
libguestfs: command: run: \ --if-newer
libguestfs: command: run: \ --lock /var/tmp/.guestfs-1000/lock
libguestfs: command: run: \ --copy-kernel
libguestfs: command: run: \ -f ext2
libguestfs: command: run: \ --host-cpu x86_64
libguestfs: command: run: \ /usr/lib/x86_64-linux-gnu/guestfs/supermin.d
libguestfs: command: run: \ -o /var/tmp/.guestfs-1000/appliance.d
supermin: version: 5.1.19
supermin: package handler: debian/dpkg
supermin: acquiring lock on /var/tmp/.guestfs-1000/lock
supermin: build: /usr/lib/x86_64-linux-gnu/guestfs/supermin.d
supermin: reading the supermin appliance
supermin: build: visiting
/usr/lib/x86_64-linux-gnu/guestfs/supermin.d/base.tar.gz type gzip base
image (tar)
supermin: build: visiting
/usr/lib/x86_64-linux-gnu/guestfs/supermin.d/daemon.tar.gz type gzip base
image (tar)
supermin: build: visiting
/usr/lib/x86_64-linux-gnu/guestfs/supermin.d/excludefiles type uncompressed
excludefiles
supermin: build: visiting
/usr/lib/x86_64-linux-gnu/guestfs/supermin.d/hostfiles type uncompressed
hostfiles
supermin: build: visiting
/usr/lib/x86_64-linux-gnu/guestfs/supermin.d/init.tar.gz type gzip base
image (tar)
supermin: build: visiting
/usr/lib/x86_64-linux-gnu/guestfs/supermin.d/packages type uncompressed
packages
supermin: build: visiting
/usr/lib/x86_64-linux-gnu/guestfs/supermin.d/udev-rules.tar.gz type gzip
base image (tar)
supermin: mapping package names to installed packages
supermin: resolving full list of package dependencies
supermin: build: 210 packages, including dependencies
supermin: build: 9832 files
supermin: build: 6680 files, after matching excludefiles
supermin: build: 6691 files, after adding hostfiles
supermin: build: 6688 files, after removing unreadable files
supermin: build: 6691 files, after munging
supermin: kernel: looking for kernel using environment variables ...
supermin: kernel: looking for kernels in /lib/modules/*/vmlinuz ...
supermin: kernel: looking for kernels in /boot ...
supermin: kernel: kernel version of /boot/vmlinuz-4.15.0-72-generic =
4.15.0-72-generic (from filename)
supermin: kernel: picked modules path /lib/modules/4.15.0-72-generic
supermin: kernel: kernel version of /boot/vmlinuz-4.15.0-54-generic =
4.15.0-54-generic (from content)
supermin: kernel: picked modules path /lib/modules/4.15.0-54-generic
supermin: kernel: picked vmlinuz /boot/vmlinuz-4.15.0-72-generic
supermin: kernel: kernel_version 4.15.0-72-generic
supermin: kernel: modpath /lib/modules/4.15.0-72-generic
cp: cannot open '/boot/vmlinuz-4.15.0-72-generic' for reading: Permission
denied
supermin: cp -p '/boot/vmlinuz-4.15.0-72-generic'
'/var/tmp/.guestfs-1000/appliance.d.sxjic2b4/kernel': command failed, see
earlier errors
libguestfs: error: /usr/bin/supermin exited with error status 1, see debug
messages above
libguestfs: closing guestfs handle 0x55a8c25890d0 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfsVov1Hm
teev@teev-HA:~$ ^C
teev@teev-HA:~$ export libguestfs_debug=1
teev@teev-HA:~$ export libguestfs_trace=1
teev@teev-HA:~$ sudo virt-builder debian-9 --output
/var/lib/libvirt/images/hassio.img --format qcow2 --size 10G
--root-password password:test123 --hostname hassio
--firstboot-command "dpkg-reconfigure openssh-server"
[sudo] passord for teev:
[ 1,6] Downloading: http://libguestfs.org/download/builder/debian-9.xz
[ 2,4] Planning how to build this image
[ 2,4] Uncompressing
[ 16,4] Resizing (using virt-resize) to expand the disk to 10,0G
virt-builder: error: libguestfs error: qemu-img:
/var/lib/libvirt/images/hassio.img: qemu-img exited with error status 1.
To see full error messages you may need to enable debugging.
Do:
export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1
and run the command again. For further information, read:
http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs
You can also run 'libguestfs-test-tool' and post the *complete* output
into a bug report or message to the libguestfs mailing list.
If reporting bugs, run virt-builder with debugging enabled and include the
complete output:
virt-builder -v -x [...]
teev@teev-HA:~$
4 years, 11 months