Git Product home page Git Product logo

libguestfs / libguestfs Goto Github PK

View Code? Open in Web Editor NEW
599.0 599.0 162.0 398.17 MB

library and tools for accessing and modifying virtual machine disk images. PLEASE DO NOT USE GITHUB FOR ISSUES OR PULL REQUESTS. See the website for how to file a bug or contact us.

Home Page: http://libguestfs.org

License: GNU General Public License v2.0

C 42.57% Shell 7.30% Perl 3.12% OCaml 34.43% C++ 0.03% Makefile 4.26% HTML 0.31% Erlang 0.26% JavaScript 0.12% Go 0.41% Haskell 0.09% CSS 0.15% Java 0.70% Lua 0.43% Standard ML 0.79% PHP 0.19% Python 0.95% Ruby 0.67% M4 2.39% Rust 0.82%

libguestfs's Introduction

Libguestfs is tools and a library for accessing and modifying guest
disk images.  For more information see the home page:

  http://libguestfs.org/

For discussion, development, patches, etc. please use the mailing
list:

  https://lists.libguestfs.org

To find out how to build libguestfs from source, read:

  docs/guestfs-building.pod
  http://libguestfs.org/guestfs-building.1.html
  man docs/guestfs-building.1

Copyright (C) 2009-2023 Red Hat Inc.

The library is distributed under the LGPLv2+.  The programs are
distributed under the GPLv2+.  Please see the files COPYING and
COPYING.LIB for full license information.  The examples are under a
very liberal license.

libguestfs's People

Contributors

agx avatar cbosdo avatar chenhanxiao avatar copperii avatar gaowanlong avatar hacxman avatar hillu avatar lantame avatar lersek avatar librarian avatar logan5 avatar maksbotan avatar mdbooth avatar msmhrt avatar nertpinx avatar nirs avatar norwayfun avatar noxdafox avatar nyoxi avatar olafhering avatar pbutsykin avatar piotrdrag avatar ptoscano avatar rvka avatar rwmjones avatar shulima avatar skalkoto avatar stenavin avatar weblate avatar yurchor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

libguestfs's Issues

can't build with golang-1.16

Hello, looks like new golang is requiring version to be defined?

Making all in golang
make[4]: Entering directory '/<<PKGBUILDDIR>>/debian/build-1/golang'
[ ../../../golang != . ] && ln -s /<<PKGBUILDDIR>>/debian/build-1/../../golang/src ./src
../run go install libguestfs.org/guestfs
run: warning: You used './configure --disable-appliance' so LIBGUESTFS_PATH
run: warning: has not been set automatically.
go install: version is required when current directory is not in a module
	Try 'go install libguestfs.org/guestfs@latest' to install the latest version
make[4]: *** [Makefile:2614: pkg/linux_amd64/libguestfs.org/guestfs.a] Error 1

https://blog.golang.org/go116-module-changes
this happens in Ubuntu, where go-1.16 is default now
https://launchpadlibrarian.net/532321596/buildlog_ubuntu-hirsute-amd64.libguestfs_1%3A1.44.1-1ubuntu1_BUILDING.txt.gz

Permissions Behave Differently Inside Mounted Filesystems

https://stackoverflow.com/questions/64273334/test-x-in-mounted-filesystem

When I run test -x inside a mounted filesystem mounted with guestmount, with root because that's the only way I can access it, it returns true even when the file is not executable. The answerer said this is because of this line, which looks right. To me there's no danger except inconsistency, as I'm already root. I'm using a library, asdf that checks for executable and does something different from normal, which fails because the file isn't actually executable.

Both the answerer & I are having trouble building to submit a patch. I'm having trouble with the C compiler, is there any FAQ or anything I can refer to while I'm debugging?

RFE: make virt-builder parse format=raw|qcow2 in repo definitions and add --format=auto option

Hi there.

The repo definition at libguestfs.org/download/builder/index contains format=raw data for each template, e.g.:

[centos-6]
name=CentOS 6.6
osinfo=centos6.6
arch=x86_64
file=centos-6.xz
revision=6
checksum=fc403ea3555a5608a25ad30ce2514b67288311a7197ddf9fb664475820f26db2bd95a86be9cd6e3f772187b384a02e0965430456dd518d343a80457057bc5441
format=raw
size=6442450944
compressed_size=199265736
expand=/dev/sda3
notes=CentOS 6.6

It seems that virt-builder doesn't do anything with that metadata. It's completely missing from the long and json list-formats.

According to man virt-builder, it always assumes --format raw. Why? I've built my own repo with all xz-compressed qcow images and it seems crazy to me that virt-builder can't auto-detect this based on format=qcow2.

Halp!

I'd love to see:

  • Make format a valid field that virt-builder pays attention to and includes in long & json output

That would be enough for me and my app, but I'd recommend continuing on and doing:

  • Either change the default behavior to look for format=qcow2|raw in the template definition if --format isn't specified, or if you're unhappy changing the behavior, add --format=auto as an option.

Have virt-sysprep to cleanup /etc/hosts

Hello Rich!

We had a request in Foreman to do cleanup /etc/hosts in our finish template (something like cloud-init but over ssh for those who don't use it). I closed the request with reference to the virt-sysprep tool but shortly after I started digging if the tool actually touches /etc/hosts and I am actually unable to find this.

However it does cleanup hostname from ifcfg scripts: https://github.com/libguestfs/libguestfs/blob/master/sysprep/sysprep_operation_net_hostname.ml. Therefore I am raising this ticket to consider also cleaning up /etc/hosts. It does make a lot of sense.

Thanks!

virt-inspector --xpath segfault on attribute get

virsh dumpxml dom | xmlstarlet sel -t -v '//domain/devices/interface[1]/mac/@address' does what I'd expect and prints out the MAC. But virsh dumpxml dom | virt-inspector --xpath '//domain/devices/interface[1]/mac/@address' segfaults.

Stack trace:

#0  0x00007ffff6fb7ac4 in free () from /usr/lib/libc.so.6
#1  0x00007ffff75538d9 in xmlFreeNodeList () from /usr/lib/libxml2.so.2
#2  0x00007ffff7553696 in xmlFreeDoc () from /usr/lib/libxml2.so.2
#3  0x0000000000409dcc in guestfs_int_cleanup_xmlFreeDoc (ptr=0x7fffffffdc28)
    at cleanup.c:87
#4  0x0000000000409be2 in do_xpath (
    query=0x7fffffffe1a6 "//domain/devices/interface[1]/mac/@address")
    at inspector.c:805
#5  0x0000000000406f30 in main (argc=3, argv=0x7fffffffddd8) at inspector.c:250

Running version 1.30.4 on archlinux.

generator under Cygwin fails with: Fatal error: exception Unix.Unix_error(Unix.EAGAIN, "fork", "")

I managed to pass the configure stage in Cygwin on windows 10 with:

CFLAGS=-fPIC ./autogen.sh --disable-daemon --disable-appliance --with-distro=cygwin

... (and installing relevant Cygwin libraries), with version:

user@PC /cygdrive/c/src/libguestfs_git
$ git log --oneline -1
088b6d1c8 (HEAD -> master, origin/master, origin/HEAD) get-kernel: fallback to uncompressed vmlinux kernels

The setup at end of configure is this:

Thank you for downloading libguestfs 1.42.0

This is how we have configured the optional components for you today:

Daemon .............................. no
Appliance ........................... no
QEMU ................................ /cygdrive/c/bin/qemu/qemu-system-x86_64
guestfish and C-based virt tools .... yes
FUSE filesystem ..................... yes
Default backend ..................... direct
GNU gettext for i18n ................ yes
OCaml bindings ...................... yes
OCaml-based virt tools .............. yes
Perl bindings ....................... no
Perl-based virt tools ............... no
Python bindings ..................... yes
Ruby bindings ....................... no
Java bindings ....................... no
Haskell bindings .................... no
PHP bindings ........................ no
Erlang bindings ..................... no
Lua bindings ........................ no
Go bindings ......................... no
gobject bindings .................... yes
gobject introspection ............... yes
Vala bindings ....................... no
bash completion ..................... yes
Rust bindings ....................... no

After that, make fails with the following error, which I managed to reconstruct like this:

user@PC /cygdrive/c/src/libguestfs_git
$ make -C generator clean
make: Entering directory '/cygdrive/c/src/libguestfs_git/generator'
test -z "*~ *.bak *.orig *.rej *.cmi *.cmo *.cma *.cmx *.cmxa dll*.so *.a *.annot oUnit-*.cache oUnit-*.log *.1 *.3 *.5 *.8 stamp-*.pod bindtests.tmp stamp-generator generator" || rm -f *~ *.bak *.orig *.rej *.cmi *.cmo *.cma *.cmx *.cmxa dll*.so *.a *.annot oUnit-*.cache oUnit-*.log *.1 *.3 *.5 *.8 stamp-*.pod bindtests.tmp stamp-generator generator
rm -rf .libs _libs
rm -f *.lo
make: Leaving directory '/cygdrive/c/src/libguestfs_git/generator'

user@PC /cygdrive/c/src/libguestfs_git
$ make -C generator
make: Entering directory '/cygdrive/c/src/libguestfs_git/generator'
  OCAMLCMI types.cmi
  OCAMLC   types.cmo
  OCAMLCMI memoized_cache.cmi
  OCAMLC   memoized_cache.cmo
  OCAMLCMI utils.cmi
  OCAMLC   utils.cmo
  OCAMLCMI proc_nr.cmi
  OCAMLC   proc_nr.cmo
  OCAMLCMI actions_augeas.cmi
  OCAMLC   actions_augeas.cmo
  OCAMLCMI actions_core.cmi
  OCAMLC   actions_core.cmo
  OCAMLCMI actions_core_deprecated.cmi
  OCAMLC   actions_core_deprecated.cmo
  OCAMLCMI actions_debug.cmi
  OCAMLC   actions_debug.cmo
  OCAMLCMI actions_hivex.cmi
  OCAMLC   actions_hivex.cmo
  OCAMLCMI actions_hivex_deprecated.cmi
  OCAMLC   actions_hivex_deprecated.cmo
  OCAMLCMI actions_inspection.cmi
  OCAMLC   actions_inspection.cmo
  OCAMLCMI actions_inspection_deprecated.cmi
  OCAMLC   actions_inspection_deprecated.cmo
  OCAMLCMI actions_internal_tests.cmi
  OCAMLC   actions_internal_tests.cmo
  OCAMLCMI actions_properties.cmi
  OCAMLC   actions_properties.cmo
  OCAMLCMI actions_properties_deprecated.cmi
  OCAMLC   actions_properties_deprecated.cmo
  OCAMLCMI actions_tsk.cmi
  OCAMLC   actions_tsk.cmo
  OCAMLCMI actions_yara.cmi
  OCAMLC   actions_yara.cmo
  OCAMLCMI actions.cmi
  OCAMLC   actions.cmo
  OCAMLCMI structs.cmi
  OCAMLC   structs.cmo
  OCAMLCMI fish_commands.cmi
  OCAMLC   fish_commands.cmo
  OCAMLCMI optgroups.cmi
  OCAMLC   optgroups.cmo
  OCAMLCMI prepopts.cmi
  OCAMLC   prepopts.cmo
  OCAMLCMI events.cmi
  OCAMLC   events.cmo
  OCAMLCMI pr.cmi
  OCAMLC   pr.cmo
  OCAMLCMI docstrings.cmi
  OCAMLC   docstrings.cmo
  OCAMLCMI authors.cmi
  OCAMLC   authors.cmo
  OCAMLCMI checks.cmi
  OCAMLC   checks.cmo
  OCAMLCMI c.cmi
  OCAMLC   c.cmo
  OCAMLCMI XDR.cmi
  OCAMLC   XDR.cmo
  OCAMLCMI daemon.cmi
  OCAMLC   daemon.cmo
  OCAMLCMI tests_c_api.cmi
  OCAMLC   tests_c_api.cmo
  OCAMLCMI fish.cmi
  OCAMLC   fish.cmo
  OCAMLCMI OCaml.cmi
  OCAMLC   OCaml.cmo
  OCAMLCMI perl.cmi
  OCAMLC   perl.cmo
  OCAMLCMI python.cmi
  OCAMLC   python.cmo
  OCAMLCMI ruby.cmi
  OCAMLC   ruby.cmo
  OCAMLCMI java.cmi
  OCAMLC   java.cmo
  OCAMLCMI haskell.cmi
  OCAMLC   haskell.cmo
  OCAMLCMI csharp.cmi
  OCAMLC   csharp.cmo
  OCAMLCMI php.cmi
  OCAMLC   php.cmo
  OCAMLCMI erlang.cmi
  OCAMLC   erlang.cmo
  OCAMLCMI lua.cmi
  OCAMLC   lua.cmo
  OCAMLCMI GObject.cmi
  OCAMLC   GObject.cmo
  OCAMLCMI golang.cmi
  OCAMLC   golang.cmo
  OCAMLCMI rust.cmi
  OCAMLC   rust.cmo
  OCAMLCMI bindtests.cmi
  OCAMLC   bindtests.cmo
  OCAMLCMI errnostring.cmi
  OCAMLC   errnostring.cmo
  OCAMLCMI customize.cmi
  OCAMLC   customize.cmo
  OCAMLCMI UEFI.cmi
  OCAMLC   UEFI.cmo
  OCAMLCMI main.cmi
  OCAMLC   main.cmo
make -C ../common/mlstdutils mlstdutils.cma
make[1]: Entering directory '/cygdrive/c/src/libguestfs_git/common/mlstdutils'
make[1]: 'mlstdutils.cma' is up to date.
make[1]: Leaving directory '/cygdrive/c/src/libguestfs_git/common/mlstdutils'
ocamlfind ocamlc -g -annot -safe-string -warn-error CDEFLMPSUVYZX+52-3 -ccopt '-fPIC -fno-strict-overflow -Wno-strict-overflow' \
    -package unix,str -I . -I . -I ../common/mlstdutils -I ../common/mlstdutils -linkpkg mlstdutils.cma \
    types.cmo memoized_cache.cmo utils.cmo proc_nr.cmo actions_augeas.cmo actions_core.cmo actions_core_deprecated.cmo actions_debug.cmo actions_hivex.cmo actions_hivex_deprecated.cmo actions_inspection.cmo actions_inspection_deprecated.cmo actions_internal_tests.cmo actions_properties.cmo actions_properties_deprecated.cmo actions_tsk.cmo actions_yara.cmo actions.cmo structs.cmo fish_commands.cmo optgroups.cmo prepopts.cmo events.cmo pr.cmo docstrings.cmo authors.cmo checks.cmo c.cmo XDR.cmo daemon.cmo tests_c_api.cmo fish.cmo OCaml.cmo perl.cmo python.cmo ruby.cmo java.cmo haskell.cmo csharp.cmo php.cmo erlang.cmo lua.cmo GObject.cmo golang.cmo rust.cmo bindtests.cmo errnostring.cmo customize.cmo UEFI.cmo main.cmo -o generator
mkdir -p ../perl/lib/Sys
mkdir -p ../ruby/ext/guestfs
mkdir -p ../java/com/redhat/et/libguestfs
mkdir -p ../csharp
mkdir -p ../gobject/src
mkdir -p ../gobject/include
mkdir -p ../gobject/include/guestfs-gobject
cd .. && /cygdrive/c/src/libguestfs_git/generator/generator
      0 [main] generator 3260 dofork: child -1 - forked process 14884 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
Fatal error: exception Unix.Unix_error(Unix.EAGAIN, "fork", "")
make: *** [Makefile:2244: stamp-generator] Error 2
make: Leaving directory '/cygdrive/c/src/libguestfs_git/generator'

For some reason, even if there is -g in OCAML_FLAGS = -g -annot -safe-string, also ocamldebug fails to reveal anything (although, admittedly, this is first time in my life I've ever run ocamldebug, or had anything to do with OCaml):

$ ocamldebug -cd generator generator
        OCaml Debugger version 4.04.2

(ocd) step
Loading program...       0 [main] ocamldebug 4271 dofork: child -1 - forked process 1276 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
Unix error: 'fork' failed: Resource temporarily unavailable
(ocd) q

However, gdb reveals some threads are started before the crash:

$ gdb --args generator/generator
GNU gdb (GDB) (Cygwin 8.2.1-1) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-cygwin".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from generator/generator...(no debugging symbols found)...done.
(gdb) r
Starting program: /cygdrive/d/src/libguestfs_git/generator/generator
[New Thread 3712.0x1b8c]
[New Thread 3712.0x2744]
[New Thread 3712.0x1b20]
[New Thread 3712.0x30d4]
[New Thread 3712.0x33b8]
      0 [main] generator 4275 dofork: child -1 - forked process 13456 died unexpectedly, retry 0, exit code 0xC0000142, errno 11
Fatal error: exception Unix.Unix_error(Unix.EAGAIN, "fork", "")
[Thread 3712.0x33b8 exited with code 2]
[Thread 3712.0x1b20 exited with code 2]
[Thread 3712.0x2744 exited with code 2]
[Inferior 1 (process 3712) exited with code 02]
(gdb) q

Any suggestions if I can get generator running on Cygwin?

virt-v2v-copy-to-local is failing:cannot find libvirt domain '<guestname>': Domain not found: No domain with name

I am getting below error with virt-v2v-copy-to-local while copying the guest disk from remote esxi server to local.

:/infrastructure/kvm # virt-v2v-copy-to-local --debug-gc --verbose --password-file passfile -ic esx://root@?no_verify=1
virt-v2v-copy-to-local: libguestfs 1.32.4 (x86_64)
[ 0.0] Fetching the remote libvirt XML metadata ...
virt-v2v-copy-to-local: error: internal error: invalid argument: cannot
find libvirt domain '': Domain not found: No domain with name
''

If reporting bugs, run virt-v2v-copy-to-local with debugging enabled and
include the complete output:

virt-v2v-copy-to-local -v -x [...]

The guest is powered off and exists on esxi server, how exactly this tool dumps xml file of guest hosted in esxi server? Does it parse the guest vmx file on esxi host and dump it to local server?

Cannot install 1.31.19

make[4]: Entering directory '/home/actionmystique/Program-Files/Ubuntu/Libguestfs/git-libguestfs/ocaml'
mkdir -p /usr/lib/ocaml
mkdir -p /usr/lib/ocaml/stublibs
ocamlfind install
-ldconf ignore -destdir /usr/lib/ocaml
guestfs
META .so *.a *.cma *.cmi ./.mli .cmx *.cmxa
ocamlfind: Conflict with file: /usr/lib/ocaml/guestfs/mlguestfs.cmxa
Makefile:2128: recipe for target 'install-data-hook' failed
make[4]: *
* [install-data-hook] Error 2
make[4]: Leaving directory '/home/actionmystique/Program-Files/Ubuntu/Libguestfs/git-libguestfs/ocaml'
Makefile:1987: recipe for target 'install-data-am' failed
make[3]: *** [install-data-am] Error 2
make[3]: Leaving directory '/home/actionmystique/Program-Files/Ubuntu/Libguestfs/git-libguestfs/ocaml'
Makefile:1935: recipe for target 'install-am' failed
make[2]: *** [install-am] Error 2
make[2]: Leaving directory '/home/actionmystique/Program-Files/Ubuntu/Libguestfs/git-libguestfs/ocaml'
Makefile:1829: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/home/actionmystique/Program-Files/Ubuntu/Libguestfs/git-libguestfs'
Makefile:2295: recipe for target 'install' failed
make: *** [install] Error 2

guestfs kernel choosing wrong root disk (under load/race condition)

  • libguestfs version: 1:1.36.13-1ubuntu3.3
  • OS: Ubuntu 18.04
  • Kernel: 5.4.0-77-generic #86~18.04.1-Ubuntu (HWE)
  • Hardware: Intel(R) Core(TM) i7-6770HQ CPU @ 2.60GHz

I am using guestfish to create prepare and upload multiple disk images. Each guestfs VM has a number of disk images attached, and uploads to them in turn. Additionally, there are multiple guestfs VMs running concurrently to prepare additional images, in order to make use of concurrency in my (quad-core) CPU. These concurrent instances are creating and uploading completely separate files (except that they all clone a shared qcow2 base image).

What I find is that under such load, guestfs intermittently fails to boot. I have made a standalone set of scripts to reproduce this.

It appears to be some sort of race condition: if I set LIBGUESTFS_DEBUG=1 and LIBGUESTFS_TRACE=1 and allow the output to go to the screen, then the problem occurs much less frequently. However I have now been able to reproduce the problem with LIBGUESTFS_DEBUG=1 and the results are included below.

Reproducer

  • gf-par.py
  • gf-run.py
  • Make an empty msdos image called mybase.img. I used mformat -C -f 1440 -i mybase.img :: from mtools.

Run ./gf-par.py.

It will spawn multiple concurrent copies of ./gf-run.py and if the problem occurs will leave its temporary files lying around, including the captured stdout/stderr from guestfish. Each instance creates a number of qcow2 clones of the mybase.img file and uploads some data.

Note: it doesn't reproduce every time. You may need to run it multiple times. I haven't got to the bottom of what makes it sometimes reproduce easily and sometimes not. In my real-world application, sometimes only running two guestfs instances concurrently is enough to trigger the problem.

Results

An example of when guestfs fails is here - full debug output.

In short, it appears to get confused about which disk is the root disk. It chooses sdau as the root disk:

[    0.000000] Command line: ... root=/dev/sdau

And yet, sdau is one of the qcow2 image clones; the supermin disk appears to be sdat (looking at the size)

[    0.830155] scsi 2:0:44:0: Direct-Access     QEMU     QEMU HARDDISK    2.5+ PQ: 0 ANSI: 5
[    0.832186] scsi 2:0:46:0: Direct-Access     QEMU     QEMU HARDDISK    2.5+ PQ: 0 ANSI: 5
[    1.094846] scsi 2:0:44:0: Attached scsi generic sg44 type 0
[    1.099462] sd 2:0:46:0: Power-on or device reset occurred
[    1.100347] sd 2:0:46:0: [sdat] 8388608 512-byte logical blocks: (4.29 GB/4.00 GiB)
[    1.101121] sd 2:0:46:0: [sdat] Write Protect is off
[    1.101683] sd 2:0:46:0: [sdat] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.105412] sd 2:0:44:0: Power-on or device reset occurred
[    1.106313] sd 2:0:44:0: [sdau] 2880 512-byte logical blocks: (1.47 MB/1.41 MiB)
[    1.108897] sd 2:0:46:0: Attached scsi generic sg46 type 0
[    1.113986] sd 2:0:46:0: [sdat] Attached SCSI disk
[    1.114502] sd 2:0:44:0: [sdau] Write Protect is off
[    1.118211] sd 2:0:44:0: [sdau] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.121151]  sdau: sdau1
[    1.122104] sd 2:0:44:0: [sdau] Attached SCSI disk
...
supermin: picked /sys/block/sdau/dev (66:224) as root device
supermin: creating /dev/root as block special 66:224
supermin: mounting new root on /root
[    1.135304] EXT4-fs (sdau): VFS: Can't find ext4 filesystem
mount: /root: Invalid argument
[    1.136398] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100

Cannot compile 1.31.28

I had no such issue with 1.31.26.
The packages which "cannot be authenticated" are already installed.

WARNING: The following packages cannot be authenticated!
adduser base-files bash bsdmainutils cryptsetup debconf dpkg e2fsprogs fuse grub-common initramfs-tools initscripts insserv iproute2
isc-dhcp-client kmod libaudit-common libc-bin libc6 libldap-2.4-2 libmagic1 libpam-modules libsemanage-common lvm2 mdadm mountall mtools
openssh-client passwd plymouth procps reiserfsprogs rsync systemd sysv-rc tar udev util-linux uuid-runtime vim-common vim-tiny wget nilfs-tools
zfs-fuse libgssapi-krb5-2
E: Some packages could not be authenticated
supermin: cd '/tmp/supermin0bbd7b.tmpdir/7e3rkfd7' && /usr/bin/apt-get download 'bsdmainutils' 'cryptsetup' 'iproute2' 'isc-dhcp-client' 'libc-bin' 'mtools' 'nilfs-tools' 'openssh-client' 'reiserfsprogs' 'systemd' 'vim-tiny' 'zfs-fuse' 'uuid-runtime' 'bash' 'e2fsprogs' 'kmod' 'lvm2' 'mdadm' 'procps' 'rsync' 'tar' 'udev' 'util-linux' 'libc6' 'debconf' 'initramfs-tools' 'plymouth' 'libmagic1' 'grub-common' 'dpkg' 'fuse' 'libgssapi-krb5-2' 'adduser' 'passwd' 'sysv-rc' 'vim-common' 'base-files' 'initscripts' 'wget' 'mountall' 'libpam-modules' 'libaudit-common' 'insserv' 'libldap-2.4-2' 'libsemanage-common': command failed, see earlier errors
Makefile:1906: recipe for target 'stamp-supermin' failed
make[2]: *** [stamp-supermin] Error 1
make[2]: Leaving directory '/home/actionmystique/Program-Files/Ubuntu/Libguestfs/git-libguestfs/appliance'
Makefile:1843: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/actionmystique/Program-Files/Ubuntu/Libguestfs/git-libguestfs'
Makefile:1754: recipe for target 'all' failed
make: *** [all] Error 2

Whole log:
Compiling 1.31.28.txt

compile of 1.34.3 fails with gperf 3.1

While trying to compile libguestfs 1.34.3 and using gperf 3.1 I am getting this error:

'./'`guestfs_protocol.c
errnostring-gperf.gperf:505:1: error: conflicting types for 'guestfs_int_string_to_errno_lookup'
ENFILE, ENFILE
^~~~~~~~~~~~~~
In file included from errnostring-gperf.gperf:37:0:
errnostring.h:47:40: note: previous declaration of 'guestfs_int_string_to_errno_lookup' was here
extern const struct errnostring_entry *guestfs_int_string_to_errno_lookup (register const char *str, register unsigned int len);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:2339: liberrnostring_la-errnostring-gperf.lo] Error 1
make[3]: *** Waiting for unfinished jobs....

debian-7 virt-builder image contains proxy configuration in apt.conf

I just created a debian-7 image with virt-builder and the generated image contained 'cache.home.annexia.org' declared as a proxy in /etc/apt/apt.conf, which breaks apt completely.

It is an easy fix, and it would probably not have even showed up if it wasn't a testing machine since I manage apt configuration through Puppet, but it would be nice to know there is a procedure to avoid such customizations ending up in virt-builder images in the future.

virt-builder unable to create larger disks than default for Ubuntu 20.04

The --size parameter does not work when using virt-builder to create an image for Ubuntu 20.04. This is a real problem for an automated workflow.

I see issues #55 and #63 were related to this issue, but it has been over a year for both of them. Is there any plan for resolving or working around the logical partition issue?

Unable to inspect VM

I have already installed libguestfs and also downloaded libguestfs.org/guestfs

when i try to run inspect-vm.go file initially was getting error of -lguestfs not found in /usr/bin/ld

Secondly when tried resolving this encontered new error
"go build libguestfs.org/guestfs: invalid flag in #cgo CFLAGS: -UGUESTFS_NO_DEPRECATED"

Any help or advice is appreciable!

virt-list-filesystems for dmg is extension based.

Issue

The detection system for hfsplus file systems is based on extension.

Steps to reproduce

$virt-list-filesystems -a HelloWorld.dmg -l
/dev/sda1 hfsplus
$mv HelloWorld.dmg HelloWorld.dmg_123
$virt-list-filesystems -a HelloWorld.dmg_123 -l
/dev/sda unknown

Additional Comments

I'm not sure if the root cause of this is libguestfs or the underlying library as I'm not familiar with the repo
If it's not withing this library feel free to close and sorry for bothering ya'll

virt-builder and other tools need a mechanism to specify the subsequent image blocksize (sectorsize)

I found reference to using uefi to boot VM's and also reference to --blocksize in virt-install,However I dont see a way of telling virt-builder to build for a 4k sector target. This also has the side effect that it must also specify uefi/ocmf as a boot scheme and also the use of a gpt instead of mbr. I think most distros faced with a 4K sector target disk will install using uefi/gpt but I don't see
a way to tell virt-builder to build a 4K target and how it needs to launch it using uefii. Unless there is a way of using qemu-img to build a 4k sector image followed by some way to induce virt-builder to deal with that and know that to boot it involves uefi. If this is referenced or documented somewhere I'd be happy to refer to that.

guestunmount should not return before the image can be used by other vm

If I understood correct, the libguestfs actually start a qemu vm under the hood. When I call guestunmount it unmounts the image then shutdown the vm. However, if I do this programmably, commonly it will fail due to this appliance vm is still using the image:

guestmount -d guest1 mnt
# do something with the image
guestunmount mnt
virsh start guest1

I have to add sleep between guestunmount and other command. However, this time interval is not certain, it can be quite long. So I propose to add some option to let the guestunmount only return after the qemu vm release the image. Is there any work around right now for this?

Tools are not compatible with qemu

Hi
I was trying to list files inside a directory of my qcow2 image using
virt-ls -a hda.qcow2 /boot

Seems that call to qemu-img is not aligned with current version if qemu since I have this in debug info:
Backing file specified without backing format
now flag -F for backing format is required

Here's full debug log:

libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: create: flags = 0, handle = 0x55bc796a24f0, program = virt-ls
libguestfs: trace: add_drive "hda.qcow2" "readonly:true"
libguestfs: creating COW overlay to protect original drive content
libguestfs: trace: get_tmpdir
libguestfs: trace: get_tmpdir = "/tmp"
libguestfs: trace: disk_create "/tmp/libguestfsjjrQ6y/overlay1.qcow2" "qcow2" -1 "backingfile:/home/user/Emulators/qemu/hda.qcow2"
libguestfs: command: run: qemu-img
libguestfs: command: run: \ create
libguestfs: command: run: \ -f qcow2
libguestfs: command: run: \ -o backing_file=/home/user/Emulators/qemu/hda.qcow2
libguestfs: command: run: \ /tmp/libguestfsjjrQ6y/overlay1.qcow2
qemu-img: /tmp/libguestfsjjrQ6y/overlay1.qcow2: Backing file specified without backing format
Detected format of qcow2.libguestfs: error: qemu-img: /tmp/libguestfsjjrQ6y/overlay1.qcow2: qemu-img exited with error status 1, see debug messages above
libguestfs: trace: disk_create = -1 (error)
libguestfs: trace: add_drive = -1 (error)
libguestfs: trace: close
libguestfs: closing guestfs handle 0x55bc796a24f0 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfsjjrQ6y

I've seen similar bug described here: https://www.mail-archive.com/[email protected]/msg1816903.html

resize with ubuntu-20.04

Is there something I am missing to resize the disk in the ubuntu-20.04 template?

# virt-builder ubuntu-20.04 --size 30G
[   0.8] Downloading: http://builder.libguestfs.org/ubuntu-20.04.xz
[   1.8] Planning how to build this image
[   1.8] Uncompressing
[  10.9] Resizing (using virt-resize) to expand the disk to 30.0G
virt-resize: error: /dev/sda5: partition not found in the source disk image 
(this error came from ‘--expand’ option on the command line).  Try 
running this command: virt-filesystems --partitions --long -a 
/var/tmp/vb7ee275.img

If reporting bugs, run virt-resize with debugging enabled and include the 
complete output:

  virt-resize -v -x [...]

Or:

# virt-list-partitions -lh ubuntu-20.04.img 
/dev/sda1 vfat 512.0M
/dev/sda2 unknown 1K
/dev/sda5 ext4 5.5G
# truncate -r ubuntu-20.04.img ubuntu-20.04-resized.img
# truncate -s +5G ubuntu-20.04-resized.img 
# virt-resize --expand /dev/sda5 ubuntu-20.04.img ubuntu-20.04-resized.img 
[   0.0] Examining ubuntu-20.04.img
virt-resize: error: /dev/sda5: partition not found in the source disk image 
(this error came from ‘--expand’ option on the command line).  Try 
running this command: virt-filesystems --partitions --long -a 
ubuntu-20.04.img

If reporting bugs, run virt-resize with debugging enabled and include the 
complete output:

  virt-resize -v -x [...]

The verbose log is attached.

verbose.log

OpenStack support

According to the manpage,

Virt-p2v converts a physical machine to run virtualized on KVM, managed by libvirt, OpenStack, oVirt, Red Hat Virtualisation (RHV), or one of the other targets supported by virt-v2v(1).

In fact, openstack is one of the targets of virt-v2v. According to the file p2v/conversion.c, function generate_wrapper_script, the output mode of virt-v2v can be set to glance. The manpage of virt-v2v claims

only -o openstack should be used normally.

But even if -o glance was appropriate, there's no provision for setting additional command line flags such as -oo … in order to set up the server id, authentication and other conversion options.

Does the conversion to OpenStack work in any setup? Has it reportedly ever worked? What needs to be done to get it working?

Provide a new "appliance" build based on 1.45.x

Hello there,

It would be really nice getting a new appliance build in order to support newest CentOS Stream 9 virtual machines running on CentOS Stream 8. Currently, there are issues with the filesystem - the same kind of things already happened with "8 on 7" environment some years ago.

Thank you!

Cheers,

C.

when compiling v1.40.2: rake aborted!

When compilling libguestfs 1.40.2 I receive the following linking error:

linking shared-object _guestfs.so
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: actions-1.o: in function `guestfs_int_ruby_f2fs_expand':
actions-1.c:(.text+0x1521): undefined reference to `guestfs_f2fs_expand'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: actions-2.o: in function `guestfs_int_ruby_lvm_scan':
actions-2.c:(.text+0x2e80): undefined reference to `guestfs_lvm_scan'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: actions-5.o: in function `guestfs_int_ruby_inspect_get_osinfo':
actions-5.c:(.text+0x1d42): undefined reference to `guestfs_inspect_get_osinfo'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:259: _guestfs.so] Error 1
make[3]: Leaving directory '/var/tmp/portage/app-emulation/libguestfs-1.40.2/work/libguestfs-1.40.2/ruby/ext/guestfs'
rake aborted!

I'm using ruby 2.5.0 for x86_64.

virt-v2v: error: internal error: invalid argument: cannot fetch XML description of guest ‘Guest_Name’: internal error: HTTP response code 404 for download from

I have a problem when I use virt-v2v to migrate VMs from Vmware hypervisor to OLVM plateform.
The guest is powered off and exists on esxi server.

virt-v2v: error: internal error: invalid argument: cannot fetch XML
description of guest ‘Guest_name’: internal error: HTTP response
code 404 for download from " https://...."
If reporting bugs, run virt-v2v with debugging enabled and include the
complete output:

virt-v2v -v -x [...]

virt-v2v: error: libguestfs error: selinux_relabel: : Success

when i use rel7 virt-v2v to convert all the linux system ,this problem appeal: virt-v2v: error: libguestfs error: selinux_relabel: : Success, i do not know how to fix it .

guestfsd: main_loop: proc 467 (selinux_relabel) took 1.76 seconds
libguestfs: trace: v2v: selinux_relabel = -1 (error)
virt-v2v: error: libguestfs error: selinux_relabel: : Success
rm -rf '/var/tmp/ova.Q8TNG6'
rm -rf '/var/tmp/null.fkFo25'
libguestfs: trace: v2v: close

Can virt-v2v-copy-to-local be used?

Hello Currently I am using virt-v2v-copy-to-local on SLES for fetching disks from vmware ESXI hosts and converting them to kvm, it works fine so far. But I see this tool status is deprecated in github.
Should I expect any possible issue with this tool?

virt-v2v-copy-to-local failed if dd does not support status=progress

If dd does not support status=progress, copy process will abort at the end. This is totally misguided.
We can use -q as a workaround in this circumstance, but it is frightening to newbee like me. Maybe we should improve this.

suspicion:

       if shell_command cmd <> 0 then
         error (f_"ssh copy command failed, see earlier errors");

detail:

shell > virt-v2v-copy-to-local -v -ic xen+ssh://myxen_server guest
[   0.0] Fetching the remote libvirt XML metadata ...
[   1.6] Parsing the remote libvirt XML metadata ...
[   1.6] Copying remote disk 1/2 to guest-disk1
dd: invalid status flag: ‘progress’
Try 'dd --help' for more information.
40960+0 records in
40960+0 records out
42949672960 bytes (43 GB) copied, 876.05 seconds, 49.0 MB/s
virt-v2v-copy-to-local: error: ssh copy command failed, see earlier errors

Performance issue: "udevadm settle" is called three times for a single call of guestfs_download_offset()

I'm planning to use guestfs_download_offset() to read a part of /dev/sda. I made a micro-benchmark for it.
I found that a single 512-bytes read access takes 60msec. It is very slow.

I investigated a reason of it. I found that "udevadm settle -E /dev/sda" is invoked 3 times and that these three calls take 57msec.

The command udevadm is called from the beginning of is_device_parameter(), as shown below.

udev_settle_file (device);

I have the following two questions:

  • Can we defer calling udev_settle_file (device) after next two IFs? (That is, after Line 128) I tried it, and the performance was improved to 3msec.
  • Can we cache the result of is_device_parameter() and then use it for the other two calls?

virt-p2v-make-disk not making disk

I've used the following commands trying to make a P2V disk to boot from:

# virt-p2v-make-disk -o /dev/sdb --inject-ssh-identity id_rsa_p2v
# virt-p2v-make-disk -o /dev/sdb centos-7.3 --inject-ssh-identity id_rsa_p2v
# virt-p2v-make-disk -o p2v/p2v.img centos-7.3 --inject-ssh-identity id_rsa_p2v

... on both CentOS 7.3 and Ubuntu 16.04, including from a bare metal machine to a USB drive, from a VM to a .img, as well as from a container to .img, and none of them seem to work. It downloads the base image, uncompresses it, and finally tries to open it. But that's where it stops:

root@p2v:~# virt-p2v-make-disk -o p2v/p2v.img centos-7.3 --inject-ssh-identity id_rsa_p2v
[   1.6] Downloading: http://libguestfs.org/download/builder/centos-7.3.xz
################################################################## 100.0%
[ 223.9] Planning how to build this image
[ 223.9] Uncompressing
[ 235.7] Opening the new disk 
...

An image file is created:

root@p2v:~/p2v# ll -h
total 1.1G
drwxr-xr-x  2 root root 4.0K Jan 28 16:19 ./
drwx------ 12 root root 4.0K Jan 28 16:15 ../
-rw-r--r--  1 root root 6.0G Jan 28 16:20 p2v.img

Even after leaving the process running for hours and hours, nothing seems to happen.

Any thoughts?

any possible to manually download template and feed to virt-builder as cache?

hi,

when using virt-builder to create guest image, it should download the template from libguestfs.org first, but the download speed is so slow.
I might manually use axel -n 10 http://libguestfs.org/download/debian-9.xz to speed up the download process, but didn't know how to feed this manually downloaded template to virt-builder as cache.

Try inject ssh to CoreOS image but had error

$ sudo virt-sysprep -a container-linux1.qcow2 --ssh-inject core:file:/home/sah4ez/.ssh/id_rsa.pub
[   0,0] Examining the guest ...
virt-sysprep: error: libguestfs error: part_list: parted print: /dev/sda: 
Error: Invalid partition table - recursive partition on /dev/sda.

If reporting bugs, run virt-sysprep with debugging enabled and include the 
complete output:

  virt-sysprep -v -x [...]
output virt-sysprep -v -x
[    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 'standard' 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] 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  WC  UC- WT  
[    0.000000] found SMP MP-table at [mem 0x000f6a90-0x000f6a9f] mapped at [ffff8b85400f6a90]
[    0.000000] RAMDISK: [mem 0x1f0e8000-0x1f3cffff]
[    0.000000] ACPI: Early table checksum verification disabled
[    0.000000] ACPI: RSDP 0x00000000000F68C0 000014 (v00 BOCHS )
[    0.000000] ACPI: RSDT 0x000000001F3E187D 00002C (v01 BOCHS  BXPCRSDT 00000001 BXPC 00000001)
[    0.000000] ACPI: FACP 0x000000001F3E1791 000074 (v01 BOCHS  BXPCFACP 00000001 BXPC 00000001)
[    0.000000] ACPI: DSDT 0x000000001F3E0040 001751 (v01 BOCHS  BXPCDSDT 00000001 BXPC 00000001)
[    0.000000] ACPI: FACS 0x000000001F3E0000 000040
[    0.000000] ACPI: APIC 0x000000001F3E1805 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 0x1f3d9000-0x1f3ddfff]
[    0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00
[    0.000000] kvm-clock: cpu 0, msr 0:1f3d1001, primary cpu clock
[    0.000000] kvm-clock: using sched offset of 472128599 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] 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] 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] setup_percpu: NR_CPUS:512 nr_cpumask_bits:512 nr_cpu_ids:1 nr_node_ids:1
[    0.000000] percpu: Embedded 35 pages/cpu @ffff8b855ee00000 s105304 r8192 d29864 u2097152
[    0.000000] KVM setup async PF for cpu 0
[    0.000000] kvm-stealtime: cpu 0, msr 1ee101c0
[    0.000000] PV qspinlock hash table entries: 256 (order: 0, 4096 bytes)
[    0.000000] Built 1 zonelists in Node order, 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] PID hash table entries: 2048 (order: 2, 16384 bytes)
[    0.000000] Memory: 484340K/511472K available (6250K kernel code, 1159K rwdata, 2868K rodata, 1420K init, 688K bss, 27132K reserved, 0K cma-reserved)
[    0.000000] Kernel/User page tables isolation: enabled
[    0.000000] Hierarchical RCU implementation.
[    0.000000] \tBuild-time adjustment of leaf fanout to 64.
[    0.000000] \tRCU restricting CPUs from NR_CPUS=512 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=1
[    0.000000] NR_IRQS:33024 nr_irqs:256 16
[    0.000000] Console: colour *CGA 80x25
[    0.000000] console [ttyS0] enabled
[    0.000000] tsc: Detected 2993.200 MHz processor
[    0.080318] Calibrating delay loop (skipped) preset value.. 5986.40 BogoMIPS (lpj=11972800)
[    0.081305] pid_max: default: 32768 minimum: 301
[    0.081874] ACPI: Core revision 20160831
[    0.083175] ACPI: 1 ACPI AML tables successfully acquired and loaded
[    0.084101] Security Framework initialized
[    0.084622] Yama: disabled by default; enable with sysctl kernel.yama.*
[    0.085431] AppArmor: AppArmor disabled by boot time parameter
[    0.086171] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.087253] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
[    0.088151] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
[    0.088965] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes)
[    0.090271] Disabling memory control group subsystem
[    0.090911] CPU: Physical Processor ID: 0
[    0.091401] mce: CPU supports 10 MCE banks
[    0.091948] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[    0.092585] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0
[    0.093278] Spectre V2 : Mitigation: Full generic retpoline
[    0.093963] Speculative Store Bypass: Vulnerable
[    0.109480] Freeing SMP alternatives memory: 24K
[    0.115933] ftrace: allocating 25269 entries in 99 pages
[    0.154051] smpboot: Max logical packages: 1
[    0.154781] x2apic enabled
[    0.155341] Switched APIC routing to physical x2apic.
[    0.156981] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[    0.157698] smpboot: CPU0: Intel(R) Core(TM) i5-2320 CPU @ 3.00GHz (family: 0x6, model: 0x2a, stepping: 0x7)
[    0.158849] Performance Events: SandyBridge events, Intel PMU driver.
[    0.159638] core: PEBS disabled due to CPU errata, please upgrade microcode
[    0.160464] ... version:                2
[    0.160945] ... bit width:              48
[    0.161430] ... generic registers:      8
[    0.161896] ... value mask:             0000ffffffffffff
[    0.162514] ... max period:             000000007fffffff
[    0.163131] ... fixed-purpose events:   3
[    0.163635] ... event mask:             00000007000000ff
[    0.164295] KVM setup paravirtual spinlock
[    0.165188] x86: Booted up 1 node, 1 CPUs
[    0.165671] smpboot: Total of 1 processors activated (5986.40 BogoMIPS)
[    0.166741] devtmpfs: initialized
[    0.167215] x86/mm: Memory block size: 128MB
[    0.170272] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.171389] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.172158] pinctrl core: initialized pinctrl subsystem
[    0.172854] NET: Registered protocol family 16
[    0.173530] cpuidle: using governor ladder
[    0.174004] cpuidle: using governor menu
[    0.174513] ACPI: bus type PCI registered
[    0.175023] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[    0.175922] PCI: Using configuration type 1 for base access
[    0.176626] core: PMU erratum BJ122, BV98, HSD29 workaround disabled, HT off
[    0.178284] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    0.179188] ACPI: Added _OSI(Module Device)
[    0.179701] ACPI: Added _OSI(Processor Device)
[    0.180254] ACPI: Added _OSI(3.0 _SCP Extensions)
[    0.180794] ACPI: Added _OSI(Processor Aggregator Device)
[    0.182800] ACPI: Interpreter enabled
[    0.183510] ACPI: (supports S0 S3 S4 S5)
[    0.184229] ACPI: Using IOAPIC for interrupt routing
[    0.185130] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    0.188573] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[    0.189360] acpi PNP0A03:00: _OSC: OS supports [ASPM ClockPM Segments MSI]
[    0.190148] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM
[    0.190906] acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.
[    0.192644] acpiphp: Slot [2] registered
[    0.193133] acpiphp: Slot [3] registered
[    0.193630] acpiphp: Slot [4] registered
[    0.194116] acpiphp: Slot [5] registered
[    0.194604] acpiphp: Slot [6] registered
[    0.195088] acpiphp: Slot [7] registered
[    0.195588] acpiphp: Slot [8] registered
[    0.196087] acpiphp: Slot [9] registered
[    0.196572] acpiphp: Slot [10] registered
[    0.197065] acpiphp: Slot [11] registered
[    0.197636] acpiphp: Slot [12] registered
[    0.198178] acpiphp: Slot [13] registered
[    0.198689] acpiphp: Slot [14] registered
[    0.199200] acpiphp: Slot [15] registered
[    0.199718] acpiphp: Slot [16] registered
[    0.200228] acpiphp: Slot [17] registered
[    0.200738] acpiphp: Slot [18] registered
[    0.201248] acpiphp: Slot [19] registered
[    0.201765] acpiphp: Slot [20] registered
[    0.202277] acpiphp: Slot [21] registered
[    0.202769] acpiphp: Slot [22] registered
[    0.203265] acpiphp: Slot [23] registered
[    0.203766] acpiphp: Slot [24] registered
[    0.204261] acpiphp: Slot [25] registered
[    0.204754] acpiphp: Slot [26] registered
[    0.205249] acpiphp: Slot [27] registered
[    0.205795] acpiphp: Slot [28] registered
[    0.206305] acpiphp: Slot [29] registered
[    0.206816] acpiphp: Slot [30] registered
[    0.207325] acpiphp: Slot [31] registered
[    0.207818] PCI host bridge to bus 0000:00
[    0.208304] pci_bus 0000:00: root bus resource [io  0x0000-0x0cf7 window]
[    0.209097] pci_bus 0000:00: root bus resource [io  0x0d00-0xffff window]
[    0.209895] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
[    0.210773] pci_bus 0000:00: root bus resource [mem 0x1f400000-0xfebfffff window]
[    0.211645] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.217728] pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io  0x01f0-0x01f7]
[    0.218575] pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io  0x03f6]
[    0.219332] pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io  0x0170-0x0177]
[    0.220161] pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io  0x0376]
[    0.221466] pci 0000:00:01.3: quirk: [io  0x0600-0x063f] claimed by PIIX4 ACPI
[    0.222332] pci 0000:00:01.3: quirk: [io  0x0700-0x070f] claimed by PIIX4 SMB
[    0.253755] ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
[    0.254585] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
[    0.255404] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
[    0.256216] ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
[    0.256991] ACPI: PCI Interrupt Link [LNKS] (IRQs *9)
[    0.257757] ACPI: Enabled 3 GPEs in block 00 to 0F
[    0.258435] vgaarb: loaded
[    0.258829] PCI: Using ACPI for IRQ routing
[    0.260055] clocksource: Switched to clocksource kvm-clock
[    0.266600] VFS: Disk quotas dquot_6.6.0
[    0.267127] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.268015] pnp: PnP ACPI init
[    0.268810] pnp: PnP ACPI: found 5 devices
[    0.275104] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[    0.276181] NET: Registered protocol family 2
[    0.276789] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.277611] TCP bind hash table entries: 4096 (order: 4, 65536 bytes)
[    0.278354] TCP: Hash tables configured (established 4096 bind 4096)
[    0.279081] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.279761] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.280502] NET: Registered protocol family 1
[    0.281020] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[    0.281703] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[    0.282419] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[    0.283191] Unpacking initramfs...
[    0.284974] Freeing initrd memory: 2976K
[    0.285774] audit: initializing netlink subsys (disabled)
[    0.286410] audit: type=2000 audit(1553938364.907:1): initialized
[    0.287474] workingset: timestamp_bits=40 max_order=17 bucket_order=0
[    0.288303] zbud: loaded
[    0.288844] alg: self-tests disabled
[    0.289410] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.290309] io scheduler noop registered
[    0.290778] io scheduler deadline registered
[    0.291305] io scheduler cfq registered (default)
[    0.291910] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[    0.292596] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[    0.293408] GHES: HEST is not enabled!
[    0.293884] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[    0.317676] 00:04: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[    0.318657] Linux agpgart interface v0.103
[    0.319229] AMD IOMMUv2 driver by Joerg Roedel <[email protected]>
[    0.319947] AMD IOMMUv2 functionality not available on this system
[    0.320769] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
[    0.322400] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.322970] serio: i8042 AUX port at 0x60,0x64 irq 12
[    0.323664] mousedev: PS/2 mouse device common for all mice
[    0.324554] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
[    0.325758] rtc_cmos 00:00: RTC can wake from S4
[    0.326528] rtc_cmos 00:00: rtc core: registered rtc_cmos as rtc0
[    0.327367] rtc_cmos 00:00: alarms up to one day, y3k, 114 bytes nvram
[    0.328187] ledtrig-cpu: registered to indicate activity on CPUs
[    0.329022] NET: Registered protocol family 10
[    0.329692] mip6: Mobile IPv6
[    0.330059] NET: Registered protocol family 17
[    0.330586] mpls_gso: MPLS GSO support
[    0.331237] registered taskstats version 1
[    0.331756] zswap: loaded using pool lzo/zbud
[    0.332361] ima: No TPM chip found, activating TPM-bypass!
[    0.333004] ima: Allocated hash algorithm: sha256
[    0.333998] rtc_cmos 00:00: setting system clock to 2019-03-30 09:32:44 UTC (1553938364)
[    0.335820] Freeing unused kernel memory: 1420K
[    0.336387] Write protecting the kernel read-only data: 12288k
[    0.337403] Freeing unused kernel memory: 1928K
[    0.340193] Freeing unused kernel memory: 1228K
[    0.345382] x86/mm: Checked W+X mappings: passed, no W+X pages found.
supermin: mounting /proc
supermin: ext2 mini initrd starting up: 5.1.17
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.24 0.05
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 crc32c_generic.ko
supermin: internal insmod libnvdimm.ko
supermin: internal insmod nfit.ko
supermin: internal insmod scsi_mod.ko
[    0.357338] SCSI subsystem initialized
supermin: internal insmod libata.ko
supermin: internal insmod ata_piix.ko
[    0.361185] scsi host0: ata_piix
[    0.361664] scsi host1: ata_piix
[    0.362082] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc0a0 irq 14
[    0.362873] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc0a8 irq 15
supermin: internal insmod virtio.ko
supermin: internal insmod virtio_ring.ko
supermin: internal insmod virtio_blk.ko
supermin: internal insmod rng-core.ko
supermin: internal insmod virtio-rng.ko
supermin: internal insmod virtio_console.ko
supermin: internal insmod virtio_net.ko
supermin: internal insmod nd_btt.ko
supermin: internal insmod nd_pmem.ko
supermin: internal insmod sd_mod.ko
supermin: internal insmod virtio_scsi.ko
supermin: internal insmod virtio_balloon.ko
supermin: internal insmod virtio_input.ko
supermin: internal insmod virtio_pci.ko
[    0.568188] ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 10
[    0.576157] random: fast init done
[    0.576787] random: crng init done
[    0.600090] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
[    0.602894] scsi host2: Virtio SCSI HBA
[    0.608182] scsi 2:0:0:0: Direct-Access     QEMU     QEMU HARDDISK    2.5+ PQ: 0 ANSI: 5
[    0.616175] scsi 2:0:1:0: Direct-Access     QEMU     QEMU HARDDISK    2.5+ PQ: 0 ANSI: 5
[    0.631428] ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
[    0.698296] sd 2:0:0:0: [sda] 786432 512-byte logical blocks: (403 MB/384 MiB)
[    0.699309] sd 2:0:1:0: [sdb] 8388608 512-byte logical blocks: (4.29 GB/4.00 GiB)
[    0.700670] sd 2:0:0:0: [sda] Write Protect is off
[    0.701352] sd 2:0:1:0: [sdb] Write Protect is off
[    0.701974] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    0.703300] sd 2:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    0.705104]  sda: sda1
[    0.705872] sd 2:0:0:0: [sda] Attached SCSI disk
[    0.706575] sd 2:0:1:0: [sdb] Attached SCSI disk
supermin: internal insmod fscrypto.ko
supermin: internal insmod jbd2.ko
supermin: internal insmod mbcache.ko
supermin: internal insmod crc16.ko
supermin: internal insmod ext4.ko
supermin: internal insmod crc-ccitt.ko
supermin: internal insmod crc-itu-t.ko
supermin: internal insmod crc7.ko
supermin: internal insmod libcrc32c.ko
supermin: picked /sys/block/sdb/dev as root device
supermin: creating /dev/root as block special 8:16
supermin: mounting new root on /root
[    0.718936] EXT4-fs (sdb): mounting ext2 file system using the ext4 subsystem
[    0.721468] 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
+ [[ 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=' 44e2 e9f0 ee5d c7ef 04cf 9be4 5344 68c9'
+ echo 44e2e9f0ee5dc7ef04cf9be4534468c9
+ systemd-tmpfiles --prefix=/dev --prefix=/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: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 "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 232
+ udevadm trigger
+ udevadm settle --timeout=600
[    0.843104] piix4_smbus 0000:00:01.3: SMBus Host Controller at 0x700, revision 0
[    0.845379] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
[    0.846308] ACPI: Power Button [PWRF]
[    0.862947] sd 2:0:0:0: Attached scsi generic sg0 type 0
[    0.863668] sd 2:0:1:0: Attached scsi generic sg1 type 0
[    0.871221] input: PC Speaker as /devices/platform/pcspkr/input/input3
[    0.881843] input: VirtualPS/2 VMware VMMouse as /devices/platform/i8042/serio1/input/input5
[    0.883153] input: VirtualPS/2 VMware VMMouse as /devices/platform/i8042/serio1/input/input4
[    0.903984] AVX version of gcm_enc/dec engaged.
[    0.904588] AES CTR mode by8 optimization enabled
[    0.932525] FDC 0 is a S82078B
[    1.292243] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x2b252da6e11, max_idle_ns: 440795218047 ns
+ 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
+ for f in /sys/block/{h,s,ub,v}d*/queue/scheduler
+ echo noop
+ 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
[    1.536525] device-mapper: uevent: version 1.0.3
[    1.537601] device-mapper: ioctl: 4.35.0-ioctl (2016-06-23) initialised: [email protected]
+ 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.9.0-7-amd64 #1 SMP Debian 4.9.110-3+deb9u2 (2018-08-13) x86_64 GNU/Linux
+ ls -lR /dev
/dev:
total 0
crw------- 1 0 0  10, 235 Mar 30 09:32 autofs
drwxr-xr-x 2 0 0      100 Mar 30 09:32 block
drwxr-xr-x 2 0 0       80 Mar 30 09:32 bsg
crw------- 1 0 0  10, 234 Mar 30 09:32 btrfs-control
drwxr-xr-x 2 0 0     2140 Mar 30 09:32 char
crw------- 1 0 0   5,   1 Mar 30 09:32 console
lrwxrwxrwx 1 0 0       11 Mar 30 09:32 core -> /proc/kcore
crw------- 1 0 0  10,  62 Mar 30 09:32 cpu_dma_latency
crw------- 1 0 0  10, 203 Mar 30 09:32 cuse
drwxr-xr-x 7 0 0      140 Mar 30 09:32 disk
lrwxrwxrwx 1 0 0       13 Mar 30 09:32 fd -> /proc/self/fd
crw-rw-rw- 1 0 0   1,   7 Mar 30 09:32 full
crw-rw-rw- 1 0 0  10, 229 Mar 30 09:32 fuse
crw------- 1 0 0  10, 228 Mar 30 09:32 hpet
crw------- 1 0 0  10, 183 Mar 30 09:32 hwrng
drwxr-xr-x 3 0 0      220 Mar 30 09:32 input
crw-r--r-- 1 0 0   1,  11 Mar 30 09:32 kmsg
crw------- 1 0 0  10, 237 Mar 30 09:32 loop-control
drwxr-xr-x 2 0 0       60 Mar 30 09:32 mapper
crw------- 1 0 0  10, 227 Mar 30 09:32 mcelog
crw------- 1 0 0   1,   1 Mar 30 09:32 mem
crw------- 1 0 0  10,  59 Mar 30 09:32 memory_bandwidth
drwxr-xr-x 2 0 0       60 Mar 30 09:32 net
crw------- 1 0 0  10,  61 Mar 30 09:32 network_latency
crw------- 1 0 0  10,  60 Mar 30 09:32 network_throughput
crw-rw-rw- 1 0 0   1,   3 Mar 30 09:32 null
crw------- 1 0 0   1,   4 Mar 30 09:32 port
crw------- 1 0 0 108,   0 Mar 30 09:32 ppp
crw------- 1 0 0  10,   1 Mar 30 09:32 psaux
crw-rw-rw- 1 0 0   5,   2 Mar 30 09:32 ptmx
drwxr-xr-x 2 0 0        0 Mar 30 09:32 pts
crw-rw-rw- 1 0 0   1,   8 Mar 30 09:32 random
lrwxrwxrwx 1 0 0        4 Mar 30 09:32 rtc -> rtc0
crw------- 1 0 0 252,   0 Mar 30 09:32 rtc0
brw------- 1 0 0   8,   0 Mar 30 09:32 sda
brw------- 1 0 0   8,   1 Mar 30 09:32 sda1
brw------- 1 0 0   8,  16 Mar 30 09:32 sdb
crw------- 1 0 0  21,   0 Mar 30 09:32 sg0
crw------- 1 0 0  21,   1 Mar 30 09:32 sg1
crw------- 1 0 0  10, 231 Mar 30 09:32 snapshot
drwxr-xr-x 2 0 0       80 Mar 30 09:32 snd
lrwxrwxrwx 1 0 0       15 Mar 30 09:32 stderr -> /proc/self/fd/2
lrwxrwxrwx 1 0 0       15 Mar 30 09:32 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 0 0       15 Mar 30 09:32 stdout -> /proc/self/fd/1
crw-rw-rw- 1 0 0   5,   0 Mar 30 09:32 tty
crw------- 1 0 0   4,   0 Mar 30 09:32 tty0
crw------- 1 0 0   4,   1 Mar 30 09:32 tty1
crw------- 1 0 0   4,  10 Mar 30 09:32 tty10
crw------- 1 0 0   4,  11 Mar 30 09:32 tty11
crw------- 1 0 0   4,  12 Mar 30 09:32 tty12
crw------- 1 0 0   4,  13 Mar 30 09:32 tty13
crw------- 1 0 0   4,  14 Mar 30 09:32 tty14
crw------- 1 0 0   4,  15 Mar 30 09:32 tty15
crw------- 1 0 0   4,  16 Mar 30 09:32 tty16
crw------- 1 0 0   4,  17 Mar 30 09:32 tty17
crw------- 1 0 0   4,  18 Mar 30 09:32 tty18
crw------- 1 0 0   4,  19 Mar 30 09:32 tty19
crw------- 1 0 0   4,   2 Mar 30 09:32 tty2
crw------- 1 0 0   4,  20 Mar 30 09:32 tty20
crw------- 1 0 0   4,  21 Mar 30 09:32 tty21
crw------- 1 0 0   4,  22 Mar 30 09:32 tty22
crw------- 1 0 0   4,  23 Mar 30 09:32 tty23
crw------- 1 0 0   4,  24 Mar 30 09:32 tty24
crw------- 1 0 0   4,  25 Mar 30 09:32 tty25
crw------- 1 0 0   4,  26 Mar 30 09:32 tty26
crw------- 1 0 0   4,  27 Mar 30 09:32 tty27
crw------- 1 0 0   4,  28 Mar 30 09:32 tty28
crw------- 1 0 0   4,  29 Mar 30 09:32 tty29
crw------- 1 0 0   4,   3 Mar 30 09:32 tty3
crw------- 1 0 0   4,  30 Mar 30 09:32 tty30
crw------- 1 0 0   4,  31 Mar 30 09:32 tty31
crw------- 1 0 0   4,  32 Mar 30 09:32 tty32
crw------- 1 0 0   4,  33 Mar 30 09:32 tty33
crw------- 1 0 0   4,  34 Mar 30 09:32 tty34
crw------- 1 0 0   4,  35 Mar 30 09:32 tty35
crw------- 1 0 0   4,  36 Mar 30 09:32 tty36
crw------- 1 0 0   4,  37 Mar 30 09:32 tty37
crw------- 1 0 0   4,  38 Mar 30 09:32 tty38
crw------- 1 0 0   4,  39 Mar 30 09:32 tty39
crw------- 1 0 0   4,   4 Mar 30 09:32 tty4
crw------- 1 0 0   4,  40 Mar 30 09:32 tty40
crw------- 1 0 0   4,  41 Mar 30 09:32 tty41
crw------- 1 0 0   4,  42 Mar 30 09:32 tty42
crw------- 1 0 0   4,  43 Mar 30 09:32 tty43
crw------- 1 0 0   4,  44 Mar 30 09:32 tty44
crw------- 1 0 0   4,  45 Mar 30 09:32 tty45
crw------- 1 0 0   4,  46 Mar 30 09:32 tty46
crw------- 1 0 0   4,  47 Mar 30 09:32 tty47
crw------- 1 0 0   4,  48 Mar 30 09:32 tty48
crw------- 1 0 0   4,  49 Mar 30 09:32 tty49
crw------- 1 0 0   4,   5 Mar 30 09:32 tty5
crw------- 1 0 0   4,  50 Mar 30 09:32 tty50
crw------- 1 0 0   4,  51 Mar 30 09:32 tty51
crw------- 1 0 0   4,  52 Mar 30 09:32 tty52
crw------- 1 0 0   4,  53 Mar 30 09:32 tty53
crw------- 1 0 0   4,  54 Mar 30 09:32 tty54
crw------- 1 0 0   4,  55 Mar 30 09:32 tty55
crw------- 1 0 0   4,  56 Mar 30 09:32 tty56
crw------- 1 0 0   4,  57 Mar 30 09:32 tty57
crw------- 1 0 0   4,  58 Mar 30 09:32 tty58
crw------- 1 0 0   4,  59 Mar 30 09:32 tty59
crw------- 1 0 0   4,   6 Mar 30 09:32 tty6
crw------- 1 0 0   4,  60 Mar 30 09:32 tty60
crw------- 1 0 0   4,  61 Mar 30 09:32 tty61
crw------- 1 0 0   4,  62 Mar 30 09:32 tty62
crw------- 1 0 0   4,  63 Mar 30 09:32 tty63
crw------- 1 0 0   4,   7 Mar 30 09:32 tty7
crw------- 1 0 0   4,   8 Mar 30 09:32 tty8
crw------- 1 0 0   4,   9 Mar 30 09:32 tty9
crw------- 1 0 0   4,  64 Mar 30 09:32 ttyS0
crw------- 1 0 0  10, 239 Mar 30 09:32 uhid
crw------- 1 0 0  10, 223 Mar 30 09:32 uinput
crw-rw-rw- 1 0 0   1,   9 Mar 30 09:32 urandom
crw------- 1 0 0   7,   0 Mar 30 09:32 vcs
crw------- 1 0 0   7,   1 Mar 30 09:32 vcs1
crw------- 1 0 0   7, 128 Mar 30 09:32 vcsa
crw------- 1 0 0   7, 129 Mar 30 09:32 vcsa1
drwxr-xr-x 2 0 0       60 Mar 30 09:32 vfio
crw------- 1 0 0  10,  63 Mar 30 09:32 vga_arbiter
crw------- 1 0 0  10, 137 Mar 30 09:32 vhci
crw------- 1 0 0  10, 238 Mar 30 09:32 vhost-net
drwxr-xr-x 2 0 0       60 Mar 30 09:32 virtio-ports
crw------- 1 0 0 247,   1 Mar 30 09:32 vport2p1
crw-rw-rw- 1 0 0   1,   5 Mar 30 09:32 zero

/dev/block:
total 0
lrwxrwxrwx 1 0 0 6 Mar 30 09:32 8:0 -> ../sda
lrwxrwxrwx 1 0 0 7 Mar 30 09:32 8:1 -> ../sda1
lrwxrwxrwx 1 0 0 6 Mar 30 09:32 8:16 -> ../sdb

/dev/bsg:
total 0
crw------- 1 0 0 250, 0 Mar 30 09:32 2:0:0:0
crw------- 1 0 0 250, 1 Mar 30 09:32 2:0:1:0

/dev/char:
total 0
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 10:1 -> ../psaux
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 10:183 -> ../hwrng
lrwxrwxrwx 1 0 0  9 Mar 30 09:32 10:227 -> ../mcelog
lrwxrwxrwx 1 0 0  7 Mar 30 09:32 10:228 -> ../hpet
lrwxrwxrwx 1 0 0 11 Mar 30 09:32 10:231 -> ../snapshot
lrwxrwxrwx 1 0 0 17 Mar 30 09:32 10:236 -> ../mapper/control
lrwxrwxrwx 1 0 0 19 Mar 30 09:32 10:59 -> ../memory_bandwidth
lrwxrwxrwx 1 0 0 21 Mar 30 09:32 10:60 -> ../network_throughput
lrwxrwxrwx 1 0 0 18 Mar 30 09:32 10:61 -> ../network_latency
lrwxrwxrwx 1 0 0 18 Mar 30 09:32 10:62 -> ../cpu_dma_latency
lrwxrwxrwx 1 0 0 14 Mar 30 09:32 10:63 -> ../vga_arbiter
lrwxrwxrwx 1 0 0 15 Mar 30 09:32 13:32 -> ../input/mouse0
lrwxrwxrwx 1 0 0 15 Mar 30 09:32 13:33 -> ../input/mouse1
lrwxrwxrwx 1 0 0 13 Mar 30 09:32 13:63 -> ../input/mice
lrwxrwxrwx 1 0 0 15 Mar 30 09:32 13:64 -> ../input/event0
lrwxrwxrwx 1 0 0 15 Mar 30 09:32 13:65 -> ../input/event1
lrwxrwxrwx 1 0 0 15 Mar 30 09:32 13:66 -> ../input/event2
lrwxrwxrwx 1 0 0 15 Mar 30 09:32 13:67 -> ../input/event3
lrwxrwxrwx 1 0 0 15 Mar 30 09:32 13:68 -> ../input/event4
lrwxrwxrwx 1 0 0  6 Mar 30 09:32 1:1 -> ../mem
lrwxrwxrwx 1 0 0  7 Mar 30 09:32 1:11 -> ../kmsg
lrwxrwxrwx 1 0 0  7 Mar 30 09:32 1:3 -> ../null
lrwxrwxrwx 1 0 0  7 Mar 30 09:32 1:4 -> ../port
lrwxrwxrwx 1 0 0  7 Mar 30 09:32 1:5 -> ../zero
lrwxrwxrwx 1 0 0  7 Mar 30 09:32 1:7 -> ../full
lrwxrwxrwx 1 0 0  9 Mar 30 09:32 1:8 -> ../random
lrwxrwxrwx 1 0 0 10 Mar 30 09:32 1:9 -> ../urandom
lrwxrwxrwx 1 0 0  6 Mar 30 09:32 21:0 -> ../sg0
lrwxrwxrwx 1 0 0  6 Mar 30 09:32 21:1 -> ../sg1
lrwxrwxrwx 1 0 0 11 Mar 30 09:32 247:1 -> ../vport2p1
lrwxrwxrwx 1 0 0 14 Mar 30 09:32 250:0 -> ../bsg/2:0:0:0
lrwxrwxrwx 1 0 0 14 Mar 30 09:32 250:1 -> ../bsg/2:0:1:0
lrwxrwxrwx 1 0 0  7 Mar 30 09:32 252:0 -> ../rtc0
lrwxrwxrwx 1 0 0  7 Mar 30 09:32 4:0 -> ../tty0
lrwxrwxrwx 1 0 0  7 Mar 30 09:32 4:1 -> ../tty1
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:10 -> ../tty10
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:11 -> ../tty11
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:12 -> ../tty12
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:13 -> ../tty13
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:14 -> ../tty14
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:15 -> ../tty15
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:16 -> ../tty16
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:17 -> ../tty17
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:18 -> ../tty18
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:19 -> ../tty19
lrwxrwxrwx 1 0 0  7 Mar 30 09:32 4:2 -> ../tty2
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:20 -> ../tty20
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:21 -> ../tty21
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:22 -> ../tty22
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:23 -> ../tty23
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:24 -> ../tty24
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:25 -> ../tty25
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:26 -> ../tty26
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:27 -> ../tty27
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:28 -> ../tty28
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:29 -> ../tty29
lrwxrwxrwx 1 0 0  7 Mar 30 09:32 4:3 -> ../tty3
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:30 -> ../tty30
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:31 -> ../tty31
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:32 -> ../tty32
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:33 -> ../tty33
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:34 -> ../tty34
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:35 -> ../tty35
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:36 -> ../tty36
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:37 -> ../tty37
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:38 -> ../tty38
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:39 -> ../tty39
lrwxrwxrwx 1 0 0  7 Mar 30 09:32 4:4 -> ../tty4
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:40 -> ../tty40
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:41 -> ../tty41
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:42 -> ../tty42
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:43 -> ../tty43
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:44 -> ../tty44
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:45 -> ../tty45
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:46 -> ../tty46
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:47 -> ../tty47
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:48 -> ../tty48
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:49 -> ../tty49
lrwxrwxrwx 1 0 0  7 Mar 30 09:32 4:5 -> ../tty5
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:50 -> ../tty50
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:51 -> ../tty51
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:52 -> ../tty52
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:53 -> ../tty53
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:54 -> ../tty54
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:55 -> ../tty55
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:56 -> ../tty56
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:57 -> ../tty57
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:58 -> ../tty58
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:59 -> ../tty59
lrwxrwxrwx 1 0 0  7 Mar 30 09:32 4:6 -> ../tty6
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:60 -> ../tty60
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:61 -> ../tty61
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:62 -> ../tty62
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:63 -> ../tty63
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 4:64 -> ../ttyS0
lrwxrwxrwx 1 0 0  7 Mar 30 09:32 4:7 -> ../tty7
lrwxrwxrwx 1 0 0  7 Mar 30 09:32 4:8 -> ../tty8
lrwxrwxrwx 1 0 0  7 Mar 30 09:32 4:9 -> ../tty9
lrwxrwxrwx 1 0 0  6 Mar 30 09:32 5:0 -> ../tty
lrwxrwxrwx 1 0 0 10 Mar 30 09:32 5:1 -> ../console
lrwxrwxrwx 1 0 0  7 Mar 30 09:32 5:2 -> ../ptmx
lrwxrwxrwx 1 0 0  6 Mar 30 09:32 7:0 -> ../vcs
lrwxrwxrwx 1 0 0  7 Mar 30 09:32 7:1 -> ../vcs1
lrwxrwxrwx 1 0 0  7 Mar 30 09:32 7:128 -> ../vcsa
lrwxrwxrwx 1 0 0  8 Mar 30 09:32 7:129 -> ../vcsa1

/dev/disk:
total 0
drwxr-xr-x 2 0 0 100 Mar 30 09:32 by-id
drwxr-xr-x 2 0 0  60 Mar 30 09:32 by-label
drwxr-xr-x 2 0 0  60 Mar 30 09:32 by-partuuid
drwxr-xr-x 2 0 0 100 Mar 30 09:32 by-path
drwxr-xr-x 2 0 0  80 Mar 30 09:32 by-uuid

/dev/disk/by-id:
total 0
lrwxrwxrwx 1 0 0  9 Mar 30 09:32 scsi-0QEMU_QEMU_HARDDISK_appliance -> ../../sdb
lrwxrwxrwx 1 0 0  9 Mar 30 09:32 scsi-0QEMU_QEMU_HARDDISK_hd0 -> ../../sda
lrwxrwxrwx 1 0 0 10 Mar 30 09:32 scsi-0QEMU_QEMU_HARDDISK_hd0-part1 -> ../../sda1

/dev/disk/by-label:
total 0
lrwxrwxrwx 1 0 0 9 Mar 30 09:32 CDROM -> ../../sda

/dev/disk/by-partuuid:
total 0
lrwxrwxrwx 1 0 0 10 Mar 30 09:32 756e5e01-01 -> ../../sda1

/dev/disk/by-path:
total 0
lrwxrwxrwx 1 0 0  9 Mar 30 09:32 pci-0000:00:03.0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx 1 0 0 10 Mar 30 09:32 pci-0000:00:03.0-scsi-0:0:0:0-part1 -> ../../sda1
lrwxrwxrwx 1 0 0  9 Mar 30 09:32 pci-0000:00:03.0-scsi-0:0:1:0 -> ../../sdb

/dev/disk/by-uuid:
total 0
lrwxrwxrwx 1 0 0 9 Mar 30 09:32 2019-03-09-02-18-21-82 -> ../../sda
lrwxrwxrwx 1 0 0 9 Mar 30 09:32 8bf21eed-4458-4191-a443-c0285762d141 -> ../../sdb

/dev/input:
total 0
drwxr-xr-x 2 0 0     60 Mar 30 09:32 by-path
crw------- 1 0 0 13, 64 Mar 30 09:32 event0
crw------- 1 0 0 13, 65 Mar 30 09:32 event1
crw------- 1 0 0 13, 66 Mar 30 09:32 event2
crw------- 1 0 0 13, 67 Mar 30 09:32 event3
crw------- 1 0 0 13, 68 Mar 30 09:32 event4
crw------- 1 0 0 13, 63 Mar 30 09:32 mice
crw------- 1 0 0 13, 32 Mar 30 09:32 mouse0
crw------- 1 0 0 13, 33 Mar 30 09:32 mouse1

/dev/input/by-path:
total 0
lrwxrwxrwx 1 0 0 9 Mar 30 09:32 platform-pcspkr-event-spkr -> ../event2

/dev/mapper:
total 0
crw------- 1 0 0 10, 236 Mar 30 09:32 control

/dev/net:
total 0
crw-rw-rw- 1 0 0 10, 200 Mar 30 09:32 tun

/dev/pts:
total 0
c--------- 1 0 0 5, 2 Mar 30 09:32 ptmx

/dev/snd:
total 0
crw------- 1 0 0 116,  1 Mar 30 09:32 seq
crw------- 1 0 0 116, 33 Mar 30 09:32 timer

/dev/vfio:
total 0
crw------- 1 0 0 10, 196 Mar 30 09:32 vfio

/dev/virtio-ports:
total 0
lrwxrwxrwx 1 0 0 11 Mar 30 09:32 org.libguestfs.channel.0 -> ../vport2p1
+ cat /proc/mounts
/dev/root / ext2 rw,noatime,block_validity,barrier,user_xattr,acl 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
tmpfs /run tmpfs rw,nosuid,relatime,size=98384k,mode=755 0 0
/dev /dev devtmpfs rw,relatime,size=242180k,nr_inodes=60545,mode=755 0 0
/dev/pts /dev/pts devpts rw,relatime,mode=600,ptmxmode=000 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 1
    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
+ lsmod
Module                  Size  Used by
dm_mod                118784  0
ghash_clmulni_intel    16384  0
joydev                 20480  0
aesni_intel           167936  0
aes_x86_64             20480  1 aesni_intel
lrw                    16384  1 aesni_intel
gf128mul               16384  1 lrw
evdev                  24576  0
glue_helper            16384  1 aesni_intel
ablk_helper            16384  1 aesni_intel
psmouse               135168  0
cryptd                 24576  3 ablk_helper,ghash_clmulni_intel,aesni_intel
serio_raw              16384  0
pcspkr                 16384  0
sg                     32768  0
floppy                 69632  0
button                 16384  0
ata_generic            16384  0
i2c_piix4              24576  0
libcrc32c              16384  0
crc7                   16384  0
crc_itu_t              16384  0
crc_ccitt              16384  0
ext4                  585728  1
crc16                  16384  1 ext4
mbcache                16384  2 ext4
jbd2                  106496  1 ext4
fscrypto               28672  1 ext4
virtio_pci             24576  0
virtio_input           16384  0
virtio_balloon         16384  0
virtio_scsi            20480  1
sd_mod                 49152  1
nd_pmem                16384  0
nd_btt                 24576  1 nd_pmem
virtio_net             32768  0
virtio_console         28672  0
virtio_rng             16384  0
rng_core               16384  1 virtio_rng
virtio_blk             20480  0
virtio_ring            24576  8 virtio_input,virtio_blk,virtio_net,virtio_rng,virtio_scsi,virtio_balloon,virtio_console,virtio_pci
virtio                 16384  8 virtio_input,virtio_blk,virtio_net,virtio_rng,virtio_scsi,virtio_balloon,virtio_console,virtio_pci
ata_piix               36864  0
libata                249856  2 ata_piix,ata_generic
scsi_mod              225280  4 sd_mod,virtio_scsi,libata,sg
nfit                   49152  0
libnvdimm             139264  3 nd_btt,nd_pmem,nfit
crc32c_generic         16384  0
crc32_generic          16384  0
crct10dif_pclmul       16384  0
crc32c_intel           24576  1
crc32_pclmul           16384  0
+ date
Sat Mar 30 09:32:46 UTC 2019
+ echo -n 'clocksource: '
clocksource: + cat /sys/devices/system/clocksource/clocksource0/current_clocksource
kvm-clock
+ echo -n 'uptime: '
uptime: + cat /proc/uptime
1.64 0.80
+ 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
lvmetad
trying to open virtio-serial channel '/dev/virtio-ports/org.libguestfs.channel.0'
udevadm --debug settle
calling: settle
libguestfs: recv_from_daemon: received GUESTFS_LAUNCH_FLAG
libguestfs: appliance is up
libguestfs: trace: launch = 0
libguestfs: trace: inspect_os
libguestfs: trace: umount_all
guestfsd: main_loop: new request, len 0x28
umount-all: /proc/mounts: fsname=/dev/root dir=/ type=ext2 opts=rw,noatime,block_validity,barrier,user_xattr,acl freq=0 passno=0
umount-all: /proc/mounts: fsname=/proc dir=/proc type=proc opts=rw,relatime freq=0 passno=0
umount-all: /proc/mounts: fsname=/sys dir=/sys type=sysfs opts=rw,relatime freq=0 passno=0
umount-all: /proc/mounts: fsname=tmpfs dir=/run type=tmpfs opts=rw,nosuid,relatime,size=98384k,mode=755 freq=0 passno=0
umount-all: /proc/mounts: fsname=/dev dir=/dev type=devtmpfs opts=rw,relatime,size=242180k,nr_inodes=60545,mode=755 freq=0 passno=0
umount-all: /proc/mounts: fsname=/dev/pts dir=/dev/pts type=devpts opts=rw,relatime,mode=600,ptmxmode=000 freq=0 passno=0
guestfsd: main_loop: proc 47 (umount_all) took 0.00 seconds
libguestfs: trace: umount_all = 0
libguestfs: trace: list_filesystems
libguestfs: trace: feature_available "lvm2"
libguestfs: trace: internal_feature_available "lvm2"
guestfsd: main_loop: new request, len 0x30
guestfsd: main_loop: proc 458 (internal_feature_available) took 0.00 seconds
libguestfs: trace: internal_feature_available = 0
libguestfs: trace: feature_available = 1
libguestfs: trace: feature_available "ldm"
libguestfs: trace: internal_feature_available "ldm"
guestfsd: main_loop: new request, len 0x30
guestfsd: main_loop: proc 458 (internal_feature_available) took 0.00 seconds
libguestfs: trace: internal_feature_available = 0
libguestfs: trace: feature_available = 1
libguestfs: trace: list_devices
guestfsd: main_loop: new request, len 0x28
guestfsd: main_loop: proc 7 (list_devices) took 0.00 secondslibguestfs: trace: list_devices = ["/dev/sda"]
libguestfs: trace: list_partitions

guestfsd: main_loop: new request, len 0x28
guestfsd: main_loop: proc 8 (list_partitions) took 0.00 seconds
libguestfs: trace: list_partitions = ["/dev/sda1"]
libguestfs: trace: list_md_devices
guestfsd: main_loop: new request, len 0x28
guestfsd: main_loop: proc 300 (list_md_devices) took 0.00 seconds
libguestfs: trace: list_md_devices = []
libguestfs: trace: part_to_dev "/dev/sda1"
guestfsd: main_loop: new request, len 0x38
guestfsd: main_loop: proc 272 (part_to_dev) took 0.00 seconds
libguestfs: trace: part_to_dev = "/dev/sda"
libguestfs: trace: part_to_partnum "/dev/sda1"
guestfsd: main_loop: new request, len 0x38
guestfsd: main_loop: proc 293 (part_to_partnum) took 0.00 seconds
libguestfs: trace: part_to_partnum = 1
libguestfs: trace: part_to_dev "/dev/sda1"
guestfsd: main_loop: new request, len 0x38
guestfsd: main_loop: proc 272 (part_to_dev) took 0.00 seconds
libguestfs: trace: part_to_dev = "/dev/sda"
libguestfs: trace: part_get_mbr_id "/dev/sda" 1
guestfsd: main_loop: new request, len 0x38
commandrvf: stdout=y stderr=y flags=0x0
commandrvf: sfdisk --help
udevadm --debug settle
calling: settle
commandrvf: stdout=y stderr=y flags=0x0
commandrvf: sfdisk --part-type /dev/sda 1
udevadm --debug settle
calling: settle
guestfsd: main_loop: proc 235 (part_get_mbr_id) took 0.01 seconds
libguestfs: trace: part_get_mbr_id = 23
libguestfs: trace: vfs_type "/dev/sda1"
guestfsd: main_loop: new request, len 0x38
commandrvf: stdout=y stderr=y flags=0x0
commandrvf: blkid -c /dev/null -o value -s TYPE /dev/sda1
libguestfs: trace: vfs_type = "iso9660"
libguestfs: trace: lvs
guestfsd: main_loop: proc 198 (vfs_type) took 0.00 seconds
guestfsd: main_loop: new request, len 0x28
commandrvf: stdout=y stderr=y flags=0x0
commandrvf: lvm lvs --help
commandrvf: stdout=y stderr=y flags=0x0
commandrvf: lvm lvs -o vg_name,lv_name -S "lv_role=public && lv_skip_activation!=1" --noheadings --separator /
libguestfs: trace: lvs = []
libguestfs: trace: list_ldm_volumes
guestfsd: main_loop: proc 11 (lvs) took 0.00 seconds
guestfsd: main_loop: new request, len 0x28
guestfsd: main_loop: proc 380 (list_ldm_volumes) took 0.00 seconds
libguestfs: trace: list_ldm_volumes = []
libguestfs: trace: list_ldm_partitions
guestfsd: main_loop: new request, len 0x28
guestfsd: main_loop: proc 381 (list_ldm_partitions) took 0.00 seconds
libguestfs: trace: list_ldm_partitions = []
libguestfs: trace: list_filesystems = ["/dev/sda1", "iso9660"]
libguestfs: trace: vfs_type "/dev/sda1"
guestfsd: main_loop: new request, len 0x38
commandrvf: stdout=y stderr=y flags=0x0
commandrvf: blkid -c /dev/null -o value -s TYPE /dev/sda1
libguestfs: trace: vfs_type = "iso9660"
libguestfs: check_for_filesystem_on: /dev/sda1 (iso9660)
libguestfs: trace: internal_parse_mountable "/dev/sda1"
guestfsd: main_loop: proc 198 (vfs_type) took 0.00 seconds
guestfsd: main_loop: new request, len 0x38
guestfsd: main_loop: proc 396 (internal_parse_mountable) took 0.00 seconds
libguestfs: trace: internal_parse_mountable = <struct guestfs_internal_mountable = im_type: 0, im_device: /dev/sda1, im_volume: , >
libguestfs: trace: is_whole_device "/dev/sda1"
guestfsd: main_loop: new request, len 0x38
guestfsd: main_loop: proc 395 (is_whole_device) took 0.00 seconds
libguestfs: trace: is_whole_device = 0
libguestfs: trace: mount_ro "/dev/sda1" "/"
guestfsd: main_loop: new request, len 0x40
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: mount -o ro /dev/sda1 /sysroot/
libguestfs: trace: mount_ro = 0
libguestfs: trace: part_to_dev "/dev/sda1"
guestfsd: main_loop: proc 73 (mount_ro) took 0.00 seconds
guestfsd: main_loop: new request, len 0x38
guestfsd: main_llibguestfs: trace: part_to_dev = "/dev/sda"
libguestfs: trace: device_index "/dev/sda"
oop: proc 272 (part_to_dev) took 0.00 seconds
guestfsd: main_loop: new request, len 0x34
guestfsd: main_loop: proc 335 (device_index) took 0.00 seconds
libguestfs: trace: device_index = 0
libguestfs: trace: part_to_partnum "/dev/sda1"
guestfsd: main_loop: new request, len 0x38
guestfsd: main_loop: proc 293 (part_to_partnum) took 0.00 seconds
libguestfs: trace: part_to_partnum = 1
libguestfs: trace: part_to_dev "/dev/sda1"
guestfsd: main_loop: new request, len 0x38
guestfsd: main_loop: proc 272 (part_to_dev) took 0.00 seconds
libguestfs: trace: part_to_dev = "/dev/sda"
libguestfs: trace: part_list "/dev/sda"
guestfsd: main_loop: new request, len 0x34
udevadm --debug settle
calling: settle
commandrvf: stdout=y stderr=y flags=0x0
commandrvf: parted -m -s -- /dev/sda unit b print
Error: Invalid partition table - recursive partition on /dev/sda.
udevadm --debug settle
calling: settle
guestfsd: error: parted print: /dev/sda: Error: Invalid partition table - recursive partition on /dev/sda.
guestfsd: main_loop: proc 213 (part_list) took 0.02 seconds
libguestfs: trace: part_list = NULL (error)
libguestfs: trace: umount_all
guestfsd: main_loop: new request, len 0x28
umount-all: /proc/mounts: fsname=/dev/root dir=/ type=ext2 opts=rw,noatime,block_validity,barrier,user_xattr,acl freq=0 passno=0
umount-all: /proc/mounts: fsname=/proc dir=/proc type=proc opts=rw,relatime freq=0 passno=0
umount-all: /proc/mounts: fsname=/sys dir=/sys type=sysfs opts=rw,relatime freq=0 passno=0
umount-all: /proc/mounts: fsname=tmpfs dir=/run type=tmpfs opts=rw,nosuid,relatime,size=98384k,mode=755 freq=0 passno=0
umount-all: /proc/mounts: fsname=/dev dir=/dev type=devtmpfs opts=rw,relatime,size=242180k,nr_inodes=60545,mode=755 freq=0 passno=0
umount-all: /proc/mounts: fsname=/dev/pts dir=/dev/pts type=devpts opts=rw,relatime,mode=600,ptmxmode=000 freq=0 passno=0
umount-all: /proc/mounts: fsname=/dev/sda1 dir=/sysroot type=iso9660 opts=ro,relatime freq=0 passno=0
commandrvf: stdout=n stderr=y flags=0x0
commandrvf: umount /sysroot
libguestfs: trace: umount_all = 0
libguestfs: trace: inspect_os = NULL (error)
virt-sysprep: error: libguestfs error: part_list: parted print: /dev/sda: 
Error: Invalid partition table - recursive partition on /dev/sda.
libguestfs: trace: close
libguestfs: closing guestfs handle 0x562f30385980 (state 2)
libguestfs: trace: internal_autosync
guestfsd: main_loop: proc 47 (umount_all) took 0.00 seconds
guestfsd: main_loop: new request, len 0x28
umount-all: /proc/mounts: fsname=/dev/root dir=/ type=ext2 opts=rw,noatime,block_validity,barrier,user_xattr,acl freq=0 passno=0
umount-all: /proc/mounts: fsname=/proc dir=/proc type=proc opts=rw,relatime freq=0 passno=0
umount-all: /proc/mounts: fsname=/sys dir=/sys type=sysfs opts=rw,relatime freq=0 passno=0
umount-all: /proc/mounts: fsname=tmpfs dir=/run type=tmpfs opts=rw,nosuid,relatime,size=98384k,mode=755 freq=0 passno=0
umount-all: /proc/mounts: fsname=/dev dir=/dev type=devtmpfs opts=rw,relatime,size=242180k,nr_inodes=60545,mode=755 freq=0 passno=0
umount-all: /proc/mounts: fsname=/dev/pts dir=/dev/pts type=devpts opts=rw,relatime,mode=600,ptmxmode=000 freq=0 passno=0
fsync /dev/sda
guestfsd: main_loop: proc 282 (internal_autosync) took 0.00 seconds
libguestfs: trace: internal_autosync = 0
libguestfs: sending SIGTERM to process 22568
libguestfs: qemu maxrss 175668K
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfsgZyds0
libguestfs: command: run: rm

guestfs_copy_in fails with error: copy_in: tar subprocess failed: tar: .: file changed as we read it: errno 0

I am using libguestfs Golang binding APIs(version 1.44)
Followed this document https://libguestfs.org/guestfs-golang.3.html to create the disk, add the disk, format the partition, launch the appliance and performing some copy_in and copy_out operations.

While doing copy_in, I am seeing this strange issue

error: copy_in: tar subprocess failed: tar: .: file changed as we read it: errno 0

This issue is not all time reproducible. It comes like 1 out of 10 runs. In my case, data is stable while doing copy_in. There is absolutely no change in the data while guestfs_copy_in operation going on.
Any leads to issue or anything that I need to understand for copy_in or copy_out?

virt-df -a /home/zt/centos7_mini.qcow2

use the virt-df to query vm disk usage like this:
virt-df -a /home/centos7_mini.qcow2
then check:
virsh list --all
Id Name State

1 guestfs-p1km7lhfowv8o0q1 running //virt-df will create a vm in temp filesystem

but after a few minutes , still fails to get the vm disk usage , why ??
below is the virt-df run debug log

==========================================
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: create: flags = 0, handle = 0x55c0c085c6e0, program = virt-df
libguestfs: trace: add_drive "/home/zt/centos7_mini.qcow2" "readonly:true"
libguestfs: creating COW overlay to protect original drive content
libguestfs: trace: disk_format "/home/zt/centos7_mini.qcow2"
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: \ /home/zt/centos7_mini.qcow2
libguestfs: parse_json: qemu-img info JSON output:\n{\n "virtual-size": 17179869184,\n "filename": "/home/zt/centos7_mini.qcow2",\n "cluster-size": 65536,\n "format": "qcow2",\n "actual-size": 1430130688,\n "format-specific": {\n "type": "qcow2",\n "data": {\n "compat": "1.1",\n "lazy-refcounts": false,\n "refcount-bits": 16,\n "corrupt": false\n }\n },\n "dirty-flag": false\n}\n\n
libguestfs: trace: disk_format = "qcow2"
libguestfs: trace: get_tmpdir
libguestfs: trace: get_tmpdir = "/tmp"
libguestfs: trace: disk_create "/tmp/libguestfso7dtGK/overlay1.qcow2" "qcow2" -1 "backingfile:/home/zt/centos7_mini.qcow2" "backingformat:qcow2"
libguestfs: command: run: qemu-img
libguestfs: command: run: \ create
libguestfs: command: run: \ -f qcow2
libguestfs: command: run: \ -o backing_file=/home/zt/centos7_mini.qcow2,backing_fmt=qcow2
libguestfs: command: run: \ /tmp/libguestfso7dtGK/overlay1.qcow2
Formatting '/tmp/libguestfso7dtGK/overlay1.qcow2', fmt=qcow2 size=17179869184 backing_file=/home/zt/centos7_mini.qcow2 backing_fmt=qcow2 cluster_size=65536 lazy_refcounts=off refcount_bits=16
libguestfs: trace: disk_create = 0
libguestfs: trace: get_backend_setting "internal_libvirt_imagelabel"
libguestfs: trace: get_backend_setting = NULL (error)
libguestfs: trace: add_drive = 0
libguestfs: trace: launch
libguestfs: trace: max_disks
libguestfs: trace: max_disks = 255
libguestfs: trace: version
libguestfs: trace: version = <struct guestfs_version = major: 1, minor: 40, release: 2, extra: rhel=7,release=5.el7_7.2,libvirt, >
libguestfs: trace: get_backend
libguestfs: trace: get_backend = "libvirt"
libguestfs: launch: program=virt-df
libguestfs: launch: version=1.40.2rhel=7,release=5.el7_7.2,libvirt
libguestfs: launch: backend registered: unix
libguestfs: launch: backend registered: uml
libguestfs: launch: backend registered: libvirt
libguestfs: launch: backend registered: direct
libguestfs: launch: backend=libvirt
libguestfs: launch: tmpdir=/tmp/libguestfso7dtGK
libguestfs: launch: umask=0022
libguestfs: launch: euid=0
libguestfs: libvirt version = 4005000 (4.5.0)
libguestfs: guest random name = guestfs-p1km7lhfowv8o0q1
libguestfs: connect to libvirt
libguestfs: opening libvirt handle: URI = qemu:///system, auth = default+wrapper, flags = 0
libguestfs: successfully opened libvirt handle: conn = 0x55c0c085de00
libguestfs: qemu version (reported by libvirt) = 3000000 (3.0.0)
libguestfs: get libvirt capabilities
libguestfs: parsing capabilities XML
libguestfs: trace: get_backend_setting "force_tcg"
libguestfs: trace: get_backend_setting = NULL (error)
libguestfs: trace: get_backend_setting "internal_libvirt_label"
libguestfs: trace: get_backend_setting = NULL (error)
libguestfs: trace: get_backend_setting "internal_libvirt_imagelabel"
libguestfs: trace: get_backend_setting = NULL (error)
libguestfs: trace: get_backend_setting "internal_libvirt_norelabel_disks"
libguestfs: trace: get_backend_setting = NULL (error)
libguestfs: build appliance
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
libguestfs: begin building supermin appliance
libguestfs: run supermin
libguestfs: command: run: /usr/bin/supermin5
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/lib64/guestfs/supermin.d
libguestfs: command: run: \ -o /var/tmp/.guestfs-0/appliance.d
supermin: version: 5.1.19
supermin: rpm: detected RPM version 4.11
supermin: package handler: fedora/rpm
supermin: acquiring lock on /var/tmp/.guestfs-0/lock
supermin: build: /usr/lib64/guestfs/supermin.d
supermin: reading the supermin appliance
supermin: build: visiting /usr/lib64/guestfs/supermin.d/base.tar.gz type gzip base image (tar)
supermin: build: visiting /usr/lib64/guestfs/supermin.d/daemon.tar.gz type gzip base image (tar)
supermin: build: visiting /usr/lib64/guestfs/supermin.d/excludefiles type uncompressed excludefiles
supermin: build: visiting /usr/lib64/guestfs/supermin.d/hostfiles type uncompressed hostfiles
supermin: build: visiting /usr/lib64/guestfs/supermin.d/init.tar.gz type gzip base image (tar)
supermin: build: visiting /usr/lib64/guestfs/supermin.d/packages type uncompressed packages
supermin: build: visiting /usr/lib64/guestfs/supermin.d/udev-rules.tar.gz type gzip base image (tar)
supermin: mapping package names to installed packages
supermin: resolving full list of package dependencies
supermin: build: 198 packages, including dependencies
supermin: build: 31773 files
supermin: build: 7626 files, after matching excludefiles
supermin: build: 7635 files, after adding hostfiles
supermin: build: 7607 files, after removing unreadable files
supermin: build: 7641 files, after munging
supermin: kernel: looking for kernel using environment variables ...
supermin: kernel: looking for kernels in /lib/modules/
/vmlinuz ...
supermin: kernel: looking for kernels in /boot ...
supermin: kernel: kernel version of /boot/vmlinuz-3.10.0.old = 3.10.0 (from content)
supermin: kernel: picked modules path /lib/modules/3.10.0
supermin: kernel: kernel version of /boot/vmlinuz-3.10.0-957.5.1.el7.x86_64 = 3.10.0-957.5.1.el7.x86_64 (from content)
supermin: kernel: picked modules path /lib/modules/3.10.0-957.5.1.el7.x86_64
supermin: kernel: kernel version of /boot/vmlinuz-3.10.0-862.14.4.el7.x86_64 = 3.10.0-862.14.4.el7.x86_64 (from content)
supermin: kernel: picked modules path /lib/modules/3.10.0-862.14.4.el7.x86_64
supermin: kernel: kernel version of /boot/vmlinuz-3.10.0-862.11.6.el7.x86_64 = 3.10.0-862.11.6.el7.x86_64 (from content)
supermin: kernel: picked modules path /lib/modules/3.10.0-862.11.6.el7.x86_64
supermin: kernel: kernel version of /boot/vmlinuz-3.10.0-693.el7.x86_64 = 3.10.0-693.el7.x86_64 (from content)
supermin: kernel: picked modules path /lib/modules/3.10.0-693.el7.x86_64
supermin: kernel: kernel version of /boot/vmlinuz-3.10.0 = 3.10.0 (from content)
supermin: kernel: picked modules path /lib/modules/3.10.0
supermin: kernel: kernel version of /boot/vmlinuz-0-rescue-cadf9c26ef974279b4fff2fd4c3f4767 = 3.10.0-693.el7.x86_64 (from content)
supermin: kernel: picked modules path /lib/modules/3.10.0-693.el7.x86_64
supermin: kernel: picked vmlinuz /boot/vmlinuz-3.10.0.old
supermin: kernel: kernel_version 3.10.0
supermin: kernel: modpath /lib/modules/3.10.0
supermin: ext2: creating empty ext2 filesystem '/var/tmp/.guestfs-0/appliance.d.mno21beq/root'
supermin: ext2: populating from base image
supermin: ext2: copying files from host filesystem
supermin: ext2: copying kernel modules
supermin: ext2: creating minimal initrd '/var/tmp/.guestfs-0/appliance.d.mno21beq/initrd'
supermin: ext2: wrote 1 modules to minimal initrd
supermin: renaming /var/tmp/.guestfs-0/appliance.d.mno21beq to /var/tmp/.guestfs-0/appliance.d
libguestfs: finished building supermin appliance
libguestfs: trace: disk_create "/tmp/libguestfso7dtGK/overlay2.qcow2" "qcow2" -1 "backingfile:/var/tmp/.guestfs-0/appliance.d/root" "backingformat:raw"
libguestfs: command: run: qemu-img
libguestfs: command: run: \ create
libguestfs: command: run: \ -f qcow2
libguestfs: command: run: \ -o backing_file=/var/tmp/.guestfs-0/appliance.d/root,backing_fmt=raw
libguestfs: command: run: \ /tmp/libguestfso7dtGK/overlay2.qcow2
Formatting '/tmp/libguestfso7dtGK/overlay2.qcow2', fmt=qcow2 size=4294967296 backing_file=/var/tmp/.guestfs-0/appliance.d/root backing_fmt=raw cluster_size=65536 lazy_refcounts=off refcount_bits=16
libguestfs: trace: disk_create = 0
libguestfs: trace: get_sockdir
libguestfs: trace: get_sockdir = "/tmp"
libguestfs: set_socket_create_context: getcon failed: (none): Invalid argument [you can ignore this message if you are not using SELinux + sVirt]
libguestfs: clear_socket_create_context: setsockcreatecon failed: NULL: Invalid argument [you can ignore this message if you are not using SELinux + sVirt]
libguestfs: create libvirt XML
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
libguestfs: libvirt XML:\n\n\n guestfs-p1km7lhfowv8o0q1\n 768\n 768\n \n \n \n 1\n \n \n \n \n \n \n hvm\n /var/tmp/.guestfs-0/appliance.d/kernel\n /var/tmp/.guestfs-0/appliance.d/initrd\n 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=linux\n \n \n <on_reboot>destroy</on_reboot>\n \n \n /dev/urandom\n \n \n \n \n \n \n

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n qemu:commandline\n <qemu:env name="TMPDIR" value="/var/tmp"/>\n </qemu:commandline>\n\n
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
libguestfs: command: run: ls
libguestfs: command: run: \ -a
libguestfs: command: run: \ -l
libguestfs: command: run: \ -R
libguestfs: command: run: \ -Z /var/tmp/.guestfs-0
libguestfs: /var/tmp/.guestfs-0:
libguestfs: drwxr-xr-x root root ? .
libguestfs: drwxrwxrwt. root root system_u:object_r:tmp_t:s0 ..
libguestfs: drwxr-xr-x root root ? appliance.d
libguestfs: -rw-r--r-- root root ? lock
libguestfs:
libguestfs: /var/tmp/.guestfs-0/appliance.d:
libguestfs: drwxr-xr-x root root ? .
libguestfs: drwxr-xr-x root root ? ..
libguestfs: -rw-r--r-- root root ? initrd
libguestfs: -rw-r--r-- root root ? kernel
libguestfs: -rw-r--r-- root root ? root
libguestfs: command: run: ls
libguestfs: command: run: \ -a
libguestfs: command: run: \ -l
libguestfs: command: run: \ -Z /tmp/libguestfsh2Idkp
libguestfs: drwxr-xr-x root root ? .
libguestfs: drwxrwxrwt. root root system_u:object_r:tmp_t:s0 ..
libguestfs: srw-rw---- root qemu ? console.sock
libguestfs: srw-rw---- root qemu ? 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 06/09/14
SGABIOS $Id: sgabios.S 8 2010-04-22 00:03:40Z nlaredo $ (mockbuild@) Mon Jun 9 21:33:48 UTC 2014
Term: 80x24
4 0
SeaBIOS (version 1.11.0-2.el7)
Machine UUID 05ef63d4-149d-439b-9f26-9cb38ad3d0ab
Booting from ROM...
\x1b[2J[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.10.0 (root@NSG) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Fri Nov 1 10:40:29 UTC 2019
[ 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=linux
[ 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-0x000000002fffdfff] usable
[ 0.000000] BIOS-e820: [mem 0x000000002fffe000-0x000000002fffffff] 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.4 present.
[ 0.000000] Hypervisor detected: KVM
[ 0.000000] e820: last_pfn = 0x2fffe max_arch_pfn = 0x400000000
[ 0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
[ 0.000000] found SMP MP-table at [mem 0x000f63b0-0x000f63bf] mapped at [ffff8800000f63b0]
[ 0.000000] Using GB pages for direct mapping
[ 0.000000] RAMDISK: [mem 0x2fe93000-0x2ffeffff]
[ 0.000000] Early table checksum verification disabled
[ 0.000000] ACPI BIOS Error (bug): A valid RSDP was not found (20130517/tbxfroot-243)
[ 0.000000] No NUMA configuration found
[ 0.000000] Faking a node at [mem 0x0000000000000000-0x000000002fffdfff]
[ 0.000000] NODE_DATA(0) allocated [mem 0x2fe6c000-0x2fe92fff]
[ 0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00
[ 0.000000] kvm-clock: cpu 0, msr 0:2fe1c001, primary cpu clock
[ 0.000000] kvm-clock: using sched offset of 469986551 cycles
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x00001000-0x00ffffff]
[ 0.000000] DMA32 [mem 0x01000000-0xffffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00001000-0x0009efff]
[ 0.000000] node 0: [mem 0x00100000-0x2fffdfff]
[ 0.000000] Initmem setup node 0 [mem 0x00001000-0x2fffdfff]
[ 0.000000] SFI: Simple Firmware Interface v0.81 http://simplefirmware.org
[ 0.000000] Intel MultiProcessor Specification v1.4
[ 0.000000] MPTABLE: OEM ID: BOCHSCPU
[ 0.000000] MPTABLE: Product ID: 0.1
[ 0.000000] MPTABLE: APIC at: 0xFEE00000
[ 0.000000] Processor #0 (Bootup-CPU)
[ 0.000000] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23
[ 0.000000] Processors: 1
[ 0.000000] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
[ 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 0x30000000-0xfeffbfff] available for PCI devices
[ 0.000000] Booting paravirtualized kernel on KVM
[ 0.000000] setup_percpu: NR_CPUS:5120 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
[ 0.000000] PERCPU: Embedded 35 pages/cpu @ffff88002fa00000 s104856 r8192 d30312 u2097152
[ 0.000000] KVM setup async PF for cpu 0
[ 0.000000] kvm-stealtime: cpu 0, msr 2fa13440
[ 0.000000] PV qspinlock hash table entries: 256 (order: 0, 4096 bytes)
[ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 193415
[ 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=linux
[ 0.000000] Disabling memory control group subsystem
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] x86/fpu: xstate_offset[2]: 0240, xstate_sizes[2]: 0100
[ 0.000000] x86/fpu: xstate_offset[3]: 03c0, xstate_sizes[3]: 0040
[ 0.000000] x86/fpu: xstate_offset[4]: 0400, xstate_sizes[4]: 0040
[ 0.000000] x86/fpu: xstate_offset[5]: 0440, xstate_sizes[5]: 0040
[ 0.000000] x86/fpu: xstate_offset[6]: 0480, xstate_sizes[6]: 0200
[ 0.000000] x86/fpu: xstate_offset[7]: 0680, xstate_sizes[7]: 0400
[ 0.000000] xsave: enabled xstate_bv 0xff, cntxt size 0xa80 using standard form
[ 0.000000] Memory: 751528k/786424k available (9076k kernel code, 392k absent, 34504k reserved, 5593k data, 1920k init)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] x86/pti: Unmapping kernel while in userspace
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] \tRCU restricting CPUs from NR_CPUS=5120 to nr_cpu_ids=1.
[ 0.000000] NR_IRQS:327936 nr_irqs:256 0
[ 0.000000] Console: colour *CGA 80x25
[ 0.000000] console [ttyS0] enabled
[ 0.000000] tsc: Detected 2194.842 MHz processor
[ 0.081491] Calibrating delay loop (skipped) preset value.. 4389.68 BogoMIPS (lpj=2194842)
[ 0.082737] pid_max: default: 32768 minimum: 301
[ 0.083427] Security Framework initialized
[ 0.084051] SELinux: Disabled at boot.
[ 0.084616] Yama: becoming mindful.
[ 0.085397] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.086611] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.087716] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.088695] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.089881] Initializing cgroup subsys memory
[ 0.090524] Initializing cgroup subsys devices
[ 0.091186] Initializing cgroup subsys freezer
[ 0.091849] Initializing cgroup subsys blkio
[ 0.092476] Initializing cgroup subsys perf_event
[ 0.093172] Initializing cgroup subsys hugetlb
[ 0.093830] Initializing cgroup subsys pids
[ 0.094446] Initializing cgroup subsys net_prio
[ 0.095208] FEATURE SPEC_CTRL Present
[ 0.095763] FEATURE IBPB_SUPPORT Present
[ 0.097614] mce: CPU supports 10 MCE banks
[ 0.098280] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[ 0.099066] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0
[ 0.099846] tlb_flushall_shift: 6
[ 0.130148] Freeing SMP alternatives: 32k freed
[ 0.141606] ftrace: allocating 32908 entries in 129 pages
[ 0.193595] Enabling x2apic
[ 0.194040] Enabled x2apic
[ 0.194799] Switched APIC routing to physical x2apic.
[ 0.197092] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[ 0.197970] smpboot: CPU0: Intel(R) Xeon(R) Silver 4114 CPU @ 2.20GHz (fam: 06, model: 55, stepping: 04)
[ 0.199410] Performance Events: 32-deep LBR, Skylake events, Intel PMU driver.
[ 0.200556] ... version: 2
[ 0.201182] ... bit width: 48
[ 0.201786] ... generic registers: 8
[ 0.202371] ... value mask: 0000ffffffffffff
[ 0.203146] ... max period: 000000007fffffff
[ 0.203910] ... fixed-purpose events: 3
[ 0.204496] ... event mask: 00000007000000ff
[ 0.205281] KVM setup paravirtual spinlock
[ 0.208083] Brought up 1 CPUs
[ 0.208529] smpboot: Max logical packages: 1
[ 0.209155] smpboot: Total of 1 processors activated (4389.68 BogoMIPS)
[ 0.210565] devtmpfs: initialized
[ 0.213175] EVM: security.selinux
[ 0.213663] EVM: security.ima
[ 0.214100] EVM: security.capability
[ 0.215309] atomic64 test passed for x86-64 platform with CX8 and with SSE
[ 0.216315] pinctrl core: initialized pinctrl subsystem
[ 0.217171] RTC time: 9:25:29, date: 11/28/19
[ 0.217895] NET: Registered protocol family 16
[ 0.218918] PCI: Using configuration type 1 for base access
[ 0.220663] ACPI: Interpreter disabled.
[ 0.221278] vgaarb: loaded
[ 0.221720] SCSI subsystem initialized
[ 0.222322] usbcore: registered new interface driver usbfs
[ 0.223126] usbcore: registered new interface driver hub
[ 0.223903] usbcore: registered new device driver usb
[ 0.224649] pps_core: LinuxPPS API ver. 1 registered
[ 0.225374] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti [email protected]
[ 0.226686] PTP clock support registered
[ 0.227297] PCI: Probing PCI hardware
[ 0.227857] PCI host bridge to bus 0000:00
[ 0.228457] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 0.229352] pci_bus 0000:00: root bus resource [mem 0x00000000-0x3fffffffffff]
[ 0.230396] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.237455] pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io 0x01f0-0x01f7]
[ 0.238486] pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io 0x03f6]
[ 0.239430] pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io 0x0170-0x0177]
[ 0.240455] pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io 0x0376]
[ 0.266470] pci 0000:00:01.0: PIIX/ICH IRQ router [8086:7000]
[ 0.267495] NetLabel: Initializing
[ 0.268001] NetLabel: domain hash size = 128
[ 0.268632] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.269360] NetLabel: unlabeled traffic allowed by default
[ 0.270239] amd_nb: Cannot enumerate AMD northbridges
[ 0.270978] Switched to clocksource kvm-clock
[ 0.275218] pnp: PnP ACPI: disabled
[ 0.276446] NET: Registered protocol family 2
[ 0.277219] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.278256] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
[ 0.279216] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.280304] TCP: reno registered
[ 0.280784] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.281642] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.282598] NET: Registered protocol family 1
[ 0.283246] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[ 0.284115] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[ 0.284965] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[ 0.290549] Trying to unpack rootfs image as initramfs...
[ 0.292012] Freeing initrd memory: 1396k freed
[ 0.292917] platform rtc_cmos: registered platform RTC device (no PNP device found)
[ 0.294183] AES CTR mode by8 optimization enabled
[ 0.295077] alg: No test for __gcm-aes-aesni (__driver-gcm-aes-aesni)
[ 0.296078] sha1_ssse3: Using AVX2 optimized SHA-1 implementation
[ 0.296991] sha256_ssse3: Using AVX2 optimized SHA-256 implementation
[ 0.298080] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.298967] Initialise system trusted keyring
[ 0.299635] audit: initializing netlink socket (disabled)
[ 0.300427] type=2000 audit(1574933130.283:1): initialized
[ 0.328740] bounce pool size: 64 pages
[ 0.329323] HugeTLB registered 1 GB page size, pre-allocated 0 pages
[ 0.330242] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.331828] zpool: loaded
[ 0.332226] zbud: loaded
[ 0.332724] VFS: Disk quotas dquot_6.5.2
[ 0.333321] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.334536] fuse init (API version 7.22)
[ 0.335181] msgmni has been set to 1470
[ 0.335776] Key type big_key registered
[ 0.337262] NET: Registered protocol family 38
[ 0.337917] Key type asymmetric registered
[ 0.338528] Asymmetric key parser 'x509' registered
[ 0.339270] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[ 0.340354] io scheduler noop registered
[ 0.340933] io scheduler deadline registered (default)
[ 0.341703] io scheduler cfq registered
[ 0.342369] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[ 0.343193] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[ 0.344265] virtio-pci 0000:00:03.0: PCI->APIC IRQ transform: INT A -> IRQ 25
[ 0.345322] virtio_pci_probe:519: l_rc 0
[ 0.347050] virtio-pci 0000:00:04.0: PCI->APIC IRQ transform: INT A -> IRQ 25
[ 0.348099] virtio_pci_probe:519: l_rc 0
[ 0.349225] virtio-pci 0000:00:05.0: PCI->APIC IRQ transform: INT A -> IRQ 24
[ 0.350270] virtio_pci_probe:519: l_rc 0
[ 0.351499] xenfs: not registering filesystem on non-xen platform
[ 0.352420] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[ 0.376262] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 0.377327] Non-volatile memory driver v1.3
[ 0.378010] ppdev: user-space parallel port driver
[ 0.378702] Linux agpgart interface v0.103
[ 0.379373] crash memory driver: version 1.1
[ 0.380765] brd: module loaded
[ 0.381490] loop: module loaded
[ 0.383169] scsi host0: ata_piix
[ 0.383695] scsi host1: ata_piix
[ 0.384194] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc080 irq 14
[ 0.385175] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc088 irq 15
[ 0.386444] Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
[ 0.387588] libphy: Fixed MDIO Bus: probed
[ 0.388200] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[ 0.389219] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 0.390300] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[ 0.391150] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 0.392014] i40e: Intel(R) Ethernet Connection XL710 Network Driver - version 1.6.27-k
[ 0.393155] i40e: Copyright (c) 2013 - 2014 Intel Corporation.
[ 0.394018] ixgb: Intel(R) PRO/10GbE Network Driver - version 1.0.135-k2-NAPI
[ 0.395050] ixgb: Copyright (c) 1999-2008 Intel Corporation.
[ 0.395875] PPP generic driver version 2.4.2
[ 0.396517] PPP BSD Compression module registered
[ 0.397206] PPP Deflate Compression module registered
[ 0.397941] PPP MPPE Compression module registered
[ 0.398636] NET: Registered protocol family 24
[ 0.399291] PPTP driver version 0.8.5
[ 0.399886] Fusion MPT base driver 3.04.20
[ 0.400485] Copyright (c) 1999-2008 LSI Corporation
[ 0.401195] Fusion MPT SPI Host driver 3.04.20
[ 0.401875] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.402818] ehci-pci: EHCI PCI platform driver
[ 0.403470] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.404367] ohci-pci: OHCI PCI platform driver
[ 0.405025] uhci_hcd: USB Universal Host Controller Interface driver
[ 0.405964] usbcore: registered new interface driver usbserial
[ 0.406814] usbcore: registered new interface driver usbserial_generic
[ 0.407759] usbserial: USB Serial support registered for generic
[ 0.408641] i8042: PNP: No PS/2 controller found. Probing ports directly.
[ 0.410420] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 0.411148] serio: i8042 AUX port at 0x60,0x64 irq 12
[ 0.411924] mousedev: PS/2 mouse device common for all mice
[ 0.413006] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
[ 0.414888] input: VirtualPS/2 VMware VMMouse as /devices/platform/i8042/serio1/input/input1
[ 0.416386] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[ 0.417392] rtc_cmos rtc_cmos: alarms up to one day, 114 bytes nvram
[ 0.418315] i2c /dev entries driver
[ 0.419091] input: VirtualPS/2 VMware VMMouse as /devices/platform/i8042/serio1/input/input2
[ 0.420517] device-mapper: ioctl: 4.35.0-ioctl (2016-06-23) initialised: [email protected]
[ 0.421750] cpuidle: using governor menu
[ 0.422369] hidraw: raw HID events driver (C) Jiri Kosina
[ 0.423235] usbcore: registered new interface driver usbhid
[ 0.424040] usbhid: USB HID core driver
[ 0.424618] drop_monitor: Initializing network drop monitor service
[ 0.425539] nf_conntrack version 0.5.0 (5882 buckets, 23528 max)
[ 0.426509] gre: GRE over IPv4 demultiplexor driver
[ 0.427224] ip_gre: GRE over IPv4 tunneling driver
[ 0.428213] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 0.429043] TCP: cubic registered
[ 0.429528] Initializing XFRM netlink socket
[ 0.430215] NET: Registered protocol family 10
[ 0.430952] IPv6: addrconf_notify: lo: event 5
[ 0.431603] IPv6: addrconf_notify: bond0: event 5
[ 0.432302] IPv6: addrconf_notify: dummy0: event 5
[ 0.433018] IPv6: addrconf_notify: gre0: event 5
[ 0.433697] IPv6: addrconf_notify: gretap0: event 5
[ 0.434445] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 0.435461] sit: IPv6 over IPv4 tunneling driver
[ 0.436142] IPv6: addrconf_notify: sit0: event 16
[ 0.436859] IPv6: addrconf_notify: sit0: event 5
[ 0.437562] NET: Registered protocol family 17
[ 0.438224] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 0.440075] l2tp_core: L2TP core driver, V2.0
[ 0.440709] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[ 0.441404] l2tp_ip: L2TP IP encapsulation support (L2TPv3)
[ 0.442217] l2tp_netlink: L2TP netlink interface
[ 0.442893] l2tp_eth: L2TP ethernet pseudowire support (L2TPv3)
[ 0.443741] l2tp_ip6: L2TP IP encapsulation support for IPv6 (L2TPv3)
[ 0.444674] 8021q: 802.1Q VLAN Support v1.8
[ 0.445427] microcode: CPU0 sig=0x50654, pf=0x1, revision=0x1
[ 0.446304] microcode: Microcode Update Driver: v2.01 [email protected], Peter Oruba
[ 0.447636] Loading compiled-in X.509 certificates
[ 0.448989] Loaded X.509 cert 'Magrathea: Glacier signing key: eb96f999c8e896eaa27874506d95259a433be287'
[ 0.450364] registered taskstats version 1
[ 0.451097] Key type trusted registered
[ 0.451761] Key type encrypted registered
[ 0.452420] IMA: No TPM chip found, activating TPM-bypass!
[ 0.453374] Magic number: 11:463:425
[ 0.454030] rtc_cmos rtc_cmos: setting system clock to 2019-11-28 09:25:29 UTC (1574933129)
[ 0.455257] Warning: unable to open an initial console.
[ 0.542964] Freeing unused kernel memory: 1920k freed

[ 524.847541] EXT2-fs (ram0): error: can't find an ext2 filesystem on dev ram0.
[ 524.850045] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
[ 524.850045]
[ 524.852720] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
[ 524.852720]
[ 524.855380] CPU: 0 PID: 1 Comm: init Not tainted 3.10.0 #1
[ 524.856988] Hardware name: Red Hat KVM, BIOS 0.5.1 01/01/2011
[ 524.858664] Call Trace:
[ 524.859409] [] dump_stack+0x19/0x1b
[ 524.860924] [] dump_stack_buf+0xba/0xc0
[ 524.862533] [] panic+0xe1/0x206
[ 524.863950] [] do_exit+0xa36/0xa40
[ 524.864966] [] ? __do_page_fault+0x171/0x450
[ 524.866124] [] do_group_exit+0x3f/0xa0
[ 524.867191] [] SyS_exit_group+0x14/0x20
[ 524.868268] [] system_call_fastpath+0x16/0x1b
[ 524.869699] Kernel Offset: disabled
[ 524.870395] Rebooting in 1 seconds..libguestfs: error: error reading console messages from the appliance: Connection reset by peer
libguestfs: error: guestfs_launch failed, see earlier error messages
libguestfs: clear_socket_create_context: setsockcreatecon failed: NULL: Invalid argument [you can ignore this message if you are not using SELinux + sVirt]
libguestfs: trace: launch = -1 (error)
libguestfs: trace: close
libguestfs: closing guestfs handle 0x55c0c085c6e0 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfso7dtGK
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfsh2Idkp

Cannot install libguestfs 1.31.19

Compiled from github sources, packaged and installed:
"trying to overwrite '/usr/lib/x86_64-linux-gnu/perl/5.20.2/perllocal.pod', which is also in package git 1:2.6.0-1"
I'd like to avoid "dpkg -i --force-overwrite".

What should be done to overcome that incompatibility with git?

virt-tar-out works for iso image?

I am using libguestfs tool on Fedora 30.

libguestfs version: 1.40.2
libguestfs-tools-c RPM package version: libguestfs-tools-c-1.40.2-4.fc30.x86_64

I have a question about virt-tar-out.

$ rpm -qf /usr/bin/virt-tar-out
libguestfs-tools-c-1.40.2-4.fc30.x86_64

Current master's fish/virt-tar-out https://github.com/libguestfs/libguestfs/blob/master/fish/virt-tar-out is almost same with my local /usr/bin/virt-tar-out except bash path.

$ diff fish/virt-tar-out /usr/bin/virt-tar-out 
1c1
< #!/bin/bash -
---
> #!/usr/bin/bash -

case1: convert CentOS7 aarch64 iso image to the tar file.

$ wget http://mirror.centos.org/altarch/7.6.1810/isos/aarch64/CentOS-7-aarch64-Minimal-1810.iso
$ virt-tar-out -a CentOS-7-aarch64-Minimal-1810.iso / foo.tar
virt-tar-out: no operating system was found on this disk

If using guestfish ‘-i’ option, remove this option and instead
use the commands ‘run’ followed by ‘list-filesystems’.
You can then mount filesystems you want by hand using the
‘mount’ or ‘mount-ro’ command.

If using guestmount ‘-i’, remove this option and choose the
filesystem(s) you want to see by manually adding ‘-m’ option(s).
Use ‘virt-filesystems’ to see what filesystems are available.

If using other virt tools, this disk image won’t work
with these tools.  Use the guestfish equivalent commands
(see the virt tool manual page).

This works when running guestfish directly like this.

$ guestfish -a CentOS-7-aarch64-Minimal-1810.iso --ro <<EOF
run
list-filesystems
EOF
/dev/sda: iso9660
$ guestfish --ro -a CentOS-7-aarch64-Minimal-1810.iso -m /dev/sda tar-out / foo.tar

$ echo $?
0

$ du -sh foo.tar 
768M	foo.tar

case2: convert CentOS7 ppc64 iso image to the tar file.

$ wget http://mirror.centos.org/altarch/7.6.1810/isos/ppc64/CentOS-7-ppc64-Minimal-1810.iso
$ virt-tar-out -a CentOS-7-ppc64-Minimal-1810.iso foo.tar
virt-tar-out: no operating system was found on this disk

If using guestfish ‘-i’ option, remove this option and instead
use the commands ‘run’ followed by ‘list-filesystems’.
You can then mount filesystems you want by hand using the
‘mount’ or ‘mount-ro’ command.

If using guestmount ‘-i’, remove this option and choose the
filesystem(s) you want to see by manually adding ‘-m’ option(s).
Use ‘virt-filesystems’ to see what filesystems are available.

If using other virt tools, this disk image won’t work
with these tools.  Use the guestfish equivalent commands
(see the virt tool manual page).

This works when running guestfish directly like this.

$ guestfish -a CentOS-7-ppc64-Minimal-1810.iso --ro <<EOF
run
list-filesystems
EOF
/dev/sda1: iso9660
$ guestfish --ro -a CentOS-7-ppc64-Minimal-1810.iso -m /dev/sda1 tar-out / foo.tar

$ echo $?
0

$ du -sh foo.tar 
877M	foo.tar

Why is virt-tar-out command not working?
I should use guestfish command directly?

Thank you.

RFE: virt-builder ability to print definition for single template (new option or expand --notes)

The virt-builder --notes <TEMPLATE> command is nice, but I really wish it printed the full template definition, e.g., something like this:

$ virt-builder --notes centos-7.0

[centos-7.0]
name=CentOS 7.0
osinfo=centos7.0
arch=x86_64
file=centos-7.0.xz
checksum=cf9ae295f633fbd04e575eeca16f372e933c70c3107c44eb06864760d04354aa94b4f356bfc9a598c138e687304a52e96777e4467e7db1ec0cb5b2d2ec61affc
format=raw
size=6442450944
compressed_size=213203844
expand=/dev/sda3
notes=CentOS 7.0

This CentOS image contains only unmodified @Core group packages.

It is thus very minimal.  The kickstart and install script can be
found in the libguestfs source tree:

builder/website/centos.sh

Or maybe it could be like virt-builder --list-format long --list (all prettified) but only for a particular template.

I think normal users need this option to be able to check the osinfo= value for use with virt-install without having to scroll/grep through all their templates.

That said, for an app I'm writing I also wish virt-builder --list-format json --list could zero in on a particular template as well but now I know I'm askin' crazy.

virt-inspector returns version 6.3 for win10 images (should return 10.0)

Allegedly HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentVersion is now locked at 6.3 (i.e. win8.1) and there are new, undocumented values HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentMajorVersionNumber and HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentMinorVersionNumber that need to be checked. cf http://stackoverflow.com/questions/31072543/reliable-way-to-get-windows-version-from-registry.

[Golang binding issue] StatNS struct fields are unexported

I am using the stable release for libguestfs golang binding.

Issue
I am trying to get the stats for some files(Located inside the disk) using the following function

func (g *Guestfs) Statns (path string) (*StatNS, *GuestfsError) {
    if g.g == nil {
        return &StatNS{}, closed_handle_error ("statns")
    }

    c_path := C.CString (path)
    defer C.free (unsafe.Pointer (c_path))

    r := C.guestfs_statns (g.g, c_path)

    if r == nil {
        return &StatNS{}, get_error_from_handle (g, "statns")
    }
    defer C.guestfs_free_statns (r)
    return return_StatNS (r), nil
}

This function is returing the address of the StatNS struct. Following is the struct definition

type StatNS struct {
    st_dev int64
    st_ino int64
    st_mode int64
    st_nlink int64
    st_uid int64
    st_gid int64
    st_rdev int64
    st_size int64
    st_blksize int64
    st_blocks int64
    st_atime_sec int64
    st_atime_nsec int64
    st_mtime_sec int64
    st_mtime_nsec int64
    st_ctime_sec int64
    st_ctime_nsec int64
    st_spare1 int64
    st_spare2 int64
    st_spare3 int64
    st_spare4 int64
    st_spare5 int64
    st_spare6 int64
}

Because of the unexported fields, I can not check the stat in my code and I don't see any getter functions for the same.

Expected behavior
All StatNS struct fields should be exported or some getter functions should be there.

RFE: virt-builder new option (--offline maybe) to allow running only from cache

I love virt-builder. It's great.

However, I don't always have internet access. Further, some of my repos are on private networks and I don't always have the appropriate VPN established to see them.

I wish virt-builder had an option that allow you to skip checking in with your remote repos and only use cache. I think that would be a huge win.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.