Hello, I have an issue with virt-resize on the newest version of proxmox which is running on debian wheezy. when I run the virt-resize on a windows 2008 qemu image I got an error. Here is the last part of the debug message: Copying /dev/sda1 ... libguestfs: trace: copy_device_to_device "/dev/sda1" "/dev/sdb1" "size:32210026496" 100% ⟦▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒⟧ 00:00 libguestfs: trace: copy_device_to_device = 0 libguestfs: trace: part_set_bootable "/dev/sdb" 1 true libguestfs: trace: part_set_bootable = 0 libguestfs: trace: part_set_mbr_id "/dev/sdb" 1 7 libguestfs: trace: part_set_mbr_id = 0 libguestfs: trace: shutdown libguestfs: trace: internal_autosync libguestfs: trace: internal_autosync = 0 libguestfs: trace: shutdown = 0 libguestfs: trace: close libguestfs: trace: add_drive "vm-2000-disk-1.qcow2.out" "readonly:false" libguestfs: trace: add_drive = 0 libguestfs: trace: launch libguestfs: trace: get_tmpdir libguestfs: trace: get_tmpdir = "/tmp" libguestfs: trace: get_cachedir libguestfs: trace: get_cachedir = "/var/tmp" 100% ⟦▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒⟧ 00:00 libguestfs: trace: launch = 0 Expanding /dev/sda1 using the 'ntfsresize' method ... libguestfs: trace: ntfsresize "/dev/sda1" "force:false" libguestfs: trace: ntfsresize = -1 (error) Fatal error: exception Guestfs.Error("ntfsresize: /dev/sda1: ") libguestfs: trace: close libguestfs: trace: internal_autosync libguestfs: trace: internal_autosync = 0
On Tue, Jul 01, 2014 at 05:17:04PM +0300, Keresztes Péter-Zoltán wrote:
Hello,
I have an issue with virt-resize on the newest version of proxmox which is running on debian wheezy. when I run the virt-resize on a windows 2008 qemu image I got an error. Here is the last part of the debug message:
Copying /dev/sda1 ... libguestfs: trace: copy_device_to_device "/dev/sda1" "/dev/sdb1" "size:32210026496" 100% ⟦▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒⟧ 00:00 libguestfs: trace: copy_device_to_device = 0 libguestfs: trace: part_set_bootable "/dev/sdb" 1 true libguestfs: trace: part_set_bootable = 0 libguestfs: trace: part_set_mbr_id "/dev/sdb" 1 7 libguestfs: trace: part_set_mbr_id = 0 libguestfs: trace: shutdown libguestfs: trace: internal_autosync libguestfs: trace: internal_autosync = 0 libguestfs: trace: shutdown = 0 libguestfs: trace: close libguestfs: trace: add_drive "vm-2000-disk-1.qcow2.out" "readonly:false" libguestfs: trace: add_drive = 0 libguestfs: trace: launch libguestfs: trace: get_tmpdir libguestfs: trace: get_tmpdir = "/tmp" libguestfs: trace: get_cachedir libguestfs: trace: get_cachedir = "/var/tmp" 100% ⟦▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒⟧ 00:00 libguestfs: trace: launch = 0 Expanding /dev/sda1 using the 'ntfsresize' method ... libguestfs: trace: ntfsresize "/dev/sda1" "force:false" libguestfs: trace: ntfsresize = -1 (error) Fatal error: exception Guestfs.Error("ntfsresize: /dev/sda1: ")
The `ntfsresize' tool is broken somehow, or it is possible that the underlying first partition on the disk is broken. Unfortunately the error message got truncated somehow. To find out more, set the following environment variable before running virt-resize: export LIBGUESTFS_DEBUG=1 This will display the complete output from ntfsresize, to stdout & stderr, and should hopefully give you more information. Another thing you can try is: virt-rescue --ro -a vm-2000-disk-1.qcow2.out
<fs> ntfsresize --check /dev/sda1
Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v
Unfortunately I cannot use the latest version of libguestfs therefore I am stuck with the 1.20 since the newest versions need augeas 1.0.0 where debian wheezy has only 0.7 in it’s repository. But I will try to compile the ocaml 4.01 and see what is the result. Keresztes Péter-Zoltán zozo@z0z0.tk I haven’t lost my mind, I know exactly where I left it. On 01 Jul 2014, at 18:19, Richard W.M. Jones <rjones@redhat.com> wrote:
On Tue, Jul 01, 2014 at 05:17:04PM +0300, Keresztes Péter-Zoltán wrote:
Hello,
I have an issue with virt-resize on the newest version of proxmox which is running on debian wheezy. when I run the virt-resize on a windows 2008 qemu image I got an error. Here is the last part of the debug message:
Copying /dev/sda1 ... libguestfs: trace: copy_device_to_device "/dev/sda1" "/dev/sdb1" "size:32210026496" 100% ⟦▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒⟧ 00:00 libguestfs: trace: copy_device_to_device = 0 libguestfs: trace: part_set_bootable "/dev/sdb" 1 true libguestfs: trace: part_set_bootable = 0 libguestfs: trace: part_set_mbr_id "/dev/sdb" 1 7 libguestfs: trace: part_set_mbr_id = 0 libguestfs: trace: shutdown libguestfs: trace: internal_autosync libguestfs: trace: internal_autosync = 0 libguestfs: trace: shutdown = 0 libguestfs: trace: close libguestfs: trace: add_drive "vm-2000-disk-1.qcow2.out" "readonly:false" libguestfs: trace: add_drive = 0 libguestfs: trace: launch libguestfs: trace: get_tmpdir libguestfs: trace: get_tmpdir = "/tmp" libguestfs: trace: get_cachedir libguestfs: trace: get_cachedir = "/var/tmp" 100% ⟦▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒⟧ 00:00 libguestfs: trace: launch = 0 Expanding /dev/sda1 using the 'ntfsresize' method ... libguestfs: trace: ntfsresize "/dev/sda1" "force:false" libguestfs: trace: ntfsresize = -1 (error) Fatal error: exception Guestfs.Error("ntfsresize: /dev/sda1: ")
The `ntfsresize' tool is broken somehow, or it is possible that the underlying first partition on the disk is broken. Unfortunately the error message got truncated somehow.
To find out more, set the following environment variable before running virt-resize:
export LIBGUESTFS_DEBUG=1
This will display the complete output from ntfsresize, to stdout & stderr, and should hopefully give you more information.
Another thing you can try is:
virt-rescue --ro -a vm-2000-disk-1.qcow2.out
<fs> ntfsresize --check /dev/sda1
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v
On Tue, Jul 01, 2014 at 07:01:43PM +0300, Keresztes Péter-Zoltán wrote:
Unfortunately I cannot use the latest version of libguestfs therefore I am stuck with the 1.20 since the newest versions need augeas 1.0.0 where debian wheezy has only 0.7 in it’s repository. But I will try to compile the ocaml 4.01 and see what is the result.
You shouldn't need to compile or upgrade anything. The commands below will work with the 1.20 version.
The `ntfsresize' tool is broken somehow, or it is possible that the underlying first partition on the disk is broken. Unfortunately the error message got truncated somehow.
To find out more, set the following environment variable before running virt-resize:
export LIBGUESTFS_DEBUG=1
This will display the complete output from ntfsresize, to stdout & stderr, and should hopefully give you more information.
Another thing you can try is:
virt-rescue --ro -a vm-2000-disk-1.qcow2.out
<fs> ntfsresize --check /dev/sda1
Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html
Hello, here is another test with debug on 1 verbose daemon enabled linux commmand line: panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm-256color udevadm settle libguestfs: recv_from_daemon: received GUESTFS_LAUNCH_FLAG 100% ⟦▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒⟧ 00:00 libguestfs: trace: launch = 0 Expanding /dev/sda1 using the 'ntfsresize' method ... libguestfs: trace: ntfsresize "/dev/sda1" "force:false" libguestfs: send_to_daemon: 72 bytes: 00 00 00 44 | 20 00 f5 f5 | 00 00 00 04 | 00 00 01 20 | 00 00 00 00 | ... guestfsd: main_loop: new request, len 0x44 ntfsresize -P /dev/sda1 guestfsd: error: /dev/sda1: guestfsd:libguestfs: recv_from_daemon: 60 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 01 20 | 00 00 00 01 | 00 12 34 00 | ... libguestfs: trace: ntfsresize = -1 (error) Fatal error: exception Guestfs.Error("ntfsresize: /dev/sda1: ") libguestfs: trace: close Keresztes Péter-Zoltán zozo@z0z0.tk I haven’t lost my mind, I know exactly where I left it. On 01 Jul 2014, at 18:19, Richard W.M. Jones <rjones@redhat.com> wrote:
LIBGUESTFS_DEBUG
On Tue, Jul 01, 2014 at 08:28:25PM +0300, Keresztes Péter-Zoltán wrote:
ntfsresize -P /dev/sda1 guestfsd: error: /dev/sda1:
ntfsresize doesn't print anything :-( Next thing to do is to try the ntfsresize command inside virt-rescue --ro. Especially try the various "check" features (ntfsresize -c and others, see the man page). Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v
participants (2)
-
Keresztes Péter-Zoltán -
Richard W.M. Jones