[libnbd PATCH 0/2] Fix memory leak with closures
by Eric Blake
As promised in my earlier thread on libnbd completion callback question.
Eric Blake (2):
generator: Refactor handling of closures in unlocked functions
generator: Free closures on failure
docs/libnbd.pod | 2 +-
generator/C.ml | 48 +++++++++++------
generator/C.mli | 1 +
lib/debug.c | 7 +--
lib/opt.c | 31 ++++++-----
lib/rw.c | 109 +++++++++++++++++++++++---------------
tests/closure-lifetimes.c | 63 +++++++++++++++++++++-
tests/newstyle-limited.c | 18 ++++++-
8 files changed, 200 insertions(+), 79 deletions(-)
--
2.28.0
4 years, 2 months
[libnbd PATCH v2 0/3] Improve type-safety of ocaml/golang getters
by Eric Blake
Well, the golang changes (patch 1 and 2/3 of v1) were already
committed, all that was left was the OCaml changes. I'm a lot happier
with how things turned out with an UNKNOWN constructor in the OCaml
variants.
Eric Blake (3):
tests: Enhance coverage of enum/flag range checking
ocaml: Support unknown values for Enum/Flags
ocaml: Typesafe returns for REnum/RFlags
generator/OCaml.ml | 123 +++++++++++++++---
python/t/120-set-non-defaults.py | 12 ++
ocaml/tests/test_110_defaults.ml | 5 +-
ocaml/tests/test_120_set_non_defaults.ml | 19 ++-
tests/errors.c | 32 +++++
.../libnbd_120_set_non_defaults_test.go | 28 +++-
6 files changed, 194 insertions(+), 25 deletions(-)
--
2.28.0
4 years, 2 months
[PATCH nbdkit NOT WORKING 0/2] vddk: Relax threading model.
by Richard W.M. Jones
I believe this roughly implements Nir's proposal here:
https://www.redhat.com/archives/libguestfs/2020-August/msg00028.html
Unfortunately it doesn't work for me. It actually slows things down
quite a lot, for reasons I don't understand. Note the adjustment of
the pool-max parameter and how it affects the total time. The results
are quite reproducible.
$ ./nbdkit -r -U - vddk libdir=~/tmp/vddk-7.0.0/vmware-vix-disklib-distrib user=root password=*** server=*** thumbprint=*** vm=moref=3 file='[datastore1] Fedora 28/Fedora 28.vmdk' pool-max=1 --run 'time qemu-img convert -p -W -m 16 $nbd /var/tmp/out'
(100.00/100%)
real 1m8.031s
user 0m0.112s
sys 0m1.560s
$ ./nbdkit -r -U - vddk libdir=~/tmp/vddk-7.0.0/vmware-vix-disklib-distrib user=root password=*** server=*** thumbprint=*** vm=moref=3 file='[datastore1] Fedora 28/Fedora 28.vmdk' pool-max=8 --run 'time qemu-img convert -p -W -m 16 $nbd /var/tmp/out'
(100.00/100%)
real 1m27.790s
user 0m0.099s
sys 0m1.625s
I'm still investigating this. Could be a simple coding error somewhere.
Rich.
4 years, 2 months
[libnbd PATCH 0/3] Improve type-safety of ocaml/golang getters
by Eric Blake
Natural fallout after my recent testsuite additions that fixed a
couple of ocaml bugs in the setters. However, on at least the OCaml
code, I'm not sure what we should do if a newer libnbd ever returns a
bit that an older NBD.mli was not expecting at the time the OCaml
compiler ran (see below). I'm also not sure if there is a more
efficient way to avoid outputting Val_FOO() converters for types not
referenced in REnum/RFlags than my hack of __attribute__((unused)).
Hence I'll wait for a review on these.
Now, for the future compatibility lesson, promised above.
nbd_get_handshake_flags is documented as potentially returning
additional bits from a newer libnbd than what the current client code
was compiled against. How? Let's say a future NBD protocol addition
adds LIBNBD_HANDSHAKE_FLAG_64BIT (as that one might actually be a way
that we implement 64-bit requests...). Presumably, once the NBD
protocol defines it and future libnbd implements it, then future
libnbd will default to setting that bit during nbd_create(). An older
C client that did:
flags = nbd_get_handshake_flags (nbd) & ~LIBNBD_HANDSHAKE_FLAG_NO_ZEROES;
nbd_set_handshake_flags (nbd, flags);
will still run (even though flags contains a bit that was not known at
the time the C app was compiled, the libnbd call that checks that all
input bits are known is from the newer libnbd that recognizes
LIBNBD_HANDSHAKE_FLAG_64BIT as valid). But an OCaml client compiled
against the older interface has no OCaml value to represent the new
bit from the getter, nor any way to specify that new bit to the setter
that is expecting a list of only the old variant type. Maybe we want
the generator to produce a full list of 31 variants per 'flags' type,
using placeholders for all bits not currently in use, to make it
easier to receive an unknown bit from the getter and turn around to
re-supply it to the setter? In such a setup, libnbd would still be
rejecting input of out-of-range bits in relation to what libnbd knew
at its compilation time.
Eric Blake (3):
generator: Introduce REnum/RFlags return types
golang: Typesafe returns for REnum/RFlags
ocaml: Typesafe returns for REnum/RFlags
generator/API.ml | 16 ++++--
generator/API.mli | 2 +
generator/C.ml | 20 ++++---
generator/GoLang.ml | 13 ++++-
generator/OCaml.ml | 55 +++++++++++++++++++
generator/Python.ml | 2 +
ocaml/tests/test_110_defaults.ml | 5 +-
ocaml/tests/test_120_set_non_defaults.ml | 4 +-
.../libnbd/libnbd_110_defaults_test.go | 6 +-
.../libnbd_120_set_non_defaults_test.go | 2 +-
10 files changed, 102 insertions(+), 23 deletions(-)
--
2.28.0
4 years, 2 months
libnbd completion callback question
by Eric Blake
I noticed while reading the code that we have a documentation hole that
may cause memory leaks for clients that are unaware, in relation to
completion callbacks.
The situation arises as follows: for all commands with a completion
callback, I checked that the code has clean semantics: either
nbd_aio_FOO() returns -1 and we never call the callback cleanup, or
nbd_aio_FOO() returns a cookie and we call the callback cleanup when the
command is retired. And since completion callbacks can only ever be
passed to nbd_aio_FOO() functions, it is simple enough to document that
when nbd_aio_FOO() fails (possible when calling them while the state
machine is in the wrong state, or with invalid flags, or a command that
the server is unwilling to accept - all things we can check client-side
without traffic to the server), then the callback function was NOT
registered, and the user must clean any resources then and there to
avoid a leak. Only when nbd_aio_FOO() succeeds will the responsibility
for cleanup be handled by the callback.
But for nbd_block_status and nbd_pread_structured, we have a second
callback. And _these_ callbacks have a problem: we can return -1 for
two different reasons, either because the command was never attempted
(nbd_aio_FOO failed) and so the callback will never be cleaned, or
because the command got sent to the server and the server failed it (the
callback WILL be cleaned). As this is ambiguous, it risks being a
memory leak. So I think we have a bug in our code, and need to
strengthen our promise of whether the cleanup callback will be called,
regardless of success or failure, while still minimizing any incompat
changes that might cause a double-free for existing clients.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
4 years, 2 months
[RFC libnbd PATCH 0/2] Add knobs for client- vs. server-side validation
by Eric Blake
We have been inconsistent on how much we reject client-side without
even consulting the server, vs. how much we depend on the server to
detect failure (even if our request can be deemed undefined per NBD
protocol). I'd like to change it so that by default, we reject as
much as we can client-side for less traffic, but where the user can
also change things on the fly for server-side integration testing.
My remaining question, then, is how many knobs to expose initially?
As written, I've only given two knobs, but make the case in each patch
how it could easily be split into four knobs if we think the finer
granularity is worthwhile.
A future knob for block-size validation would also make sense,
especially given the recent addition of support for querying server
minimum block size constraints (although I'd like to finish my work on
getting nbdkit to advertise block constraints to make that easier to
test...).
Eric Blake (2):
api: Add nbd_set_strict_mode
api: Add STRICT_BOUNDS to nbd_set_strict_mode
lib/internal.h | 3 +
generator/API.ml | 67 ++++++++++-
lib/disconnect.c | 18 +--
lib/handle.c | 16 +++
lib/rw.c | 289 ++++++++++++++++++++++++++++++-----------------
tests/errors.c | 61 +++++++++-
6 files changed, 340 insertions(+), 114 deletions(-)
--
2.28.0
4 years, 2 months
Weird results from g.sh()
by Sam Eiderman
Hi,
I'm using libguestfs 1.42,
When I run the following python3 commands on a rhel7.8:
print(g.ls('/sys'))
print(g.sh('ls /sys'))
I get:
[]
block
bus
class
dev
devices
firmware
fs
hypervisor
kernel
module
power
It seems that g.ls('/sys') is chrooted correctly.
But g.sh('ls /sys') isn't.
I came across this behavior when I used g.command(['grub2-mkconfig', '-o',
'....']) on rhel7.8 and it didn't produce the correct linuxefi/initrdefi
entries in grub, since in rhel7.8 the uefi detection algorithm is checking
in bash '[ -d /sys/firmware/efi ]'.
https://src.fedoraproject.org/rpms/grub2/blob/71e0fb4ea646071ec86e4a65bb2...
I thought I could simply g.mkdir_p('/sys/firmware/efi') - but that created
a fake dir in my chrooted environment, where grub2-mkconfig somehow was
inspecting the real /sys as demonstrated in the above 'ls' example.
Any ideas on why sh jailbreaks the chroot? is /sys set through some
environment variable?
Thanks!
4 years, 2 months
[PATCH v2v] v2v: Allow output to block devices (RHBZ#1868690).
by Richard W.M. Jones
We previously implicitly supported writing to block devices instead of
local files, but there were several problems:
* Block devices could be deleted, especially if virt-v2v failed during
a conversion.
* Block devices could be overwritten by a file with the same name,
although I believe this is just an observed consequence of the
previous point, or at least I was not able to reproduce this until
virt-v2v failed for another reason and then I noticed that because
the block device was deleted, the next run overwrote it with a file.
* It was not documented anywhere how to do it.
This commit makes the small code change needed to allow virt-v2v to
write to a block device, only for existing outputs which write to
local files (ie. using TargetFile). Also it avoids deleting block
devices accidentally on failure.
Note this commit intentionally does not prevent you from writing qcow2
to a block device. RHV uses this so it is a thing that people do.
---
docs/virt-v2v.pod | 32 +++++++++++++++++++++++++++++
v2v/v2v.ml | 51 ++++++++++++++++++++++++++++-------------------
2 files changed, 62 insertions(+), 21 deletions(-)
diff --git a/docs/virt-v2v.pod b/docs/virt-v2v.pod
index a00fa8afa..fd0833492 100644
--- a/docs/virt-v2v.pod
+++ b/docs/virt-v2v.pod
@@ -1412,8 +1412,40 @@ require either a special user and/or for you to source a script that
sets authentication environment variables. Consult the Glance
documentation.
+=item Writing to block devices
+
+This normally requires root. See the next section.
+
=back
+=head2 Writing to block devices
+
+Some output modes write to local files. In general these modes also
+let you write to block devices, but before you run virt-v2v you may
+have to arrange for symbolic links to the desired block devices in the
+output directory.
+
+For example if using I<-o local -os /dir> then virt-v2v would normally
+create files called:
+
+ /dir/name-sda # first disk
+ /dir/name-sdb # second disk
+ ...
+ /dir/name.xml # metadata
+
+If you wish the disks to be written to block devices then you would
+need to create F</dir/I<name>-sda> (etc) as symlinks to the block
+devices:
+
+ # lvcreate -L 10G -n VolumeForDiskA VG
+ # lvcreate -L 6G -n VolumeForDiskB VG
+ # ln -sf /dev/VG/VolumeForDiskA /dir/name-sda
+ # ln -sf /dev/VG/VolumeForDiskB /dir/name-sdb
+
+Note that you must create block devices of the correct size, and you
+need to use I<-of raw> since other output formats would not normally
+make sense on a block device.
+
=head2 Minimal XML for -i libvirtxml option
When using the I<-i libvirtxml> option, you have to supply some
diff --git a/v2v/v2v.ml b/v2v/v2v.ml
index 73edff2c4..a70310891 100644
--- a/v2v/v2v.ml
+++ b/v2v/v2v.ml
@@ -683,7 +683,10 @@ and copy_targets cmdline targets input output =
fun t ->
match t.target_file with
| TargetURI _ -> ()
- | TargetFile s -> try unlink s with _ -> ()
+ | TargetFile filename ->
+ if not (is_block_device filename) then (
+ try unlink filename with _ -> ()
+ )
) targets
)
);
@@ -713,27 +716,33 @@ and copy_targets cmdline targets input output =
(match t.target_file with
| TargetFile filename ->
- (* It turns out that libguestfs's disk creation code is
- * considerably more flexible and easier to use than
- * qemu-img, so create the disk explicitly using libguestfs
- * then pass the 'qemu-img convert -n' option so qemu reuses
- * the disk.
- *
- * Also we allow the output mode to actually create the disk
- * image. This lets the output mode set ownership and
- * permissions correctly if required.
+ (* As a special case, allow output to a block device or
+ * symlink to a block device. In this case we don't
+ * create/overwrite the block device. (RHBZ#1868690).
*)
- (* What output preallocation mode should we use? *)
- let preallocation =
- match t.target_format, cmdline.output_alloc with
- | ("raw"|"qcow2"), Sparse -> Some "sparse"
- | ("raw"|"qcow2"), Preallocated -> Some "full"
- | _ -> None (* ignore -oa flag for other formats *) in
- let compat =
- match t.target_format with "qcow2" -> Some "1.1" | _ -> None in
- output#disk_create filename t.target_format
- t.target_overlay.ov_virtual_size
- ?preallocation ?compat
+ if not (is_block_device filename) then (
+ (* It turns out that libguestfs's disk creation code is
+ * considerably more flexible and easier to use than
+ * qemu-img, so create the disk explicitly using libguestfs
+ * then pass the 'qemu-img convert -n' option so qemu reuses
+ * the disk.
+ *
+ * Also we allow the output mode to actually create the disk
+ * image. This lets the output mode set ownership and
+ * permissions correctly if required.
+ *)
+ (* What output preallocation mode should we use? *)
+ let preallocation =
+ match t.target_format, cmdline.output_alloc with
+ | ("raw"|"qcow2"), Sparse -> Some "sparse"
+ | ("raw"|"qcow2"), Preallocated -> Some "full"
+ | _ -> None (* ignore -oa flag for other formats *) in
+ let compat =
+ match t.target_format with "qcow2" -> Some "1.1" | _ -> None in
+ output#disk_create filename t.target_format
+ t.target_overlay.ov_virtual_size
+ ?preallocation ?compat
+ )
| TargetURI _ ->
(* XXX For the moment we assume that qemu URI outputs
--
2.27.0
4 years, 2 months
Re: [Libguestfs] Error while loading shared libraries: libsbz.so
by Richard W.M. Jones
[Please keep replies on the list]
> ************************************************************
> * IMPORTANT NOTICE
> *
> * When reporting bugs, include the COMPLETE, UNEDITED
> * output below in your bug report.
> *
> ************************************************************
> libguestfs: trace: set_verbose true
> libguestfs: trace: set_verbose = 0
> libguestfs: trace: set_verbose true
> libguestfs: trace: set_verbose = 0
> LIBGUESTFS_TRACE=1
> LIBGUESTFS_DEBUG=1
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
> SELinux: sh: 1: getenforce: not found
> libguestfs: trace: add_drive_scratch 104857600
> libguestfs: trace: get_tmpdir
> libguestfs: trace: get_tmpdir = "/tmp"
> libguestfs: trace: disk_create "/tmp/libguestfsMc5XCB/scratch1.img" "raw" 104857600
> libguestfs: trace: disk_create = 0
> libguestfs: trace: add_drive "/tmp/libguestfsMc5XCB/scratch1.img" "format:raw" "cachemode:unsafe"
> libguestfs: trace: add_drive = 0
> libguestfs: trace: add_drive_scratch = 0
> libguestfs: trace: get_append
> libguestfs: trace: get_append = "NULL"
> guestfs_get_append: (null)
> libguestfs: trace: get_autosync
> libguestfs: trace: get_autosync = 1
> guestfs_get_autosync: 1
> libguestfs: trace: get_backend
> libguestfs: trace: get_backend = "direct"
> guestfs_get_backend: direct
> libguestfs: trace: get_backend_settings
> libguestfs: trace: get_backend_settings = []
> guestfs_get_backend_settings: []
> libguestfs: trace: get_cachedir
> libguestfs: trace: get_cachedir = "/var/tmp"
> guestfs_get_cachedir: /var/tmp
> libguestfs: trace: get_direct
> libguestfs: trace: get_direct = 0
> guestfs_get_direct: 0
> libguestfs: trace: get_hv
> libguestfs: trace: get_hv = "/usr/bin/qemu-system-x86_64"
> guestfs_get_hv: /usr/bin/qemu-system-x86_64
> libguestfs: trace: get_memsize
> libguestfs: trace: get_memsize = 500
> guestfs_get_memsize: 500
> libguestfs: trace: get_network
> libguestfs: trace: get_network = 0
> guestfs_get_network: 0
> libguestfs: trace: get_path
> libguestfs: trace: get_path = "/usr/lib/x86_64-linux-gnu/guestfs"
> guestfs_get_path: /usr/lib/x86_64-linux-gnu/guestfs
> libguestfs: trace: get_pgroup
> libguestfs: trace: get_pgroup = 0
> guestfs_get_pgroup: 0
> libguestfs: trace: get_program
> libguestfs: trace: get_program = "libguestfs-test-tool"
> guestfs_get_program: libguestfs-test-tool
> libguestfs: trace: get_recovery_proc
> libguestfs: trace: get_recovery_proc = 1
> guestfs_get_recovery_proc: 1
> libguestfs: trace: get_smp
> libguestfs: trace: get_smp = 1
> guestfs_get_smp: 1
> libguestfs: trace: get_sockdir
> libguestfs: trace: get_sockdir = "/tmp"
> guestfs_get_sockdir: /tmp
> libguestfs: trace: get_tmpdir
> libguestfs: trace: get_tmpdir = "/tmp"
> guestfs_get_tmpdir: /tmp
> libguestfs: trace: get_trace
> libguestfs: trace: get_trace = 1
> guestfs_get_trace: 1
> libguestfs: trace: get_verbose
> libguestfs: trace: get_verbose = 1
> guestfs_get_verbose: 1
> host_cpu: x86_64
> Launching appliance, timeout set to 600 seconds.
> libguestfs: trace: launch
> libguestfs: trace: version
> libguestfs: trace: version = <struct guestfs_version = major: 1, minor: 36, release: 13, extra: , >
> libguestfs: trace: get_backend
> libguestfs: trace: get_backend = "direct"
> 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/libguestfsMc5XCB
> libguestfs: launch: umask=0022
> libguestfs: launch: euid=0
> libguestfs: trace: get_backend_setting "force_tcg"
> libguestfs: trace: get_backend_setting = NULL (error)
> libguestfs: trace: get_cachedir
> libguestfs: trace: get_cachedir = "/var/tmp"
> 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-0/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-0/appliance.d
> supermin: version: 5.1.19
> supermin: package handler: debian/dpkg
> supermin: acquiring lock on /var/tmp/.guestfs-0/lock
> supermin: if-newer: output does not need rebuilding
> libguestfs: finished building supermin appliance
> libguestfs: begin testing qemu features
> libguestfs: trace: get_cachedir
> libguestfs: trace: get_cachedir = "/var/tmp"
> libguestfs: checking for previously cached test results of /usr/bin/qemu-system-x86_64, in /var/tmp/.guestfs-0
> libguestfs: loading previously cached test results
> libguestfs: qemu version: 2.11
> libguestfs: qemu mandatory locking: yes
> libguestfs: trace: get_sockdir
> libguestfs: trace: get_sockdir = "/tmp"
> libguestfs: finished testing qemu features
> libguestfs: trace: get_backend_setting "gdb"
> libguestfs: trace: get_backend_setting = NULL (error)
> [00006ms] /usr/bin/qemu-system-x86_64 \
> -global virtio-blk-pci.scsi=off \
> -enable-fips \
> -nodefaults \
> -display none \
> -machine accel=kvm:tcg \
> -cpu host \
> -m 500 \
> -no-reboot \
> -rtc driftfix=slew \
> -no-hpet \
> -global kvm-pit.lost_tick_policy=discard \
> -kernel /var/tmp/.guestfs-0/appliance.d/kernel \
> -initrd /var/tmp/.guestfs-0/appliance.d/initrd \
> -object rng-random,filename=/dev/urandom,id=rng0 \
> -device virtio-rng-pci,rng=rng0 \
> -device virtio-scsi-pci,id=scsi \
> -drive file=/tmp/libguestfsMc5XCB/scratch1.img,cache=unsafe,format=raw,id=hd0,if=none \
> -device scsi-hd,drive=hd0 \
> -drive file=/var/tmp/.guestfs-0/appliance.d/root,snapshot=on,id=appliance,cache=unsafe,if=none,format=raw \
> -device scsi-hd,drive=appliance \
> -device virtio-serial-pci \
> -serial stdio \
> -device sga \
> -chardev socket,path=/tmp/libguestfsRFgWd6/guestfsd.sock,id=channel0 \
> -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \
> -append '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=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm-256color'
> libguestfs: responding to serial console Device Status Report
> \x1b[1;256r\x1b[256;256H\x1b[6n
> Google, Inc.
> Serial Graphics Adapter 03/05/17
> SGABIOS $Id: sgabios.S 8 2010-04-22 00:03:40Z nlaredo $ (generic@generic) Sun, 05 Mar 2017 16:09:17 +0100
> Term: 80x24
> 4 0
> SeaBIOS (version 1.10.2-1ubuntu1)
> Booting from ROM...
> \x1b[2J[ 0.000000] Linux version 4.15.0-115-generic (buildd@lgw01-amd64-037) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #116-Ubuntu SMP Wed Aug 26 14:04:49 UTC 2020 (Ubuntu 4.15.0-115.116-generic 4.15.18)
> [ 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=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm-256color
> [ 0.000000] KERNEL supported cpus:
> [ 0.000000] Intel GenuineIntel
> [ 0.000000] AMD AuthenticAMD
> [ 0.000000] Centaur CentaurHauls
> [ 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: Supporting XSAVE feature 0x008: 'MPX bounds registers'
> [ 0.000000] x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR'
> [ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
> [ 0.000000] x86/fpu: xstate_offset[3]: 832, xstate_sizes[3]: 64
> [ 0.000000] x86/fpu: xstate_offset[4]: 896, xstate_sizes[4]: 64
> [ 0.000000] x86/fpu: Enabled xstate features 0x1f, context size is 960 bytes, using 'compacted' format.
> [ 0.000000] e820: 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-0x000000001f3ddfff] usable
> [ 0.000000] BIOS-e820: [mem 0x000000001f3de000-0x000000001f3fffff] 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.10.2-1ubuntu1 04/01/2014
> [ 0.000000] Hypervisor detected: KVM
> [ 0.000000] e820: last_pfn = 0x1f3de max_arch_pfn = 0x400000000
> [ 0.000000] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WP UC- WT
> [ 0.000000] found SMP MP-table at [mem 0x000f6a90-0x000f6a9f]
> [ 0.000000] Scanning 1 areas for low memory corruption
> [ 0.000000] Using GB pages for direct mapping
> [ 0.000000] RAMDISK: [mem 0x1f35b000-0x1f3cffff]
> [ 0.000000] ACPI: Early table checksum verification disabled
> [ 0.000000] ACPI: RSDP 0x00000000000F68B0 000014 (v00 BOCHS )
> [ 0.000000] ACPI: RSDT 0x000000001F3E159D 00002C (v01 BOCHS BXPCRSDT 00000001 BXPC 00000001)
> [ 0.000000] ACPI: FACP 0x000000001F3E1431 000074 (v01 BOCHS BXPCFACP 00000001 BXPC 00000001)
> [ 0.000000] ACPI: DSDT 0x000000001F3E0040 0013F1 (v01 BOCHS BXPCDSDT 00000001 BXPC 00000001)
> [ 0.000000] ACPI: FACS 0x000000001F3E0000 000040
> [ 0.000000] ACPI: APIC 0x000000001F3E1525 000078 (v01 BOCHS BXPCAPIC 00000001 BXPC 00000001)
> [ 0.000000] No NUMA configuration found
> [ 0.000000] Faking a node at [mem 0x0000000000000000-0x000000001f3ddfff]
> [ 0.000000] NODE_DATA(0) allocated [mem 0x1f330000-0x1f35afff]
> [ 0.000000] kvm-clock: cpu 0, msr 0:1f2b0001, primary cpu clock
> [ 0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00
> [ 0.000000] kvm-clock: using sched offset of 272038352 cycles
> [ 0.000000] clocksource: kvm-clock: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
> [ 0.000000] Zone ranges:
> [ 0.000000] DMA [mem 0x0000000000001000-0x0000000000ffffff]
> [ 0.000000] DMA32 [mem 0x0000000001000000-0x000000001f3ddfff]
> [ 0.000000] Normal empty
> [ 0.000000] Device empty
> [ 0.000000] Movable zone start for each node
> [ 0.000000] Early memory node ranges
> [ 0.000000] node 0: [mem 0x0000000000001000-0x000000000009efff]
> [ 0.000000] node 0: [mem 0x0000000000100000-0x000000001f3ddfff]
> [ 0.000000] Reserved but unavailable: 98 pages
> [ 0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000001f3ddfff]
> [ 0.000000] ACPI: PM-Timer IO Port: 0x608
> [ 0.000000] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
> [ 0.000000] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23
> [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
> [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
> [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
> [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
> [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
> [ 0.000000] Using ACPI (MADT) for SMP configuration information
> [ 0.000000] TSC deadline timer available
> [ 0.000000] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
> [ 0.000000] PM: Registered nosave memory: [mem 0x00000000-0x00000fff]
> [ 0.000000] PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
> [ 0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000effff]
> [ 0.000000] PM: Registered nosave memory: [mem 0x000f0000-0x000fffff]
> [ 0.000000] e820: [mem 0x1f400000-0xfeffbfff] available for PCI devices
> [ 0.000000] Booting paravirtualized kernel on KVM
> [ 0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns
> [ 0.000000] random: get_random_bytes called from start_kernel+0x99/0x500 with crng_init=0
> [ 0.000000] setup_percpu: NR_CPUS:8192 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
> [ 0.000000] percpu: Embedded 45 pages/cpu s147456 r8192 d28672 u2097152
> [ 0.000000] KVM setup async PF for cpu 0
> [ 0.000000] kvm-stealtime: cpu 0, msr 1f023040
> [ 0.000000] PV qspinlock hash table entries: 256 (order: 0, 4096 bytes)
> [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 125847
> [ 0.000000] Policy zone: DMA32
> [ 0.000000] 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=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm-256color
> [ 0.000000] Memory: 473508K/511472K available (12300K kernel code, 2481K rwdata, 4272K rodata, 2436K init, 2724K bss, 37964K reserved, 0K cma-reserved)
> [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
> [ 0.000000] Kernel/User page tables isolation: enabled
> [ 0.000000] ftrace: allocating 39392 entries in 154 pages
> [ 0.004000] Hierarchical RCU implementation.
> [ 0.004000] \tRCU restricting CPUs from NR_CPUS=8192 to nr_cpu_ids=1.
> [ 0.004000] \tTasks RCU enabled.
> [ 0.004000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
> [ 0.004000] NR_IRQS: 524544, nr_irqs: 256, preallocated irqs: 16
> [ 0.004000] Console: colour *CGA 80x25
> [ 0.004000] console [ttyS0] enabled
> [ 0.004000] ACPI: Core revision 20170831
> [ 0.004000] ACPI: 1 ACPI AML tables successfully acquired and loaded
> [ 0.004000] APIC: Switch to symmetric I/O mode setup
> [ 0.004000] x2apic enabled
> [ 0.004000] Switched APIC routing to physical x2apic.
> [ 0.004000] tsc: Detected 3600.000 MHz processor
> [ 0.004000] Calibrating delay loop (skipped) preset value.. 7200.00 BogoMIPS (lpj=14400000)
> [ 0.004000] pid_max: default: 32768 minimum: 301
> [ 0.004000] Security Framework initialized
> [ 0.004000] Yama: becoming mindful.
> [ 0.004000] AppArmor: AppArmor initialized
> [ 0.004000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
> [ 0.004000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
> [ 0.004000] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
> [ 0.004000] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes)
> [ 0.004000] Disabling memory control group subsystem
> [ 0.004000] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
> [ 0.004000] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0
> [ 0.004000] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
> [ 0.004000] Spectre V2 : Mitigation: Full generic retpoline
> [ 0.004000] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
> [ 0.004000] Spectre V2 : Enabling Restricted Speculation for firmware calls
> [ 0.004000] Spectre V2 : mitigation: Enabling conditional Indirect Branch Prediction Barrier
> [ 0.004000] Speculative Store Bypass: Mitigation: Speculative Store Bypass disabled via prctl and seccomp
> [ 0.004000] TAA: Mitigation: Clear CPU buffers
> [ 0.004000] SRBDS: Unknown: Dependent on hypervisor status
> [ 0.004000] MDS: Mitigation: Clear CPU buffers
> [ 0.004000] Freeing SMP alternatives memory: 36K
> [ 0.004000] smpboot: CPU0: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz (family: 0x6, model: 0x9e, stepping: 0x9)
> [ 0.004000] Performance Events: Skylake events, Intel PMU driver.
> [ 0.004000] ... version: 2
> [ 0.004000] ... bit width: 48
> [ 0.004000] ... generic registers: 4
> [ 0.004000] ... value mask: 0000ffffffffffff
> [ 0.004000] ... max period: 000000007fffffff
> [ 0.004000] ... fixed-purpose events: 3
> [ 0.004004] ... event mask: 000000070000000f
> [ 0.004572] Hierarchical SRCU implementation.
> [ 0.005456] smp: Bringing up secondary CPUs ...
> [ 0.005898] smp: Brought up 1 node, 1 CPU
> [ 0.006285] smpboot: Max logical packages: 1
> [ 0.006698] smpboot: Total of 1 processors activated (7200.00 BogoMIPS)
> [ 0.007425] devtmpfs: initialized
> [ 0.007882] x86/mm: Memory block size: 128MB
> [ 0.008087] evm: security.selinux
> [ 0.008435] evm: security.SMACK64
> [ 0.008843] evm: security.SMACK64EXEC
> [ 0.009188] evm: security.SMACK64TRANSMUTE
> [ 0.009615] evm: security.SMACK64MMAP
> [ 0.010003] evm: security.apparmor
> [ 0.010324] evm: security.ima
> [ 0.010632] evm: security.capability
> [ 0.011101] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
> [ 0.012007] futex hash table entries: 256 (order: 2, 16384 bytes)
> [ 0.012700] pinctrl core: initialized pinctrl subsystem
> [ 0.013358] RTC time: 10:30:21, date: 09/03/20
> [ 0.013866] NET: Registered protocol family 16
> [ 0.014402] audit: initializing netlink subsys (disabled)
> [ 0.015013] cpuidle: using governor ladder
> [ 0.015464] cpuidle: using governor menu
> [ 0.015913] ACPI: bus type PCI registered
> [ 0.016006] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
> [ 0.016654] audit: type=2000 audit(1599129022.211:1): state=initialized audit_enabled=0 res=1
> [ 0.017576] PCI: Using configuration type 1 for base access
> [ 0.018763] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
> [ 0.019412] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
> [ 0.020103] ACPI: Added _OSI(Module Device)
> [ 0.020512] ACPI: Added _OSI(Processor Device)
> [ 0.020939] ACPI: Added _OSI(3.0 _SCP Extensions)
> [ 0.021390] ACPI: Added _OSI(Processor Aggregator Device)
> [ 0.021904] ACPI: Added _OSI(Linux-Dell-Video)
> [ 0.022333] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
> [ 0.022838] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)
> [ 0.024052] ACPI: Interpreter enabled
> [ 0.024425] ACPI: (supports S0 S3 S4 S5)
> [ 0.024805] ACPI: Using IOAPIC for interrupt routing
> [ 0.025287] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
> [ 0.026245] ACPI: Enabled 2 GPEs in block 00 to 0F
> [ 0.028495] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
> [ 0.029094] acpi PNP0A03:00: _OSC: OS supports [ASPM ClockPM Segments MSI]
> [ 0.029802] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM
> [ 0.030450] acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.
> [ 0.031724] acpiphp: Slot [2] registered
> [ 0.032030] acpiphp: Slot [3] registered
> [ 0.032436] acpiphp: Slot [4] registered
> [ 0.032843] acpiphp: Slot [5] registered
> [ 0.033249] acpiphp: Slot [6] registered
> [ 0.033654] acpiphp: Slot [7] registered
> [ 0.034069] acpiphp: Slot [8] registered
> [ 0.034476] acpiphp: Slot [9] registered
> [ 0.034880] acpiphp: Slot [10] registered
> [ 0.035294] acpiphp: Slot [11] registered
> [ 0.035712] acpiphp: Slot [12] registered
> [ 0.036028] acpiphp: Slot [13] registered
> [ 0.036469] acpiphp: Slot [14] registered
> [ 0.036885] acpiphp: Slot [15] registered
> [ 0.037318] acpiphp: Slot [16] registered
> [ 0.037791] acpiphp: Slot [17] registered
> [ 0.038233] acpiphp: Slot [18] registered
> [ 0.038696] acpiphp: Slot [19] registered
> [ 0.039097] acpiphp: Slot [20] registered
> [ 0.039503] acpiphp: Slot [21] registered
> [ 0.039991] acpiphp: Slot [22] registered
> [ 0.040028] acpiphp: Slot [23] registered
> [ 0.040478] acpiphp: Slot [24] registered
> [ 0.040893] acpiphp: Slot [25] registered
> [ 0.041297] acpiphp: Slot [26] registered
> [ 0.041772] acpiphp: Slot [27] registered
> [ 0.042174] acpiphp: Slot [28] registered
> [ 0.042595] acpiphp: Slot [29] registered
> [ 0.043072] acpiphp: Slot [30] registered
> [ 0.043502] acpiphp: Slot [31] registered
> [ 0.043975] PCI host bridge to bus 0000:00
> [ 0.044003] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window]
> [ 0.044706] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window]
> [ 0.045362] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
> [ 0.046146] pci_bus 0000:00: root bus resource [mem 0x1f400000-0xfebfffff window]
> [ 0.046857] pci_bus 0000:00: root bus resource [mem 0x100000000-0x17fffffff window]
> [ 0.047582] pci_bus 0000:00: root bus resource [bus 00-ff]
> [ 0.050713] pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io 0x01f0-0x01f7]
> [ 0.051396] pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io 0x03f6]
> [ 0.052003] pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io 0x0170-0x0177]
> [ 0.052677] pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io 0x0376]
> [ 0.053945] pci 0000:00:01.3: quirk: [io 0x0600-0x063f] claimed by PIIX4 ACPI
> [ 0.054700] pci 0000:00:01.3: quirk: [io 0x0700-0x070f] claimed by PIIX4 SMB
> [ 0.068773] ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
> [ 0.069436] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
> [ 0.070102] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
> [ 0.070728] ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
> [ 0.071335] ACPI: PCI Interrupt Link [LNKS] (IRQs *9)
> [ 0.072038] SCSI subsystem initialized
> [ 0.072485] vgaarb: loaded
> [ 0.072766] usbcore: USB support disabled
> [ 0.073183] EDAC MC: Ver: 3.0.0
> [ 0.074040] PCI: Using ACPI for IRQ routing
> [ 0.074635] NetLabel: Initializing
> [ 0.074973] NetLabel: domain hash size = 128
> [ 0.075392] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO
> [ 0.075971] NetLabel: unlabeled traffic allowed by default
> [ 0.076138] clocksource: Switched to clocksource kvm-clock
> [ 0.132467] VFS: Disk quotas dquot_6.6.0
> [ 0.132923] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
> [ 0.133738] AppArmor: AppArmor Filesystem Enabled
> [ 0.134284] pnp: PnP ACPI init
> [ 0.134914] pnp: PnP ACPI: found 5 devices
> [ 0.140687] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
> [ 0.141592] NET: Registered protocol family 2
> [ 0.142174] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
> [ 0.142882] TCP bind hash table entries: 4096 (order: 4, 65536 bytes)
> [ 0.143570] TCP: Hash tables configured (established 4096 bind 4096)
> [ 0.144279] UDP hash table entries: 256 (order: 1, 8192 bytes)
> [ 0.144833] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
> [ 0.145508] NET: Registered protocol family 1
> [ 0.145930] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
> [ 0.146552] pci 0000:00:01.0: PIIX3: Enabling Passive Release
> [ 0.147102] pci 0000:00:01.0: Activating ISA DMA hang workarounds
> [ 0.147842] Unpacking initramfs...
> [ 0.148751] Freeing initrd memory: 468K
> [ 0.149200] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x33e452fbb2f, max_idle_ns: 440795236593 ns
> [ 0.150215] Scanning for low memory corruption every 60 seconds
> [ 0.151165] Initialise system trusted keyrings
> [ 0.151614] Key type blacklist registered
> [ 0.152076] workingset: timestamp_bits=36 max_order=17 bucket_order=0
> [ 0.153616] zbud: loaded
> [ 0.154219] squashfs: version 4.0 (2009/01/31) Phillip Lougher
> [ 0.155728] fuse init (API version 7.26)
> [ 0.156847] Key type asymmetric registered
> [ 0.157290] Asymmetric key parser 'x509' registered
> [ 0.157768] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
> [ 0.158546] io scheduler noop registered
> [ 0.158935] io scheduler deadline registered
> [ 0.159410] io scheduler cfq registered (default)
> [ 0.159976] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
> [ 0.160724] ACPI: Power Button [PWRF]
> [ 0.177684] ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 10
> [ 0.195356] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
> [ 0.213180] ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
> [ 0.214497] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
> [ 0.237292] 00:04: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
> [ 0.279268] Linux agpgart interface v0.103
> [ 0.292921] loop: module loaded
> [ 0.296810] scsi host0: ata_piix
> [ 0.298174] scsi host1: ata_piix
> [ 0.299284] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc0a0 irq 14
> [ 0.301933] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc0a8 irq 15
> [ 0.304574] libphy: Fixed MDIO Bus: probed
> [ 0.305589] tun: Universal TUN/TAP device driver, 1.6
> [ 0.306894] PPP generic driver version 2.4.2
> [ 0.307894] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
> [ 0.310535] serio: i8042 KBD port at 0x60,0x64 irq 1
> [ 0.311506] serio: i8042 AUX port at 0x60,0x64 irq 12
> [ 0.312549] mousedev: PS/2 mouse device common for all mice
> [ 0.313807] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1
> [ 0.315551] rtc_cmos 00:00: RTC can wake from S4
> [ 0.316663] rtc_cmos 00:00: rtc core: registered rtc_cmos as rtc0
> [ 0.317695] rtc_cmos 00:00: alarms up to one day, y3k, 114 bytes nvram
> [ 0.318620] i2c /dev entries driver
> [ 0.319167] device-mapper: uevent: version 1.0.3
> [ 0.319880] device-mapper: ioctl: 4.37.0-ioctl (2017-09-20) initialised: dm-devel(a)redhat.com
> [ 0.321077] ledtrig-cpu: registered to indicate activity on CPUs
> [ 0.322178] NET: Registered protocol family 10
> [ 0.323053] Segment Routing with IPv6
> [ 0.323532] NET: Registered protocol family 17
> [ 0.324120] Key type dns_resolver registered
> [ 0.324744] mce: Using 10 MCE banks
> [ 0.325202] RAS: Correctable Errors collector initialized.
> [ 0.325889] sched_clock: Marking stable (324089714, 0)->(457894587, -133804873)
> [ 0.326898] registered taskstats version 1
> [ 0.327402] Loading compiled-in X.509 certificates
> [ 0.328450] Loaded X.509 cert 'Build time autogenerated kernel key: 4655b2c914ed6b33eca2e2b4a955f269ad793254'
> [ 0.329560] zswap: loaded using pool lzo/zbud
> [ 0.330224] Key type big_key registered
> [ 0.330660] Key type trusted registered
> [ 0.331141] Key type encrypted registered
> [ 0.331594] AppArmor: AppArmor sha1 policy hashing enabled
> [ 0.332231] ima: No TPM chip found, activating TPM-bypass! (rc=-19)
> [ 0.332866] ima: Allocated hash algorithm: sha1
> [ 0.333369] evm: HMAC attrs: 0x1
> [ 0.333927] Magic number: 4:779:526
> [ 0.334390] rtc_cmos 00:00: setting system clock to 2020-09-03 10:30:21 UTC (1599129021)
> [ 0.335234] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
> [ 0.335862] EDD information not available.
> [ 0.471020] Freeing unused kernel image memory: 2436K
> [ 0.480131] Write protecting the kernel read-only data: 20480k
> [ 0.484453] Freeing unused kernel image memory: 2008K
> [ 0.487483] Freeing unused kernel image memory: 1872K
> [ 0.506575] x86/mm: Checked W+X mappings: passed, no W+X pages found.
> [ 0.508327] x86/mm: Checking user space page tables
> [ 0.517535] x86/mm: Checked W+X mappings: passed, no W+X pages found.
> supermin: mounting /proc
> supermin: ext2 mini initrd starting up: 5.1.19
> 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=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm-256color
> supermin: uptime: 0.52 0.13
> supermin: mounting /sys
> supermin: internal insmod crc32-pclmul.ko
> supermin: internal insmod crct10dif-pclmul.ko
> supermin: internal insmod crc32_generic.ko
> supermin: internal insmod nfit.ko
> supermin: internal insmod virtio_blk.ko
> supermin: internal insmod virtio-rng.ko
> supermin: internal insmod crypto_engine.ko
> supermin: internal insmod virtio_crypto.ko
> supermin: internal insmod virtio_net.ko
> supermin: internal insmod nd_btt.ko
> [ 0.536258] random: fast init done
> [ 0.536735] random: crng init done
> supermin: internal insmod nd_pmem.ko
> supermin: internal insmod rpmsg_core.ko
> supermin: internal insmod virtio_rpmsg_bus.ko
> supermin: internal insmod virtio_scsi.ko
> [ 0.541993] scsi host2: Virtio SCSI HBA
> [ 0.543475] scsi 2:0:0:0: Direct-Access QEMU QEMU HARDDISK 2.5+ PQ: 0 ANSI: 5
> [ 0.544402] scsi 2:0:1:0: Direct-Access QEMU QEMU HARDDISK 2.5+ PQ: 0 ANSI: 5
> [ 0.555523] sd 2:0:0:0: Power-on or device reset occurred
> [ 0.556373] sd 2:0:0:0: Attached scsi generic sg0 type 0
> [ 0.557047] sd 2:0:0:0: [sda] 204800 512-byte logical blocks: (105 MB/100 MiB)
> [ 0.557890] sd 2:0:1:0: Power-on or device reset occurred
> [ 0.558490] sd 2:0:0:0: [sda] Write Protect is off
> [ 0.558996] sd 2:0:1:0: Attached scsi generic sg1 type 0
> [ 0.559601] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
> [ 0.560740] sd 2:0:1:0: [sdb] 8388608 512-byte logical blocks: (4.29 GB/4.00 GiB)
> [ 0.561582] sd 2:0:1:0: [sdb] Write Protect is off
> [ 0.562129] sd 2:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
> [ 0.564056] sd 2:0:0:0: [sda] Attached SCSI disk
> [ 0.564586] sd 2:0:1:0: [sdb] Attached SCSI disk
> supermin: internal insmod virtio_input.ko
> supermin: internal insmod crc-itu-t.ko
> supermin: internal insmod crc4.ko
> supermin: internal insmod crc7.ko
> supermin: internal insmod crc8.ko
> supermin: internal insmod libcrc32c.ko
> supermin: picked /sys/block/sdb/dev (8:16) as root device
> supermin: creating /dev/root as block special 8:16
> supermin: mounting new root on /root
> [ 0.571357] EXT4-fs (sdb): mounting ext2 file system using the ext4 subsystem
> [ 0.573633] EXT4-fs (sdb): mounted filesystem without journal. Opts:
> supermin: deleting initramfs files
> supermin: chroot
> Starting /init script ...
> + [[ 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=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm-256color == *guestfs_network=1* ]]
> + [[ 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=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm-256color == *guestfs_rescue=1* ]]
> + [[ 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=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm-256color == *guestfs_noreboot=1* ]]
> + [[ 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=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm-256color == *guestfs_boot_analysis=1* ]]
> + '[' '!' -d /sys ']'
> + mkdir -p /sys
> + mount -t sysfs /sys /sys
> + mkdir -p /run
> + mount -t tmpfs -o nosuid,size=20%,mode=0755 tmpfs /run
> + mkdir -p /run/lock
> + ln -s ../run/lock /var/lock
> + test -e /etc/mtab
> + ln -s /proc/mounts /etc/mtab
> + mount -t devtmpfs /dev /dev
> + mkdir -p /dev/pts
> + mount -t devpts /dev/pts /dev/pts
> + mkdir -p /dev/shm
> + mount -t tmpfs -o mode=1777 shmfs /dev/shm
> + [[ 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=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm-256color == *selinux=1* ]]
> + mkdir -p /run/tmpfiles.d
> + kmod static-nodes --format=tmpfiles --output=/run/tmpfiles.d/kmod.conf
> ++ od -x -A n
> ++ dd if=/dev/urandom bs=16 count=1 status=none
> + machine_id=' bfe1 e5da 7930 2d83 3eb6 7334 563d 2dba'
> + echo bfe1e5da79302d833eb67334563d2dba
> + systemd-tmpfiles --prefix=/dev --prefix=/run --prefix=/var/run --create --boot
> [/usr/lib/tmpfiles.d/systemd.conf:11] Unknown group 'utmp'.
> [/usr/lib/tmpfiles.d/systemd.conf:19] Unknown user 'systemd-network'.
> [/usr/lib/tmpfiles.d/systemd.conf:20] Unknown user 'systemd-network'.
> [/usr/lib/tmpfiles.d/systemd.conf:21] Unknown user 'systemd-network'.
> [/usr/lib/tmpfiles.d/systemd.conf:25] Unknown group 'systemd-journal'.
> [/usr/lib/tmpfiles.d/systemd.conf:26] Unknown group 'systemd-journal'.
> Failed to parse ACL "d:group:adm:r-x": No such file or directory. Ignoring
> Failed to parse ACL "group:adm:r-x": No such file or directory. Ignoring
> Failed to parse ACL "group:adm:r--": No such file or directory. Ignoring
> Failed to parse ACL "d:group::r-x,d:group:adm:r-x": No such file or directory. Ignoring
> Failed to parse ACL "group::r-x,group:adm:r-x": No such file or directory. Ignoring
> Failed to parse ACL "d:group:adm:r-x": No such file or directory. Ignoring
> Failed to parse ACL "group:adm:r-x": No such file or directory. Ignoring
> Failed to parse ACL "group:adm:r--": No such file or directory. Ignoring
> + for f in /lib/systemd/systemd-udevd /usr/lib/systemd/systemd-udevd /sbin/udevd /lib/udev/udevd /usr/lib/udev/udevd
> + '[' -x /lib/systemd/systemd-udevd ']'
> + UDEVD=/lib/systemd/systemd-udevd
> + break
> + '[' -z /lib/systemd/systemd-udevd ']'
> + /lib/systemd/systemd-udevd --daemon
> starting version 237
> + udevadm trigger
> + udevadm settle --timeout=600
> + shopt -s nullglob
> + for f in /sys/block/sd*/device/timeout
> + echo 300
> + for f in /sys/block/sd*/device/timeout
> + echo 300
> + for f in /sys/block/{h,s,ub,v}d*/queue/scheduler
> + echo noop
> /init: line 116: echo: write error: Invalid argument
> + for f in /sys/block/{h,s,ub,v}d*/queue/scheduler
> + echo noop
> /init: line 116: echo: write error: Invalid argument
> + shopt -u nullglob
> + ip addr add 127.0.0.1/8 brd + dev lo scope host
> + ip link set dev lo up
> + test '' = 1
> + mdadm -As --auto=yes --run
> mdadm: No arrays found in config file or automatically
> + modprobe dm_mod
> + lvm vgchange -aay --sysinit
> WARNING: Failed to connect to lvmetad. Falling back to device scanning.
> + ldmtool create all
> [
> ]
> + test 1 = 1
> + test '' '!=' 1
> + uname -a
> Linux (none) 4.15.0-115-generic #116-Ubuntu SMP Wed Aug 26 14:04:49 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
> + ls -lR /dev
> /dev:
> total 0
> crw------- 1 0 0 10, 235 Sep 3 10:30 autofs
> drwxr-xr-x 2 0 0 240 Sep 3 10:30 block
> drwxr-xr-x 2 0 0 80 Sep 3 10:30 bsg
> crw------- 1 0 0 10, 234 Sep 3 10:30 btrfs-control
> drwxr-xr-x 2 0 0 2220 Sep 3 10:30 char
> crw------- 1 0 0 5, 1 Sep 3 10:30 console
> lrwxrwxrwx 1 0 0 11 Sep 3 10:30 core -> /proc/kcore
> crw------- 1 0 0 10, 60 Sep 3 10:30 cpu_dma_latency
> crw------- 1 0 0 10, 203 Sep 3 10:30 cuse
> drwxr-xr-x 5 0 0 100 Sep 3 10:30 disk
> crw------- 1 0 0 10, 62 Sep 3 10:30 ecryptfs
> lrwxrwxrwx 1 0 0 13 Sep 3 10:30 fd -> /proc/self/fd
> crw-rw-rw- 1 0 0 1, 7 Sep 3 10:30 full
> crw-rw-rw- 1 0 0 10, 229 Sep 3 10:30 fuse
> crw------- 1 0 0 10, 228 Sep 3 10:30 hpet
> crw------- 1 0 0 10, 183 Sep 3 10:30 hwrng
> drwxr-xr-x 3 0 0 120 Sep 3 10:30 input
> crw-r--r-- 1 0 0 1, 11 Sep 3 10:30 kmsg
> drwxr-xr-x 2 0 0 60 Sep 3 2020 lightnvm
> crw------- 1 0 0 10, 237 Sep 3 10:30 loop-control
> brw------- 1 0 0 7, 0 Sep 3 10:30 loop0
> brw------- 1 0 0 7, 1 Sep 3 10:30 loop1
> brw------- 1 0 0 7, 2 Sep 3 10:30 loop2
> brw------- 1 0 0 7, 3 Sep 3 10:30 loop3
> brw------- 1 0 0 7, 4 Sep 3 10:30 loop4
> brw------- 1 0 0 7, 5 Sep 3 10:30 loop5
> brw------- 1 0 0 7, 6 Sep 3 10:30 loop6
> brw------- 1 0 0 7, 7 Sep 3 10:30 loop7
> drwxr-xr-x 2 0 0 60 Sep 3 2020 mapper
> crw------- 1 0 0 10, 227 Sep 3 10:30 mcelog
> crw------- 1 0 0 1, 1 Sep 3 10:30 mem
> crw------- 1 0 0 10, 57 Sep 3 10:30 memory_bandwidth
> drwxr-xr-x 2 0 0 60 Sep 3 2020 net
> crw------- 1 0 0 10, 59 Sep 3 10:30 network_latency
> crw------- 1 0 0 10, 58 Sep 3 10:30 network_throughput
> crw-rw-rw- 1 0 0 1, 3 Sep 3 10:30 null
> crw------- 1 0 0 1, 4 Sep 3 10:30 port
> crw------- 1 0 0 108, 0 Sep 3 10:30 ppp
> crw------- 1 0 0 10, 1 Sep 3 10:30 psaux
> crw-rw-rw- 1 0 0 5, 2 Sep 3 10:30 ptmx
> drwxr-xr-x 2 0 0 0 Sep 3 10:30 pts
> crw-rw-rw- 1 0 0 1, 8 Sep 3 10:30 random
> crw------- 1 0 0 10, 242 Sep 3 10:30 rfkill
> lrwxrwxrwx 1 0 0 4 Sep 3 10:30 rtc -> rtc0
> crw------- 1 0 0 249, 0 Sep 3 10:30 rtc0
> brw------- 1 0 0 8, 0 Sep 3 10:30 sda
> brw------- 1 0 0 8, 16 Sep 3 10:30 sdb
> crw------- 1 0 0 21, 0 Sep 3 10:30 sg0
> crw------- 1 0 0 21, 1 Sep 3 10:30 sg1
> drwxrwxrwt 2 0 0 40 Sep 3 10:30 shm
> crw------- 1 0 0 10, 231 Sep 3 10:30 snapshot
> drwxr-xr-x 2 0 0 80 Sep 3 10:30 snd
> lrwxrwxrwx 1 0 0 15 Sep 3 10:30 stderr -> /proc/self/fd/2
> lrwxrwxrwx 1 0 0 15 Sep 3 10:30 stdin -> /proc/self/fd/0
> lrwxrwxrwx 1 0 0 15 Sep 3 10:30 stdout -> /proc/self/fd/1
> crw-rw-rw- 1 0 0 5, 0 Sep 3 10:30 tty
> crw------- 1 0 0 4, 0 Sep 3 10:30 tty0
> crw------- 1 0 0 4, 1 Sep 3 10:30 tty1
> crw------- 1 0 0 4, 10 Sep 3 10:30 tty10
> crw------- 1 0 0 4, 11 Sep 3 10:30 tty11
> crw------- 1 0 0 4, 12 Sep 3 10:30 tty12
> crw------- 1 0 0 4, 13 Sep 3 10:30 tty13
> crw------- 1 0 0 4, 14 Sep 3 10:30 tty14
> crw------- 1 0 0 4, 15 Sep 3 10:30 tty15
> crw------- 1 0 0 4, 16 Sep 3 10:30 tty16
> crw------- 1 0 0 4, 17 Sep 3 10:30 tty17
> crw------- 1 0 0 4, 18 Sep 3 10:30 tty18
> crw------- 1 0 0 4, 19 Sep 3 10:30 tty19
> crw------- 1 0 0 4, 2 Sep 3 10:30 tty2
> crw------- 1 0 0 4, 20 Sep 3 10:30 tty20
> crw------- 1 0 0 4, 21 Sep 3 10:30 tty21
> crw------- 1 0 0 4, 22 Sep 3 10:30 tty22
> crw------- 1 0 0 4, 23 Sep 3 10:30 tty23
> crw------- 1 0 0 4, 24 Sep 3 10:30 tty24
> crw------- 1 0 0 4, 25 Sep 3 10:30 tty25
> crw------- 1 0 0 4, 26 Sep 3 10:30 tty26
> crw------- 1 0 0 4, 27 Sep 3 10:30 tty27
> crw------- 1 0 0 4, 28 Sep 3 10:30 tty28
> crw------- 1 0 0 4, 29 Sep 3 10:30 tty29
> crw------- 1 0 0 4, 3 Sep 3 10:30 tty3
> crw------- 1 0 0 4, 30 Sep 3 10:30 tty30
> crw------- 1 0 0 4, 31 Sep 3 10:30 tty31
> crw------- 1 0 0 4, 32 Sep 3 10:30 tty32
> crw------- 1 0 0 4, 33 Sep 3 10:30 tty33
> crw------- 1 0 0 4, 34 Sep 3 10:30 tty34
> crw------- 1 0 0 4, 35 Sep 3 10:30 tty35
> crw------- 1 0 0 4, 36 Sep 3 10:30 tty36
> crw------- 1 0 0 4, 37 Sep 3 10:30 tty37
> crw------- 1 0 0 4, 38 Sep 3 10:30 tty38
> crw------- 1 0 0 4, 39 Sep 3 10:30 tty39
> crw------- 1 0 0 4, 4 Sep 3 10:30 tty4
> crw------- 1 0 0 4, 40 Sep 3 10:30 tty40
> crw------- 1 0 0 4, 41 Sep 3 10:30 tty41
> crw------- 1 0 0 4, 42 Sep 3 10:30 tty42
> crw------- 1 0 0 4, 43 Sep 3 10:30 tty43
> crw------- 1 0 0 4, 44 Sep 3 10:30 tty44
> crw------- 1 0 0 4, 45 Sep 3 10:30 tty45
> crw------- 1 0 0 4, 46 Sep 3 10:30 tty46
> crw------- 1 0 0 4, 47 Sep 3 10:30 tty47
> crw------- 1 0 0 4, 48 Sep 3 10:30 tty48
> crw------- 1 0 0 4, 49 Sep 3 10:30 tty49
> crw------- 1 0 0 4, 5 Sep 3 10:30 tty5
> crw------- 1 0 0 4, 50 Sep 3 10:30 tty50
> crw------- 1 0 0 4, 51 Sep 3 10:30 tty51
> crw------- 1 0 0 4, 52 Sep 3 10:30 tty52
> crw------- 1 0 0 4, 53 Sep 3 10:30 tty53
> crw------- 1 0 0 4, 54 Sep 3 10:30 tty54
> crw------- 1 0 0 4, 55 Sep 3 10:30 tty55
> crw------- 1 0 0 4, 56 Sep 3 10:30 tty56
> crw------- 1 0 0 4, 57 Sep 3 10:30 tty57
> crw------- 1 0 0 4, 58 Sep 3 10:30 tty58
> crw------- 1 0 0 4, 59 Sep 3 10:30 tty59
> crw------- 1 0 0 4, 6 Sep 3 10:30 tty6
> crw------- 1 0 0 4, 60 Sep 3 10:30 tty60
> crw------- 1 0 0 4, 61 Sep 3 10:30 tty61
> crw------- 1 0 0 4, 62 Sep 3 10:30 tty62
> crw------- 1 0 0 4, 63 Sep 3 10:30 tty63
> crw------- 1 0 0 4, 7 Sep 3 10:30 tty7
> crw------- 1 0 0 4, 8 Sep 3 10:30 tty8
> crw------- 1 0 0 4, 9 Sep 3 10:30 tty9
> crw------- 1 0 0 4, 64 Sep 3 10:30 ttyS0
> crw------- 1 0 0 5, 3 Sep 3 10:30 ttyprintk
> crw------- 1 0 0 10, 239 Sep 3 10:30 uhid
> crw------- 1 0 0 10, 223 Sep 3 10:30 uinput
> crw-rw-rw- 1 0 0 1, 9 Sep 3 10:30 urandom
> crw------- 1 0 0 10, 240 Sep 3 10:30 userio
> crw------- 1 0 0 7, 0 Sep 3 10:30 vcs
> crw------- 1 0 0 7, 1 Sep 3 10:30 vcs1
> crw------- 1 0 0 7, 128 Sep 3 10:30 vcsa
> crw------- 1 0 0 7, 129 Sep 3 10:30 vcsa1
> drwxr-xr-x 2 0 0 60 Sep 3 10:30 vfio
> crw------- 1 0 0 10, 63 Sep 3 10:30 vga_arbiter
> crw------- 1 0 0 10, 137 Sep 3 10:30 vhci
> crw------- 1 0 0 10, 238 Sep 3 10:30 vhost-net
> crw------- 1 0 0 10, 241 Sep 3 10:30 vhost-vsock
> drwxr-xr-x 2 0 0 60 Sep 3 10:30 virtio-ports
> crw------- 1 0 0 245, 1 Sep 3 10:30 vport2p1
> crw-rw-rw- 1 0 0 1, 5 Sep 3 10:30 zero
>
> /dev/block:
> total 0
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 7:0 -> ../loop0
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 7:1 -> ../loop1
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 7:2 -> ../loop2
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 7:3 -> ../loop3
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 7:4 -> ../loop4
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 7:5 -> ../loop5
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 7:6 -> ../loop6
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 7:7 -> ../loop7
> lrwxrwxrwx 1 0 0 6 Sep 3 10:30 8:0 -> ../sda
> lrwxrwxrwx 1 0 0 6 Sep 3 10:30 8:16 -> ../sdb
>
> /dev/bsg:
> total 0
> crw------- 1 0 0 246, 0 Sep 3 10:30 2:0:0:0
> crw------- 1 0 0 246, 1 Sep 3 10:30 2:0:1:0
>
> /dev/char:
> total 0
> lrwxrwxrwx 1 0 0 6 Sep 3 10:30 108:0 -> ../ppp
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 10:1 -> ../psaux
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 10:183 -> ../hwrng
> lrwxrwxrwx 1 0 0 10 Sep 3 10:30 10:200 -> ../net/tun
> lrwxrwxrwx 1 0 0 9 Sep 3 10:30 10:223 -> ../uinput
> lrwxrwxrwx 1 0 0 9 Sep 3 10:30 10:227 -> ../mcelog
> lrwxrwxrwx 1 0 0 7 Sep 3 10:30 10:228 -> ../hpet
> lrwxrwxrwx 1 0 0 7 Sep 3 10:30 10:229 -> ../fuse
> lrwxrwxrwx 1 0 0 11 Sep 3 10:30 10:231 -> ../snapshot
> lrwxrwxrwx 1 0 0 17 Sep 3 10:30 10:236 -> ../mapper/control
> lrwxrwxrwx 1 0 0 15 Sep 3 10:30 10:237 -> ../loop-control
> lrwxrwxrwx 1 0 0 9 Sep 3 10:30 10:242 -> ../rfkill
> lrwxrwxrwx 1 0 0 19 Sep 3 10:30 10:57 -> ../memory_bandwidth
> lrwxrwxrwx 1 0 0 21 Sep 3 10:30 10:58 -> ../network_throughput
> lrwxrwxrwx 1 0 0 18 Sep 3 10:30 10:59 -> ../network_latency
> lrwxrwxrwx 1 0 0 18 Sep 3 10:30 10:60 -> ../cpu_dma_latency
> lrwxrwxrwx 1 0 0 19 Sep 3 10:30 10:61 -> ../lightnvm/control
> lrwxrwxrwx 1 0 0 11 Sep 3 10:30 10:62 -> ../ecryptfs
> lrwxrwxrwx 1 0 0 14 Sep 3 10:30 10:63 -> ../vga_arbiter
> lrwxrwxrwx 1 0 0 13 Sep 3 10:30 13:63 -> ../input/mice
> lrwxrwxrwx 1 0 0 15 Sep 3 10:30 13:64 -> ../input/event0
> lrwxrwxrwx 1 0 0 15 Sep 3 10:30 13:65 -> ../input/event1
> lrwxrwxrwx 1 0 0 6 Sep 3 10:30 1:1 -> ../mem
> lrwxrwxrwx 1 0 0 7 Sep 3 10:30 1:11 -> ../kmsg
> lrwxrwxrwx 1 0 0 7 Sep 3 10:30 1:3 -> ../null
> lrwxrwxrwx 1 0 0 7 Sep 3 10:30 1:4 -> ../port
> lrwxrwxrwx 1 0 0 7 Sep 3 10:30 1:5 -> ../zero
> lrwxrwxrwx 1 0 0 7 Sep 3 10:30 1:7 -> ../full
> lrwxrwxrwx 1 0 0 9 Sep 3 10:30 1:8 -> ../random
> lrwxrwxrwx 1 0 0 10 Sep 3 10:30 1:9 -> ../urandom
> lrwxrwxrwx 1 0 0 6 Sep 3 10:30 21:0 -> ../sg0
> lrwxrwxrwx 1 0 0 6 Sep 3 10:30 21:1 -> ../sg1
> lrwxrwxrwx 1 0 0 11 Sep 3 10:30 245:1 -> ../vport2p1
> lrwxrwxrwx 1 0 0 14 Sep 3 10:30 246:0 -> ../bsg/2:0:0:0
> lrwxrwxrwx 1 0 0 14 Sep 3 10:30 246:1 -> ../bsg/2:0:1:0
> lrwxrwxrwx 1 0 0 7 Sep 3 10:30 249:0 -> ../rtc0
> lrwxrwxrwx 1 0 0 7 Sep 3 10:30 4:0 -> ../tty0
> lrwxrwxrwx 1 0 0 7 Sep 3 10:30 4:1 -> ../tty1
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:10 -> ../tty10
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:11 -> ../tty11
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:12 -> ../tty12
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:13 -> ../tty13
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:14 -> ../tty14
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:15 -> ../tty15
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:16 -> ../tty16
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:17 -> ../tty17
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:18 -> ../tty18
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:19 -> ../tty19
> lrwxrwxrwx 1 0 0 7 Sep 3 10:30 4:2 -> ../tty2
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:20 -> ../tty20
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:21 -> ../tty21
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:22 -> ../tty22
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:23 -> ../tty23
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:24 -> ../tty24
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:25 -> ../tty25
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:26 -> ../tty26
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:27 -> ../tty27
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:28 -> ../tty28
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:29 -> ../tty29
> lrwxrwxrwx 1 0 0 7 Sep 3 10:30 4:3 -> ../tty3
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:30 -> ../tty30
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:31 -> ../tty31
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:32 -> ../tty32
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:33 -> ../tty33
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:34 -> ../tty34
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:35 -> ../tty35
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:36 -> ../tty36
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:37 -> ../tty37
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:38 -> ../tty38
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:39 -> ../tty39
> lrwxrwxrwx 1 0 0 7 Sep 3 10:30 4:4 -> ../tty4
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:40 -> ../tty40
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:41 -> ../tty41
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:42 -> ../tty42
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:43 -> ../tty43
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:44 -> ../tty44
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:45 -> ../tty45
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:46 -> ../tty46
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:47 -> ../tty47
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:48 -> ../tty48
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:49 -> ../tty49
> lrwxrwxrwx 1 0 0 7 Sep 3 10:30 4:5 -> ../tty5
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:50 -> ../tty50
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:51 -> ../tty51
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:52 -> ../tty52
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:53 -> ../tty53
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:54 -> ../tty54
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:55 -> ../tty55
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:56 -> ../tty56
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:57 -> ../tty57
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:58 -> ../tty58
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:59 -> ../tty59
> lrwxrwxrwx 1 0 0 7 Sep 3 10:30 4:6 -> ../tty6
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:60 -> ../tty60
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:61 -> ../tty61
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:62 -> ../tty62
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:63 -> ../tty63
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 4:64 -> ../ttyS0
> lrwxrwxrwx 1 0 0 7 Sep 3 10:30 4:7 -> ../tty7
> lrwxrwxrwx 1 0 0 7 Sep 3 10:30 4:8 -> ../tty8
> lrwxrwxrwx 1 0 0 7 Sep 3 10:30 4:9 -> ../tty9
> lrwxrwxrwx 1 0 0 6 Sep 3 10:30 5:0 -> ../tty
> lrwxrwxrwx 1 0 0 10 Sep 3 10:30 5:1 -> ../console
> lrwxrwxrwx 1 0 0 7 Sep 3 10:30 5:2 -> ../ptmx
> lrwxrwxrwx 1 0 0 12 Sep 3 10:30 5:3 -> ../ttyprintk
> lrwxrwxrwx 1 0 0 6 Sep 3 10:30 7:0 -> ../vcs
> lrwxrwxrwx 1 0 0 7 Sep 3 10:30 7:1 -> ../vcs1
> lrwxrwxrwx 1 0 0 7 Sep 3 10:30 7:128 -> ../vcsa
> lrwxrwxrwx 1 0 0 8 Sep 3 10:30 7:129 -> ../vcsa1
>
> /dev/disk:
> total 0
> drwxr-xr-x 2 0 0 80 Sep 3 10:30 by-id
> drwxr-xr-x 2 0 0 80 Sep 3 10:30 by-path
> drwxr-xr-x 2 0 0 60 Sep 3 10:30 by-uuid
>
> /dev/disk/by-id:
> total 0
> lrwxrwxrwx 1 0 0 9 Sep 3 10:30 scsi-0QEMU_QEMU_HARDDISK_appliance -> ../../sdb
> lrwxrwxrwx 1 0 0 9 Sep 3 10:30 scsi-0QEMU_QEMU_HARDDISK_hd0 -> ../../sda
>
> /dev/disk/by-path:
> total 0
> lrwxrwxrwx 1 0 0 9 Sep 3 10:30 pci-0000:00:03.0-scsi-0:0:0:0 -> ../../sda
> lrwxrwxrwx 1 0 0 9 Sep 3 10:30 pci-0000:00:03.0-scsi-0:0:1:0 -> ../../sdb
>
> /dev/disk/by-uuid:
> total 0
> lrwxrwxrwx 1 0 0 9 Sep 3 10:30 b6837e2d-ec6d-4db0-8dba-d39986f00b19 -> ../../sdb
>
> /dev/input:
> total 0
> drwxr-xr-x 2 0 0 60 Sep 3 10:30 by-path
> crw------- 1 0 0 13, 64 Sep 3 10:30 event0
> crw------- 1 0 0 13, 65 Sep 3 10:30 event1
> crw------- 1 0 0 13, 63 Sep 3 10:30 mice
>
> /dev/input/by-path:
> total 0
> lrwxrwxrwx 1 0 0 9 Sep 3 10:30 platform-i8042-serio-0-event-kbd -> ../event1
>
> /dev/lightnvm:
> total 0
> crw------- 1 0 0 10, 61 Sep 3 10:30 control
>
> /dev/mapper:
> total 0
> crw------- 1 0 0 10, 236 Sep 3 10:30 control
>
> /dev/net:
> total 0
> crw-rw-rw- 1 0 0 10, 200 Sep 3 10:30 tun
>
> /dev/pts:
> total 0
> c--------- 1 0 0 5, 2 Sep 3 10:30 ptmx
>
> /dev/shm:
> total 0
>
> /dev/snd:
> total 0
> crw------- 1 0 0 116, 1 Sep 3 10:30 seq
> crw------- 1 0 0 116, 33 Sep 3 10:30 timer
>
> /dev/vfio:
> total 0
> crw------- 1 0 0 10, 196 Sep 3 10:30 vfio
>
> /dev/virtio-ports:
> total 0
> lrwxrwxrwx 1 0 0 11 Sep 3 10:30 org.libguestfs.channel.0 -> ../vport2p1
> + cat /proc/mounts
> /dev/root / ext2 rw,noatime 0 0
> /proc /proc proc rw,relatime 0 0
> /sys /sys sysfs rw,relatime 0 0
> tmpfs /run tmpfs rw,nosuid,relatime,size=96068k,mode=755 0 0
> /dev /dev devtmpfs rw,relatime,size=236772k,nr_inodes=59193,mode=755 0 0
> /dev/pts /dev/pts devpts rw,relatime,mode=600,ptmxmode=000 0 0
> shmfs /dev/shm tmpfs rw,relatime 0 0
> + lvm pvs
> WARNING: Failed to connect to lvmetad. Falling back to device scanning.
> + lvm vgs
> WARNING: Failed to connect to lvmetad. Falling back to device scanning.
> + lvm lvs
> WARNING: Failed to connect to lvmetad. Falling back to device scanning.
> + ip a
> 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
> + ip r
> + cat /etc/resolv.conf
> cat: /etc/resolv.conf: No such file or directory
> + lsmod
> Module Size Used by
> libcrc32c 16384 0
> crc8 16384 0
> crc7 16384 0
> crc4 16384 0
> crc_itu_t 16384 0
> virtio_input 16384 0
> virtio_scsi 20480 1
> virtio_rpmsg_bus 20480 0
> rpmsg_core 16384 1 virtio_rpmsg_bus
> nd_pmem 16384 0
> nd_btt 24576 1 nd_pmem
> virtio_net 49152 0
> virtio_crypto 20480 0
> crypto_engine 16384 1 virtio_crypto
> virtio_rng 16384 0
> virtio_blk 20480 0
> nfit 57344 0
> crc32_generic 16384 0
> crct10dif_pclmul 16384 0
> crc32_pclmul 16384 0
> + date
> Thu Sep 3 10:30:22 UTC 2020
> + echo -n 'clocksource: '
> clocksource: + cat /sys/devices/system/clocksource/clocksource0/current_clocksource
> kvm-clock
> + echo -n 'uptime: '
> uptime: + cat /proc/uptime
> 0.95 0.14
> + test '' = 1
> + cmd=guestfsd
> ++ grep -Eo 'guestfs_channel=[^[:space:]]+' /proc/cmdline
> + eval
> + test x '!=' x
> + test 1 = 1
> + cmd='guestfsd --verbose'
> + test '' = 1
> + echo guestfsd --verbose
> guestfsd --verbose
> + guestfsd --verbose
> guestfsd: error while loading shared libraries: libsbz.so: cannot open shared object file: No such file or directory
It's some kind of packaging bug. Possibly it can be fixed by
rebuilding the libguestfs package on Ubuntu. In the meantime you can
do something like this to work around it:
echo '/usr/lib/*/libsbz.so*' > /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/zz-workaround
Rich.
> + sync
> + test '' = 1
> + reboot -f
> Rebooting.
> [ 0.976710] Unregister pv shared memory for cpu 0
> [ 0.977269] sd 2:0:1:0: [sdb] Synchronizing SCSI cache
> [ 0.977853] sd 2:0:0:0: [sda] Synchronizing SCSI cache
> [ 0.978506] reboot: Restarting system
> [ 0.978966] reboot: machine restart
> libguestfs: error: appliance closed the connection unexpectedly, see earlier error messages
> libguestfs: child_cleanup: 0x563940429170: child process died
> libguestfs: sending SIGTERM to process 11708
> libguestfs: qemu maxrss 167128K
> libguestfs: error: guestfs_launch failed, see earlier error messages
> libguestfs: trace: launch = -1 (error)
> libguestfs: trace: close
> libguestfs: closing guestfs handle 0x563940429170 (state 0)
> libguestfs: command: run: rm
> libguestfs: command: run: \ -rf /tmp/libguestfsMc5XCB
> libguestfs: command: run: rm
> libguestfs: command: run: \ -rf /tmp/libguestfsRFgWd6
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/
4 years, 2 months