[PATCH v10 0/6] virt-builder-repository
by Cédric Bosdonnat
Hi all,
Diff to v9 includes the changes requested by Pino.
Cédric Bosdonnat (5):
builder: rename docs test script
builder: add a template parameter to get_index
builder: add Index.write_entry function
mllib: add XPath helper xpath_get_nodes()
New tool: virt-builder-repository
Pino Toscano (1):
builder: add simple OCaml osinfo-db reader
.gitignore | 5 +
builder/Makefile.am | 128 ++++-
builder/builder.ml | 2 +-
builder/index.mli | 3 +
builder/index_parser.ml | 80 ++-
builder/index_parser.mli | 9 +-
builder/index_parser_tests.ml | 129 +++++
builder/osinfo.ml | 80 +++
builder/osinfo.mli | 22 +
builder/repository_main.ml | 597 +++++++++++++++++++++
.../{test-virt-builder-docs.sh => test-docs.sh} | 2 +
builder/virt-builder-repository.pod | 213 ++++++++
mllib/xpath_helpers.ml | 9 +
mllib/xpath_helpers.mli | 4 +
14 files changed, 1268 insertions(+), 15 deletions(-)
create mode 100644 builder/index_parser_tests.ml
create mode 100644 builder/osinfo.ml
create mode 100644 builder/osinfo.mli
create mode 100644 builder/repository_main.ml
rename builder/{test-virt-builder-docs.sh => test-docs.sh} (93%)
create mode 100644 builder/virt-builder-repository.pod
--
2.13.2
7 years, 3 months
[PATCH v9 0/7] virt-builder-repository
by Cédric Bosdonnat
Hi there,
Diffs to v8:
* Remove the regex to increment the revision: Index_parser.get_entry()
only handles integers
* Fix Pino's comments
Cédric Bosdonnat (6):
builder: rename docs test script
builder: add a template parameter to get_index
builder: add Index.write_entry function
mllib: add XPath helper xpath_get_nodes()
builder: remove useless fish dependency
New tool: virt-builder-repository
Pino Toscano (1):
ocaml osinfo database iterator
.gitignore | 5 +
builder/Makefile.am | 132 ++++-
builder/builder.ml | 2 +-
builder/index.mli | 3 +
builder/index_parser.ml | 80 ++-
builder/index_parser.mli | 8 +-
builder/index_parser_tests.ml | 129 +++++
builder/osinfo.ml | 80 +++
builder/osinfo.mli | 22 +
builder/repository_main.ml | 589 +++++++++++++++++++++
.../{test-virt-builder-docs.sh => test-docs.sh} | 2 +
builder/virt-builder-repository.pod | 213 ++++++++
mllib/xpath_helpers.ml | 9 +
mllib/xpath_helpers.mli | 4 +
14 files changed, 1261 insertions(+), 17 deletions(-)
create mode 100644 builder/index_parser_tests.ml
create mode 100644 builder/osinfo.ml
create mode 100644 builder/osinfo.mli
create mode 100644 builder/repository_main.ml
rename builder/{test-virt-builder-docs.sh => test-docs.sh} (93%)
create mode 100644 builder/virt-builder-repository.pod
--
2.13.2
7 years, 3 months
[PATCH] daemon: Fix configure check so it requires hivex.
by Richard W.M. Jones
Commit 4d3601eb4ed1e314a8d4944a09a7f81638396cb6 made it clear that
ocaml-hivex is required, implying also that hivex is required.
However the configure test was still optional, and if you built
libguestfs without hivex you got a very long and confusing error in
the daemon/ subdirectory.
Thanks: Cédric Bosdonnat
---
m4/guestfs_daemon.m4 | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/m4/guestfs_daemon.m4 b/m4/guestfs_daemon.m4
index 522cd5f0e..52079950a 100644
--- a/m4/guestfs_daemon.m4
+++ b/m4/guestfs_daemon.m4
@@ -93,15 +93,13 @@ AC_CHECK_LIB([cap],[cap_from_text],[
], [])
],[AC_MSG_WARN([Linux capabilities library (libcap) not found])])
-dnl hivex library (highly recommended)
-dnl This used to be a part of libguestfs, but was spun off into its
-dnl own separate upstream project in libguestfs 1.0.85.
+dnl hivex library (required)
PKG_CHECK_MODULES([HIVEX], [hivex],[
AC_SUBST([HIVEX_CFLAGS])
AC_SUBST([HIVEX_LIBS])
AC_DEFINE([HAVE_HIVEX],[1],[hivex library found at compile time.])
],
- [AC_MSG_WARN([hivex not found, some core features will be disabled])])
+ [AC_MSG_FAILURE([hivex library is required])])
AM_CONDITIONAL([HAVE_HIVEX],[test "x$HIVEX_LIBS" != "x"])
dnl systemd journal library (optional)
--
2.13.2
7 years, 3 months
[PATCH v8 0/7] virt-builder-repository tool
by Cédric Bosdonnat
Hi all,
Here is the latest iteration on the virt-builder-repository
series. Diffs to previous version are: fixing things mentioned
by Pino, integrate Pino's osinfo ocaml iterator and adding a
check of the mime type to filter potential image files.
Cédric Bosdonnat (6):
builder: rename docs test script
builder: add a template parameter to get_index
builder: add Index.write_entry function
mllib: add do_mv helper function to Common_utils
mllib: add XPath helper xpath_get_nodes()
Add a virt-builder-repository tool
Pino Toscano (1):
ocaml osinfo database iterator
.gitignore | 5 +
builder/Makefile.am | 133 ++++-
builder/builder.ml | 2 +-
builder/index.mli | 3 +
builder/index_parser.ml | 80 ++-
builder/index_parser.mli | 8 +-
builder/index_parser_tests.ml | 129 +++++
builder/osinfo.ml | 80 +++
builder/osinfo.mli | 22 +
builder/repository_main.ml | 590 +++++++++++++++++++++
.../{test-virt-builder-docs.sh => test-docs.sh} | 2 +
builder/virt-builder-repository.pod | 213 ++++++++
mllib/common_utils.ml | 6 +
mllib/common_utils.mli | 3 +
mllib/xpath_helpers.ml | 9 +
mllib/xpath_helpers.mli | 4 +
16 files changed, 1272 insertions(+), 17 deletions(-)
create mode 100644 builder/index_parser_tests.ml
create mode 100644 builder/osinfo.ml
create mode 100644 builder/osinfo.mli
create mode 100644 builder/repository_main.ml
rename builder/{test-virt-builder-docs.sh => test-docs.sh} (93%)
create mode 100644 builder/virt-builder-repository.pod
--
2.13.2
7 years, 3 months
[PATCH v3 0/6] launch: direct: Disable qemu locking when opening drives readonly.
by Richard W.M. Jones
v2 -> v3:
- I addressed everything that Pino mentioned last time.
- It's tricky to get a stable run when multiple copies of qemu are
involved, because the same cache files get overwritten by parallel
libguestfs. So I changed the names of the cache files to include
the qemu binary key (size, mtime), which removes this conflict.
This is in new patch 4/6.
Rich.
7 years, 3 months
virt-v2v stuck EDAC sbridge
by Seth Tanner
I am trying to convert vmware guests in preparation for a uploading the image to glance for use in openstack
Environmental Details:
vmware vsphere 5.5
tried converting machines on two different esxi hosts but encountered the same issue
all vm's are ubuntu LTS >= 12.04
happens with LVM and non LVM machines
output of virt-v2v --version
virt-v2v 1.36.5fedora=26,release=1.fc26,libvirt
output of libvirtd --version
libvirtd (libvirt) 3.2.1
virt-v2v and libvirt were installed from yum
/var/tmp/v2vovl*.qcow2 files never grow beyond 196K
I assume never, I let it run for about an hour during with the following processes show 0.0% cpu utilization
qemu-system-x86
libvirtd
virt-v2v
It may be worth noting that doing a direct image conversion completes successfully
virt-v2v -i disk /mnt/vmware/Axia-DEV/Axia-DEV-flat.vmdk -o glance -on Axia-DEV
Debug Output
[fedora@virt-v2v-fedora ~]$ virt-v2v -ic vpx://AXIA-EFT%5cstanner@192.168.28.9/Axia/galleon.axia-eft.local/?no_verify=1 "Axia-DEV" -o glance -on Axia-DEV
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: create: flags = 0, handle = 0x17bf770, program = virt-v2v
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: create: flags = 0, handle = 0x17bfb60, program = virt-v2v
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: create: flags = 0, handle = 0x17c3460, program = virt-v2v
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
[ 0.0] Opening the source -i libvirt -ic vpx://AXIA-EFT%5cstanner@192.168.28.9/Axia/galleon.axia-eft.local/?no_verify=1 Axia-DEV
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: create: flags = 0, handle = 0x17c2f80, program = virt-v2v
libguestfs: trace: get_backend
libguestfs: trace: get_backend = "libvirt"
Enter AXIA-EFT\stanner's password for 192.168.28.9:
Enter host password for user 'AXIA-EFT\stanner':
[ 17.6] Creating an overlay to protect the source from being modified
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: create: flags = 0, handle = 0x18c4da0, program = virt-v2v
libguestfs: trace: disk_has_backing_file "/var/tmp/v2vovl6b4221.qcow2"
libguestfs: command: run: qemu-img
libguestfs: command: run: \ info
libguestfs: command: run: \ --output json
libguestfs: command: run: \ /dev/fd/5
libguestfs: parse_json: qemu-img info JSON output:\n{\n "backing-filename-format": "raw",\n "virtual-size": 42949672960,\n "filename": "/dev/fd/5",\n "cluster-size": 65536,\n "format": "qcow2",\n "actual-size": 200704,\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 "full-backing-filename": "json: { \"file.cookie\": \"vmware_soap_session=\\\"5289dca7-6ebb-99ae-8130-426365c71d50\\\"\", \"file.sslverify\": \"off\", \"file.driver\": \"https\", \"file.url\": \"https://192.168.28.9/folder/Axia-DEV/Axia-DEV-flat.vmdk?dcPath=Axia&dsNam...", \"file.timeout\": 2000 }",\n "backing-filename": "json: { \"file.cookie\": \"vmware_soap_session=\\\"5289dca7-6ebb-99ae-8130-426365c71d50\\\"\", \"file.sslverify\": \"off\", \"file.driver\": \"https\", \"file.url\": \"https://192.168.28.9/folder/Axia-DEV/Axia-DEV-flat.vmdk?dcPath=Axia&dsNam...", \"file.timeout\": 2000 }",\n "dirty-flag": false\n}\n\n
libguestfs: trace: disk_has_backing_file = 1
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: create: flags = 0, handle = 0x18c62d0, program = virt-v2v
libguestfs: trace: disk_virtual_size "/var/tmp/v2vovl6b4221.qcow2"
libguestfs: command: run: qemu-img
libguestfs: command: run: \ info
libguestfs: command: run: \ --output json
libguestfs: command: run: \ /dev/fd/5
libguestfs: parse_json: qemu-img info JSON output:\n{\n "backing-filename-format": "raw",\n "virtual-size": 42949672960,\n "filename": "/dev/fd/5",\n "cluster-size": 65536,\n "format": "qcow2",\n "actual-size": 200704,\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 "full-backing-filename": "json: { \"file.cookie\": \"vmware_soap_session=\\\"5289dca7-6ebb-99ae-8130-426365c71d50\\\"\", \"file.sslverify\": \"off\", \"file.driver\": \"https\", \"file.url\": \"https://192.168.28.9/folder/Axia-DEV/Axia-DEV-flat.vmdk?dcPath=Axia&dsNam...", \"file.timeout\": 2000 }",\n "backing-filename": "json: { \"file.cookie\": \"vmware_soap_session=\\\"5289dca7-6ebb-99ae-8130-426365c71d50\\\"\", \"file.sslverify\": \"off\", \"file.driver\": \"https\", \"file.url\": \"https://192.168.28.9/folder/Axia-DEV/Axia-DEV-flat.vmdk?dcPath=Axia&dsNam...", \"file.timeout\": 2000 }",\n "dirty-flag": false\n}\n\n
libguestfs: trace: disk_virtual_size = 42949672960
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: create: flags = 0, handle = 0x18c66c0, program = virt-v2v
libguestfs: trace: disk_has_backing_file "/var/tmp/v2vovld9a225.qcow2"
libguestfs: command: run: qemu-img
libguestfs: command: run: \ info
libguestfs: command: run: \ --output json
libguestfs: command: run: \ /dev/fd/5
libguestfs: parse_json: qemu-img info JSON output:\n{\n "backing-filename-format": "raw",\n "virtual-size": 12884901888,\n "filename": "/dev/fd/5",\n "cluster-size": 65536,\n "format": "qcow2",\n "actual-size": 200704,\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 "full-backing-filename": "json: { \"file.cookie\": \"vmware_soap_session=\\\"5289dca7-6ebb-99ae-8130-426365c71d50\\\"\", \"file.sslverify\": \"off\", \"file.driver\": \"https\", \"file.url\": \"https://192.168.28.9/folder/Axia-DEV/Axia-DEV%5f1-flat.vmdk?dcPath=Axia&d...", \"file.timeout\": 2000 }",\n "backing-filename": "json: { \"file.cookie\": \"vmware_soap_session=\\\"5289dca7-6ebb-99ae-8130-426365c71d50\\\"\", \"file.sslverify\": \"off\", \"file.driver\": \"https\", \"file.url\": \"https://192.168.28.9/folder/Axia-DEV/Axia-DEV%5f1-flat.vmdk?dcPath=Axia&d...", \"file.timeout\": 2000 }",\n "dirty-flag": false\n}\n\n
libguestfs: trace: disk_has_backing_file = 1
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: create: flags = 0, handle = 0x18c6a90, program = virt-v2v
libguestfs: trace: disk_virtual_size "/var/tmp/v2vovld9a225.qcow2"
libguestfs: command: run: qemu-img
libguestfs: command: run: \ info
libguestfs: command: run: \ --output json
libguestfs: command: run: \ /dev/fd/5
libguestfs: parse_json: qemu-img info JSON output:\n{\n "backing-filename-format": "raw",\n "virtual-size": 12884901888,\n "filename": "/dev/fd/5",\n "cluster-size": 65536,\n "format": "qcow2",\n "actual-size": 200704,\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 "full-backing-filename": "json: { \"file.cookie\": \"vmware_soap_session=\\\"5289dca7-6ebb-99ae-8130-426365c71d50\\\"\", \"file.sslverify\": \"off\", \"file.driver\": \"https\", \"file.url\": \"https://192.168.28.9/folder/Axia-DEV/Axia-DEV%5f1-flat.vmdk?dcPath=Axia&d...", \"file.timeout\": 2000 }",\n "backing-filename": "json: { \"file.cookie\": \"vmware_soap_session=\\\"5289dca7-6ebb-99ae-8130-426365c71d50\\\"\", \"file.sslverify\": \"off\", \"file.driver\": \"https\", \"file.url\": \"https://192.168.28.9/folder/Axia-DEV/Axia-DEV%5f1-flat.vmdk?dcPath=Axia&d...", \"file.timeout\": 2000 }",\n "dirty-flag": false\n}\n\n
libguestfs: trace: disk_virtual_size = 12884901888
[ 18.6] Initializing the target -o glance
[ 23.0] Opening the overlay
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: create: flags = 0, handle = 0x189ef40, program = virt-v2v
libguestfs: trace: set_identifier "v2v"
libguestfs: trace: v2v: set_identifier = 0
libguestfs: trace: v2v: get_memsize
libguestfs: trace: v2v: get_memsize = 500
libguestfs: trace: v2v: set_memsize 2000
libguestfs: trace: v2v: set_memsize = 0
libguestfs: trace: v2v: set_network true
libguestfs: trace: v2v: set_network = 0
libguestfs: trace: v2v: add_drive "/var/tmp/v2vovl6b4221.qcow2" "format:qcow2" "cachemode:unsafe" "discard:besteffort" "copyonread:true"
libguestfs: trace: v2v: add_drive = 0
libguestfs: trace: v2v: add_drive "/var/tmp/v2vovld9a225.qcow2" "format:qcow2" "cachemode:unsafe" "discard:besteffort" "copyonread:true"
libguestfs: trace: v2v: add_drive = 0
libguestfs: trace: v2v: launch
libguestfs: trace: v2v: get_tmpdir
libguestfs: trace: v2v: get_tmpdir = "/tmp"
libguestfs: trace: v2v: version
libguestfs: trace: v2v: version = <struct guestfs_version = major: 1, minor: 36, release: 5, extra: fedora=26,release=1.fc26,libvirt, >
libguestfs: trace: v2v: get_backend
libguestfs: trace: v2v: get_backend = "libvirt"
libguestfs: launch: program=virt-v2v
libguestfs: launch: identifier=v2v
libguestfs: launch: version=1.36.5fedora=26,release=1.fc26,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/libguestfs31KAuI
libguestfs: launch: umask=0002
libguestfs: launch: euid=1000
libguestfs: libvirt version = 3002001 (3.2.1)
libguestfs: guest random name = guestfs-8h2157ddlkwvgurn
libguestfs: connect to libvirt
libguestfs: opening libvirt handle: URI = qemu:///session, auth = default+wrapper, flags = 0
libguestfs: successfully opened libvirt handle: conn = 0x17da530
libguestfs: qemu version (reported by libvirt) = 2009000 (2.9.0)
libguestfs: get libvirt capabilities
libguestfs: parsing capabilities XML
libguestfs: trace: v2v: get_backend_setting "force_tcg"
libguestfs: trace: v2v: get_backend_setting = NULL (error)
libguestfs: trace: v2v: get_backend_setting "internal_libvirt_label"
libguestfs: trace: v2v: get_backend_setting = NULL (error)
libguestfs: trace: v2v: get_backend_setting "internal_libvirt_imagelabel"
libguestfs: trace: v2v: get_backend_setting = NULL (error)
libguestfs: trace: v2v: get_backend_setting "internal_libvirt_norelabel_disks"
libguestfs: trace: v2v: get_backend_setting = NULL (error)
libguestfs: trace: v2v: get_backend_setting "network_bridge"
libguestfs: trace: v2v: get_backend_setting = NULL (error)
libguestfs: build appliance
libguestfs: trace: v2v: get_cachedir
libguestfs: trace: v2v: get_cachedir = "/var/tmp"
libguestfs: begin building supermin appliance
libguestfs: run supermin
libguestfs: command: run: /usr/bin/supermin
libguestfs: command: run: \ --build
libguestfs: command: run: \ --verbose
libguestfs: command: run: \ --if-newer
libguestfs: command: run: \ --lock /var/tmp/.guestfs-1000/lock
libguestfs: command: run: \ --copy-kernel
libguestfs: command: run: \ -f ext2
libguestfs: command: run: \ --host-cpu x86_64
libguestfs: command: run: \ /usr/lib64/guestfs/supermin.d
libguestfs: command: run: \ -o /var/tmp/.guestfs-1000/appliance.d
supermin: version: 5.1.18
supermin: rpm: detected RPM version 4.13
supermin: package handler: fedora/rpm
supermin: acquiring lock on /var/tmp/.guestfs-1000/lock
supermin: if-newer: output does not need rebuilding
libguestfs: finished building supermin appliance
libguestfs: trace: v2v: disk_create "/tmp/libguestfs31KAuI/overlay1" "qcow2" -1 "backingfile:/var/tmp/.guestfs-1000/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-1000/appliance.d/root,backing_fmt=raw
libguestfs: command: run: \ /tmp/libguestfs31KAuI/overlay1
Formatting '/tmp/libguestfs31KAuI/overlay1', fmt=qcow2 size=4294967296 backing_file=/var/tmp/.guestfs-1000/appliance.d/root backing_fmt=raw encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
libguestfs: trace: v2v: disk_create = 0
libguestfs: trace: v2v: get_sockdir
libguestfs: trace: v2v: get_sockdir = "/run/user/1000"
libguestfs: create libvirt XML
libguestfs: trace: v2v: get_cachedir
libguestfs: trace: v2v: get_cachedir = "/var/tmp"
libguestfs: libvirt XML:\n<?xml version="1.0"?>\n<domain type="kvm" xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0">\n <name>guestfs-8h2157ddlkwvgurn</name>\n <memory unit="MiB">2000</memory>\n <currentMemory unit="MiB">2000</currentMemory>\n <cpu mode="host-passthrough">\n <model fallback="allow"/>\n </cpu>\n <vcpu>1</vcpu>\n <clock offset="utc">\n <timer name="rtc" tickpolicy="catchup"/>\n <timer name="pit" tickpolicy="delay"/>\n <timer name="hpet" present="no"/>\n </clock>\n <os>\n <type>hvm</type>\n <kernel>/var/tmp/.guestfs-1000/appliance.d/kernel</kernel>\n <initrd>/var/tmp/.guestfs-1000/appliance.d/initrd</initrd>\n <cmdline>panic=1 console=ttyS0 edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=/dev/sdc selinux=0 guestfs_verbose=1 guestfs_network=1 TERM=xterm-256color guestfs_identifier=v2v</cmdline>\n <bios useserial="yes"/>\n </os>\n <on_reboot>destroy</on_reboot>\n <devices>\n <rng model="virtio">\n <backend model="random">/dev/urandom</backend>\n </rng>\n <controller type="scsi" index="0" model="virtio-scsi"/>\n <disk device="disk" type="file">\n <source file="/var/tmp/v2vovl6b4221.qcow2"/>\n <target dev="sda" bus="scsi"/>\n <driver name="qemu" type="qcow2" cache="unsafe" discard="unmap"/>\n <address type="drive" controller="0" bus="0" target="0" unit="0"/>\n </disk>\n <disk device="disk" type="file">\n <source file="/var/tmp/v2vovld9a225.qcow2"/>\n <target dev="sdb" bus="scsi"/>\n <driver name="qemu" type="qcow2" cache="unsafe" discard="unmap"/>\n <address type="drive" controller="0" bus="0" target="1" unit="0"/>\n </disk>\n <disk type="file" device="disk">\n <source file="/tmp/libguestfs31KAuI/overlay1"/>\n <target dev="sdc" bus="scsi"/>\n <driver name="qemu" type="qcow2" cache="unsafe"/>\n <address type="drive" controller="0" bus="0" target="2" unit="0"/>\n <shareable/>\n </disk>\n <serial type="unix">\n <source mode="connect" path="/run/user/1000/libguestfsrSgHCr/console.sock"/>\n <target port="0"/>\n </serial>\n <channel type="unix">\n <source mode="connect" path="/run/user/1000/libguestfsrSgHCr/guestfsd.sock"/>\n <target type="virtio" name="org.libguestfs.channel.0"/>\n </channel>\n <interface type="bridge">\n <source bridge="virbr0"/>\n <model type="virtio"/>\n </interface>\n <controller type="usb" model="none"/>\n <memballoon model="none"/>\n </devices>\n <qemu:commandline>\n <qemu:env name="TMPDIR" value="/var/tmp"/>\n </qemu:commandline>\n</domain>\n
libguestfs: trace: v2v: get_cachedir
libguestfs: trace: v2v: 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-1000
libguestfs: /var/tmp/.guestfs-1000:
libguestfs: total 12
libguestfs: drwxr-xr-x. 3 fedora fedora unconfined_u:object_r:user_tmp_t:s0 4096 Sep 8 17:29 .
libguestfs: drwxrwxrwt. 13 root root system_u:object_r:tmp_t:s0 4096 Sep 8 17:29 ..
libguestfs: drwxr-xr-x. 2 fedora fedora unconfined_u:object_r:user_tmp_t:s0 4096 Sep 8 15:12 appliance.d
libguestfs: -rw-r--r--. 1 fedora fedora unconfined_u:object_r:user_tmp_t:s0 0 Sep 8 15:11 lock
libguestfs:
libguestfs: /var/tmp/.guestfs-1000/appliance.d:
libguestfs: total 217316
libguestfs: drwxr-xr-x. 2 fedora fedora unconfined_u:object_r:user_tmp_t:s0 4096 Sep 8 15:12 .
libguestfs: drwxr-xr-x. 3 fedora fedora unconfined_u:object_r:user_tmp_t:s0 4096 Sep 8 17:29 ..
libguestfs: -rw-r--r--. 1 fedora fedora system_u:object_r:virt_content_t:s0 546304 Sep 8 17:29 initrd
libguestfs: -rwxr-xr-x. 1 fedora fedora system_u:object_r:virt_content_t:s0 7295064 Sep 8 17:29 kernel
libguestfs: -rw-r--r--. 1 fedora fedora system_u:object_r:virt_content_t:s0 4294967296 Sep 8 17:29 root
libguestfs: command: run: ls
libguestfs: command: run: \ -a
libguestfs: command: run: \ -l
libguestfs: command: run: \ -Z /run/user/1000/libguestfsrSgHCr
libguestfs: total 0
libguestfs: drwx------. 2 fedora fedora unconfined_u:object_r:user_tmp_t:s0 80 Sep 8 17:29 .
libguestfs: drwx------. 10 fedora fedora system_u:object_r:user_tmp_t:s0 220 Sep 8 17:29 ..
libguestfs: srwxrwxr-x. 1 fedora fedora unconfined_u:object_r:user_tmp_t:s0 0 Sep 8 17:29 console.sock
libguestfs: srwxrwxr-x. 1 fedora fedora unconfined_u:object_r:user_tmp_t:s0 0 Sep 8 17:29 guestfsd.sock
libguestfs: launch libvirt guest
\x1b[1;256r\x1b[25libguestfs: responding to serial console Device Status Report
6;256H\x1b[6n
Google, Inc.
Serial Graphics Adapter 02/12/17
SGABIOS $Id: sgabios.S 8 2010-04-22 00:03:40Z nlaredo $ (mockbuild@) Sun Feb 12 00:43:05 UTC 2017
Term: 80x24
4 0
SeaBIOS (version 1.10.2-1.fc26)
Machine UUID 79b50ad0-9c08-4139-976d-81bf0e610331
iPXE (http://ipxe.org) 00:02.0 C100 PCI2.10 PnP PMM+7CF92300+7CED2300 C100
Booting from ROM...
\x1b[2J[ 0.000000] Linux version 4.11.8-300.fc26.x86_64 (mockbuild(a)bkernel02.phx2.fedoraproject.org) (gcc version 7.1.1 20170622 (Red Hat 7.1.1-3) (GCC) ) #1 SMP Thu Jun 29 20:09:48 UTC 2017
[ 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/sdc selinux=0 guestfs_verbose=1 guestfs_network=1 TERM=xterm-256color guestfs_identifier=v2v
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using '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-0x000000007cffdfff] usable
[ 0.000000] BIOS-e820: [mem 0x000000007cffe000-0x000000007cffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000feffc000-0x00000000feffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] SMBIOS 2.8 present.
[ 0.000000] DMI: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1.fc26 04/01/2014
[ 0.000000] Hypervisor detected: KVM
[ 0.000000] e820: last_pfn = 0x7cffe 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 0x000f6c10-0x000f6c1f] mapped at [ffff977c800f6c10]
[ 0.000000] RAMDISK: [mem 0x7cf6a000-0x7cfeffff]
[ 0.000000] ACPI: Early table checksum verification disabled
[ 0.000000] ACPI BIOS Error (bug): A valid RSDP was not found (20170119/tbxfroot-244)
[ 0.000000] No NUMA configuration found
[ 0.000000] Faking a node at [mem 0x0000000000000000-0x000000007cffdfff]
[ 0.000000] NODE_DATA(0) allocated [mem 0x7cf3f000-0x7cf69fff]
[ 0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00
[ 0.000000] kvm-clock: cpu 0, msr 0:7cebf001, primary cpu clock
[ 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-0x000000007cffdfff]
[ 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-0x000000007cffdfff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000007cffdfff]
[ 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 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 0x7d000000-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: 1910969940391419 ns
[ 0.000000] setup_percpu: NR_CPUS:8192 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
[ 0.000000] percpu: Embedded 36 pages/cpu @ffff977cfcc00000 s108888 r8192 d30376 u2097152
[ 0.000000] KVM setup async PF for cpu 0
[ 0.000000] kvm-stealtime: cpu 0, msr 7cc0d900
[ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 503879
[ 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/sdc selinux=0 guestfs_verbose=1 guestfs_network=1 TERM=xterm-256color guestfs_identifier=v2v
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Memory: 1993292K/2047600K available (8688K kernel code, 1668K rwdata, 3604K rodata, 2120K init, 1816K bss, 54308K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.001000] Hierarchical RCU implementation.
[ 0.001000] \tBuild-time adjustment of leaf fanout to 64.
[ 0.001000] \tRCU restricting CPUs from NR_CPUS=8192 to nr_cpu_ids=1.
[ 0.001000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=1
[ 0.001000] NR_IRQS:524544 nr_irqs:256 16
[ 0.001000] \tOffload RCU callbacks from all CPUs
[ 0.001000] \tOffload RCU callbacks from CPUs: 0.
[ 0.001000] Console: colour *CGA 80x25
[ 0.001000] console [ttyS0] enabled
[ 0.001046] tsc: Detected 2000.034 MHz processor
[ 0.003076] Calibrating delay loop (skipped) preset value.. 4000.06 BogoMIPS (lpj=2000034)
[ 0.005039] pid_max: default: 32768 minimum: 301
[ 0.007112] Security Framework initialized
[ 0.009042] Yama: becoming mindful.
[ 0.011044] SELinux: Disabled at boot.
[ 0.013241] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.016284] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.018329] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.020043] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.022643] Disabling memory control group subsystem
[ 0.025573] CPU: Physical Processor ID: 0
[ 0.028443] mce: CPU supports 10 MCE banks
[ 0.032102] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0
[ 0.034038] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0
[ 0.049354] Freeing SMP alternatives memory: 32K
[ 0.052692] ftrace: allocating 31978 entries in 125 pages
[ 0.066104] smpboot: Max logical packages: 1
[ 0.073533] x2apic enabled
[ 0.074067] Switched APIC routing to physical x2apic.
[ 0.100000] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[ 0.100000] smpboot: CPU0: Intel(R) Xeon(R) CPU E5-2640 v2 @ 2.00GHz (family: 0x6, model: 0x3e, stepping: 0x4)
[ 0.100125] Performance Events: IvyBridge events, Intel PMU driver.
[ 0.101085] ... version: 2
[ 0.102044] ... bit width: 48
[ 0.103045] ... generic registers: 4
[ 0.104044] ... value mask: 0000ffffffffffff
[ 0.105044] ... max period: 000000007fffffff
[ 0.106079] ... fixed-purpose events: 3
[ 0.107071] ... event mask: 000000070000000f
[ 0.108916] smp: Bringing up secondary CPUs ...
[ 0.109049] smp: Brought up 1 node, 1 CPU
[ 0.110050] smpboot: Total of 1 processors activated (4000.06 BogoMIPS)
[ 0.114259] devtmpfs: initialized
[ 0.115099] x86/mm: Memory block size: 128MB
[ 0.118905] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[ 0.119053] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.120103] pinctrl core: initialized pinctrl subsystem
[ 0.122044] RTC time: 17:29:33, date: 09/08/17
[ 0.123207] NET: Registered protocol family 16
[ 0.124368] cpuidle: using governor menu
[ 0.126165] PCI: Using configuration type 1 for base access
[ 0.127219] core: PMU erratum BJ122, BV98, HSD29 workaround disabled, HT off
[ 0.129460] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.130374] ACPI: Interpreter disabled.
[ 0.131095] vgaarb: loaded
[ 0.132145] SCSI subsystem initialized
[ 0.133111] usbcore: USB support disabled
[ 0.134154] PCI: Probing PCI hardware
[ 0.135076] PCI host bridge to bus 0000:00
[ 0.136053] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 0.137052] pci_bus 0000:00: root bus resource [mem 0x00000000-0xffffffffff]
[ 0.138046] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.163937] pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io 0x01f0-0x01f7]
[ 0.164047] pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io 0x03f6]
[ 0.165050] pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io 0x0170-0x0177]
[ 0.166046] pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io 0x0376]
[ 0.256961] pci 0000:00:01.0: PIIX/ICH IRQ router [8086:7000]
[ 0.258902] NetLabel: Initializing
[ 0.259045] NetLabel: domain hash size = 128
[ 0.260044] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO
[ 0.261073] NetLabel: unlabeled traffic allowed by default
[ 0.262308] clocksource: Switched to clocksource kvm-clock
[ 0.287467] VFS: Disk quotas dquot_6.6.0
[ 0.293800] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.304437] pnp: PnP ACPI: disabled
[ 0.311411] NET: Registered protocol family 2
[ 0.318502] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.329787] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[ 0.340146] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.350315] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.359754] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.369705] NET: Registered protocol family 1
[ 0.376559] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[ 0.385931] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[ 0.395043] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[ 0.405409] Unpacking initramfs...
[ 0.411542] Freeing initrd memory: 536K
[ 0.417881] platform rtc_cmos: registered platform RTC device (no PNP device found)
[ 0.429848] alg: self-tests disabled
[ 0.435759] audit: initializing netlink subsys (disabled)
[ 0.444868] Initialise system trusted keyrings
[ 0.451929] workingset: timestamp_bits=36 max_order=19 bucket_order=0
[ 0.461870] audit: type=2000 audit(1504891773.475:1): state=initialized audit_enabled=0 res=1
[ 0.477292] zbud: loaded
[ 0.483329] NET: Registered protocol family 38
[ 0.490331] Key type asymmetric registered
[ 0.496750] Asymmetric key parser 'x509' registered
[ 0.504405] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 0.515840] io scheduler noop registered
[ 0.522120] io scheduler deadline registered
[ 0.528847] io scheduler cfq registered (default)
[ 0.536211] io scheduler mq-deadline registered
[ 0.543379] atomic64_test: passed for x86-64 platform with CX8 and with SSE
[ 0.554291] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[ 0.607528] serial8250: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 0.619856] Non-volatile memory driver v1.3
[ 0.626528] Linux agpgart interface v0.103
[ 0.637829] scsi host0: ata_piix
[ 0.643221] scsi host1: ata_piix
[ 0.648478] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc0c0 irq 14
[ 0.659114] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc0c8 irq 15
[ 0.669720] libphy: Fixed MDIO Bus: probed
[ 0.676270] usbserial: usb_serial_init - usb_register failed
[ 0.685067] usbserial: usb_serial_init - returning with error -19
[ 0.694506] i8042: PNP: No PS/2 controller found.
[ 0.701921] i8042: Probing ports directly.
[ 0.717142] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 0.724884] serio: i8042 AUX port at 0x60,0x64 irq 12
[ 0.732782] mousedev: PS/2 mouse device common for all mice
[ 0.743862] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
[ 0.761801] input: VirtualPS/2 VMware VMMouse as /devices/platform/i8042/serio1/input/input3
[ 0.778437] input: VirtualPS/2 VMware VMMouse as /devices/platform/i8042/serio1/input/input2
[ 0.795570] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[ 0.806713] rtc_cmos rtc_cmos: alarms up to one day, 114 bytes nvram
[ 0.822706] device-mapper: uevent: version 1.0.3
[ 0.830154] device-mapper: ioctl: 4.35.0-ioctl (2016-06-23) initialised: dm-devel(a)redhat.com
[ 0.843343] hidraw: raw HID events driver (C) Jiri Kosina
[ 0.852122] drop_monitor: Initializing network drop monitor service
[ 0.861944] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 0.870216] Initializing XFRM netlink socket
[ 0.877172] NET: Registered protocol family 10
[ 0.884780] Segment Routing with IPv6
[ 0.890624] mip6: Mobile IPv6
[ 0.895507] NET: Registered protocol family 17
[ 0.903255] AVX version of gcm_enc/dec engaged.
[ 0.910372] AES CTR mode by8 optimization enabled
[ 0.918228] registered taskstats version 1
[ 0.924720] Loading compiled-in X.509 certificates
[ 0.933508] Loaded X.509 cert 'Fedora kernel signing key: a97d6306ae6a6507bdc5a7857746bd9b5938a8b2'
[ 0.947700] zswap: loaded using pool lzo/zbud
[ 0.966514] Key type big_key registered
[ 0.972753] Key type encrypted registered
[ 0.988137] Magic number: 1:349:491
[ 0.995256] rtc_cmos rtc_cmos: setting system clock to 2017-09-08 17:29:34 UTC (1504891774)
[ 1.013849] Freeing unused kernel memory: 2120K
[ 1.020993] Write protecting the kernel read-only data: 14336k
[ 1.030840] Freeing unused kernel memory: 1536K
[ 1.039488] Freeing unused kernel memory: 492K
[ 1.048991] x86/mm: Checked W+X mappings: passed, no W+X pages found.
[ 1.058948] rodata_test: all tests were successful
supermin: mounting /proc
supermin: ext2 mini initrd starting up: 5.1.18 dietlibc
supermin: cmdline: panic=1 console=ttyS0 edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=/dev/sdc selinux=0 guestfs_verbose=1 guestfs_network=1 TERM=xterm-256color guestfs_identifier=v2v
supermin: uptime: 1.10 0.03
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 nfit.ko
insmod: init_module: nfit.ko: No such device
supermin: internal insmod virtio.ko
supermin: internal insmod virtio_ring.ko
supermin: internal insmod virtio_blk.ko
[ 1.184884] random: fast init done
supermin: internal insmod virtio-rng.ko
supermin: internal insmod virtio_console.ko
supermin: internal insmod crypto_engine.ko
supermin: internal insmod virtio_crypto.ko
supermin: internal insmod virtio_net.ko
supermin: internal insmod nd_btt.ko
supermin: internal insmod nd_pmem.ko
supermin: internal insmod virtio_scsi.ko
supermin: internal insmod virtio_balloon.ko
supermin: internal insmod virtio_input.ko
supermin: internal insmod virtio_mmio.ko
supermin: internal insmod virtio_pci.ko
[ 1.291935] virtio-pci 0000:00:02.0: PCI->APIC IRQ transform: INT A -> IRQ 10
[ 1.327489] virtio-pci 0000:00:03.0: PCI->APIC IRQ transform: INT A -> IRQ 11
[ 1.359512] scsi host2: Virtio SCSI HBA
[ 1.366760] virtio-pci 0000:00:04.0: PCI->APIC IRQ transform: INT A -> IRQ 11
[ 1.387118] scsi 2:0:0:0: Direct-Access QEMU QEMU HARDDISK 2.5+ PQ: 0 ANSI: 5
[ 1.430845] scsi 2:0:1:0: Direct-Access QEMU QEMU HARDDISK 2.5+ PQ: 0 ANSI: 5
[ 1.443504] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x1cd44e5d440, max_idle_ns: 440795218083 ns
[ 1.493791] scsi 2:0:2:0: Direct-Access QEMU QEMU HARDDISK 2.5+ PQ: 0 ANSI: 5
[ 1.532826] virtio-pci 0000:00:05.0: PCI->APIC IRQ transform: INT A -> IRQ 10
[ 1.561197] random: crng init done
[ 1.613227] sd 2:0:0:0: Attached scsi generic sg0 type 0
[ 1.622594] sd 2:0:0:0: [sda] 83886080 512-byte logical blocks: (42.9 GB/40.0 GiB)
[ 1.634440] sd 2:0:1:0: Attached scsi generic sg1 type 0
[ 1.642938] sd 2:0:0:0: [sda] Write Protect is off
[ 1.650610] sd 2:0:1:0: [sdb] 25165824 512-byte logical blocks: (12.9 GB/12.0 GiB)
[ 1.662477] sd 2:0:1:0: [sdb] Write Protect is off
[ 1.670187] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1.684170] sd 2:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1.699240] sd 2:0:2:0: Attached scsi generic sg2 type 0
[ 1.715928] sd 2:0:2:0: [sdc] 8388608 512-byte logical blocks: (4.29 GB/4.00 GiB)
[ 1.727370] sd 2:0:2:0: [sdc] Write Protect is off
[ 1.735100] sd 2:0:2:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1.755559] sd 2:0:2:0: [sdc] Attached SCSI disk
[ 2.005978] sdb: sdb1
[ 2.014127] sd 2:0:1:0: [sdb] Attached SCSI disk
[ 2.363315] sda: sda1 sda2 < sda5 >
[ 2.373152] sd 2:0:0:0: [sda] Attached SCSI disk
supermin: internal insmod crc-itu-t.ko
supermin: internal insmod crc7.ko
supermin: internal insmod crc8.ko
supermin: internal insmod libcrc32c.ko
supermin: picked /sys/block/sdc/dev (8:32) as root device
supermin: creating /dev/root as block special 8:32
supermin: mounting new root on /root
[ 2.436182] EXT4-fs (sdc): mounting ext2 file system using the ext4 subsystem
[ 2.454444] EXT4-fs (sdc): 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/sdc selinux=0 guestfs_verbose=1 guestfs_network=1 TERM=xterm-256color guestfs_identifier=v2v == *guestfs_network=1* ]]
+ 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/sdc selinux=0 guestfs_verbose=1 guestfs_network=1 TERM=xterm-256color guestfs_identifier=v2v == *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/sdc selinux=0 guestfs_verbose=1 guestfs_network=1 TERM=xterm-256color guestfs_identifier=v2v == *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/sdc selinux=0 guestfs_verbose=1 guestfs_network=1 TERM=xterm-256color guestfs_identifier=v2v == *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/sdc selinux=0 guestfs_verbose=1 guestfs_network=1 TERM=xterm-256color guestfs_identifier=v2v == *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=' e181 aa53 961c 8b16 326e 173d 782d e914'
+ echo e181aa53961c8b16326e173d782de914
+ systemd-tmpfiles --prefix=/dev --prefix=/run --prefix=/var/run --create --boot
[/usr/lib/tmpfiles.d/systemd.conf:11] Unknown group 'utmp'.
[/usr/lib/tmpfiles.d/systemd.conf:19] Unknown user 'systemd-network'.
[/usr/lib/tmpfiles.d/systemd.conf:20] Unknown user 'systemd-network'.
[/usr/lib/tmpfiles.d/systemd.conf:21] Unknown user 'systemd-network'.
[/usr/lib/tmpfiles.d/systemd.conf:25] Unknown group 'systemd-journal'.
[/usr/lib/tmpfiles.d/systemd.conf:26] Unknown group 'systemd-journal'.
+ 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 233
+ udevadm trigger
+ udevadm settle --timeout=600
[ 3.445833] EDAC MC: Ver: 3.0.0
[ 3.459209] EDAC sbridge: Ver: 1.1.1
7 years, 3 months
[PATCH 0/4] lib: qemu: Add test for mandatory locking.
by Richard W.M. Jones
The patch I posted last week to disable mandatory locking for readonly
drives
(https://www.redhat.com/archives/libguestfs/2017-September/msg00013.html)
was wrong in a couple of respects. Firstly it didn't work, which I
didn't detect because my tests were testing the wrong thing. Oops.
Secondly it used a simple version number check to detect qemu binaries
implementing mandatory locking.
This patch series addresses the second issue. It refactors the code
which tests qemu features to make it more manageable. Then it
implements QMP testing, and finally it adds a slightly braindead (but
working) test for whether the qemu binary implements mandatory locking
based on features of the binary and not version numbers.
I tested this against several qemu binaries with and without locking
and it worked for me in all cases.
Rich.
7 years, 3 months