Customizing VM Settings - fails during tripleo installation in Centos
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
[stack@localhost ~]$ sudo cp CentOS-7-x86_64-GenericCloud.qcow2 /var/lib/libvirt/images/undercloud.qcow2
[stack@localhost ~]$ sudo qemu-img resize /var/lib/libvirt/images/undercloud.qcow2 +120G
Image resized.
[stack@localhost ~]$
[stack@localhost ~]$
[stack@localhost ~]$ sudo virt-customize -v -x -a /var/lib/libvirt/images/undercloud.qcow2 --run-command 'echo -e "dnnnnnnnwn" | fdisk /dev/sda'
[ 0.0] Examining the guest ...
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: trace: set_network true
libguestfs: trace: set_network = 0
libguestfs: trace: add_drive "/var/lib/libvirt/images/undercloud.qcow2" "readonly:false" "protocol:file" "discard:besteffort"
libguestfs: trace: add_drive = 0
libguestfs: trace: launch
libguestfs: trace: get_tmpdir
libguestfs: trace: get_tmpdir = "/tmp"
libguestfs: trace: version
libguestfs: trace: version = <struct guestfs_version = major: 1, minor: 36, release: 3, extra: rhel=7,release=6.el7_4.3,libvirt, >
libguestfs: trace: get_backend
libguestfs: trace: get_backend = "libvirt"
libguestfs: launch: program=virt-customize
libguestfs: launch: version=1.36.3rhel=7,release=6.el7_4.3,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/libguestfsWcfOGQ
libguestfs: launch: umask=0022
libguestfs: launch: euid=0
libguestfs: libvirt version = 3002000 (3.2.0)
libguestfs: guest random name = guestfs-5jx0vkvril0zvznw
libguestfs: connect to libvirt
libguestfs: opening libvirt handle: URI = qemu:///system, auth = default+wrapper, flags = 0
libguestfs: successfully opened libvirt handle: conn = 0x17c61c0
libguestfs: qemu version (reported by libvirt) = 1005003 (1.5.3)
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.16
supermin: rpm: detected RPM version 4.11
supermin: package handler: fedora/rpm
supermin: acquiring lock on /var/tmp/.guestfs-0/lock
supermin: if-newer: output does not need rebuilding
libguestfs: finished building supermin appliance
libguestfs: trace: disk_create "/tmp/libguestfsWcfOGQ/overlay1" "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/libguestfsWcfOGQ/overlay1
Formatting '/tmp/libguestfsWcfOGQ/overlay1', fmt=qcow2 size=4294967296 backing_file='/var/tmp/.guestfs-0/appliance.d/root' backing_fmt='raw' encryption=off cluster_size=65536 lazy_refcounts=off
libguestfs: trace: disk_create = 0
libguestfs: trace: get_sockdir
libguestfs: trace: get_sockdir = "/tmp"
libguestfs: create libvirt XML
libguestfs: trace: disk_format "/var/lib/libvirt/images/undercloud.qcow2"
libguestfs: command: run: qemu-img
libguestfs: command: run: info
libguestfs: command: run: --output json
libguestfs: command: run: /dev/fd/9
libguestfs: parse_json: qemu-img info JSON output:nn "virtual-size": 137438953472, n "filename": "/dev/fd/9", n "cluster-size": 65536, n "format": "qcow2", n "actual-size": 870076416, n "format-specific": n "type": "qcow2", n "data": n "compat": "0.10"n n , n "dirty-flag": falsennn
libguestfs: trace: disk_format = "qcow2"
libguestfs: trace: get_cachedir
libguestfs: trace: 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-5jx0vkvril0zvznw</name>n <memory unit="MiB">500</memory>n <currentMemory unit="MiB">500</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-0/appliance.d/kernel</kernel>n <initrd>/var/tmp/.guestfs-0/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/sdb selinux=0 guestfs_verbose=1 guestfs_network=1 TERM=xterm-256color</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/lib/libvirt/images/undercloud.qcow2"/>n <target dev="sda" bus="scsi"/>n <driver name="qemu" type="qcow2" cache="writeback" discard="unmap"/>n <address type="drive" controller="0" bus="0" target="0" unit="0"/>n </disk>n <disk type="file" device="disk">n <source file="/tmp/libguestfsWcfOGQ/overlay1"/>n <target dev="sdb" bus="scsi"/>n <driver name="qemu" type="qcow2" cache="unsafe"/>n <address type="drive" controller="0" bus="0" target="1" unit="0"/>n <shareable/>n </disk>n <serial type="unix">n <source mode="connect" path="/tmp/libguestfsGVhH0h/console.sock"/>n <target port="0"/>n </serial>n <channel type="unix">n <source mode="connect" path="/tmp/libguestfsGVhH0h/guestfsd.sock"/>n <target type="virtio" name="org.libguestfs.channel.0"/>n </channel>n <controller type="usb" model="none"/>n <memballoon model="none"/>n </devices>n <qemu:commandline>n <qemu:env name="TMPDIR" value="/var/tmp"/>n <qemu:arg value="-netdev"/>n <qemu:arg value="user,id=usernet,net=169.254.0.0/16"/>n <qemu:arg value="-device"/>n <qemu:arg value="virtio-net-pci,netdev=usernet"/>n </qemu:commandline>n</domain>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 unconfined_u:object_r:user_tmp_t:s0 .
libguestfs: drwxrwxrwt. root root system_u:object_r:tmp_t:s0 ..
libguestfs: drwxr-xr-x. root root unconfined_u:object_r:user_tmp_t:s0 appliance.d
libguestfs: -rw-r--r--. root root unconfined_u:object_r:user_tmp_t:s0 lock
libguestfs:
libguestfs: /var/tmp/.guestfs-0/appliance.d:
libguestfs: drwxr-xr-x. root root unconfined_u:object_r:user_tmp_t:s0 .
libguestfs: drwxr-xr-x. root root unconfined_u:object_r:user_tmp_t:s0 ..
libguestfs: -rw-r--r--. qemu qemu system_u:object_r:virt_content_t:s0 initrd
libguestfs: -rwxr-xr-x. qemu qemu system_u:object_r:virt_content_t:s0 kernel
libguestfs: -rw-r--r--. qemu qemu system_u:object_r:virt_content_t:s0 root
libguestfs: command: run: ls
libguestfs: command: run: -a
libguestfs: command: run: -l
libguestfs: command: run: -Z /tmp/libguestfsGVhH0h
libguestfs: drwxr-xr-x. root root unconfined_u:object_r:user_tmp_t:s0 .
libguestfs: drwxrwxrwt. root root system_u:object_r:tmp_t:s0 ..
libguestfs: srw-rw----. root qemu unconfined_u:object_r:user_tmp_t:s0 console.sock
libguestfs: srw-rw----. root qemu unconfined_u:object_r:user_tmp_t:s0 guestfsd.sock
libguestfs: launch libvirt guest
libguestfs: trace: launch = -1 (error)
virt-customize: error: libguestfs error: could not create appliance through
libvirt.
Try running qemu directly without libvirt using this environment variable:
export LIBGUESTFS_BACKEND=direct
Original error from libvirt: internal error: process exited while
connecting to monitor: failed to initialize KVM: Device or resource busy
[code=1 int1=-1]
libguestfs: trace: close
libguestfs: closing guestfs handle 0x17c5870 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: -rf /tmp/libguestfsWcfOGQ
libguestfs: command: run: rm
libguestfs: command: run: -rf /tmp/libguestfsGVhH0h
[stack@localhost ~]$
[stack@localhost ~]$
Why is the virt-customize
command failing?
centos openstack
add a comment |Â
up vote
0
down vote
favorite
[stack@localhost ~]$ sudo cp CentOS-7-x86_64-GenericCloud.qcow2 /var/lib/libvirt/images/undercloud.qcow2
[stack@localhost ~]$ sudo qemu-img resize /var/lib/libvirt/images/undercloud.qcow2 +120G
Image resized.
[stack@localhost ~]$
[stack@localhost ~]$
[stack@localhost ~]$ sudo virt-customize -v -x -a /var/lib/libvirt/images/undercloud.qcow2 --run-command 'echo -e "dnnnnnnnwn" | fdisk /dev/sda'
[ 0.0] Examining the guest ...
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: trace: set_network true
libguestfs: trace: set_network = 0
libguestfs: trace: add_drive "/var/lib/libvirt/images/undercloud.qcow2" "readonly:false" "protocol:file" "discard:besteffort"
libguestfs: trace: add_drive = 0
libguestfs: trace: launch
libguestfs: trace: get_tmpdir
libguestfs: trace: get_tmpdir = "/tmp"
libguestfs: trace: version
libguestfs: trace: version = <struct guestfs_version = major: 1, minor: 36, release: 3, extra: rhel=7,release=6.el7_4.3,libvirt, >
libguestfs: trace: get_backend
libguestfs: trace: get_backend = "libvirt"
libguestfs: launch: program=virt-customize
libguestfs: launch: version=1.36.3rhel=7,release=6.el7_4.3,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/libguestfsWcfOGQ
libguestfs: launch: umask=0022
libguestfs: launch: euid=0
libguestfs: libvirt version = 3002000 (3.2.0)
libguestfs: guest random name = guestfs-5jx0vkvril0zvznw
libguestfs: connect to libvirt
libguestfs: opening libvirt handle: URI = qemu:///system, auth = default+wrapper, flags = 0
libguestfs: successfully opened libvirt handle: conn = 0x17c61c0
libguestfs: qemu version (reported by libvirt) = 1005003 (1.5.3)
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.16
supermin: rpm: detected RPM version 4.11
supermin: package handler: fedora/rpm
supermin: acquiring lock on /var/tmp/.guestfs-0/lock
supermin: if-newer: output does not need rebuilding
libguestfs: finished building supermin appliance
libguestfs: trace: disk_create "/tmp/libguestfsWcfOGQ/overlay1" "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/libguestfsWcfOGQ/overlay1
Formatting '/tmp/libguestfsWcfOGQ/overlay1', fmt=qcow2 size=4294967296 backing_file='/var/tmp/.guestfs-0/appliance.d/root' backing_fmt='raw' encryption=off cluster_size=65536 lazy_refcounts=off
libguestfs: trace: disk_create = 0
libguestfs: trace: get_sockdir
libguestfs: trace: get_sockdir = "/tmp"
libguestfs: create libvirt XML
libguestfs: trace: disk_format "/var/lib/libvirt/images/undercloud.qcow2"
libguestfs: command: run: qemu-img
libguestfs: command: run: info
libguestfs: command: run: --output json
libguestfs: command: run: /dev/fd/9
libguestfs: parse_json: qemu-img info JSON output:nn "virtual-size": 137438953472, n "filename": "/dev/fd/9", n "cluster-size": 65536, n "format": "qcow2", n "actual-size": 870076416, n "format-specific": n "type": "qcow2", n "data": n "compat": "0.10"n n , n "dirty-flag": falsennn
libguestfs: trace: disk_format = "qcow2"
libguestfs: trace: get_cachedir
libguestfs: trace: 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-5jx0vkvril0zvznw</name>n <memory unit="MiB">500</memory>n <currentMemory unit="MiB">500</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-0/appliance.d/kernel</kernel>n <initrd>/var/tmp/.guestfs-0/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/sdb selinux=0 guestfs_verbose=1 guestfs_network=1 TERM=xterm-256color</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/lib/libvirt/images/undercloud.qcow2"/>n <target dev="sda" bus="scsi"/>n <driver name="qemu" type="qcow2" cache="writeback" discard="unmap"/>n <address type="drive" controller="0" bus="0" target="0" unit="0"/>n </disk>n <disk type="file" device="disk">n <source file="/tmp/libguestfsWcfOGQ/overlay1"/>n <target dev="sdb" bus="scsi"/>n <driver name="qemu" type="qcow2" cache="unsafe"/>n <address type="drive" controller="0" bus="0" target="1" unit="0"/>n <shareable/>n </disk>n <serial type="unix">n <source mode="connect" path="/tmp/libguestfsGVhH0h/console.sock"/>n <target port="0"/>n </serial>n <channel type="unix">n <source mode="connect" path="/tmp/libguestfsGVhH0h/guestfsd.sock"/>n <target type="virtio" name="org.libguestfs.channel.0"/>n </channel>n <controller type="usb" model="none"/>n <memballoon model="none"/>n </devices>n <qemu:commandline>n <qemu:env name="TMPDIR" value="/var/tmp"/>n <qemu:arg value="-netdev"/>n <qemu:arg value="user,id=usernet,net=169.254.0.0/16"/>n <qemu:arg value="-device"/>n <qemu:arg value="virtio-net-pci,netdev=usernet"/>n </qemu:commandline>n</domain>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 unconfined_u:object_r:user_tmp_t:s0 .
libguestfs: drwxrwxrwt. root root system_u:object_r:tmp_t:s0 ..
libguestfs: drwxr-xr-x. root root unconfined_u:object_r:user_tmp_t:s0 appliance.d
libguestfs: -rw-r--r--. root root unconfined_u:object_r:user_tmp_t:s0 lock
libguestfs:
libguestfs: /var/tmp/.guestfs-0/appliance.d:
libguestfs: drwxr-xr-x. root root unconfined_u:object_r:user_tmp_t:s0 .
libguestfs: drwxr-xr-x. root root unconfined_u:object_r:user_tmp_t:s0 ..
libguestfs: -rw-r--r--. qemu qemu system_u:object_r:virt_content_t:s0 initrd
libguestfs: -rwxr-xr-x. qemu qemu system_u:object_r:virt_content_t:s0 kernel
libguestfs: -rw-r--r--. qemu qemu system_u:object_r:virt_content_t:s0 root
libguestfs: command: run: ls
libguestfs: command: run: -a
libguestfs: command: run: -l
libguestfs: command: run: -Z /tmp/libguestfsGVhH0h
libguestfs: drwxr-xr-x. root root unconfined_u:object_r:user_tmp_t:s0 .
libguestfs: drwxrwxrwt. root root system_u:object_r:tmp_t:s0 ..
libguestfs: srw-rw----. root qemu unconfined_u:object_r:user_tmp_t:s0 console.sock
libguestfs: srw-rw----. root qemu unconfined_u:object_r:user_tmp_t:s0 guestfsd.sock
libguestfs: launch libvirt guest
libguestfs: trace: launch = -1 (error)
virt-customize: error: libguestfs error: could not create appliance through
libvirt.
Try running qemu directly without libvirt using this environment variable:
export LIBGUESTFS_BACKEND=direct
Original error from libvirt: internal error: process exited while
connecting to monitor: failed to initialize KVM: Device or resource busy
[code=1 int1=-1]
libguestfs: trace: close
libguestfs: closing guestfs handle 0x17c5870 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: -rf /tmp/libguestfsWcfOGQ
libguestfs: command: run: rm
libguestfs: command: run: -rf /tmp/libguestfsGVhH0h
[stack@localhost ~]$
[stack@localhost ~]$
Why is the virt-customize
command failing?
centos openstack
1
did you run thevirt-customize
command with the-v
option as the error message recommended? if so, copy and paste the output into your question (do not reply in a comment) and format it as code.
â cas
Feb 26 at 7:15
Have you tried runningqemu
directly with the environment variable from the error message?
â dsstorefile1
Feb 26 at 7:17
without further details, I'd guess that the--run-command
option is failing, probably something to do with the way you're piping commands intofdisk
rather than using a scriptable partition table editor likesfdisk
orparted
.
â cas
Feb 26 at 7:18
also, are you certain that/dev/sda
refers to the disk-image (i.e. the qcow2 file) inside the VM when run fromvirt-customize
? Personally, I'd useqemu-nbd
on the host machine and then run fdisk/sfdisk/parted or whatever on the block device it creates on the host.
â cas
Feb 26 at 7:25
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
[stack@localhost ~]$ sudo cp CentOS-7-x86_64-GenericCloud.qcow2 /var/lib/libvirt/images/undercloud.qcow2
[stack@localhost ~]$ sudo qemu-img resize /var/lib/libvirt/images/undercloud.qcow2 +120G
Image resized.
[stack@localhost ~]$
[stack@localhost ~]$
[stack@localhost ~]$ sudo virt-customize -v -x -a /var/lib/libvirt/images/undercloud.qcow2 --run-command 'echo -e "dnnnnnnnwn" | fdisk /dev/sda'
[ 0.0] Examining the guest ...
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: trace: set_network true
libguestfs: trace: set_network = 0
libguestfs: trace: add_drive "/var/lib/libvirt/images/undercloud.qcow2" "readonly:false" "protocol:file" "discard:besteffort"
libguestfs: trace: add_drive = 0
libguestfs: trace: launch
libguestfs: trace: get_tmpdir
libguestfs: trace: get_tmpdir = "/tmp"
libguestfs: trace: version
libguestfs: trace: version = <struct guestfs_version = major: 1, minor: 36, release: 3, extra: rhel=7,release=6.el7_4.3,libvirt, >
libguestfs: trace: get_backend
libguestfs: trace: get_backend = "libvirt"
libguestfs: launch: program=virt-customize
libguestfs: launch: version=1.36.3rhel=7,release=6.el7_4.3,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/libguestfsWcfOGQ
libguestfs: launch: umask=0022
libguestfs: launch: euid=0
libguestfs: libvirt version = 3002000 (3.2.0)
libguestfs: guest random name = guestfs-5jx0vkvril0zvznw
libguestfs: connect to libvirt
libguestfs: opening libvirt handle: URI = qemu:///system, auth = default+wrapper, flags = 0
libguestfs: successfully opened libvirt handle: conn = 0x17c61c0
libguestfs: qemu version (reported by libvirt) = 1005003 (1.5.3)
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.16
supermin: rpm: detected RPM version 4.11
supermin: package handler: fedora/rpm
supermin: acquiring lock on /var/tmp/.guestfs-0/lock
supermin: if-newer: output does not need rebuilding
libguestfs: finished building supermin appliance
libguestfs: trace: disk_create "/tmp/libguestfsWcfOGQ/overlay1" "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/libguestfsWcfOGQ/overlay1
Formatting '/tmp/libguestfsWcfOGQ/overlay1', fmt=qcow2 size=4294967296 backing_file='/var/tmp/.guestfs-0/appliance.d/root' backing_fmt='raw' encryption=off cluster_size=65536 lazy_refcounts=off
libguestfs: trace: disk_create = 0
libguestfs: trace: get_sockdir
libguestfs: trace: get_sockdir = "/tmp"
libguestfs: create libvirt XML
libguestfs: trace: disk_format "/var/lib/libvirt/images/undercloud.qcow2"
libguestfs: command: run: qemu-img
libguestfs: command: run: info
libguestfs: command: run: --output json
libguestfs: command: run: /dev/fd/9
libguestfs: parse_json: qemu-img info JSON output:nn "virtual-size": 137438953472, n "filename": "/dev/fd/9", n "cluster-size": 65536, n "format": "qcow2", n "actual-size": 870076416, n "format-specific": n "type": "qcow2", n "data": n "compat": "0.10"n n , n "dirty-flag": falsennn
libguestfs: trace: disk_format = "qcow2"
libguestfs: trace: get_cachedir
libguestfs: trace: 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-5jx0vkvril0zvznw</name>n <memory unit="MiB">500</memory>n <currentMemory unit="MiB">500</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-0/appliance.d/kernel</kernel>n <initrd>/var/tmp/.guestfs-0/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/sdb selinux=0 guestfs_verbose=1 guestfs_network=1 TERM=xterm-256color</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/lib/libvirt/images/undercloud.qcow2"/>n <target dev="sda" bus="scsi"/>n <driver name="qemu" type="qcow2" cache="writeback" discard="unmap"/>n <address type="drive" controller="0" bus="0" target="0" unit="0"/>n </disk>n <disk type="file" device="disk">n <source file="/tmp/libguestfsWcfOGQ/overlay1"/>n <target dev="sdb" bus="scsi"/>n <driver name="qemu" type="qcow2" cache="unsafe"/>n <address type="drive" controller="0" bus="0" target="1" unit="0"/>n <shareable/>n </disk>n <serial type="unix">n <source mode="connect" path="/tmp/libguestfsGVhH0h/console.sock"/>n <target port="0"/>n </serial>n <channel type="unix">n <source mode="connect" path="/tmp/libguestfsGVhH0h/guestfsd.sock"/>n <target type="virtio" name="org.libguestfs.channel.0"/>n </channel>n <controller type="usb" model="none"/>n <memballoon model="none"/>n </devices>n <qemu:commandline>n <qemu:env name="TMPDIR" value="/var/tmp"/>n <qemu:arg value="-netdev"/>n <qemu:arg value="user,id=usernet,net=169.254.0.0/16"/>n <qemu:arg value="-device"/>n <qemu:arg value="virtio-net-pci,netdev=usernet"/>n </qemu:commandline>n</domain>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 unconfined_u:object_r:user_tmp_t:s0 .
libguestfs: drwxrwxrwt. root root system_u:object_r:tmp_t:s0 ..
libguestfs: drwxr-xr-x. root root unconfined_u:object_r:user_tmp_t:s0 appliance.d
libguestfs: -rw-r--r--. root root unconfined_u:object_r:user_tmp_t:s0 lock
libguestfs:
libguestfs: /var/tmp/.guestfs-0/appliance.d:
libguestfs: drwxr-xr-x. root root unconfined_u:object_r:user_tmp_t:s0 .
libguestfs: drwxr-xr-x. root root unconfined_u:object_r:user_tmp_t:s0 ..
libguestfs: -rw-r--r--. qemu qemu system_u:object_r:virt_content_t:s0 initrd
libguestfs: -rwxr-xr-x. qemu qemu system_u:object_r:virt_content_t:s0 kernel
libguestfs: -rw-r--r--. qemu qemu system_u:object_r:virt_content_t:s0 root
libguestfs: command: run: ls
libguestfs: command: run: -a
libguestfs: command: run: -l
libguestfs: command: run: -Z /tmp/libguestfsGVhH0h
libguestfs: drwxr-xr-x. root root unconfined_u:object_r:user_tmp_t:s0 .
libguestfs: drwxrwxrwt. root root system_u:object_r:tmp_t:s0 ..
libguestfs: srw-rw----. root qemu unconfined_u:object_r:user_tmp_t:s0 console.sock
libguestfs: srw-rw----. root qemu unconfined_u:object_r:user_tmp_t:s0 guestfsd.sock
libguestfs: launch libvirt guest
libguestfs: trace: launch = -1 (error)
virt-customize: error: libguestfs error: could not create appliance through
libvirt.
Try running qemu directly without libvirt using this environment variable:
export LIBGUESTFS_BACKEND=direct
Original error from libvirt: internal error: process exited while
connecting to monitor: failed to initialize KVM: Device or resource busy
[code=1 int1=-1]
libguestfs: trace: close
libguestfs: closing guestfs handle 0x17c5870 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: -rf /tmp/libguestfsWcfOGQ
libguestfs: command: run: rm
libguestfs: command: run: -rf /tmp/libguestfsGVhH0h
[stack@localhost ~]$
[stack@localhost ~]$
Why is the virt-customize
command failing?
centos openstack
[stack@localhost ~]$ sudo cp CentOS-7-x86_64-GenericCloud.qcow2 /var/lib/libvirt/images/undercloud.qcow2
[stack@localhost ~]$ sudo qemu-img resize /var/lib/libvirt/images/undercloud.qcow2 +120G
Image resized.
[stack@localhost ~]$
[stack@localhost ~]$
[stack@localhost ~]$ sudo virt-customize -v -x -a /var/lib/libvirt/images/undercloud.qcow2 --run-command 'echo -e "dnnnnnnnwn" | fdisk /dev/sda'
[ 0.0] Examining the guest ...
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: trace: set_network true
libguestfs: trace: set_network = 0
libguestfs: trace: add_drive "/var/lib/libvirt/images/undercloud.qcow2" "readonly:false" "protocol:file" "discard:besteffort"
libguestfs: trace: add_drive = 0
libguestfs: trace: launch
libguestfs: trace: get_tmpdir
libguestfs: trace: get_tmpdir = "/tmp"
libguestfs: trace: version
libguestfs: trace: version = <struct guestfs_version = major: 1, minor: 36, release: 3, extra: rhel=7,release=6.el7_4.3,libvirt, >
libguestfs: trace: get_backend
libguestfs: trace: get_backend = "libvirt"
libguestfs: launch: program=virt-customize
libguestfs: launch: version=1.36.3rhel=7,release=6.el7_4.3,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/libguestfsWcfOGQ
libguestfs: launch: umask=0022
libguestfs: launch: euid=0
libguestfs: libvirt version = 3002000 (3.2.0)
libguestfs: guest random name = guestfs-5jx0vkvril0zvznw
libguestfs: connect to libvirt
libguestfs: opening libvirt handle: URI = qemu:///system, auth = default+wrapper, flags = 0
libguestfs: successfully opened libvirt handle: conn = 0x17c61c0
libguestfs: qemu version (reported by libvirt) = 1005003 (1.5.3)
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.16
supermin: rpm: detected RPM version 4.11
supermin: package handler: fedora/rpm
supermin: acquiring lock on /var/tmp/.guestfs-0/lock
supermin: if-newer: output does not need rebuilding
libguestfs: finished building supermin appliance
libguestfs: trace: disk_create "/tmp/libguestfsWcfOGQ/overlay1" "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/libguestfsWcfOGQ/overlay1
Formatting '/tmp/libguestfsWcfOGQ/overlay1', fmt=qcow2 size=4294967296 backing_file='/var/tmp/.guestfs-0/appliance.d/root' backing_fmt='raw' encryption=off cluster_size=65536 lazy_refcounts=off
libguestfs: trace: disk_create = 0
libguestfs: trace: get_sockdir
libguestfs: trace: get_sockdir = "/tmp"
libguestfs: create libvirt XML
libguestfs: trace: disk_format "/var/lib/libvirt/images/undercloud.qcow2"
libguestfs: command: run: qemu-img
libguestfs: command: run: info
libguestfs: command: run: --output json
libguestfs: command: run: /dev/fd/9
libguestfs: parse_json: qemu-img info JSON output:nn "virtual-size": 137438953472, n "filename": "/dev/fd/9", n "cluster-size": 65536, n "format": "qcow2", n "actual-size": 870076416, n "format-specific": n "type": "qcow2", n "data": n "compat": "0.10"n n , n "dirty-flag": falsennn
libguestfs: trace: disk_format = "qcow2"
libguestfs: trace: get_cachedir
libguestfs: trace: 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-5jx0vkvril0zvznw</name>n <memory unit="MiB">500</memory>n <currentMemory unit="MiB">500</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-0/appliance.d/kernel</kernel>n <initrd>/var/tmp/.guestfs-0/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/sdb selinux=0 guestfs_verbose=1 guestfs_network=1 TERM=xterm-256color</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/lib/libvirt/images/undercloud.qcow2"/>n <target dev="sda" bus="scsi"/>n <driver name="qemu" type="qcow2" cache="writeback" discard="unmap"/>n <address type="drive" controller="0" bus="0" target="0" unit="0"/>n </disk>n <disk type="file" device="disk">n <source file="/tmp/libguestfsWcfOGQ/overlay1"/>n <target dev="sdb" bus="scsi"/>n <driver name="qemu" type="qcow2" cache="unsafe"/>n <address type="drive" controller="0" bus="0" target="1" unit="0"/>n <shareable/>n </disk>n <serial type="unix">n <source mode="connect" path="/tmp/libguestfsGVhH0h/console.sock"/>n <target port="0"/>n </serial>n <channel type="unix">n <source mode="connect" path="/tmp/libguestfsGVhH0h/guestfsd.sock"/>n <target type="virtio" name="org.libguestfs.channel.0"/>n </channel>n <controller type="usb" model="none"/>n <memballoon model="none"/>n </devices>n <qemu:commandline>n <qemu:env name="TMPDIR" value="/var/tmp"/>n <qemu:arg value="-netdev"/>n <qemu:arg value="user,id=usernet,net=169.254.0.0/16"/>n <qemu:arg value="-device"/>n <qemu:arg value="virtio-net-pci,netdev=usernet"/>n </qemu:commandline>n</domain>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 unconfined_u:object_r:user_tmp_t:s0 .
libguestfs: drwxrwxrwt. root root system_u:object_r:tmp_t:s0 ..
libguestfs: drwxr-xr-x. root root unconfined_u:object_r:user_tmp_t:s0 appliance.d
libguestfs: -rw-r--r--. root root unconfined_u:object_r:user_tmp_t:s0 lock
libguestfs:
libguestfs: /var/tmp/.guestfs-0/appliance.d:
libguestfs: drwxr-xr-x. root root unconfined_u:object_r:user_tmp_t:s0 .
libguestfs: drwxr-xr-x. root root unconfined_u:object_r:user_tmp_t:s0 ..
libguestfs: -rw-r--r--. qemu qemu system_u:object_r:virt_content_t:s0 initrd
libguestfs: -rwxr-xr-x. qemu qemu system_u:object_r:virt_content_t:s0 kernel
libguestfs: -rw-r--r--. qemu qemu system_u:object_r:virt_content_t:s0 root
libguestfs: command: run: ls
libguestfs: command: run: -a
libguestfs: command: run: -l
libguestfs: command: run: -Z /tmp/libguestfsGVhH0h
libguestfs: drwxr-xr-x. root root unconfined_u:object_r:user_tmp_t:s0 .
libguestfs: drwxrwxrwt. root root system_u:object_r:tmp_t:s0 ..
libguestfs: srw-rw----. root qemu unconfined_u:object_r:user_tmp_t:s0 console.sock
libguestfs: srw-rw----. root qemu unconfined_u:object_r:user_tmp_t:s0 guestfsd.sock
libguestfs: launch libvirt guest
libguestfs: trace: launch = -1 (error)
virt-customize: error: libguestfs error: could not create appliance through
libvirt.
Try running qemu directly without libvirt using this environment variable:
export LIBGUESTFS_BACKEND=direct
Original error from libvirt: internal error: process exited while
connecting to monitor: failed to initialize KVM: Device or resource busy
[code=1 int1=-1]
libguestfs: trace: close
libguestfs: closing guestfs handle 0x17c5870 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: -rf /tmp/libguestfsWcfOGQ
libguestfs: command: run: rm
libguestfs: command: run: -rf /tmp/libguestfsGVhH0h
[stack@localhost ~]$
[stack@localhost ~]$
Why is the virt-customize
command failing?
centos openstack
edited Mar 1 at 10:51
Drakonoved
674518
674518
asked Feb 26 at 4:53
Krishna
63
63
1
did you run thevirt-customize
command with the-v
option as the error message recommended? if so, copy and paste the output into your question (do not reply in a comment) and format it as code.
â cas
Feb 26 at 7:15
Have you tried runningqemu
directly with the environment variable from the error message?
â dsstorefile1
Feb 26 at 7:17
without further details, I'd guess that the--run-command
option is failing, probably something to do with the way you're piping commands intofdisk
rather than using a scriptable partition table editor likesfdisk
orparted
.
â cas
Feb 26 at 7:18
also, are you certain that/dev/sda
refers to the disk-image (i.e. the qcow2 file) inside the VM when run fromvirt-customize
? Personally, I'd useqemu-nbd
on the host machine and then run fdisk/sfdisk/parted or whatever on the block device it creates on the host.
â cas
Feb 26 at 7:25
add a comment |Â
1
did you run thevirt-customize
command with the-v
option as the error message recommended? if so, copy and paste the output into your question (do not reply in a comment) and format it as code.
â cas
Feb 26 at 7:15
Have you tried runningqemu
directly with the environment variable from the error message?
â dsstorefile1
Feb 26 at 7:17
without further details, I'd guess that the--run-command
option is failing, probably something to do with the way you're piping commands intofdisk
rather than using a scriptable partition table editor likesfdisk
orparted
.
â cas
Feb 26 at 7:18
also, are you certain that/dev/sda
refers to the disk-image (i.e. the qcow2 file) inside the VM when run fromvirt-customize
? Personally, I'd useqemu-nbd
on the host machine and then run fdisk/sfdisk/parted or whatever on the block device it creates on the host.
â cas
Feb 26 at 7:25
1
1
did you run the
virt-customize
command with the -v
option as the error message recommended? if so, copy and paste the output into your question (do not reply in a comment) and format it as code.â cas
Feb 26 at 7:15
did you run the
virt-customize
command with the -v
option as the error message recommended? if so, copy and paste the output into your question (do not reply in a comment) and format it as code.â cas
Feb 26 at 7:15
Have you tried running
qemu
directly with the environment variable from the error message?â dsstorefile1
Feb 26 at 7:17
Have you tried running
qemu
directly with the environment variable from the error message?â dsstorefile1
Feb 26 at 7:17
without further details, I'd guess that the
--run-command
option is failing, probably something to do with the way you're piping commands into fdisk
rather than using a scriptable partition table editor like sfdisk
or parted
.â cas
Feb 26 at 7:18
without further details, I'd guess that the
--run-command
option is failing, probably something to do with the way you're piping commands into fdisk
rather than using a scriptable partition table editor like sfdisk
or parted
.â cas
Feb 26 at 7:18
also, are you certain that
/dev/sda
refers to the disk-image (i.e. the qcow2 file) inside the VM when run from virt-customize
? Personally, I'd use qemu-nbd
on the host machine and then run fdisk/sfdisk/parted or whatever on the block device it creates on the host.â cas
Feb 26 at 7:25
also, are you certain that
/dev/sda
refers to the disk-image (i.e. the qcow2 file) inside the VM when run from virt-customize
? Personally, I'd use qemu-nbd
on the host machine and then run fdisk/sfdisk/parted or whatever on the block device it creates on the host.â cas
Feb 26 at 7:25
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f426596%2fcustomizing-vm-settings-fails-during-tripleo-installation-in-centos%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
did you run the
virt-customize
command with the-v
option as the error message recommended? if so, copy and paste the output into your question (do not reply in a comment) and format it as code.â cas
Feb 26 at 7:15
Have you tried running
qemu
directly with the environment variable from the error message?â dsstorefile1
Feb 26 at 7:17
without further details, I'd guess that the
--run-command
option is failing, probably something to do with the way you're piping commands intofdisk
rather than using a scriptable partition table editor likesfdisk
orparted
.â cas
Feb 26 at 7:18
also, are you certain that
/dev/sda
refers to the disk-image (i.e. the qcow2 file) inside the VM when run fromvirt-customize
? Personally, I'd useqemu-nbd
on the host machine and then run fdisk/sfdisk/parted or whatever on the block device it creates on the host.â cas
Feb 26 at 7:25