[PATCH virt-v2v] convert: If listing RPM applications fails, rebuild DB and retry
by Richard W.M. Jones
In libguestfs we didn't bother to check the return values from any
librpm calls. In some cases where possibly the RPM database is
faulty, this caused us to return a zero-length list of installed
applications (but no error indication). Libguestfs has subsequently
been fixed so now it returns an error if the RPM database is corrupt.
This commit changes virt-v2v behaviour so that if either
guestfs_inspect_list_applications2 returns a zero-length list (ie. old
libguestfs) or it throws an error (new libguestfs) then we attempt to
rebuild the RPM database and retry the operation. Rebuilding the
database can recover from some but not all RPM DB corruption.
See-also: https://bugzilla.redhat.com/show_bug.cgi?id=2089623#c12
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2089623
Reported-by: Xiaodai Wang
Reported-by: Ming Xie
---
convert/inspect_source.ml | 26 ++++++++++++++++++++++++--
1 file changed, 24 insertions(+), 2 deletions(-)
diff --git a/convert/inspect_source.ml b/convert/inspect_source.ml
index 1736009629..16058de644 100644
--- a/convert/inspect_source.ml
+++ b/convert/inspect_source.ml
@@ -34,6 +34,7 @@ let rec inspect_source root_choice g =
reject_if_not_installed_image g root;
let typ = g#inspect_get_type root in
+ let package_format = g#inspect_get_package_format root in
(* Mount up the filesystems. *)
let mps = g#inspect_get_mountpoints root in
@@ -71,7 +72,7 @@ let rec inspect_source root_choice g =
) mps;
(* Get list of applications/packages installed. *)
- let apps = g#inspect_list_applications2 root in
+ let apps = list_applications g root package_format in
let apps = Array.to_list apps in
(* A map of app2_name -> application2, for easier lookups. Note
@@ -106,7 +107,7 @@ let rec inspect_source root_choice g =
i_arch = g#inspect_get_arch root;
i_major_version = g#inspect_get_major_version root;
i_minor_version = g#inspect_get_minor_version root;
- i_package_format = g#inspect_get_package_format root;
+ i_package_format = package_format;
i_package_management = g#inspect_get_package_management root;
i_product_name = g#inspect_get_product_name root;
i_product_variant = g#inspect_get_product_variant root;
@@ -186,6 +187,27 @@ and reject_if_not_installed_image g root =
if fmt <> "installed" then
error (f_"libguestfs thinks this is not an installed operating system (it might be, for example, an installer disk or live CD). If this is wrong, it is probably a bug in libguestfs. root=%s fmt=%s") root fmt
+(* Wrapper around g#inspect_list_applications2 which, for RPM
+ * guests, on failure tries to rebuild the RPM database before
+ * repeating the operation.
+ *)
+and list_applications g root = function
+ | "rpm" ->
+ (* RPM guest. *)
+ (try
+ let apps = g#inspect_list_applications2 root in
+ if apps = [||] then raise (G.Error "no applications returned");
+ apps
+ with G.Error msg ->
+ debug "%s" msg;
+ debug "rebuilding RPM database and retrying ...";
+ ignore (g#sh "rpmdb --rebuilddb");
+ g#inspect_list_applications2 root
+ )
+ | _ ->
+ (* Non-RPM guest, just do it. *)
+ g#inspect_list_applications2 root
+
(* See if this guest could use UEFI to boot. It should use GPT and
* it should have an EFI System Partition (ESP).
*
--
2.35.1
2 years, 7 months
[PATCH libguestfs] daemon: rpm: Check return values from librpm calls
by Richard W.M. Jones
We previously didn't bother to check the return values from any librpm
calls. In some cases where possibly the RPM database is faulty, this
caused us to return a zero-length list of installed applications (but
no error indication).
One way to reproduce this is given below. Note this reproducer will
only work when run on a RHEL 8 host (or more specifically, with
rpm <= 4.16):
$ virt-builder fedora-28
$ guestfish -a fedora-28.img -i rm /var/lib/rpm/Packages
$ guestfish --ro -a fedora-28.img -i inspect-list-applications /dev/sda4 -vx
...
chroot: /sysroot: running 'librpm'
error: cannot open Packages index using db5 - Read-only file system (30)
error: cannot open Packages database in
error: cannot open Packages index using db5 - Read-only file system (30)
error: cannot open Packages database in
librpm returned 0 installed packages
...
With this commit we get an error instead:
...
chroot: /sysroot: running 'librpm'
error: cannot open Packages index using db5 - Read-only file system (30)
error: cannot open Packages database in
ocaml_exn: 'internal_list_rpm_applications' raised 'Failure' exception
guestfsd: error: rpmtsInitIterator
guestfsd: => internal_list_rpm_applications (0x1fe) took 0.01 secs
libguestfs: trace: internal_list_rpm_applications = NULL (error)
libguestfs: error: internal_list_rpm_applications: rpmtsInitIterator
libguestfs: trace: inspect_list_applications2 = NULL (error)
libguestfs: trace: inspect_list_applications = NULL (error)
...
Not in this case, but in some cases of corrupt RPM databases it is
possible to recover them by running "rpmdb --rebuilddb" as a guest
command (ie. with guestfs_sh).
See-also: https://bugzilla.redhat.com/show_bug.cgi?id=2089623#c12
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2089623
Fixes: commit c9ee831affed55abe0f928134cbbd2ed83b2f510
Reported-by: Xiaodai Wang
Reported-by: Ming Xie
---
daemon/rpm-c.c | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/daemon/rpm-c.c b/daemon/rpm-c.c
index 74d325a17b..2cb50a62d2 100644
--- a/daemon/rpm-c.c
+++ b/daemon/rpm-c.c
@@ -24,6 +24,7 @@
#include <inttypes.h>
#include <string.h>
#include <unistd.h>
+#include <errno.h>
#include <caml/alloc.h>
#include <caml/fail.h>
@@ -79,7 +80,14 @@ value
guestfs_int_daemon_rpm_init (value unitv)
{
CAMLparam1 (unitv);
- rpmReadConfigFiles (NULL, NULL);
+
+ /* Nothing in actual RPM C code bothers to check if this call
+ * succeeds, so using that as an example, just print a debug message
+ * if it failed, but continue. (The librpm Python bindings do check)
+ */
+ if (rpmReadConfigFiles (NULL, NULL) == -1)
+ fprintf (stderr, "rpmReadConfigFiles: failed, errno=%d\n", errno);
+
CAMLreturn (Val_unit);
}
@@ -92,6 +100,8 @@ guestfs_int_daemon_rpm_start_iterator (value unitv)
CAMLparam1 (unitv);
ts = rpmtsCreate ();
+ if (ts == NULL)
+ caml_failwith ("rpmtsCreate");
#ifdef RPMVSF_MASK_NOSIGNATURES
/* Disable signature checking (RHBZ#2064182). */
@@ -99,6 +109,14 @@ guestfs_int_daemon_rpm_start_iterator (value unitv)
#endif
iter = rpmtsInitIterator (ts, RPMDBI_PACKAGES, NULL, 0);
+ /* This could return NULL in theory if there are no packages, but
+ * that could not happen in a real guest. However it also returns
+ * NULL when unable to open the database (RHBZ#2089623) which is
+ * something we do need to detect.
+ */
+ if (iter == NULL)
+ caml_failwith ("rpmtsInitIterator");
+
CAMLreturn (Val_unit);
}
--
2.35.1
2 years, 7 months
nbdkit blocksize filter, read-modify-write, and concurrency
by Nikolaus Rath
Hi,
How does the blocksize filter take into account writes that end-up overlapping due to read-modify-write cycles?
Specifically, suppose there are two non-overlapping writes handled by two different threads, that, due to blocksize requirements, overlap when expanded. I think there is a risk that one thread may partially undo the work of the other here.
Looking at the code, it seems that writes of unaligned heads and tails are protected with a global lock.,
but writes of aligned data can occur concurrently.
However, does this not miss the case where there is one unaligned write that overlaps with an aligned one?
For example, with blocksize 10, we could have:
Thread 1: receives write request for offset=0, size=10
Thread 2: receives write request for offset=4, size=16
Thread 1: acquires lock, reads bytes 0-4
Thread 2: does aligned write (no locking needed), writes bytes 0-10
Thread 1: writes bytes 0-10, overwriting data from Thread 2
Best,
-Nikolaus
--
GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F
»Time flies like an arrow, fruit flies like a Banana.«
2 years, 7 months
[libguestfs-common PATCH] mlcustomize: refresh generated files
by Laszlo Ersek
Refresh the generated mlcustomize files after libguestfs patch
'generator/customize: reintroduce "--selinux-relabel" as a compat option'.
Fixes: 3420d5f14f6d0a713a40d1c2ac56677eba3c5ac8
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2089748
Signed-off-by: Laszlo Ersek <lersek(a)redhat.com>
---
mlcustomize/customize_cmdline.mli | 2 ++
mlcustomize/customize_cmdline.ml | 10 ++++++++++
mlcustomize/customize-options.pod | 4 ++++
mlcustomize/customize-synopsis.pod | 2 +-
4 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/mlcustomize/customize_cmdline.mli b/mlcustomize/customize_cmdline.mli
index 7ee882a6499b..7d14e782887b 100644
--- a/mlcustomize/customize_cmdline.mli
+++ b/mlcustomize/customize_cmdline.mli
@@ -103,6 +103,8 @@ and flags = {
(* --password-crypto md5|sha256|sha512 *)
no_selinux_relabel : bool;
(* --no-selinux-relabel *)
+ selinux_relabel_ignored : bool;
+ (* --selinux-relabel *)
sm_credentials : Subscription_manager.sm_credentials option;
(* --sm-credentials SELECTOR *)
}
diff --git a/mlcustomize/customize_cmdline.ml b/mlcustomize/customize_cmdline.ml
index 5d404e84490a..a17bed40e2fd 100644
--- a/mlcustomize/customize_cmdline.ml
+++ b/mlcustomize/customize_cmdline.ml
@@ -111,6 +111,8 @@ and flags = {
(* --password-crypto md5|sha256|sha512 *)
no_selinux_relabel : bool;
(* --no-selinux-relabel *)
+ selinux_relabel_ignored : bool;
+ (* --selinux-relabel *)
sm_credentials : Subscription_manager.sm_credentials option;
(* --sm-credentials SELECTOR *)
}
@@ -122,6 +124,7 @@ let rec argspec () =
let scrub_logfile = ref false in
let password_crypto = ref None in
let no_selinux_relabel = ref false in
+ let selinux_relabel_ignored = ref false in
let sm_credentials = ref None in
let rec get_ops () = {
@@ -132,6 +135,7 @@ let rec argspec () =
scrub_logfile = !scrub_logfile;
password_crypto = !password_crypto;
no_selinux_relabel = !no_selinux_relabel;
+ selinux_relabel_ignored = !selinux_relabel_ignored;
sm_credentials = !sm_credentials;
}
in
@@ -464,6 +468,12 @@ let rec argspec () =
s_"Do not relabel files with correct SELinux labels"
),
None, "Do not attempt to correct the SELinux labels of files in the guest.\n\nIn such guests that support SELinux, customization automatically\nrelabels files so that they have the correct SELinux label. (The\nrelabeling is performed immediately, but if the operation fails,\ncustomization will instead touch F</.autorelabel> on the image to\nschedule a relabel operation for the next time the image boots.) This\noption disables the automatic relabeling.\n\nThe option is a no-op for guests that do not support SELinux.";
+ (
+ [ L"selinux-relabel" ],
+ Getopt.Set selinux_relabel_ignored,
+ s_"Compatibility option doing nothing"
+ ),
+ None, "This is a compatibility option that does nothing.";
(
[ L"sm-credentials" ],
Getopt.String (
diff --git a/mlcustomize/customize-options.pod b/mlcustomize/customize-options.pod
index a83c80a567d0..8aafacde669d 100644
--- a/mlcustomize/customize-options.pod
+++ b/mlcustomize/customize-options.pod
@@ -310,6 +310,10 @@ It cannot delete directories, only regular files.
=back
+=item B<--selinux-relabel>
+
+This is a compatibility option that does nothing.
+
=item B<--sm-attach> SELECTOR
Attach to a pool using C<subscription-manager>.
diff --git a/mlcustomize/customize-synopsis.pod b/mlcustomize/customize-synopsis.pod
index 252085380a99..9e2c4b2bc990 100644
--- a/mlcustomize/customize-synopsis.pod
+++ b/mlcustomize/customize-synopsis.pod
@@ -13,4 +13,4 @@
[--uninstall PKG,PKG..] [--update] [--upload FILE:DEST]
[--write FILE:CONTENT] [--no-logfile]
[--password-crypto md5|sha256|sha512] [--no-selinux-relabel]
- [--sm-credentials SELECTOR]
+ [--selinux-relabel] [--sm-credentials SELECTOR]
--
2.19.1.3.g30247aa5d201
2 years, 7 months
[libguestfs PATCH] generator/customize: reintroduce "--selinux-relabel" as a compat option
by Laszlo Ersek
Removing "--selinux-relabel" in commit 2f6a27f1077d ("generator/customize:
invert SELinux relabeling default", 2022-05-11) breaks existing scripts
that invoke virt-customize and/or virt-sysprep with that option. Restore
the option, with no functionality tied to it.
Fixes: 2f6a27f1077d32d1ab526427052fc88e188356f7
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2089748
Signed-off-by: Laszlo Ersek <lersek(a)redhat.com>
---
generator/customize.ml | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/generator/customize.ml b/generator/customize.ml
index 9634dad85a64..5abaf206f6fd 100644
--- a/generator/customize.ml
+++ b/generator/customize.ml
@@ -581,6 +581,13 @@ option disables the automatic relabeling.
The option is a no-op for guests that do not support SELinux.";
};
+ { flag_name = "selinux-relabel";
+ flag_type = FlagBool false;
+ flag_ml_var = "selinux_relabel_ignored";
+ flag_shortdesc = "Compatibility option doing nothing";
+ flag_pod_longdesc = "This is a compatibility option that does nothing.";
+ };
+
{ flag_name = "sm-credentials";
flag_type = FlagSMCredentials "SELECTOR";
flag_ml_var = "sm_credentials";
--
2.19.1.3.g30247aa5d201
2 years, 7 months
SELinux relabeling: do it by default
by Laszlo Ersek
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1554735
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2075718
I'm going to post four patches or patch-sets in response to this email.
Due to how the libguestfs-common module is organized & consumed, and how
the generator in libguestfs works, this work is very awkward. (See more
below.)
The idea is to *replace* "--selinux-relabel" with
"--no-selinux-relabel", and to invert the SELinux relabeling choice:
that is, to do it by default, and allow users to prevent it with
"--no-selinux-relabel" if they desire so. This is being requested in the
above two BZs.
I've intentionally avoided introducing "--no-selinux-relabel" *in
addition* to "--selinux-relabel". While some utilities support a similar
dual form (such as virt-builder's "--network" and "--no-network"), with
one being the default, those options are special in that they are *not
shared* between different utilities, and they are not generated by the
generator in libguestfs. The key difference is that the *non-shared*
options use Getopt.Set and Getopt.Clear on the *same* boolean reference
cell, whereas the generator introduces a *separate* boolean reference
cell for each option it generates (and then it uses *either*
Getopt.Clear *or* Getopt.Set when the option is passed on the command
line, dependent on the default value of the reference cell). This means
that "--no-selinux-relabel" and "--selinux-relabel", if they both
existed, would work on different booleans, and that would be the source
of a lot of fun (priority? command line order? documentation? etc etc).
So, nope to that.
Back to the structuring of these patches / patch sets. The generator
lives and runs solely in libguestfs. However, it generates such code as
well that is owned by libguestfs-common. Normally we don't notice,
because the generator overwrites "common" submodule contents with
identical files; thus, "git" does not complain about the submodule
checkout being modified locally. This no longer holds with these
patches. Therefore:
- as first step, libguestfs needs to be modified
- the generator is run as a part of "make", which creates a local diff
in the "common" submodule checkout under the libguestfs worktree
- that diff is reflected to, and captured as a commit, in
libguestfs-common
- this returns libguestfs to an "everything in sync" state, but more
importantly
- it exposes the new stuff to virt-v2v and guestfs-tools,
- virt-v2v and guestfs-tools need to be updated to consider the
disappearance of "--selinux-relabel".
The fact that documentation and test cases are shared in various ways
only makes this more complicated. For example, the virt-builder(1)
manual speaks words on SELinux in the auto-generated (and shared), and
the private (non-shared) sections *both*.
One thing to note is that libguestfs itself does not *consume* the
particular "common" contents that it generates. Therefore we don't have
a reference loop in practice. What we have is this dependency graph:
libguestfs (generator)
|
v
libguestfs-common (generated content)
/ \
v v
guestfs-tools virt-v2v
Because of that, the usual "update common submodule" hunk *need not* be
squashed into the libguestfs (generator) patches, when merging this.
However, said "update common submodule" hunk does have to be squashed
into the (single) guestfs-tools and virt-v2v patches, when merging.
I meticulously tested this stuff:
- libguestfs:
- "make check" and "make check-slow" complete fine
- There is no documentation (under the "website/" subdir) that is
updated by the patches.
- guestfs-tools:
- Checked the rendered documentation regarding "--no-selinux-relabel"
that comes from "common":
virt-builder.1.html
virt-customize.1.html
virt-sysprep.1.html
- Checked the rendered documentation changes that come from
guestfs-tools itself:
virt-builder.1.html
- Checked the "--help" output of:
virt-builder
virt-customize
virt-sysprep
- "make check" completes OK.
- "make check-slow" completes OK:
- PASS for test-firstboot-*.sh (Linux guests -- Windows guests are
SKIPped),
- same for test-settings-*.sh
- except for "test-settings-ubuntu-18.04.sh". It fails for an
independent reason: "libguestfs: error: download:
/etc/sysconfig/network: No such file or directory"
- PASS for test-selinuxrelabel.sh
- "test-console-ubuntu-20.04.sh" fails for an independent reason:
"didn't see login banner in serial console output" -- but no
serial output was actually shown in the log.
- virt-v2v:
- "make check" completes OK.
- "make check-slow" completes fine
- in particular, PASS for test-v2v-conversion-of-*.sh (Linux guests
-- Windows guests are SKIPped)
Thanks,
Laszlo
2 years, 7 months
Erro libguestfs missing shared libraries: libpcre2-8.so.0
by Attilio Greco
Hi all,
I'm hitting an error during disk resize.
Pakage is installed via repo pakage info:
libguestfs.x86_64 1:1.48.1-1.fc35
@updates
Disrtro info:
lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: Fedora
Description: Fedora release 35 (Thirty Five)
Release: 35
Codename: ThirtyFive
Kerne Info
uname -a
Linux fedora 5.17.7-200.fc35.x86_64 #1 SMP PREEMPT Thu May 12 14:56:48
UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
************************************************************
* IMPORTANT NOTICE
*
* When reporting bugs, include the COMPLETE, UNEDITED
* output below in your bug report.
*
************************************************************
PATH=/usr/local/bin:/home/attilio.greco/.local/bin/:/usr/pgsql-
14/bin/:/home/attilio.greco/.local/bin/:/home/attilio.greco/.local/bin/
:/usr/pgsql-14/bin/:/usr/pgsql-
14/bin/:/home/attilio.greco/.local/bin/:/usr/pgsql-
14/bin/:/usr/local/sbin:/home/attilio.greco/.local/bin/:/usr/pgsql-
14/bin/:/home/attilio.greco/.local/bin/:/home/attilio.greco/.local/bin/
:/usr/pgsql-14/bin/:/usr/pgsql-
14/bin/:/home/attilio.greco/.local/bin/:/usr/pgsql-
14/bin/:/usr/bin:/home/attilio.greco/.local/bin/:/usr/pgsql-
14/bin/:/home/attilio.greco/.local/bin/:/home/attilio.greco/.local/bin/
:/usr/pgsql-14/bin/:/usr/pgsql-
14/bin/:/home/attilio.greco/.local/bin/:/usr/pgsql-
14/bin/:/usr/sbin:/home/attilio.greco/.local/bin/:/usr/pgsql-
14/bin/:/home/attilio.greco/.local/bin/:/home/attilio.greco/.local/bin/
:/usr/pgsql-14/bin/:/usr/pgsql-
14/bin/:/home/attilio.greco/.local/bin/:/usr/pgsql-14/bin/
XDG_RUNTIME_DIR=/run/user/1000
SELinux: Disabled
guestfs_get_append: (null)
guestfs_get_autosync: 1
guestfs_get_backend: libvirt
guestfs_get_backend_settings: []
guestfs_get_cachedir: /var/tmp
guestfs_get_hv: /usr/bin/qemu-kvm
guestfs_get_memsize: 1280
guestfs_get_network: 0
guestfs_get_path: /usr/lib64/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.48.1fedora=35,release=1.fc35,libvirt
libguestfs: launch: backend registered: direct
libguestfs: launch: backend registered: libvirt
libguestfs: launch: backend=libvirt
libguestfs: launch: tmpdir=/tmp/libguestfsVi47UI
libguestfs: launch: umask=0022
libguestfs: launch: euid=1000
libguestfs: libvirt version = 7006000 (7.6.0)
libguestfs: guest random name = guestfs-xrwtzt0zrgna88oz
libguestfs: connect to libvirt
libguestfs: opening libvirt handle: URI = qemu:///session, auth =
default+wrapper, flags = 0
libguestfs: successfully opened libvirt handle: conn = 0x56065d539030
libguestfs: qemu version (reported by libvirt) = 6001000 (6.1.0)
libguestfs: get libvirt capabilities
libguestfs: parsing capabilities XML
libguestfs: parsing domcapabilities XML
libguestfs: build appliance
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/lib64/guestfs/supermin.d
libguestfs: command: run: \ -o /var/tmp/.guestfs-1000/appliance.d
supermin: version: 5.3.2
supermin: rpm: detected RPM version 4.17
supermin: rpm: detected RPM architecture x86_64
supermin: package handler: fedora/rpm
supermin: acquiring lock on /var/tmp/.guestfs-1000/lock
supermin: if-newer: output does not need rebuilding
libguestfs: finished building supermin appliance
libguestfs: command: run: qemu-img --help | grep -sqE -- '\binfo\b.*-
U\b'
libguestfs: command: run: qemu-img
libguestfs: command: run: \ info
libguestfs: command: run: \ -U
libguestfs: command: run: \ --output json
libguestfs: command: run: \ /var/tmp/.guestfs-1000/appliance.d/root
libguestfs: parse_json: qemu-img info JSON output:\n{\n "virtual-
size": 4294967296,\n "filename": "/var/tmp/.guestfs-
1000/appliance.d/root",\n "format": "raw",\n "actual-size":
442036224,\n "dirty-flag": false\n}\n\n
libguestfs: command: run: qemu-img
libguestfs: command: run: \ create
libguestfs: command: run: \ -f qcow2
libguestfs: command: run: \ -o backing_file=/var/tmp/.guestfs-
1000/appliance.d/root,backing_fmt=raw
libguestfs: command: run: \ /tmp/libguestfsVi47UI/overlay2.qcow2
Formatting '/tmp/libguestfsVi47UI/overlay2.qcow2', fmt=qcow2
cluster_size=65536 extended_l2=off compression_type=zlib
size=4294967296 backing_file=/var/tmp/.guestfs-1000/appliance.d/root
backing_fmt=raw lazy_refcounts=off refcount_bits=16
libguestfs: set_socket_create_context: context_new failed: kernel:
Invalid argument [you can ignore this message if you are not using
SELinux + sVirt]
libguestfs: create libvirt XML
libguestfs: libvirt XML:\n<?xml version="1.0"?>\n<domain type="kvm"
xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0">\n
<name>guestfs-xrwtzt0zrgna88oz</name>\n <memory
unit="MiB">1280</memory>\n <currentMemory
unit="MiB">1280</currentMemory>\n <cpu mode="maximum"/>\n
<vcpu>1</vcpu>\n <clock offset="utc">\n <timer name="rtc"
tickpolicy="catchup"/>\n <timer name="pit" tickpolicy="delay"/>\n
<timer name="hpet" present="no"/>\n </clock>\n <os>\n
<type>hvm</type>\n <kernel>/var/tmp/.guestfs-
1000/appliance.d/kernel</kernel>\n <initrd>/var/tmp/.guestfs-
1000/appliance.d/initrd</initrd>\n <cmdline>panic=1 console=ttyS0
edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check
printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests
tsc=reliable 8250.nr_uarts=1 root=UUID=bc887fed-18f4-4e36-97c8-
d3e17f3edc34 selinux=0 guestfs_verbose=1 TERM=xterm-
256color</cmdline>\n <bios useserial="yes"/>\n </os>\n <seclabel
type="none"/>\n <on_reboot>destroy</on_reboot>\n <devices>\n
<emulator>/usr/bin/qemu-kvm</emulator>\n <rng model="virtio">\n
<backend model="random">/dev/urandom</backend>\n </rng>\n
<controller type="scsi" index="0" model="virtio-scsi"/>\n <disk
device="disk" type="file">\n <source
file="/tmp/libguestfsVi47UI/scratch1.img"/>\n <target dev="sda"
bus="scsi"/>\n <driver name="qemu" type="raw" cache="unsafe"/>\n
<address type="drive" controller="0" bus="0" target="0" unit="0"/>\n
</disk>\n <disk type="file" device="disk">\n <source
file="/tmp/libguestfsVi47UI/overlay2.qcow2"/>\n <target dev="sdb"
bus="scsi"/>\n <driver name="qemu" type="qcow2" cache="unsafe"/>\n
<address type="drive" controller="0" bus="0" target="1" unit="0"/>\n
</disk>\n <serial type="unix">\n <source mode="connect"
path="/run/user/1000/libguestfs8jJCGw/console.sock"/>\n <target
port="0"/>\n </serial>\n <channel type="unix">\n <source
mode="connect" path="/run/user/1000/libguestfs8jJCGw/guestfsd.sock"/>\n
<target type="virtio" name="org.libguestfs.channel.0"/>\n
</channel>\n <controller type="usb" model="none"/>\n <memballoon
model="none"/>\n </devices>\n <qemu:commandline>\n <qemu:env
name="TMPDIR" value="/var/tmp"/>\n </qemu:commandline>\n</domain>\n
libguestfs: command: run: ls
libguestfs: command: run: \ -a
libguestfs: command: run: \ -l
libguestfs: command: run: \ -R
libguestfs: command: run: \ -Z /var/tmp/.guestfs-1000
libguestfs: /var/tmp/.guestfs-1000:
libguestfs: total 0
libguestfs: drwxr-xr-x 1 attilio.greco attilio.greco ?
30 May 20 10:01 .
libguestfs: drwxrwxrwt. 1 root root
system_u:object_r:tmp_t:s0 3314 May 20 10:01 ..
libguestfs: drwxr-xr-x 1 attilio.greco attilio.greco ?
32 May 19 14:30 appliance.d
libguestfs: -rw-r--r-- 1 attilio.greco attilio.greco ?
0 May 18 17:24 lock
libguestfs:
libguestfs: /var/tmp/.guestfs-1000/appliance.d:
libguestfs: total 447808
libguestfs: drwxr-xr-x 1 attilio.greco attilio.greco ? 32 May
19 14:30 .
libguestfs: drwxr-xr-x 1 attilio.greco attilio.greco ? 30 May
20 10:01 ..
libguestfs: -rw-r--r-- 1 attilio.greco attilio.greco ? 4992000 May
20 10:01 initrd
libguestfs: -rwxr-xr-x 1 attilio.greco attilio.greco ? 11523056 May
20 10:01 kernel
libguestfs: -rw-r--r-- 1 attilio.greco attilio.greco ? 4294967296 May
20 10:01 root
libguestfs: command: run: ls
libguestfs: command: run: \ -a
libguestfs: command: run: \ -l
libguestfs: command: run: \ -Z /run/user/1000/libguestfs8jJCGw
libguestfs: total 0
libguestfs: drwx------ 2 attilio.greco attilio.greco ? 80 May 20
10:01 .
libguestfs: drwx------ 19 attilio.greco attilio.greco ? 520 May 20
10:01 ..
libguestfs: srwxr-xr-x 1 attilio.greco attilio.greco ? 0 May 20
10:01 console.sock
libguestfs: srwxr-xr-x 1 attilio.greco attilio.greco ? 0 May 20
10:01 guestfsd.sock
libguestfs: launch libvirt guest
libguestfs: responding to serial console Device Status Report
\x1b[1;256r\x1b[256;256H\x1b[6n
Google, Inc.
Serial Graphics Adapter 07/23/21
SGABIOS $Id$ (mockbuild@) Fri Jul 23 21:20:21 UTC 2021
Term: 80x24
4 0
SeaBIOS (version 1.15.0-1.fc35)
Machine UUID 72e6cb4a-592b-4e30-bcce-080829dde4e1
Booting from ROM...
\x1b[2J[ 0.000000] Linux version 5.17.7-200.fc35.x86_64
(mockbuild(a)bkernel01.iad2.fedoraproject.org) (gcc (GCC) 11.3.1 20220421
(Red Hat 11.3.1-2), GNU ld version 2.37-17.fc35) #1 SMP PREEMPT Thu May
12 14:56:48 UTC 2022
[ 0.000000] Command line: panic=1 console=ttyS0 edd=off
udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1
cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable
8250.nr_uarts=1 root=UUID=bc887fed-18f4-4e36-97c8-d3e17f3edc34
selinux=0 guestfs_verbose=1 TERM=xterm-256color
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating
point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is
832 bytes, using 'compacted' format.
[ 0.000000] signal: max sigframe size: 1776
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009f7ff]
usable
[ 0.000000] BIOS-e820: [mem 0x000000000009f800-0x000000000009ffff]
reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff]
reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000004fffcfff]
usable
[ 0.000000] BIOS-e820: [mem 0x000000004fffd000-0x000000004fffffff]
reserved
[ 0.000000] BIOS-e820: [mem 0x00000000feffc000-0x00000000feffffff]
reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff]
reserved
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] SMBIOS 2.8 present.
[ 0.000000] DMI: QEMU Standard PC (i440FX + PIIX, 1996), BIOS
1.15.0-1.fc35 04/01/2014
[ 0.000000] Hypervisor detected: KVM
[ 0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00
[ 0.000001] kvm-clock: using sched offset of 283135224 cycles
[ 0.000004] clocksource: kvm-clock: mask: 0xffffffffffffffff
max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
[ 0.000008] tsc: Detected 2894.646 MHz processor
[ 0.000469] last_pfn = 0x4fffd max_arch_pfn = 0x400000000
[ 0.000539] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WP
UC- WT
[ 0.003520] found SMP MP-table at [mem 0x000f5b30-0x000f5b3f]
[ 0.003589] Using GB pages for direct mapping
[ 0.003869] RAMDISK: [mem 0x4fb2d000-0x4ffeffff]
[ 0.003898] ACPI: Early table checksum verification disabled
[ 0.004025] ACPI BIOS Error (bug): A valid RSDP was not found
(20211217/tbxfroot-210)
[ 0.004274] No NUMA configuration found
[ 0.004276] Faking a node at [mem 0x0000000000000000-
0x000000004fffcfff]
[ 0.004285] NODE_DATA(0) allocated [mem 0x4fb02000-0x4fb2cfff]
[ 0.014982] Zone ranges:
[ 0.014988] DMA [mem 0x0000000000001000-0x0000000000ffffff]
[ 0.014991] DMA32 [mem 0x0000000001000000-0x000000004fffcfff]
[ 0.014994] Normal empty
[ 0.014995] Device empty
[ 0.014997] Movable zone start for each node
[ 0.015000] Early memory node ranges
[ 0.015001] node 0: [mem 0x0000000000001000-0x000000000009efff]
[ 0.015003] node 0: [mem 0x0000000000100000-0x000000004fffcfff]
[ 0.015006] Initmem setup node 0 [mem 0x0000000000001000-
0x000000004fffcfff]
[ 0.015013] On node 0, zone DMA: 1 pages in unavailable ranges
[ 0.015051] On node 0, zone DMA: 97 pages in unavailable ranges
[ 0.018165] On node 0, zone DMA32: 3 pages in unavailable ranges
[ 0.018529] Intel MultiProcessor Specification v1.4
[ 0.018534] MPTABLE: OEM ID: BOCHSCPU
[ 0.018535] MPTABLE: Product ID: 0.1
[ 0.018536] MPTABLE: APIC at: 0xFEE00000
[ 0.018559] Processor #0 (Bootup-CPU)
[ 0.018585] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000,
GSI 0-23
[ 0.018589] Processors: 1
[ 0.018590] TSC deadline timer available
[ 0.018595] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
[ 0.018642] PM: hibernation: Registered nosave memory: [mem
0x00000000-0x00000fff]
[ 0.018644] PM: hibernation: Registered nosave memory: [mem
0x0009f000-0x0009ffff]
[ 0.018646] PM: hibernation: Registered nosave memory: [mem
0x000a0000-0x000effff]
[ 0.018647] PM: hibernation: Registered nosave memory: [mem
0x000f0000-0x000fffff]
[ 0.018649] [mem 0x50000000-0xfeffbfff] available for PCI devices
[ 0.018651] Booting paravirtualized kernel on KVM
[ 0.018655] clocksource: refined-jiffies: mask: 0xffffffff
max_cycles: 0xffffffff, max_idle_ns: 1910969940391419 ns
[ 0.025222] setup_percpu: NR_CPUS:8192 nr_cpumask_bits:1
nr_cpu_ids:1 nr_node_ids:1
[ 0.026481] percpu: Embedded 61 pages/cpu s212992 r8192 d28672
u2097152
[ 0.026547] kvm-guest: PV spinlocks disabled, single CPU
[ 0.026555] Fallback order for Node 0: 0
[ 0.026559] Built 1 zonelists, mobility grouping on. Total pages:
322301
[ 0.026561] Policy zone: DMA32
[ 0.026563] Kernel command line: panic=1 console=ttyS0 edd=off
udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1
cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable
8250.nr_uarts=1 root=UUID=bc887fed-18f4-4e36-97c8-d3e17f3edc34
selinux=0 guestfs_verbose=1 TERM=xterm-256color
[ 0.026715] cgroup: Disabling memory control group subsystem
[ 0.026774] Unknown kernel command line parameters "edd=off
udevtimeout=6000 guestfs_verbose=1", will be passed to user space.
[ 0.028075] Dentry cache hash table entries: 262144 (order: 9,
2097152 bytes, linear)
[ 0.028211] Inode-cache hash table entries: 131072 (order: 8,
1048576 bytes, linear)
[ 0.028252] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.033265] Memory: 1231292K/1310316K available (16393K kernel code,
3607K rwdata, 10784K rodata, 2704K init, 6288K bss, 78764K reserved, 0K
cma-reserved)
[ 0.033275] random: get_random_u64 called from
__kmem_cache_create+0x2a/0x530 with crng_init=0
[ 0.033397] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1,
Nodes=1
[ 0.033410] ftrace: allocating 48342 entries in 189 pages
[ 0.042359] ftrace: allocated 189 pages with 6 groups
[ 0.043220] Dynamic Preempt: voluntary
[ 0.044962] rcu: Preemptible hierarchical RCU implementation.
[ 0.044965] rcu: \tRCU restricting CPUs from NR_CPUS=8192 to
nr_cpu_ids=1.
[ 0.044967] \tTrampoline variant of Tasks RCU enabled.
[ 0.044968] \tRude variant of Tasks RCU enabled.
[ 0.044969] \tTracing variant of Tasks RCU enabled.
[ 0.044971] rcu: RCU calculated value of scheduler-enlistment delay
is 100 jiffies.
[ 0.044972] rcu: Adjusting geometry for rcu_fanout_leaf=16,
nr_cpu_ids=1
[ 0.049440] NR_IRQS: 524544, nr_irqs: 256, preallocated irqs: 16
[ 0.049797] random: crng init done (trusting CPU's manufacturer)
[ 0.049913] Console: colour *CGA 80x25
[ 0.122291] printk: console [ttyS0] enabled
[ 0.122839] APIC: Switch to symmetric I/O mode setup
[ 0.123652] x2apic enabled
[ 0.124231] Switched APIC routing to physical x2apic.
[ 0.125833] clocksource: tsc-early: mask: 0xffffffffffffffff
max_cycles: 0x29b9816cba9, max_idle_ns: 440795228300 ns
[ 0.127068] Calibrating delay loop (skipped) preset value.. 5789.29
BogoMIPS (lpj=2894646)
[ 0.128026] pid_max: default: 32768 minimum: 301
[ 0.128062] LSM: Security Framework initializing
[ 0.128062] Yama: becoming mindful.
[ 0.128062] LSM support for eBPF active
[ 0.128062] landlock: Up and running.
[ 0.128062] Mount-cache hash table entries: 4096 (order: 3, 32768
bytes, linear)
[ 0.128062] Mountpoint-cache hash table entries: 4096 (order: 3,
32768 bytes, linear)
[ 0.128062] x86/cpu: User Mode Instruction Prevention (UMIP)
activated
[ 0.128062] Last level iTLB entries: 4KB 512, 2MB 255, 4MB 127
[ 0.128062] Last level dTLB entries: 4KB 512, 2MB 255, 4MB 127, 1GB
0
[ 0.128062] Spectre V1 : Mitigation: usercopy/swapgs barriers and
__user pointer sanitization
[ 0.128062] Spectre V2 : Mitigation: Retpolines
[ 0.128062] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling
RSB on context switch
[ 0.128062] Spectre V2 : Enabling Restricted Speculation for
firmware calls
[ 0.128062] Spectre V2 : mitigation: Enabling conditional Indirect
Branch Prediction Barrier
[ 0.128062] Speculative Store Bypass: Mitigation: Speculative Store
Bypass disabled via prctl
[ 0.128062] Freeing SMP alternatives memory: 44K
[ 0.128062] smpboot: CPU0: AMD Ryzen 7 4800H with Radeon Graphics
(family: 0x17, model: 0x60, stepping: 0x1)
[ 0.128230] cblist_init_generic: Setting adjustable number of
callback queues.
[ 0.129067] cblist_init_generic: Setting shift to 0 and lim to 1.
[ 0.129827] cblist_init_generic: Setting shift to 0 and lim to 1.
[ 0.130090] cblist_init_generic: Setting shift to 0 and lim to 1.
[ 0.130842] Performance Events: Fam17h+ core perfctr, AMD PMU
driver.
[ 0.131070] ... version: 0
[ 0.131549] ... bit width: 48
[ 0.132031] ... generic registers: 6
[ 0.132066] ... value mask: 0000ffffffffffff
[ 0.132696] ... max period: 00007fffffffffff
[ 0.133067] ... fixed-purpose events: 0
[ 0.133546] ... event mask: 000000000000003f
[ 0.134172] rcu: Hierarchical SRCU implementation.
[ 0.135200] smp: Bringing up secondary CPUs ...
[ 0.135751] smp: Brought up 1 node, 1 CPU
[ 0.136069] smpboot: Max logical packages: 1
[ 0.136590] smpboot: Total of 1 processors activated (5789.29
BogoMIPS)
[ 0.137317] devtmpfs: initialized
[ 0.137766] x86/mm: Memory block size: 128MB
[ 0.138413] clocksource: jiffies: mask: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 1911260446275000 ns
[ 0.139072] futex hash table entries: 256 (order: 2, 16384 bytes,
linear)
[ 0.139932] pinctrl core: initialized pinctrl subsystem
[ 0.140224] PM: RTC time: 08:01:38, date: 2022-05-20
[ 0.140951] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.141205] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic
allocations
[ 0.142032] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for
atomic allocations
[ 0.142079] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for
atomic allocations
[ 0.143010] audit: initializing netlink subsys (disabled)
[ 0.143201] thermal_sys: Registered thermal governor 'fair_share'
[ 0.143203] thermal_sys: Registered thermal governor 'bang_bang'
[ 0.143922] thermal_sys: Registered thermal governor 'step_wise'
[ 0.144067] thermal_sys: Registered thermal governor 'user_space'
[ 0.144781] cpuidle: using governor menu
[ 0.146074] audit: type=2000 audit(1653033698.973:1):
state=initialized audit_enabled=0 res=1
[ 0.147295] PCI: Using configuration type 1 for base access
[ 0.147949] PCI: Using configuration type 1 for extended access
[ 0.150193] kprobes: kprobe jump-optimization is enabled. All
kprobes are optimized if possible.
[ 0.151226] HugeTLB registered 1.00 GiB page size, pre-allocated 0
pages
[ 0.152029] HugeTLB registered 2.00 MiB page size, pre-allocated 0
pages
[ 0.152192] cryptd: max_cpu_qlen set to 1000
[ 0.152833] raid6: skipped pq benchmark and selected avx2x4
[ 0.153070] raid6: using avx2x2 recovery algorithm
[ 0.153693] ACPI: Interpreter disabled.
[ 0.154127] iommu: Default domain type: Translated
[ 0.154714] iommu: DMA domain TLB invalidation policy: lazy mode
[ 0.155112] vgaarb: loaded
[ 0.155526] SCSI subsystem initialized
[ 0.156024] usbcore: USB support disabled
[ 0.156090] pps_core: LinuxPPS API ver. 1 registered
[ 0.156674] pps_core: Software ver. 5.3.6 - Copyright 2005-2007
Rodolfo Giometti <giometti(a)linux.it>
[ 0.157071] PTP clock support registered
[ 0.157579] EDAC MC: Ver: 3.0.0
[ 0.158163] NetLabel: Initializing
[ 0.158570] NetLabel: domain hash size = 128
[ 0.159067] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO
[ 0.159741] NetLabel: unlabeled traffic allowed by default
[ 0.160070] mctp: management component transport protocol core
[ 0.160756] NET: Registered PF_MCTP protocol family
[ 0.161075] PCI: Probing PCI hardware
[ 0.161568] PCI host bridge to bus 0000:00
[ 0.162051] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 0.162069] pci_bus 0000:00: root bus resource [mem 0x00000000-
0xffffffffffff]
[ 0.162909] pci_bus 0000:00: No busn resource found for root bus,
will use [bus 00-ff]
[ 0.163215] pci 0000:00:00.0: [8086:1237] type 00 class 0x060000
[ 0.164309] pci 0000:00:01.0: [8086:7000] type 00 class 0x060100
[ 0.165529] pci 0000:00:01.1: [8086:7010] type 00 class 0x010180
[ 0.167286] pci 0000:00:01.1: reg 0x20: [io 0xc0a0-0xc0af]
[ 0.168462] pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io
0x01f0-0x01f7]
[ 0.169067] pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io
0x03f6]
[ 0.169842] pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io
0x0170-0x0177]
[ 0.170068] pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io
0x0376]
[ 0.171107] pci 0000:00:02.0: [1af4:1004] type 00 class 0x010000
[ 0.172457] pci 0000:00:02.0: reg 0x10: [io 0xc000-0xc03f]
[ 0.173799] pci 0000:00:02.0: reg 0x14: [mem 0xfebfe000-0xfebfefff]
[ 0.175934] pci 0000:00:02.0: reg 0x20: [mem 0xfebf0000-0xfebf3fff
64bit pref]
[ 0.177295] pci 0000:00:03.0: [1af4:1003] type 00 class 0x078000
[ 0.178707] pci 0000:00:03.0: reg 0x10: [io 0xc040-0xc07f]
[ 0.179542] pci 0000:00:03.0: reg 0x14: [mem 0xfebff000-0xfebfffff]
[ 0.181770] pci 0000:00:03.0: reg 0x20: [mem 0xfebf4000-0xfebf7fff
64bit pref]
[ 0.183965] pci 0000:00:04.0: [1af4:1005] type 00 class 0x00ff00
[ 0.184442] pci 0000:00:04.0: reg 0x10: [io 0xc080-0xc09f]
[ 0.186271] pci 0000:00:04.0: reg 0x20: [mem 0xfebf8000-0xfebfbfff
64bit pref]
[ 0.188060] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to
00
[ 0.188890] pci 0000:00:01.0: PIIX/ICH IRQ router [8086:7000]
[ 0.189370] clocksource: Switched to clocksource kvm-clock
[ 0.212899] VFS: Disk quotas dquot_6.6.0
[ 0.213460] VFS: Dquot-cache hash table entries: 512 (order 0, 4096
bytes)
[ 0.214346] pnp: PnP ACPI: disabled
[ 0.215767] NET: Registered PF_INET protocol family
[ 0.218486] IP idents hash table entries: 32768 (order: 6, 262144
bytes, linear)
[ 0.232643] tcp_listen_portaddr_hash hash table entries: 1024
(order: 2, 16384 bytes, linear)
[ 0.233730] TCP established hash table entries: 16384 (order: 5,
131072 bytes, linear)
[ 0.234698] TCP bind hash table entries: 16384 (order: 6, 262144
bytes, linear)
[ 0.235608] TCP: Hash tables configured (established 16384 bind
16384)
[ 0.240908] MPTCP token hash table entries: 2048 (order: 3, 49152
bytes, linear)
[ 0.241839] UDP hash table entries: 1024 (order: 3, 32768 bytes,
linear)
[ 0.242919] UDP-Lite hash table entries: 1024 (order: 3, 32768
bytes, linear)
[ 0.243811] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.244501] NET: Registered PF_XDP protocol family
[ 0.245087] pci_bus 0000:00: resource 4 [io 0x0000-0xffff]
[ 0.245747] pci_bus 0000:00: resource 5 [mem 0x00000000-
0xffffffffffff]
[ 0.246564] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[ 0.247269] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[ 0.247979] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[ 0.248740] PCI: CLS 0 bytes, default 64
[ 0.249306] Trying to unpack rootfs image as initramfs...
[ 0.253824] clocksource: tsc: mask: 0xffffffffffffffff max_cycles:
0x29b9816cba9, max_idle_ns: 440795228300 ns
[ 0.255133] platform rtc_cmos: registered platform RTC device (no
PNP device found)
[ 0.257503] Freeing initrd memory: 4876K
[ 0.258507] Initialise system trusted keyrings
[ 0.259086] Key type blacklist registered
[ 0.259645] workingset: timestamp_bits=36 max_order=19
bucket_order=0
[ 0.263453] zbud: loaded
[ 0.264351] integrity: Platform Keyring initialized
[ 0.268865] NET: Registered PF_ALG protocol family
[ 0.269456] xor: automatically using best checksumming function
avx
[ 0.270306] Key type asymmetric registered
[ 0.270792] Asymmetric key parser 'x509' registered
[ 0.271568] alg: self-tests disabled
[ 0.272056] alg: self-tests for CTR-KDF (hmac(sha256)) passed
[ 0.272767] Block layer SCSI generic (bsg) driver version 0.4 loaded
(major 245)
[ 0.273750] io scheduler mq-deadline registered
[ 0.274308] io scheduler kyber registered
[ 0.274813] io scheduler bfq registered
[ 0.275929] atomic64_test: passed for x86-64 platform with CX8 and
with SSE
[ 0.276977] shpchp: Standard Hot Plug PCI Controller Driver version:
0.4
[ 0.277990] virtio-pci 0000:00:02.0: PCI->APIC IRQ transform: INT A
-> IRQ 10
[ 0.279725] virtio-pci 0000:00:03.0: PCI->APIC IRQ transform: INT A
-> IRQ 11
[ 0.281516] virtio-pci 0000:00:04.0: PCI->APIC IRQ transform: INT A
-> IRQ 11
[ 0.283207] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[ 0.284105] serial8250: ttyS0 at I/O 0x3f8 (irq = 4, base_baud =
115200) is a 16550A
[ 0.285269] Non-volatile memory driver v1.3
[ 0.286047] Linux agpgart interface v0.103
[ 0.287460] scsi host0: ata_piix
[ 0.288050] scsi host1: ata_piix
[ 0.288559] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc0a0
irq 14
[ 0.289371] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc0a8
irq 15
[ 0.290963] usbserial: usb_serial_init - registering generic driver
failed
[ 0.291807] usbserial: usb_serial_init - returning with error -19
[ 0.292548] i8042: PNP: No PS/2 controller found.
[ 0.293118] i8042: Probing ports directly.
[ 0.294253] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 0.294842] serio: i8042 AUX port at 0x60,0x64 irq 12
[ 0.295534] mousedev: PS/2 mouse device common for all mice
[ 0.296435] input: AT Translated Set 2 keyboard as
/devices/platform/i8042/serio0/input/input0
[ 0.298084] input: VirtualPS/2 VMware VMMouse as
/devices/platform/i8042/serio1/input/input3
[ 0.299286] input: VirtualPS/2 VMware VMMouse as
/devices/platform/i8042/serio1/input/input2
[ 0.300653] rtc_cmos rtc_cmos: registered as rtc0
[ 0.301286] rtc_cmos rtc_cmos: setting system clock to 2022-05-
20T08:01:38 UTC (1653033698)
[ 0.302276] rtc_cmos rtc_cmos: alarms up to one day, 114 bytes nvram
[ 0.303055] device-mapper: core: CONFIG_IMA_DISABLE_HTABLE is
disabled. Duplicate IMA measurements will not be recorded in the IMA
log.
[ 0.304579] device-mapper: uevent: version 1.0.3
[ 0.305194] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22)
initialised: dm-devel(a)redhat.com
[ 0.306340] hid: raw HID events driver (C) Jiri Kosina
[ 0.307025] drop_monitor: Initializing network drop monitor service
[ 0.307845] Initializing XFRM netlink socket
[ 0.308463] NET: Registered PF_INET6 protocol family
[ 0.309570] Segment Routing with IPv6
[ 0.310115] RPL Segment Routing with IPv6
[ 0.310611] In-situ OAM (IOAM) with IPv6
[ 0.311144] mip6: Mobile IPv6
[ 0.311501] NET: Registered PF_PACKET protocol family
[ 0.312344] IPI shorthand broadcast: enabled
[ 0.312868] AVX2 version of gcm_enc/dec engaged.
[ 0.313467] AES CTR mode by8 optimization enabled
[ 0.314241] sched_clock: Marking stable (236676420, 77389778)-
>(356948842, -42882644)
[ 0.315284] registered taskstats version 1
[ 0.315807] Loading compiled-in X.509 certificates
[ 0.317167] Loaded X.509 cert 'Fedora kernel signing key:
6d309cfe5da4a9fc3f09c7676c585567b28d6e0e'
[ 0.323129] zswap: loaded using pool lzo/zbud
[ 0.323854] page_owner is disabled
[ 0.324374] Key type ._fscrypt registered
[ 0.324854] Key type .fscrypt registered
[ 0.325349] Key type fscrypt-provisioning registered
[ 0.326294] Btrfs loaded, crc32c=crc32c-generic, zoned=yes,
fsverity=yes
[ 0.327125] Key type big_key registered
[ 0.327794] Key type encrypted registered
[ 0.328310] ima: No TPM chip found, activating TPM-bypass!
[ 0.328962] Loading compiled-in module X.509 certificates
[ 0.330195] Loaded X.509 cert 'Fedora kernel signing key:
6d309cfe5da4a9fc3f09c7676c585567b28d6e0e'
[ 0.331309] ima: Allocated hash algorithm: sha256
[ 0.331879] ima: No architecture policies found
[ 0.333640] evm: Initialising EVM extended attributes:
[ 0.334300] evm: security.selinux
[ 0.334694] evm: security.SMACK64 (disabled)
[ 0.335199] evm: security.SMACK64EXEC (disabled)
[ 0.335714] evm: security.SMACK64TRANSMUTE (disabled)
[ 0.336331] evm: security.SMACK64MMAP (disabled)
[ 0.336840] evm: security.apparmor (disabled)
[ 0.337367] evm: security.ima
[ 0.337730] evm: security.capability
[ 0.338165] evm: HMAC attrs: 0x1
[ 0.340009] PM: Magic number: 6:305:18
[ 0.340733] RAS: Correctable Errors collector initialized.
^H^H^H[ 0.449887] Freeing unused decrypted memory: 2036K
[ 0.450983] Freeing unused kernel image (initmem) memory: 2704K
[ 0.451709] Write protecting the kernel read-only data: 30720k
[ 0.452929] Freeing unused kernel image (text/rodata gap) memory:
2036K
[ 0.453978] Freeing unused kernel image (rodata/data gap) memory:
1504K
[ 0.503786] x86/mm: Checked W+X mappings: passed, no W+X pages
found.
[ 0.504559] rodata_test: all tests were successful
[ 0.505166] Run /init as init process
supermin: mounting /proc
supermin: ext2 mini initrd starting up: 5.3.2 dietlibc
supermin: cmdline: panic=1 console=ttyS0 edd=off udevtimeout=6000
udev.event-timeout=6000 no_timer_check printk.time=1
cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable
8250.nr_uarts=1 root=UUID=bc887fed-18f4-4e36-97c8-d3e17f3edc34
selinux=0 guestfs_verbose=1 TERM=xterm-256color
supermin: uptime: 0.43 0.10
supermin: mounting /sys
supermin: internal insmod crc32-pclmul.ko
supermin: internal insmod crc32c-intel.ko
supermin: internal insmod crct10dif-pclmul.ko
supermin: internal insmod crc32_generic.ko
supermin: internal insmod libnvdimm.ko
supermin: internal insmod nfit.ko
insmod: init_module: nfit.ko: No such device
supermin: internal insmod virtio_blk.ko
supermin: internal insmod ecdh_generic.ko
supermin: internal insmod rfkill.ko
supermin: internal insmod bluetooth.ko
[ 0.580701] Bluetooth: Core ver 2.22
[ 0.581235] NET: Registered PF_BLUETOOTH protocol family
[ 0.581859] Bluetooth: HCI device and connection manager initialized
[ 0.582588] Bluetooth: HCI socket layer initialized
[ 0.583155] Bluetooth: L2CAP socket layer initialized
[ 0.583725] Bluetooth: SCO socket layer initialized
supermin: internal insmod virtio_bt.ko
supermin: internal insmod virtio_console.ko
supermin: internal insmod crypto_engine.ko
supermin: internal insmod virtio_crypto.ko
supermin: internal insmod failover.ko
supermin: internal insmod net_failover.ko
supermin: internal insmod virtio_net.ko
supermin: internal insmod nd_btt.ko
supermin: internal insmod nd_pmem.ko
supermin: internal insmod virtio_scsi.ko
[ 0.625928] scsi host2: Virtio SCSI HBA
[ 0.628764] scsi 2:0:0:0: Direct-Access QEMU QEMU HARDDISK
2.5+ PQ: 0 ANSI: 5
[ 0.630117] scsi 2:0:1:0: Direct-Access QEMU QEMU HARDDISK
2.5+ PQ: 0 ANSI: 5
[ 0.646353] sd 2:0:0:0: Power-on or device reset occurred
[ 0.647130] sd 2:0:0:0: Attached scsi generic sg0 type 0
[ 0.647953] sd 2:0:1:0: Attached scsi generic sg1 type 0
[ 0.648670] sd 2:0:1:0: Power-on or device reset occurred
[ 0.649721] sd 2:0:0:0: [sda] 204800 512-byte logical blocks: (105
MB/100 MiB)
[ 0.650738] sd 2:0:0:0: [sda] Write Protect is off
[ 0.651469] sd 2:0:1:0: [sdb] 8388608 512-byte logical blocks: (4.29
GB/4.00 GiB)
[ 0.652484] sd 2:0:1:0: [sdb] Write Protect is off
[ 0.653088] sd 2:0:0:0: [sda] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[ 0.654411] sd 2:0:1:0: [sdb] Write cache: enabled, read cache:
enabled, doesn't support DPO or FUA
[ 0.663357] sd 2:0:0:0: [sda] Attached SCSI disk
[ 0.663989] sd 2:0:1:0: [sdb] Attached SCSI disk
supermin: internal insmod virtio_balloon.ko
supermin: internal insmod virtio_dma_buf.ko
supermin: internal insmod virtio_input.ko
supermin: internal insmod virtio_mem.ko
supermin: internal insmod virtio_mmio.ko
supermin: internal insmod vdpa.ko
supermin: internal insmod virtio_vdpa.ko
supermin: internal insmod fuse.ko
[ 0.683589] fuse: init (API version 7.36)
supermin: internal insmod virtiofs.ko
supermin: internal insmod crc-itu-t.ko
supermin: internal insmod crc4.ko
supermin: internal insmod crc64.ko
supermin: internal insmod crc7.ko
supermin: internal insmod crc8.ko
supermin: internal insmod soundcore.ko
supermin: internal insmod snd.ko
supermin: internal insmod snd-timer.ko
supermin: internal insmod snd-pcm.ko
supermin: internal insmod virtio_snd.ko
supermin: picked 8:16 as root device
supermin: creating /dev/root as block special 8:16
supermin: mounting new root on /root
[ 0.710453] EXT4-fs (sdb): mounting ext2 file system using the ext4
subsystem
[ 0.715840] EXT4-fs (sdb): mounted filesystem without journal. Quota
mode: none.
supermin: deleting initramfs files
supermin: chroot
Starting /init script ...
mkdir: error while loading shared libraries: libpcre2-8.so.0: cannot
open shared object file: No such file or directory
mount: error while loading shared libraries: libpcre2-8.so.0: cannot
open shared object file: No such file or directory
mount: error while loading shared libraries: libpcre2-8.so.0: cannot
open shared object file: No such file or directory
mount: error while loading shared libraries: libpcre2-8.so.0: cannot
open shared object file: No such file or directory
/init: line 38: /proc/cmdline: No such file or directory
mkdir: error while loading shared libraries: libpcre2-8.so.0: cannot
open shared object file: No such file or directory
mount: error while loading shared libraries: libpcre2-8.so.0: cannot
open shared object file: No such file or directory
mount: error while loading shared libraries: libpcre2-8.so.0: cannot
open shared object file: No such file or directory
mkdir: error while loading shared libraries: libpcre2-8.so.0: cannot
open shared object file: No such file or directory
mkdir: error while loading shared libraries: libpcre2-8.so.0: cannot
open shared object file: No such file or directory
mount: error while loading shared libraries: libpcre2-8.so.0: cannot
open shared object file: No such file or directory
mkdir: error while loading shared libraries: libpcre2-8.so.0: cannot
open shared object file: No such file or directory
mkdir: error while loading shared libraries: libpcre2-8.so.0: cannot
open shared object file: No such file or directory
dd: failed to open '/dev/urandom': No such file or directory
systemd-tmpfiles: error while loading shared libraries: libpcre2-
8.so.0: cannot open shared object file: No such file or directory
/lib/systemd/systemd-udevd: error while loading shared libraries:
libpcre2-8.so.0: cannot open shared object file: No such file or
directory
udevadm: error while loading shared libraries: libpcre2-8.so.0: cannot
open shared object file: No such file or directory
udevadm: error while loading shared libraries: libpcre2-8.so.0: cannot
open shared object file: No such file or directory
mdadm: cannot open /proc/partitions
mdadm: No devices listed in conf file were found.
mkdir: error while loading shared libraries: libpcre2-8.so.0: cannot
open shared object file: No such file or directory
touch: cannot touch '/tmp/lvm/lvm.conf': No such file or directory
/init: line 139: lvmetad: command not found
lvm: error while loading shared libraries: libpcre2-8.so.0: cannot open
shared object file: No such file or directory
mdadm: cannot open /proc/partitions
mdadm: No devices listed in conf file were found.
/init: line 149: ldmtool: command not found
Linux (none) 5.17.7-200.fc35.x86_64 #1 SMP PREEMPT Thu May 12 14:56:48
UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
ls: error while loading shared libraries: libpcre2-8.so.0: cannot open
shared object file: No such file or directory
cat: /proc/mounts: No such file or directory
cat: /proc/mdstat: No such file or directory
lvm: error while loading shared libraries: libpcre2-8.so.0: cannot open
shared object file: No such file or directory
lvm: error while loading shared libraries: libpcre2-8.so.0: cannot open
shared object file: No such file or directory
lvm: error while loading shared libraries: libpcre2-8.so.0: cannot open
shared object file: No such file or directory
lvm: error while loading shared libraries: libpcre2-8.so.0: cannot open
shared object file: No such file or directory
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
cat: /etc/resolv.conf: No such file or directory
libkmod: kmod_module_new_from_loaded: could not open /proc/modules: No
such file or directory
Error: could not get list of modules: No such file or directory
Fri May 20 08:01:39 UTC 2022
clocksource: cat:
/sys/devices/system/clocksource/clocksource0/current_clocksource: No
such file or directory
uptime: cat: /proc/uptime: No such file or directory
grep: /proc/cmdline: No such file or directory
guestfsd --verbose
guestfsd: error while loading shared libraries: libpcre2-8.so.0: cannot
open shared object file: No such file or directory
reboot: error while loading shared libraries: libpcre2-8.so.0: cannot
open shared object file: No such file or directory
[ 1.060365] Kernel panic - not syncing: Attempted to kill init!
exitcode=0x00007f00
[ 1.061383] CPU: 0 PID: 1 Comm: init Not tainted 5.17.7-
200.fc35.x86_64 #1
[ 1.062255] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),
BIOS 1.15.0-1.fc35 04/01/2014
[ 1.063306] Call Trace:
[ 1.063619] <TASK>
[ 1.063883] dump_stack_lvl+0x48/0x5f
[ 1.064326] panic+0xea/0x2c2
[ 1.064706] do_exit.cold+0x15/0x15
[ 1.065166] do_group_exit+0x2d/0x90
[ 1.065650] __x64_sys_exit_group+0x14/0x20
[ 1.066210] do_syscall_64+0x3b/0x90
[ 1.066643] entry_SYSCALL_64_after_hwframe+0x44/0xae
[ 1.067281] RIP: 0033:0x7f20a985fdf1
[ 1.067719] Code: 35 00 0e 00 be e7 00 00 00 ba 3c 00 00 00 eb 16 66
0f 1f 84 00 00 00 00 00 89 d0 0f 05 48 3d 00 f0 ff ff 77 1c f4 89 f0 0f
05 <48> 3d 00 f0 ff ff 76 e7 f7 d8 64 41 89 00 eb df 0f 1f 80 00 00 00
[ 1.069965] RSP: 002b:00007ffcb153a818 EFLAGS: 00000246 ORIG_RAX:
00000000000000e7
[ 1.070912] RAX: ffffffffffffffda RBX: 00007f20a993c9e0 RCX:
00007f20a985fdf1
[ 1.071778] RDX: 000000000000003c RSI: 00000000000000e7 RDI:
000000000000007f
[ 1.072646] RBP: 000000000000007f R08: ffffffffffffff80 R09:
0000000000000000
[ 1.073512] R10: 0000000000000028 R11: 0000000000000246 R12:
00007f20a993c9e0
[ 1.074358] R13: 0000000000000000 R14: 00007f20a9941ee8 R15:
00007f20a9941f00
[ 1.075253] </TASK>
[ 1.075683] Kernel Offset: 0x32000000 from 0xffffffff81000000
(relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[ 1.077040] Rebooting in 1 seconds..
libguestfs: error: appliance closed the connection unexpectedly, see
earlier error messages
libguestfs: child_cleanup: 0x56065d535250: child process died
libguestfs: error: guestfs_launch failed, see earlier error messages
libguestfs: closing guestfs handle 0x56065d535250 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfsVi47UI
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /run/user/1000/libguestfs8jJCGw
2 years, 7 months