Skip to content

Instantly share code, notes, and snippets.

@ssbarnea
Created February 12, 2019 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssbarnea/10935fc1a3c5c8087b037c7a58dcba19 to your computer and use it in GitHub Desktop.
Save ssbarnea/10935fc1a3c5c8087b037c7a58dcba19 to your computer and use it in GitHub Desktop.
# tail /root/qs/virt-resize.log
supermin: kernel: modpath
cp: cannot stat '': No such file or directory
supermin: cp -p '' '/var/tmp/.guestfs-0/appliance.d.uhhr1t3i/kernel': command failed, see earlier errors
libguestfs: trace: launch = -1 (error)
virt-resize: error: libguestfs error: /usr/bin/supermin5 exited with error
status 1, see debug messages above
libguestfs: trace: close
libguestfs: closing guestfs handle 0x1e48750 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfskShOHU
root@n0:~/rdo # gt
-bash: gt: command not found
root@n0:~/rdo # cat /root/qs/virt-resize.log
command line: virt-resize -x --verbose --expand /dev/sda1 /root/qs/undercloud.qcow2 /root/qs/undercloud-resized.qcow2
[ 0.0] Examining /root/qs/undercloud.qcow2
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: trace: set_backend "direct"
libguestfs: trace: set_backend = 0
libguestfs: trace: set_backend_settings "force_tcg"
libguestfs: trace: set_backend_settings = 0
libguestfs: create: flags = 0, handle = 0x1e48750, program = virt-resize
libguestfs: trace: set_trace true
libguestfs: trace: set_trace = 0
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: trace: add_drive "/root/qs/undercloud.qcow2" "readonly:true" "protocol:file"
libguestfs: creating COW overlay to protect original drive content
libguestfs: trace: get_tmpdir
libguestfs: trace: get_tmpdir = "/tmp"
libguestfs: trace: disk_create "/tmp/libguestfskShOHU/overlay1.qcow2" "qcow2" -1 "backingfile:/root/qs/undercloud.qcow2"
libguestfs: command: run: qemu-img
libguestfs: command: run: \ create
libguestfs: command: run: \ -f qcow2
libguestfs: command: run: \ -o backing_file=/root/qs/undercloud.qcow2
libguestfs: command: run: \ /tmp/libguestfskShOHU/overlay1.qcow2
Formatting '/tmp/libguestfskShOHU/overlay1.qcow2', fmt=qcow2 size=8589934592 backing_file=/root/qs/undercloud.qcow2 cluster_size=65536 lazy_refcounts=off refcount_bits=16
libguestfs: trace: disk_create = 0
libguestfs: trace: add_drive = 0
libguestfs: trace: add_drive "/root/qs/undercloud-resized.qcow2" "readonly:false" "protocol:file" "cachemode:unsafe"
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: 38, release: 2, extra: rhel=7,release=12.el7_6.1,libvirt, >
libguestfs: trace: get_backend
libguestfs: trace: get_backend = "direct"
libguestfs: launch: program=virt-resize
libguestfs: launch: version=1.38.2rhel=7,release=12.el7_6.1,libvirt
libguestfs: launch: backend registered: unix
libguestfs: launch: backend registered: uml
libguestfs: launch: backend registered: libvirt
libguestfs: launch: backend registered: direct
libguestfs: launch: backend=direct
libguestfs: launch: tmpdir=/tmp/libguestfskShOHU
libguestfs: launch: umask=0022
libguestfs: launch: euid=0
libguestfs: trace: get_backend_setting "force_tcg"
libguestfs: trace: get_backend_setting = "1"
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
BDB2053 Freeing read locks for locker 0x11f: 11958/139639134570624
BDB2053 Freeing read locks for locker 0x121: 11958/139639134570624
BDB2053 Freeing read locks for locker 0x122: 11958/139639134570624
BDB2053 Freeing read locks for locker 0x123: 11958/139639134570624
supermin: resolving full list of package dependencies
supermin: build: 192 packages, including dependencies
supermin: build: 31808 files
supermin: build: 7576 files, after matching excludefiles
supermin: build: 7585 files, after adding hostfiles
supermin: build: 7580 files, after removing unreadable files
supermin: build: 7604 files, after munging
supermin: kernel: looking for kernel using environment variables ...
supermin: kernel: SUPERMIN_KERNEL=
supermin: kernel: SUPERMIN_KERNEL_VERSION=
supermin: kernel: SUPERMIN_MODULES=
supermin: kernel: picked vmlinuz
supermin: kernel: kernel_version
supermin: kernel: modpath
cp: cannot stat '': No such file or directory
supermin: cp -p '' '/var/tmp/.guestfs-0/appliance.d.uhhr1t3i/kernel': command failed, see earlier errors
libguestfs: trace: launch = -1 (error)
virt-resize: error: libguestfs error: /usr/bin/supermin5 exited with error
status 1, see debug messages above
libguestfs: trace: close
libguestfs: closing guestfs handle 0x1e48750 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfskShOHU
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment