[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] guestmount issues with --live, but guestfish works just fine



It would appear that running with F16 Host and F16 VM the result was
similar to running F15 Host and F16 VM. 

[root longitude ~]# rpm -qa | grep guest
libguestfs-tools-c-1.12.7-2.fc16.1.x86_64
guestfish-1.12.7-2.fc16.1.x86_64
libguestfs-devel-1.12.7-2.fc16.1.x86_64
libguestfs-tools-1.12.7-2.fc16.1.x86_64
libguestfs-1.12.7-2.fc16.1.x86_64
libguestfs-mount-1.12.7-2.fc16.1.x86_64
[root longitude ~]# virt-filesystems -d F16-rawhide
/dev/sda2
/dev/sda3
[root longitude ~]# guestmount --live -d F16-rawhide -m /dev/sda3:/
/mnt/guest/
libguestfs: error: mount_options: /dev/vda3 on /: mount: /dev/vda3
already mounted or / busy
mount: according to mtab, /dev/vda3 is already mounted on /
libguestfs: error: part_to_dev: part_to_dev_stub: /dev/vda3: device not
found
libguestfs: error: check_for_daemon_cancellation_or_eof: read 0x34 from
daemon, expected 0xffffeeee

guestmount: '/dev/sda3' could not be mounted.  Did you mean one of
these?
        /dev/vda1 (unknown)
        /dev/vda2 (unknown)
        /dev/vda3 (unknown)
        /dev/vda4 (unknown)
libguestfs: error: check_for_daemon_cancellation_or_eof: read 0x0 from
daemon, expected 0xffffeeee

[root longitude ~]# guestmount --live -d F16-rawhide -m /dev/vda3:/
/mnt/guest/
libguestfs: error: mount_options: mount_options_stub: /dev/vda3: device
not found
libguestfs: error: check_for_daemon_cancellation_or_eof: read 0xa8 from
daemon, expected 0xffffeeee

libguestfs: error: check_for_daemon_cancellation_or_eof: read 0x2000f5f5
from daemon, expected 0xffffeeee

[root longitude ~]# guestmount --live -d F16-rawhide -m /dev/vda3:/ -x
/mnt/guest/
libguestfs: trace: set_recovery_proc true
libguestfs: trace: set_recovery_proc = 0
libguestfs: trace: add_domain "F16-rawhide" "live:true" "allowuuid:true"
libguestfs: trace: set_attach_method
"unix:/var/lib/libvirt/qemu/F16-rawhide.libguestfs"
libguestfs: trace: set_attach_method = 0
libguestfs: trace: add_domain = 0
libguestfs: trace: launch
libguestfs: trace: launch = 0
libguestfs: trace: mount_options "" "/dev/vda3" "/"
libguestfs: trace: mount_options = -1 (error)
libguestfs: error: mount_options: mount_options_stub: /dev/vda3: device
not found
libguestfs: trace: list_filesystems
libguestfs: trace: list_devices
libguestfs: error: check_for_daemon_cancellation_or_eof: read 0xa8 from
daemon, expected 0xffffeeee

libguestfs: trace: list_devices = NULL (error)
libguestfs: trace: list_filesystems = NULL (error)
libguestfs: trace: close
libguestfs: trace: internal_autosync
libguestfs: error: check_for_daemon_cancellation_or_eof: read 0x2000f5f5
from daemon, expected 0xffffeeee

libguestfs: trace: internal_autosync = -1 (error)
libguestfs: trace: kill_subprocess
libguestfs: trace: kill_subprocess = 0
[root longitude ~]# guestmount --live -d F16-rawhide -m /dev/vda3:/ -v
/mnt/guest/
libguestfs: [00000ms] connecting to
/var/lib/libvirt/qemu/F16-rawhide.libguestfs
libguestfs: recv_from_daemon: received GUESTFS_LAUNCH_FLAG
libguestfs: [00001ms] connected
libguestfs: send_to_daemon: 72 bytes: 00 00 00 44 | 20 00 f5 f5 | 00 00
00 04 | 00 00 00 4a | 00 00 00 00 | ...
libguestfs: recv_from_daemon: 96 bytes: 20 00 f5 f5 | 00 00 00 04 | 00
00 00 4a | 00 00 00 01 | 00 12 34 00 | ...
libguestfs: error: mount_options: mount_options_stub: /dev/vda3: device
not found
libguestfs: send_to_daemon: 44 bytes: 00 00 00 28 | 20 00 f5 f5 | 00 00
00 04 | 00 00 00 07 | 00 00 00 00 | ...
libguestfs: check_for_daemon_cancellation_or_eof: 00 00 00 a8 | 
libguestfs: error: check_for_daemon_cancellation_or_eof: read 0xa8 from
daemon, expected 0xffffeeee

libguestfs: closing guestfs handle 0x25d87c0 (state 2)
libguestfs: send_to_daemon: 44 bytes: 00 00 00 28 | 20 00 f5 f5 | 00 00
00 04 | 00 00 01 1a | 00 00 00 00 | ...
libguestfs: check_for_daemon_cancellation_or_eof: 20 00 f5 f5 | 
libguestfs: error: check_for_daemon_cancellation_or_eof: read 0x2000f5f5
from daemon, expected 0xffffeeee

libguestfs: sending SIGTERM to process 0


I looked through the code in fuse/guestmount.c and nuked the if check
for --live and -i together just for kicks and got the following:

[root longitude fuse]# /tmp/libguestfs-1.12.7/fuse/guestmount --live -d
F16-rawhide -i /mnt/guest/
libguestfs: error: vfs_type: vfs_type_stub: /dev/vda3: device not found
libguestfs: error: unexpected serial (1192963/1192964)
libguestfs: error: unexpected procedure number (198/47)
libguestfs: error: unexpected procedure number (47/282)
[root longitude fuse]# /tmp/libguestfs-1.12.7/fuse/guestmount --live -d
F16-rawhide -i -x /mnt/guest/
libguestfs: trace: set_recovery_proc true
libguestfs: trace: set_recovery_proc = 0
libguestfs: trace: add_domain "F16-rawhide" "live:true" "allowuuid:true"
libguestfs: trace: set_attach_method
"unix:/var/lib/libvirt/qemu/F16-rawhide.libguestfs"
libguestfs: trace: set_attach_method = 0
libguestfs: trace: add_domain = 0
libguestfs: trace: launch
libguestfs: error: guestfs_launch failed, unexpected initial message
from guestfsd
libguestfs: trace: launch = -1 (error)
libguestfs: trace: close
libguestfs: trace: kill_subprocess
libguestfs: trace: kill_subprocess = 0
[root longitude fuse]# /tmp/libguestfs-1.12.7/fuse/guestmount --live -d
F16-rawhide -i -v /mnt/guest/
libguestfs: [00000ms] connecting to
/var/lib/libvirt/qemu/F16-rawhide.libguestfs
libguestfs: recv_from_daemon: received GUESTFS_LAUNCH_FLAG
libguestfs: [00001ms] connected
libguestfs: send_to_daemon: 44 bytes: 00 00 00 28 | 20 00 f5 f5 | 00 00
00 04 | 00 00 00 08 | 00 00 00 00 | ...
libguestfs: recv_from_daemon: 108 bytes: 20 00 f5 f5 | 00 00 00 04 | 00
00 00 08 | 00 00 00 01 | 00 12 34 00 | ...
libguestfs: send_to_daemon: 60 bytes: 00 00 00 38 | 20 00 f5 f5 | 00 00
00 04 | 00 00 00 c6 | 00 00 00 00 | ...
libguestfs: recv_from_daemon: 44 bytes: 20 00 f5 f5 | 00 00 00 04 | 00
00 00 c6 | 00 00 00 01 | 00 12 34 01 | ...
libguestfs: send_to_daemon: 60 bytes: 00 00 00 38 | 20 00 f5 f5 | 00 00
00 04 | 00 00 00 c6 | 00 00 00 00 | ...
libguestfs: recv_from_daemon: 48 bytes: 20 00 f5 f5 | 00 00 00 04 | 00
00 00 c6 | 00 00 00 01 | 00 12 34 02 | ...
libguestfs: send_to_daemon: 60 bytes: 00 00 00 38 | 20 00 f5 f5 | 00 00
00 04 | 00 00 00 c6 | 00 00 00 00 | ...
libguestfs: recv_from_daemon: 92 bytes: 20 00 f5 f5 | 00 00 00 04 | 00
00 00 c6 | 00 00 00 01 | 00 12 34 03 | ...
libguestfs: error: vfs_type: vfs_type_stub: /dev/vda3: device not found
libguestfs: send_to_daemon: 60 bytes: 00 00 00 38 | 20 00 f5 f5 | 00 00
00 04 | 00 00 00 c6 | 00 00 00 00 | ...
libguestfs: check_for_daemon_cancellation_or_eof: 00 00 00 30 | 
libguestfs: error: check_for_daemon_cancellation_or_eof: read 0x30 from
daemon, expected 0xffffeeee

libguestfs: send_to_daemon: 44 bytes: 00 00 00 28 | 20 00 f5 f5 | 00 00
00 04 | 00 00 00 2f | 00 00 00 00 | ...
libguestfs: check_for_daemon_cancellation_or_eof: 20 00 f5 f5 | 
libguestfs: error: check_for_daemon_cancellation_or_eof: read 0x2000f5f5
from daemon, expected 0xffffeeee

libguestfs: closing guestfs handle 0x1f81780 (state 2)
libguestfs: send_to_daemon: 44 bytes: 00 00 00 28 | 20 00 f5 f5 | 00 00
00 04 | 00 00 01 1a | 00 00 00 00 | ...
libguestfs: check_for_daemon_cancellation_or_eof: 00 00 00 04 | 
libguestfs: error: check_for_daemon_cancellation_or_eof: read 0x4 from
daemon, expected 0xffffeeee

libguestfs: sending SIGTERM to process 0


If there's anything else I can try please let me know or if there's any
more information that might be helpful I'd happily provide it.


Many thanks,
-AdamM


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]