RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1079182 - virt-df cannot report used disk space of windows guest when updated to 6.5
Summary: virt-df cannot report used disk space of windows guest when updated to 6.5
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libguestfs
Version: 6.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Pino Toscano
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-21 07:33 UTC by xingxing
Modified: 2015-02-15 07:09 UTC (History)
9 users (show)

Fixed In Version: libguestfs-1.20.11-4.el6
Doc Type: Bug Fix
Doc Text:
Cause: libguestfs was skipping partitions with type 0x42 (Windows LDM volumes) when LDM is not available. Consequence: Simple LDM volumes (mountable as single partition) would be ignored. Fix: Do not skip the partition detection if LDM is missing. Result: Simple LDM volumes might possibly be recognized and mounted as plain NTFS partitions.
Clone Of:
Environment:
Last Closed: 2014-10-14 06:35:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1458 0 normal SHIPPED_LIVE libguestfs bug fix update 2014-10-14 01:10:57 UTC

Description xingxing 2014-03-21 07:33:27 UTC
Description of problem:
Attach two qcow2 disk with virtio driver to a windows guest os,
vda mounted on C: and vdb mounted on D: ,
after upgrade from 6.4 to 6.5, using virt-df :
#virt-df -a /disk/win2003.vdb
cannot report the used space of vdb
but vda(which with OS installed on it) is right.

~]# rpm -qa|grep libguestfs
libguestfs-tools-c-1.20.11-2.el6.x86_64
libguestfs-1.20.11-2.el6.x86_64
libguestfs-winsupport-1.0-7.el6.x86_64
libguestfs-tools-1.20.11-2.el6.x86_64

downgrade libguestfs to 1.16 fix this problem.
]# rpm -qa|grep libguestfs
libguestfs-winsupport-1.0-7.el6.x86_64
libguestfs-tools-1.16.34-2.el6.x86_64
libguestfs-1.16.34-2.el6.x86_64
libguestfs-tools-c-1.16.34-2.el6.x86_64


Version-Release number of selected component (if applicable):
libguestfs-tools-c-1.20.11-2.el6.x86_64
libguestfs-1.20.11-2.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. install a windows guest with two virtio disks
2. mount vdb as D: and write data to it.
3. virt-df -a /path/to/guest-vdb

Actual results:
nothing

Expected results:
the disk space usage

Additional info:

Comment 2 Richard W.M. Jones 2014-03-21 09:08:57 UTC
Can you run this with all debugging enabled and attach the
full, unedited output.

export LIBGUESTFS_DEBUG=1
export LIBGUESTFS_TRACE=1
virt-df -a /disk/win2003.vdb |& tee /tmp/debug.txt

Comment 3 Richard W.M. Jones 2014-03-21 10:32:33 UTC
At the moment it's working for me:

$ virt-df -a win2003.img 
Filesystem                           1K-blocks       Used  Available  Use%
win2003.img:/dev/sda1                  6281380    3405532    2875848   55%
$ rpm -q libguestfs-tools-c libguestfs-winsupport
libguestfs-tools-c-1.20.11-2.el6.x86_64
libguestfs-winsupport-1.0-7.el6.x86_64

I need to see the debug output to work out why it's not working
on your machine.

Comment 4 xingxing 2014-03-21 14:09:56 UTC
(In reply to Richard W.M. Jones from comment #3)

note that this guest has two disks:
[root@c1 ~]# virsh domblklist cho2014030200036
Target     Source
------------------------------------------------
vda        /chost/guest/disk/cho2014030200036.root.20140319015740
vdb        /chost/guest/disk/cho2014030200036.data.20140319015740
hdc        -

[root@c1 ~]# virt-df -a /chost/guest/disk/cho2014030200036.root.20140319015740
Filesystem                           1K-blocks       Used  Available  Use%
cho2014030200036.root.20140319015740:/dev/sda1
                                      15719568    8319140    7400428   53%
[root@c1 ~]# virt-df -a /chost/guest/disk/cho2014030200036.data.20140319015740
Filesystem                           1K-blocks       Used  Available  Use%
(nothing here)

and the debug message:
[root@c1 ~]# export LIBGUESTFS_DEBUG=1
[root@c1 ~]# export LIBGUESTFS_TRACE=1
[root@c1 ~]# virt-df -a /chost/guest/disk/cho2014030200036.data.20140319015740 |& tee debug.txt
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: create: flags = 0, handle = 0x2525d50
libguestfs: trace: add_drive "/chost/guest/disk/cho2014030200036.data.20140319015740" "readonly:true"
libguestfs: trace: add_drive = 0
libguestfs: trace: launch
libguestfs: trace: get_tmpdir
libguestfs: trace: get_tmpdir = "/tmp"
libguestfs: launch: attach-method=appliance
libguestfs: launch: tmpdir=/tmp/libguestfsBFZu2i
libguestfs: launch: umask=0022
libguestfs: launch: euid=0
libguestfs: command: run: febootstrap-supermin-helper
libguestfs: command: run: \ --verbose
libguestfs: command: run: \ -f checksum
libguestfs: command: run: \ /usr/lib64/guestfs/supermin.d
libguestfs: command: run: \ x86_64
supermin helper [00000ms] whitelist = (not specified), host_cpu = x86_64, kernel = (null), initrd = (null), appliance = (null)
supermin helper [00000ms] inputs[0] = /usr/lib64/guestfs/supermin.d
checking modpath /lib/modules/2.6.32-279.el6.x86_64 is a directory
picked vmlinuz-2.6.32-279.el6.x86_64 because modpath /lib/modules/2.6.32-279.el6.x86_64 exists
checking modpath /lib/modules/2.6.32-431.1.2.0.1.el6.x86_64 is a directory
picked vmlinuz-2.6.32-431.1.2.0.1.el6.x86_64 because modpath /lib/modules/2.6.32-431.1.2.0.1.el6.x86_64 exists
supermin helper [00000ms] finished creating kernel
supermin helper [00000ms] visiting /usr/lib64/guestfs/supermin.d
supermin helper [00000ms] visiting /usr/lib64/guestfs/supermin.d/base.img
supermin helper [00000ms] visiting /usr/lib64/guestfs/supermin.d/daemon.img
supermin helper [00000ms] visiting /usr/lib64/guestfs/supermin.d/hostfiles
supermin helper [00015ms] visiting /usr/lib64/guestfs/supermin.d/init.img
supermin helper [00015ms] visiting /usr/lib64/guestfs/supermin.d/ntfs.hostfiles
supermin helper [00015ms] visiting /usr/lib64/guestfs/supermin.d/ntfs.img
supermin helper [00015ms] visiting /usr/lib64/guestfs/supermin.d/udev-rules.img
supermin helper [00015ms] adding kernel modules
supermin helper [00041ms] finished creating appliance
libguestfs: checksum of existing appliance: c5e3d6a1479ad2b7ce3bd0dfcf725a503b9a364392ffe65648893cb637077b62
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
libguestfs: [00043ms] begin testing qemu features
libguestfs: command: run: /usr/libexec/qemu-kvm
libguestfs: command: run: \ -nographic
libguestfs: command: run: \ -help
libguestfs: command: run: /usr/libexec/qemu-kvm
libguestfs: command: run: \ -nographic
libguestfs: command: run: \ -version
libguestfs: qemu version 0.12
libguestfs: command: run: /usr/libexec/qemu-kvm
libguestfs: command: run: \ -nographic
libguestfs: command: run: \ -machine accel=kvm:tcg
libguestfs: command: run: \ -device ?
libguestfs: [00214ms] finished testing qemu features
libguestfs: accept_from_daemon: 0x2525d50 g->state = 1
[00215ms] /usr/libexec/qemu-kvm \
    -global virtio-blk-pci.scsi=off \
    -nodefconfig \
    -nodefaults \
    -nographic \
    -machine accel=kvm:tcg \
    -cpu host,+kvmclock \
    -m 500 \
    -no-reboot \
    -kernel /var/tmp/.guestfs-0/kernel.23367 \
    -initrd /var/tmp/.guestfs-0/initrd.23367 \
    -device virtio-scsi-pci,id=scsi \
    -drive file=/chost/guest/disk/cho2014030200036.data.20140319015740,snapshot=on,id=hd0,if=none \
    -device scsi-hd,drive=hd0 \
    -drive file=/var/tmp/.guestfs-0/root.23367,snapshot=on,id=appliance,if=none,cache=unsafe \
    -device scsi-hd,drive=appliance \
    -device virtio-serial \
    -serial stdio \
    -device sga \
    -chardev socket,path=/tmp/libguestfsBFZu2i/guestfsd.sock,id=channel0 \
    -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \
    -append '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'
\x1b[1;256r\x1b[256;256H\x1b[6n
Google, Inc.
Serial Graphics Adapter 12/07/11
SGABIOS $Id: sgabios.S 8 2010-04-22 00:03:40Z nlaredo $ (mockbuild.centos.org) Wed Dec  7 17:04:47 UTC 2011
Term: 80x24
4 0
SeaBIOS (version seabios-0.6.1.2-28.el6)
Probing EDD (edd=off to disable)... ok
\x1b[2JInitializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.32-431.1.2.0.1.el6.x86_64 (mockbuild.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Fri Dec 13 13:06:13 UTC 2013
Command 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
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  Centaur CentaurHauls
Disabled fast string operations
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009d800 (usable)
 BIOS-e820: 000000000009d800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000001f3fd000 (usable)
 BIOS-e820: 000000001f3fd000 - 000000001f400000 (reserved)
 BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
DMI 2.4 present.
SMBIOS version 2.4 @ 0xFDA40
Hypervisor detected: KVM
last_pfn = 0x1f3fd max_arch_pfn = 0x400000000
x86 PAT enabled: cpu 0, old 0x70106, new 0x7010600070106
init_memory_mapping: 0000000000000000-000000001f3fd000
RAMDISK: 1f1a3000 - 1f3efa00
No NUMA configuration found
Faking a node at 0000000000000000-000000001f3fd000
Bootmem setup node 0 0000000000000000-000000001f3fd000
  NODE_DATA [0000000000009000 - 000000000003cfff]
  bootmap [000000000003d000 -  0000000000040e7f] pages 4
(7 early reservations) ==> bootmem [0000000000 - 001f3fd000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
  #2 [0001000000 - 000201faa4]    TEXT DATA BSS ==> [0001000000 - 000201faa4]
  #3 [001f1a3000 - 001f3efa00]          RAMDISK ==> [001f1a3000 - 001f3efa00]
  #4 [000009d800 - 0000100000]    BIOS reserved ==> [000009d800 - 0000100000]
  #5 [0002020000 - 0002020059]              BRK ==> [0002020000 - 0002020059]
  #6 [0000008000 - 0000009000]          PGTABLE ==> [0000008000 - 0000009000]
found SMP MP-table at [ffff8800000fda60] fda60
kvm-clock: Using msrs 4b564d01 and 4b564d00
kvm-clock: cpu 0, msr 0:1c247c1, boot clock
Zone PFN ranges:
  DMA      0x00000001 -> 0x00001000
  DMA32    0x00001000 -> 0x00100000
  Normal   0x00100000 -> 0x00100000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000001 -> 0x0000009d
    0: 0x00000100 -> 0x0001f3fd
SFI: Simple Firmware Interface v0.7 http://simplefirmware.org
Intel MultiProcessor Specification v1.4
MPTABLE: OEM ID: BOCHSCPU
MPTABLE: Product ID: 0.1
MPTABLE: APIC at: 0xFEE00000
Processor #0 (Bootup-CPU)
I/O APIC #0 Version 17 at 0xFEC00000.
IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23
Processors: 1
SMP: Allowing 1 CPUs, 0 hotplug CPUs
PM: Registered nosave memory: 000000000009d000 - 000000000009e000
PM: Registered nosave memory: 000000000009e000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 1f400000 (gap: 1f400000:e0bbc000)
Booting paravirtualized kernel on KVM
NR_CPUS:4096 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Embedded 31 pages/cpu @ffff880002200000 s94872 r8192 d23912 u2097152
pcpu-alloc: s94872 r8192 d23912 u2097152 alloc=1*2097152
pcpu-alloc: [0] 0
kvm-clock: cpu 0, msr 0:22167c1, primary cpu clock
kvm-stealtime: cpu 0, msr 220e880
Built 1 zonelists in Node order, mobility grouping on.  Total pages: 126045
Policy zone: DMA32
Kernel command 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
[    0.000000] Disabling memory control group subsystem
[    0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
[    0.000000] Checking aperture...
[    0.000000] No AGP bridge found
[    0.000000] Memory: 483916k/511988k available (5325k kernel code, 400k absent, 27672k reserved, 7013k data, 1276k init)
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:33024 nr_irqs:256
[    0.000000] Console: colour dummy device 80x25
[    0.000000] console [ttyS0] enabled
[    0.000000] Detected 2659.998 MHz processor.
[    0.001999] Calibrating delay loop (skipped) preset value.. 5319.99 BogoMIPS (lpj=2659998)
[    0.002303] pid_max: default: 32768 minimum: 301
[    0.003179] Security Framework initialized
[    0.003653] SELinux:  Disabled at boot.
[    0.004485] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.005180] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
[    0.006090] Mount-cache hash table entries: 256
[    0.007532] Initializing cgroup subsys ns
[    0.008010] Initializing cgroup subsys cpuacct
[    0.008496] Initializing cgroup subsys memory
[    0.009021] Initializing cgroup subsys devices
[    0.009517] Initializing cgroup subsys freezer
[    0.010006] Initializing cgroup subsys net_cls
[    0.010507] Initializing cgroup subsys blkio
[    0.011013] Initializing cgroup subsys perf_event
[    0.011526] Initializing cgroup subsys net_prio
[    0.012116] Disabled fast string operations
[    0.013352] mce: CPU supports 10 MCE banks
[    0.013909] alternatives: switching to unfair spinlock
[    0.017940] SMP alternatives: switching to UP code
[    0.036011] Freeing SMP alternatives: 36k freed
[    0.036579] ftrace: converting mcount calls to 0f 1f 44 00 00
[    0.037005] ftrace: allocating 21769 entries in 86 pages
[    0.040496] Enabling x2apic
[    0.040924] Enabled x2apic
[    0.041003] APIC routing finalized to physical x2apic.
[    0.044526] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[    0.044999] CPU0: Intel(R) Xeon(R) CPU           E5640  @ 2.67GHz stepping 02
[    0.147959] Performance Events: 16-deep LBR, Westmere events, Intel PMU driver.
[    0.147985] CPUID marked event: 'bus cycles' unavailable
[    0.147991] ... version:                2
[    0.148309] ... bit width:              48
[    0.148633] ... generic registers:      4
[    0.148987] ... value mask:             0000ffffffffffff
[    0.149414] ... max period:             000000007fffffff
[    0.149987] ... fixed-purpose events:   3
[    0.150318] ... event mask:             000000070000000f
[    0.151444] NMI watchdog enabled, takes one hw-pmu counter.
[    0.152010] Brought up 1 CPUs
[    0.152267] Total of 1 processors activated (5319.99 BogoMIPS).
[    0.153613] devtmpfs: initialized
[    0.156865] regulator: core version 0.5
[    0.157040] NET: Registered protocol family 16
[    0.158610] PCI: Using configuration type 1 for base access
[    0.159769] bio: create slab <bio-0> at 0
[    0.160082] ACPI: Interpreter disabled.
[    0.160452] vgaarb: loaded
[    0.161463] SCSI subsystem initialized
[    0.161881] usbcore: registered new interface driver usbfs
[    0.162000] usbcore: registered new interface driver hub
[    0.162495] usbcore: registered new device driver usb
[    0.163055] PCI: Probing PCI hardware
[    0.163402] PCI host bridge to bus 0000:00
[    0.163987] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    0.164522] pci_bus 0000:00: root bus resource [mem 0x00000000-0xffffffffff]
[    0.166341] pci 0000:00:01.3: quirk: [io  0xb000-0xb03f] claimed by PIIX4 ACPI
[    0.166965] pci 0000:00:01.3: quirk: [io  0xb100-0xb10f] claimed by PIIX4 SMB
[    0.168825] pci 0000:00:01.0: PIIX/ICH IRQ router [8086:7000]
[    0.169077] lo: Dropping TSO features since no CSUM feature.
[    0.170003] NetLabel: Initializing
[    0.170312] NetLabel:  domain hash size = 128
[    0.170681] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.170999] NetLabel:  unlabeled traffic allowed by default
[    0.171728] Switching to clocksource kvm-clock
[    0.184486] pnp: PnP ACPI: disabled
[    0.185349] NET: Registered protocol family 2
[    0.186052] IP route cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.187572] TCP established hash table entries: 16384 (order: 6, 262144 bytes)
[    0.188638] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[    0.189590] TCP: Hash tables configured (established 16384 bind 16384)
[    0.190465] TCP reno registered
[    0.190952] NET: Registered protocol family 1
[    0.191602] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[    0.192491] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[    0.193291] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[    0.194091] Trying to unpack rootfs image as initramfs...
[    0.196943] Freeing initrd memory: 2354k freed
[    0.197926] platform rtc_cmos: registered platform RTC device (no PNP device found)
[    0.199432] audit: initializing netlink socket (disabled)
[    0.200159] type=2000 audit(1395410891.199:1): initialized
[    0.212728] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    0.214344] VFS: Disk quotas dquot_6.5.2
[    0.214957] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.215924] msgmni has been set to 949
[    0.216656] alg: No test for stdrng (krng)
[    0.217039] ksign: Installing public key data
[    0.217402] Loading keyring
[    0.217702] - Added public key CE7CD867C43A37F8
[    0.218160] - User ID: CentOS (Kernel Module GPG key)
[    0.218765] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.219458] io scheduler noop registered
[    0.219817] io scheduler anticipatory registered
[    0.220299] io scheduler deadline registered
[    0.220796] io scheduler cfq registered (default)
[    0.221352] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[    0.221913] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[    0.222509] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[    0.223158] ipmi message handler version 39.2
[    0.223572] IPMI System Interface driver.
[    0.223942] ipmi_si: Adding default-specified kcs state machine
[    0.224513] ipmi_si: Trying default-specified kcs state machine at i/o address 0xca2, slave address 0x0, irq 0
[    0.225412] ipmi_si: Interface detection failed
[    0.225951] ipmi_si: Adding default-specified smic state machine
[    0.226517] ipmi_si: Trying default-specified smic state machine at i/o address 0xca9, slave address 0x0, irq 0
[    0.227379] ipmi_si: Interface detection failed
[    0.227821] ipmi_si: Adding default-specified bt state machine
[    0.228335] ipmi_si: Trying default-specified bt state machine at i/o address 0xe4, slave address 0x0, irq 0
[    0.229228] ipmi_si: Interface detection failed
[    0.229692] ipmi_si: Unable to find any System Interface(s)
[    0.231180] Non-volatile memory driver v1.3
[    0.231598] Linux agpgart interface v0.103
[    0.232038] crash memory driver: version 1.1
[    0.232439] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
\xff[    0.477481] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.479983] brd: module loaded
[    0.481179] loop: module loaded
[    0.481699] input: Macintosh mouse button emulation as /devices/virtual/input/input0
[    0.482837] Fixed MDIO Bus: probed
[    0.483343] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.484209] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.485034] uhci_hcd: USB Universal Host Controller Interface driver
[    0.485930] PNP: No PS/2 controller found. Probing ports directly.
[    0.487528] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.488170] serio: i8042 AUX port at 0x60,0x64 irq 12
[    0.488925] mice: PS/2 mouse device common for all mice
[    0.490442] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1
[    0.491948] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[    0.492943] rtc0: alarms up to one day, 114 bytes nvram
[    0.495920] cpuidle: using governor ladder
[    0.496528] cpuidle: using governor menu
[    0.497051] EFI Variables Facility v0.08 2004-May-17
[    0.498043] usbcore: registered new interface driver hiddev
[    0.498841] usbcore: registered new interface driver usbhid
[    0.499621] usbhid: v2.6:USB HID core driver
[    0.500242] GRE over IPv4 demultiplexor driver
[    0.500852] TCP cubic registered
[    0.501354] Initializing XFRM netlink socket
[    0.501957] NET: Registered protocol family 17
[    0.502661] registered taskstats version 1
[    0.503422] rtc_cmos rtc_cmos: setting system clock to 2014-03-21 14:08:10 UTC (1395410890)
[    0.504532] Initalizing network drop monitor service
[    0.505216] Freeing unused kernel memory: 1276k freed
[    0.506172] Write protecting the kernel read-only data: 10240k
[    0.507225] Freeing unused kernel memory: 800k freed
[    0.508208] Freeing unused kernel memory: 1584k freed
febootstrap: mounting /proc
febootstrap: uptime: 0.51 0.28
febootstrap: ext2 mini initrd starting up: 3.21 zlib
febootstrap: cmdline: 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
febootstrap: mounting /sys
febootstrap: internal insmod libcrc32c.ko
febootstrap: internal insmod crc32c-intel.ko
febootstrap: internal insmod crc-itu-t.ko
febootstrap: internal insmod crc-t10dif.ko
febootstrap: internal insmod crc-ccitt.ko
febootstrap: internal insmod crc7.ko
febootstrap: internal insmod mbcache.ko
febootstrap: internal insmod cdrom.ko
febootstrap: internal insmod sr_mod.ko
febootstrap: internal insmod ata_piix.ko
[    0.542719] scsi0 : ata_piix
[    0.543078] scsi1 : ata_piix
[    0.543349] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
[    0.543915] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
febootstrap: internal insmod scsi_transport_spi.ko
febootstrap: internal insmod sym53c8xx.ko
febootstrap: internal insmod sd_mod.ko
febootstrap: internal insmod virtio_ring.ko
febootstrap: internal insmod virtio.ko
febootstrap: internal insmod virtio-rng.ko
febootstrap: internal insmod virtio_console.ko
febootstrap: internal insmod virtio_blk.ko
febootstrap: internal insmod virtio_scsi.ko
febootstrap: internal insmod virtio_net.ko
febootstrap: internal insmod virtio_pci.ko
[    0.755635] virtio-pci 0000:00:02.0: PCI->APIC IRQ transform: INT A -> IRQ 10
[    0.806339] scsi2 : Virtio SCSI HBA
[    0.807057] scsi 2:0:0:0: Direct-Access     QEMU     QEMU HARDDISK    0.12 PQ: 0 ANSI: 5
[    0.808193] scsi 2:0:1:0: Direct-Access     QEMU     QEMU HARDDISK    0.12 PQ: 0 ANSI: 5
[    0.812159] virtio-pci 0000:00:03.0: PCI->APIC IRQ transform: INT A -> IRQ 11
[    0.842142] sd 2:0:0:0: [sda] 314572800 512-byte logical blocks: (161 GB/150 GiB)
[    0.843281] sd 2:0:0:0: [sda] Write Protect is off
[    0.843939] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    0.845364] sd 2:0:1:0: [sdb] 8388608 512-byte logical blocks: (4.29 GB/4.00 GiB)
[    0.846513] sd 2:0:1:0: [sdb] Write Protect is off
[    0.847226] sd 2:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    0.848654]  sda: sda1
[    0.849429] sd 2:0:0:0: [sda] Attached SCSI disk
[    0.850312]  sdb: unknown partition table
[    0.851473] sd 2:0:1:0: [sdb] Attached SCSI disk
febootstrap: internal insmod virtio_balloon.ko
febootstrap: internal insmod jbd2.ko
febootstrap: internal insmod ext4.ko
febootstrap: internal insmod ext2.ko
febootstrap: picked /sys/block/sdb/dev as root device
febootstrap: creating /dev/root as block special 8:16
febootstrap: mounting new root on /root
febootstrap: chroot
Starting /init script ...
Starting udev: udevd[103]: specified group 'dialout' unknown
udevd[103]: specified group 'dialout' unknown

udevd[103]: specified group 'floppy' unknown
udevd[103]: specified group 'floppy' unknown

udevd[103]: specified user 'vcsa' unknown
udevd[103]: specified user 'vcsa' unknown

udevd[103]: specified group 'cdrom' unknown
udevd[103]: specified group 'cdrom' unknown

udevd[103]: specified group 'tape' unknown
udevd[103]: specified group 'tape' unknown

/sbin/start_udev: line 299: /etc/sysconfig/network: No such file or directory
[    1.070651] udev: starting version 147
[    1.132718] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input2
[    1.148169] piix4_smbus 0000:00:01.3: SMBus Host Controller at 0xb100, revision 0
[    1.172604] sd 2:0:0:0: Attached scsi generic sg0 type 0
[    1.173723] sd 2:0:1:0: Attached scsi generic sg1 type 0
[  OK  ]
RTNETLINK answers: File exists
Cannot find device "eth0"
Cannot find device "eth0"
RTNETLINK answers: No such process
mdadm: No arrays found in config file or automatically
[    2.256892] device-mapper: uevent: version 1.0.3
[    2.257925] device-mapper: ioctl: 4.24.6-ioctl (2013-01-15) initialised: dm-devel
  WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
  Reading all physical volumes.  This may take a while...
  No volume groups found
  WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
  No volume groups found
/init: line 99: ldmtool: command not found
/init: line 102: /sys/block/vd*/queue/rotational: No such file or directory
Linux (none) 2.6.32-431.1.2.0.1.el6.x86_64 #1 SMP Fri Dec 13 13:06:13 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
/dev:
total 0
lrwxrwxrwx 1 root root       13 Mar 21 22:08 MAKEDEV -> /sbin/MAKEDEV
drwxr-xr-x 2 root root      580 Mar 21 14:08 block
drwxr-xr-x 2 root root       80 Mar 21 22:08 bsg
drwxr-xr-x 2 root root     2220 Mar 21 22:08 char
crw------- 1 root root   5,   1 Mar 21 14:08 console
lrwxrwxrwx 1 root root       11 Mar 21 22:08 core -> /proc/kcore
drwxr-xr-x 3 root root       60 Mar 21 22:08 cpu
crw-rw---- 1 root root  10,  61 Mar 21 14:08 cpu_dma_latency
crw-rw---- 1 root root  10,  62 Mar 21 14:08 crash
drwxr-xr-x 5 root root      100 Mar 21 14:08 disk
lrwxrwxrwx 1 root root       13 Mar 21 22:08 fd -> /proc/self/fd
crw-rw-rw- 1 root root   1,   7 Mar 21 14:08 full
crw-rw-rw- 1 root root  10, 229 Mar 21 22:08 fuse
drwxr-xr-x 2 root root       40 Mar 21 22:08 hugepages
drwxr-xr-x 3 root root      180 Mar 21 14:08 input
crw-rw---- 1 root root   1,  11 Mar 21 14:08 kmsg
brw-rw---- 1 root disk   7,   0 Mar 21 14:08 loop0
brw-rw---- 1 root disk   7,   1 Mar 21 14:08 loop1
brw-rw---- 1 root disk   7,   2 Mar 21 14:08 loop2
brw-rw---- 1 root disk   7,   3 Mar 21 14:08 loop3
brw-rw---- 1 root disk   7,   4 Mar 21 14:08 loop4
brw-rw---- 1 root disk   7,   5 Mar 21 14:08 loop5
brw-rw---- 1 root disk   7,   6 Mar 21 14:08 loop6
brw-rw---- 1 root disk   7,   7 Mar 21 14:08 loop7
crw-rw---- 1 root lp     6,   0 Mar 21 22:08 lp0
crw-rw---- 1 root lp     6,   1 Mar 21 22:08 lp1
crw-rw---- 1 root lp     6,   2 Mar 21 22:08 lp2
crw-rw---- 1 root lp     6,   3 Mar 21 22:08 lp3
drwxr-xr-x 2 root root       60 Mar 21 22:08 mapper
crw-rw---- 1 root root  10, 227 Mar 21 14:08 mcelog
drwxr-xr-x 2 root root       60 Mar 21 22:08 md
crw-r----- 1 root kmem   1,   1 Mar 21 14:08 mem
drwxr-xr-x 2 root root       60 Mar 21 22:08 net
crw-rw---- 1 root root  10,  60 Mar 21 14:08 network_latency
crw-rw---- 1 root root  10,  59 Mar 21 14:08 network_throughput
crw-rw-rw- 1 root root   1,   3 Mar 21 14:08 null
crw-r----- 1 root kmem  10, 144 Mar 21 14:08 nvram
crw-rw---- 1 root root   1,  12 Mar 21 14:08 oldmem
crw-r----- 1 root kmem   1,   4 Mar 21 14:08 port
crw------- 1 root root 108,   0 Mar 21 22:08 ppp
crw-rw-rw- 1 root tty    5,   2 Mar 21 14:08 ptmx
drwxr-xr-x 2 root root       40 Mar 21 22:08 pts
brw-rw---- 1 root disk   1,   0 Mar 21 14:08 ram0
brw-rw---- 1 root disk   1,   1 Mar 21 14:08 ram1
brw-rw---- 1 root disk   1,  10 Mar 21 14:08 ram10
brw-rw---- 1 root disk   1,  11 Mar 21 14:08 ram11
brw-rw---- 1 root disk   1,  12 Mar 21 14:08 ram12
brw-rw---- 1 root disk   1,  13 Mar 21 14:08 ram13
brw-rw---- 1 root disk   1,  14 Mar 21 14:08 ram14
brw-rw---- 1 root disk   1,  15 Mar 21 14:08 ram15
brw-rw---- 1 root disk   1,   2 Mar 21 14:08 ram2
brw-rw---- 1 root disk   1,   3 Mar 21 14:08 ram3
brw-rw---- 1 root disk   1,   4 Mar 21 14:08 ram4
brw-rw---- 1 root disk   1,   5 Mar 21 14:08 ram5
brw-rw---- 1 root disk   1,   6 Mar 21 14:08 ram6
brw-rw---- 1 root disk   1,   7 Mar 21 14:08 ram7
brw-rw---- 1 root disk   1,   8 Mar 21 14:08 ram8
brw-rw---- 1 root disk   1,   9 Mar 21 14:08 ram9
crw-rw-rw- 1 root root   1,   8 Mar 21 14:08 random
drwxr-xr-x 2 root root       60 Mar 21 22:08 raw
lrwxrwxrwx 1 root root        4 Mar 21 22:08 rtc -> rtc0
crw-rw---- 1 root root 254,   0 Mar 21 22:08 rtc0
brw-rw---- 1 root disk   8,   0 Mar 21 14:08 sda
brw-rw---- 1 root disk   8,   1 Mar 21 14:08 sda1
brw-rw---- 1 root disk   8,  16 Mar 21 14:08 sdb
crw-rw---- 1 root disk  21,   0 Mar 21 14:08 sg0
crw-rw---- 1 root disk  21,   1 Mar 21 14:08 sg1
drwxr-xr-x 2 root root       40 Mar 21 22:08 shm
crw-rw---- 1 root root  10, 231 Mar 21 14:08 snapshot
lrwxrwxrwx 1 root root       15 Mar 21 22:08 stderr -> /proc/self/fd/2
lrwxrwxrwx 1 root root       15 Mar 21 22:08 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 root root       15 Mar 21 22:08 stdout -> /proc/self/fd/1
crw-rw-rw- 1 root tty    5,   0 Mar 21 14:08 tty
crw--w---- 1 root tty    4,   0 Mar 21 14:08 tty0
crw--w---- 1 root tty    4,   1 Mar 21 14:08 tty1
crw--w---- 1 root tty    4,  10 Mar 21 14:08 tty10
crw--w---- 1 root tty    4,  11 Mar 21 14:08 tty11
crw--w---- 1 root tty    4,  12 Mar 21 14:08 tty12
crw--w---- 1 root tty    4,  13 Mar 21 14:08 tty13
crw--w---- 1 root tty    4,  14 Mar 21 14:08 tty14
crw--w---- 1 root tty    4,  15 Mar 21 14:08 tty15
crw--w---- 1 root tty    4,  16 Mar 21 14:08 tty16
crw--w---- 1 root tty    4,  17 Mar 21 14:08 tty17
crw--w---- 1 root tty    4,  18 Mar 21 14:08 tty18
crw--w---- 1 root tty    4,  19 Mar 21 14:08 tty19
crw--w---- 1 root tty    4,   2 Mar 21 14:08 tty2
crw--w---- 1 root tty    4,  20 Mar 21 14:08 tty20
crw--w---- 1 root tty    4,  21 Mar 21 14:08 tty21
crw--w---- 1 root tty    4,  22 Mar 21 14:08 tty22
crw--w---- 1 root tty    4,  23 Mar 21 14:08 tty23
crw--w---- 1 root tty    4,  24 Mar 21 14:08 tty24
crw--w---- 1 root tty    4,  25 Mar 21 14:08 tty25
crw--w---- 1 root tty    4,  26 Mar 21 14:08 tty26
crw--w---- 1 root tty    4,  27 Mar 21 14:08 tty27
crw--w---- 1 root tty    4,  28 Mar 21 14:08 tty28
crw--w---- 1 root tty    4,  29 Mar 21 14:08 tty29
crw--w---- 1 root tty    4,   3 Mar 21 14:08 tty3
crw--w---- 1 root tty    4,  30 Mar 21 14:08 tty30
crw--w---- 1 root tty    4,  31 Mar 21 14:08 tty31
crw--w---- 1 root tty    4,  32 Mar 21 14:08 tty32
crw--w---- 1 root tty    4,  33 Mar 21 14:08 tty33
crw--w---- 1 root tty    4,  34 Mar 21 14:08 tty34
crw--w---- 1 root tty    4,  35 Mar 21 14:08 tty35
crw--w---- 1 root tty    4,  36 Mar 21 14:08 tty36
crw--w---- 1 root tty    4,  37 Mar 21 14:08 tty37
crw--w---- 1 root tty    4,  38 Mar 21 14:08 tty38
crw--w---- 1 root tty    4,  39 Mar 21 14:08 tty39
crw--w---- 1 root tty    4,   4 Mar 21 14:08 tty4
crw--w---- 1 root tty    4,  40 Mar 21 14:08 tty40
crw--w---- 1 root tty    4,  41 Mar 21 14:08 tty41
crw--w---- 1 root tty    4,  42 Mar 21 14:08 tty42
crw--w---- 1 root tty    4,  43 Mar 21 14:08 tty43
crw--w---- 1 root tty    4,  44 Mar 21 14:08 tty44
crw--w---- 1 root tty    4,  45 Mar 21 14:08 tty45
crw--w---- 1 root tty    4,  46 Mar 21 14:08 tty46
crw--w---- 1 root tty    4,  47 Mar 21 14:08 tty47
crw--w---- 1 root tty    4,  48 Mar 21 14:08 tty48
crw--w---- 1 root tty    4,  49 Mar 21 14:08 tty49
crw--w---- 1 root tty    4,   5 Mar 21 14:08 tty5
crw--w---- 1 root tty    4,  50 Mar 21 14:08 tty50
crw--w---- 1 root tty    4,  51 Mar 21 14:08 tty51
crw--w---- 1 root tty    4,  52 Mar 21 14:08 tty52
crw--w---- 1 root tty    4,  53 Mar 21 14:08 tty53
crw--w---- 1 root tty    4,  54 Mar 21 14:08 tty54
crw--w---- 1 root tty    4,  55 Mar 21 14:08 tty55
crw--w---- 1 root tty    4,  56 Mar 21 14:08 tty56
crw--w---- 1 root tty    4,  57 Mar 21 14:08 tty57
crw--w---- 1 root tty    4,  58 Mar 21 14:08 tty58
crw--w---- 1 root tty    4,  59 Mar 21 14:08 tty59
crw--w---- 1 root tty    4,   6 Mar 21 14:08 tty6
crw--w---- 1 root tty    4,  60 Mar 21 14:08 tty60
crw--w---- 1 root tty    4,  61 Mar 21 14:08 tty61
crw--w---- 1 root tty    4,  62 Mar 21 14:08 tty62
crw--w---- 1 root tty    4,  63 Mar 21 14:08 tty63
crw--w---- 1 root tty    4,   7 Mar 21 14:08 tty7
crw--w---- 1 root tty    4,   8 Mar 21 14:08 tty8
crw--w---- 1 root tty    4,   9 Mar 21 14:08 tty9
crw-rw---- 1 root root   4,  64 Mar 21 22:08 ttyS0
crw-rw---- 1 root root   4,  65 Mar 21 22:08 ttyS1
crw-rw---- 1 root root   4,  66 Mar 21 22:08 ttyS2
crw-rw---- 1 root root   4,  67 Mar 21 22:08 ttyS3
crw-rw-rw- 1 root root   1,   9 Mar 21 14:08 urandom
crw-rw---- 1 root root 250,   0 Mar 21 14:08 usbmon0
crw-rw---- 1 root tty    7,   0 Mar 21 14:08 vcs
crw-rw---- 1 root tty    7,   1 Mar 21 14:08 vcs1
crw-rw---- 1 root tty    7, 128 Mar 21 14:08 vcsa
crw-rw---- 1 root tty    7, 129 Mar 21 14:08 vcsa1
crw-rw---- 1 root root  10,  63 Mar 21 14:08 vga_arbiter
drwxr-xr-x 2 root root       60 Mar 21 22:08 virtio-ports
crw-rw---- 1 root root 248,   1 Mar 21 22:08 vport0p1
crw-rw-rw- 1 root root   1,   5 Mar 21 14:08 zero

/dev/block:
total 0
lrwxrwxrwx 1 root root 7 Mar 21 14:08 1:0 -> ../ram0
lrwxrwxrwx 1 root root 7 Mar 21 14:08 1:1 -> ../ram1
lrwxrwxrwx 1 root root 8 Mar 21 14:08 1:10 -> ../ram10
lrwxrwxrwx 1 root root 8 Mar 21 14:08 1:11 -> ../ram11
lrwxrwxrwx 1 root root 8 Mar 21 14:08 1:12 -> ../ram12
lrwxrwxrwx 1 root root 8 Mar 21 14:08 1:13 -> ../ram13
lrwxrwxrwx 1 root root 8 Mar 21 14:08 1:14 -> ../ram14
lrwxrwxrwx 1 root root 8 Mar 21 14:08 1:15 -> ../ram15
lrwxrwxrwx 1 root root 7 Mar 21 14:08 1:2 -> ../ram2
lrwxrwxrwx 1 root root 7 Mar 21 14:08 1:3 -> ../ram3
lrwxrwxrwx 1 root root 7 Mar 21 14:08 1:4 -> ../ram4
lrwxrwxrwx 1 root root 7 Mar 21 14:08 1:5 -> ../ram5
lrwxrwxrwx 1 root root 7 Mar 21 14:08 1:6 -> ../ram6
lrwxrwxrwx 1 root root 7 Mar 21 14:08 1:7 -> ../ram7
lrwxrwxrwx 1 root root 7 Mar 21 14:08 1:8 -> ../ram8
lrwxrwxrwx 1 root root 7 Mar 21 14:08 1:9 -> ../ram9
lrwxrwxrwx 1 root root 8 Mar 21 14:08 7:0 -> ../loop0
lrwxrwxrwx 1 root root 8 Mar 21 14:08 7:1 -> ../loop1
lrwxrwxrwx 1 root root 8 Mar 21 14:08 7:2 -> ../loop2
lrwxrwxrwx 1 root root 8 Mar 21 14:08 7:3 -> ../loop3
lrwxrwxrwx 1 root root 8 Mar 21 14:08 7:4 -> ../loop4
lrwxrwxrwx 1 root root 8 Mar 21 14:08 7:5 -> ../loop5
lrwxrwxrwx 1 root root 8 Mar 21 14:08 7:6 -> ../loop6
lrwxrwxrwx 1 root root 8 Mar 21 14:08 7:7 -> ../loop7
lrwxrwxrwx 1 root root 6 Mar 21 14:08 8:0 -> ../sda
lrwxrwxrwx 1 root root 7 Mar 21 14:08 8:1 -> ../sda1
lrwxrwxrwx 1 root root 6 Mar 21 14:08 8:16 -> ../sdb

/dev/bsg:
total 0
crw-rw---- 1 root root 251, 0 Mar 21 14:08 2:0:0:0
crw-rw---- 1 root root 251, 1 Mar 21 14:08 2:0:1:0

/dev/char:
total 0
lrwxrwxrwx 1 root root  8 Mar 21 14:08 10:144 -> ../nvram
lrwxrwxrwx 1 root root  9 Mar 21 14:08 10:227 -> ../mcelog
lrwxrwxrwx 1 root root 11 Mar 21 14:08 10:231 -> ../snapshot
lrwxrwxrwx 1 root root 17 Mar 21 22:08 10:58 -> ../mapper/control
lrwxrwxrwx 1 root root 21 Mar 21 14:08 10:59 -> ../network_throughput
lrwxrwxrwx 1 root root 18 Mar 21 14:08 10:60 -> ../network_latency
lrwxrwxrwx 1 root root 18 Mar 21 14:08 10:61 -> ../cpu_dma_latency
lrwxrwxrwx 1 root root  8 Mar 21 14:08 10:62 -> ../crash
lrwxrwxrwx 1 root root 14 Mar 21 14:08 10:63 -> ../vga_arbiter
lrwxrwxrwx 1 root root 15 Mar 21 14:08 13:32 -> ../input/mouse0
lrwxrwxrwx 1 root root 15 Mar 21 14:08 13:33 -> ../input/mouse1
lrwxrwxrwx 1 root root 13 Mar 21 14:08 13:63 -> ../input/mice
lrwxrwxrwx 1 root root 15 Mar 21 14:08 13:64 -> ../input/event0
lrwxrwxrwx 1 root root 15 Mar 21 14:08 13:65 -> ../input/event1
lrwxrwxrwx 1 root root 15 Mar 21 14:08 13:66 -> ../input/event2
lrwxrwxrwx 1 root root 13 Mar 21 14:08 162:0 -> ../raw/rawctl
lrwxrwxrwx 1 root root  6 Mar 21 14:08 1:1 -> ../mem
lrwxrwxrwx 1 root root  7 Mar 21 14:08 1:11 -> ../kmsg
lrwxrwxrwx 1 root root  9 Mar 21 14:08 1:12 -> ../oldmem
lrwxrwxrwx 1 root root  7 Mar 21 14:08 1:3 -> ../null
lrwxrwxrwx 1 root root  7 Mar 21 14:08 1:4 -> ../port
lrwxrwxrwx 1 root root  7 Mar 21 14:08 1:5 -> ../zero
lrwxrwxrwx 1 root root  7 Mar 21 14:08 1:7 -> ../full
lrwxrwxrwx 1 root root  9 Mar 21 14:08 1:8 -> ../random
lrwxrwxrwx 1 root root 10 Mar 21 14:08 1:9 -> ../urandom
lrwxrwxrwx 1 root root 12 Mar 21 14:08 202:0 -> ../cpu/0/msr
lrwxrwxrwx 1 root root 14 Mar 21 14:08 203:0 -> ../cpu/0/cpuid
lrwxrwxrwx 1 root root  6 Mar 21 14:08 21:0 -> ../sg0
lrwxrwxrwx 1 root root  6 Mar 21 14:08 21:1 -> ../sg1
lrwxrwxrwx 1 root root 11 Mar 21 22:08 248:1 -> ../vport0p1
lrwxrwxrwx 1 root root 10 Mar 21 14:08 250:0 -> ../usbmon0
lrwxrwxrwx 1 root root 14 Mar 21 14:08 251:0 -> ../bsg/2:0:0:0
lrwxrwxrwx 1 root root 14 Mar 21 14:08 251:1 -> ../bsg/2:0:1:0
lrwxrwxrwx 1 root root  7 Mar 21 22:08 254:0 -> ../rtc0
lrwxrwxrwx 1 root root  7 Mar 21 14:08 4:0 -> ../tty0
lrwxrwxrwx 1 root root  7 Mar 21 14:08 4:1 -> ../tty1
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:10 -> ../tty10
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:11 -> ../tty11
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:12 -> ../tty12
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:13 -> ../tty13
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:14 -> ../tty14
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:15 -> ../tty15
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:16 -> ../tty16
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:17 -> ../tty17
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:18 -> ../tty18
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:19 -> ../tty19
lrwxrwxrwx 1 root root  7 Mar 21 14:08 4:2 -> ../tty2
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:20 -> ../tty20
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:21 -> ../tty21
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:22 -> ../tty22
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:23 -> ../tty23
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:24 -> ../tty24
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:25 -> ../tty25
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:26 -> ../tty26
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:27 -> ../tty27
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:28 -> ../tty28
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:29 -> ../tty29
lrwxrwxrwx 1 root root  7 Mar 21 14:08 4:3 -> ../tty3
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:30 -> ../tty30
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:31 -> ../tty31
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:32 -> ../tty32
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:33 -> ../tty33
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:34 -> ../tty34
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:35 -> ../tty35
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:36 -> ../tty36
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:37 -> ../tty37
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:38 -> ../tty38
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:39 -> ../tty39
lrwxrwxrwx 1 root root  7 Mar 21 14:08 4:4 -> ../tty4
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:40 -> ../tty40
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:41 -> ../tty41
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:42 -> ../tty42
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:43 -> ../tty43
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:44 -> ../tty44
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:45 -> ../tty45
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:46 -> ../tty46
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:47 -> ../tty47
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:48 -> ../tty48
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:49 -> ../tty49
lrwxrwxrwx 1 root root  7 Mar 21 14:08 4:5 -> ../tty5
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:50 -> ../tty50
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:51 -> ../tty51
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:52 -> ../tty52
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:53 -> ../tty53
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:54 -> ../tty54
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:55 -> ../tty55
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:56 -> ../tty56
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:57 -> ../tty57
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:58 -> ../tty58
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:59 -> ../tty59
lrwxrwxrwx 1 root root  7 Mar 21 14:08 4:6 -> ../tty6
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:60 -> ../tty60
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:61 -> ../tty61
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:62 -> ../tty62
lrwxrwxrwx 1 root root  8 Mar 21 14:08 4:63 -> ../tty63
lrwxrwxrwx 1 root root  8 Mar 21 22:08 4:64 -> ../ttyS0
lrwxrwxrwx 1 root root  8 Mar 21 22:08 4:65 -> ../ttyS1
lrwxrwxrwx 1 root root  8 Mar 21 22:08 4:66 -> ../ttyS2
lrwxrwxrwx 1 root root  8 Mar 21 22:08 4:67 -> ../ttyS3
lrwxrwxrwx 1 root root  7 Mar 21 14:08 4:7 -> ../tty7
lrwxrwxrwx 1 root root  7 Mar 21 14:08 4:8 -> ../tty8
lrwxrwxrwx 1 root root  7 Mar 21 14:08 4:9 -> ../tty9
lrwxrwxrwx 1 root root  6 Mar 21 14:08 5:0 -> ../tty
lrwxrwxrwx 1 root root 10 Mar 21 14:08 5:1 -> ../console
lrwxrwxrwx 1 root root  7 Mar 21 14:08 5:2 -> ../ptmx
lrwxrwxrwx 1 root root  6 Mar 21 14:08 7:0 -> ../vcs
lrwxrwxrwx 1 root root  7 Mar 21 14:08 7:1 -> ../vcs1
lrwxrwxrwx 1 root root  7 Mar 21 14:08 7:128 -> ../vcsa
lrwxrwxrwx 1 root root  8 Mar 21 14:08 7:129 -> ../vcsa1

/dev/cpu:
total 0
drwxr-xr-x 2 root root 80 Mar 21 22:08 0

/dev/cpu/0:
total 0
cr--r--r-- 1 root root 203, 0 Mar 21 14:08 cpuid
crw-rw---- 1 root root 202, 0 Mar 21 14:08 msr

/dev/disk:
total 0
drwxr-xr-x 2 root root 100 Mar 21 14:08 by-id
drwxr-xr-x 2 root root 100 Mar 21 14:08 by-path
drwxr-xr-x 2 root root  80 Mar 21 14:08 by-uuid

/dev/disk/by-id:
total 0
lrwxrwxrwx 1 root root  9 Mar 21 14:08 scsi-0QEMU_QEMU_HARDDISK_appliance -> ../../sdb
lrwxrwxrwx 1 root root  9 Mar 21 14:08 scsi-0QEMU_QEMU_HARDDISK_hd0 -> ../../sda
lrwxrwxrwx 1 root root 10 Mar 21 14:08 scsi-0QEMU_QEMU_HARDDISK_hd0-part1 -> ../../sda1

/dev/disk/by-path:
total 0
lrwxrwxrwx 1 root root  9 Mar 21 14:08 pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 Mar 21 14:08 pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root  9 Mar 21 14:08 pci-0000:00:02.0-virtio-pci-virtio0-scsi-0:0:1:0 -> ../../sdb

/dev/disk/by-uuid:
total 0
lrwxrwxrwx 1 root root 10 Mar 21 14:08 1C9014BD90149EF8 -> ../../sda1
lrwxrwxrwx 1 root root  9 Mar 21 14:08 2dccb072-058a-4afd-8e9b-277cc4497145 -> ../../sdb

/dev/hugepages:
total 0

/dev/input:
total 0
drwxr-xr-x 2 root root    100 Mar 21 14:08 by-path
crw-r----- 1 root root 13, 64 Mar 21 14:08 event0
crw-r----- 1 root root 13, 65 Mar 21 14:08 event1
crw-r----- 1 root root 13, 66 Mar 21 14:08 event2
crw-r----- 1 root root 13, 63 Mar 21 14:08 mice
crw-r----- 1 root root 13, 32 Mar 21 14:08 mouse0
crw-r----- 1 root root 13, 33 Mar 21 14:08 mouse1

/dev/input/by-path:
total 0
lrwxrwxrwx 1 root root 9 Mar 21 14:08 platform-i8042-serio-0-event-kbd -> ../event1
lrwxrwxrwx 1 root root 9 Mar 21 14:08 platform-i8042-serio-1-event-mouse -> ../event2
lrwxrwxrwx 1 root root 9 Mar 21 14:08 platform-i8042-serio-1-mouse -> ../mouse1

/dev/mapper:
total 0
crw-rw---- 1 root root 10, 58 Mar 21 22:08 control

/dev/md:
total 0
-rw------- 1 root root 0 Mar 21 22:08 md-device-map

/dev/net:
total 0
crw-rw-rw- 1 root root 10, 200 Mar 21 22:08 tun

/dev/pts:
total 0

/dev/raw:
total 0
crw-rw---- 1 root disk 162, 0 Mar 21 14:08 rawctl

/dev/shm:
total 0

/dev/virtio-ports:
total 0
lrwxrwxrwx 1 root root 11 Mar 21 22:08 org.libguestfs.channel.0 -> ../vport0p1
rootfs / rootfs rw 0 0
proc /proc proc rw,relatime 0 0
/dev/root / ext2 rw,noatime,errors=continue 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
tmpfs /run tmpfs rw,nosuid,relatime,size=97996k,mode=755 0 0
/dev /dev devtmpfs rw,relatime,size=241976k,nr_inodes=60494,mode=755 0 0
  WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
  WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
  No volume groups found
  WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
  No volume groups found
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
Module                  Size  Used by
dm_mod                 84209  0
sg                     29350  0
i2c_piix4              12608  0
i2c_core               31084  1 i2c_piix4
ext2                   68236  1
ext4                  374902  0
jbd2                   93427  1 ext4
virtio_balloon          4798  0
virtio_pci              6985  0
virtio_net             17080  0
virtio_scsi             9139  1
virtio_blk              7164  0
virtio_console         19537  0
virtio_rng              2816  0
virtio                  4977  7 virtio_balloon,virtio_pci,virtio_net,virtio_scsi,virtio_blk,virtio_console,virtio_rng
virtio_ring             8917  7 virtio_balloon,virtio_pci,virtio_net,virtio_scsi,virtio_blk,virtio_console,virtio_rng
sd_mod                 39069  1
sym53c8xx              77103  0
scsi_transport_spi     25863  1 sym53c8xx
ata_piix               24601  0
sr_mod                 15177  0
cdrom                  39085  1 sr_mod
mbcache                 8193  2 ext2,ext4
crc7                    1457  0
crc_ccitt               1717  0
crc_t10dif              1541  1 sd_mod
crc_itu_t               1717  0
crc32c_intel            2068  0
libcrc32c               1246  0
Fri Mar 21 22:08:12 CST 2014
uptime: 2.51 1.29
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

udevadm settle
libguestfs: recv_from_daemon: received GUESTFS_LAUNCH_FLAG
libguestfs: [03636ms] appliance is up
libguestfs: trace: launch = 0
libguestfs: trace: list_devices
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 | ...
guestfsd: main_loop: new request, len 0x28
guestfsd: main_loop: proc 7 (list_devices) took 0.00 seconds
libguestfs: recv_from_daemon: 56 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 07 | 00 00 00 01 | 00 12 34 00 | ...
libguestfs: trace: list_devices = ["/dev/sda"]
libguestfs: trace: list_filesystems
libguestfs: trace: list_devices
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 | ...
guestfsd: main_loop: new request, len 0x28
guestfsd: main_loop: proc 7 (list_devices) took 0.00 seconds
libguestfs: recv_from_daemon: 56 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 07 | 00 00 00 01 | 00 12 34 01 | ...
libguestfs: trace: list_devices = ["/dev/sda"]
libguestfs: trace: list_partitions
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 | ...
guestfsd: main_loop: new request, len 0x28
guestfsd: main_loop: proc 8 (list_partitions) took 0.00 seconds
libguestfs: recv_from_daemon: 60 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 08 | 00 00 00 01 | 00 12 34 02 | ...
libguestfs: trace: list_partitions = ["/dev/sda1"]
libguestfs: trace: list_md_devices
libguestfs: send_to_daemon: 44 bytes: 00 00 00 28 | 20 00 f5 f5 | 00 00 00 04 | 00 00 01 2c | 00 00 00 00 | ...
guestfsd: main_loop: new request, len 0x28
guestfsd: main_loop: proc 300 (list_md_devices) took 0.00 seconds
libguestfs: recv_from_daemon: 44 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 01 2c | 00 00 00 01 | 00 12 34 03 | ...
libguestfs: trace: list_md_devices = []
libguestfs: trace: part_to_dev "/dev/sda1"
libguestfs: send_to_daemon: 60 bytes: 00 00 00 38 | 20 00 f5 f5 | 00 00 00 04 | 00 00 01 10 | 00 00 00 00 | ...
guestfsd: main_loop: new request, len 0x38
guestfsd: main_loop: proc 272 (part_to_dev) took 0.00 seconds
libguestfs: recv_from_daemon: 52 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 01 10 | 00 00 00 01 | 00 12 34 04 | ...
libguestfs: trace: part_to_dev = "/dev/sda"
libguestfs: trace: part_to_partnum "/dev/sda1"
libguestfs: send_to_daemon: 60 bytes: 00 00 00 38 | 20 00 f5 f5 | 00 00 00 04 | 00 00 01 25 | 00 00 00 00 | ...
guestfsd: main_loop: new request, len 0x38
guestfsd: main_loop: proc 293 (part_to_partnum) took 0.00 seconds
libguestfs: recv_from_daemon: 44 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 01 25 | 00 00 00 01 | 00 12 34 05 | ...
libguestfs: trace: part_to_partnum = 1
libguestfs: trace: part_to_dev "/dev/sda1"
libguestfs: send_to_daemon: 60 bytes: 00 00 00 38 | 20 00 f5 f5 | 00 00 00 04 | 00 00 01 10 | 00 00 00 00 | ...
guestfsd: main_loop: new request, len 0x38
guestfsd: main_loop: proc 272 (part_to_dev) took 0.00 seconds
libguestfs: recv_from_daemon: 52 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 01 10 | 00 00 00 01 | 00 12 34 06 | ...
libguestfs: trace: part_to_dev = "/dev/sda"
libguestfs: trace: part_get_mbr_id "/dev/sda" 1
libguestfs: send_to_daemon: 60 bytes: 00 00 00 38 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 eb | 00 00 00 00 | ...
guestfsd: main_loop: new request, len 0x38
udevadm settle
sfdisk --print-id /dev/sda 1
udevadm settle
libguestfs: recv_from_daemon: 44 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 eb | 00 00 00 01 | 00 12 34 07 | ...
libguestfs: trace: part_get_mbr_id = 66
libguestfs: trace: available "lvm2"
libguestfs: send_to_daemon: 56 bytes: 00 00 00 34 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 d8 | 00 00 00 00 | ...
guestfsd: main_loop: proc 235 (part_get_mbr_id) took 0.06 seconds
guestfsd: main_loop: new request, len 0x34
guestfsd: main_loop: proc 216 (available) took 0libguestfs: recv_from_daemon: 40 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 d8 | 00 00 00 01 | 00 12 34 08 | ...
libguestfs: trace: available = 0
libguestfs: trace: lvs
libguestfs: send_to_daemon: 44 bytes: 00 00 00 28 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 0b | 00 00 00 00 | ...
.00 seconds
guestfsd: main_loop: new request, len 0x28
lvm lvs -o vg_name,lv_name --noheadings --separator /
  WARNING: lvmetad is running but disabled. Restart lvmetad before enabling it!
  No volume groups found
guestfsd: main_loop: proc 11 (lvs) took 0.00 seconds
libguestfs: recv_from_daemon: 44 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 0b | 00 00 00 01 | 00 12 34 09 | ...
libguestfs: trace: lvs = []
libguestfs: trace: available "ldm"
libguestfs: send_to_daemon: 56 bytes: 00 00 00 34 | 20 00 f5 f5 | 00 00 00 04 | 00 00 00 d8 | 00 00 00 00 | ...
guestfsd: main_loop: new request, len 0x34
guestfsd: error: ldm: group not available
libguestfs: recv_from_daemon: 72 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 00 d8 | 00 00 00 01 | 00 12 34 0a | ...
libguestfs: trace: available = -1 (error)
libguestfs: trace: list_filesystems = []
libguestfs: trace: close
libguestfs: closing guestfs handle 0x2525d50 (state 2)
libguestfs: trace: internal_autosync
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 | ...
guestfsd: main_loop: proc 216 (available) took 0.00 seconds
guestfsd: main_loop: new request, len 0x28
fsync /dev/sda
guestfsd: main_loop: proc 282 (internal_autosync) took 0.00 seconds
libguestfs: recv_from_daemon: 40 bytes: 20 00 f5 f5 | 00 00 00 04 | 00 00 01 1a | 00 00 00 01 | 00 12 34 0b | ...
libguestfs: trace: internal_autosync = 0
libguestfs: sending SIGTERM to process 23392
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfsBFZu2i
Filesystem                           1K-blocks       Used  Available  Use%
[root@c1 ~]#

Comment 5 Richard W.M. Jones 2014-03-21 14:32:35 UTC
The log indicates that the disk contains one partition.  The
partition has a type byte of 0x42 which might indicate a Windows
Dynamic Disk (see Microsoft Logical Disk Manager).

Assuming this is the case: We have support for LDM in virt-df
upstream, but it has never been included in RHEL 6 (nor in RHEL 7).
It seems unlikely this disk would work in RHEL 6.4, except perhaps
by accident.

So some questions:

(1) What is the actual content of the disk?

(2) Are you certain that it worked in RHEL 6.4?

(3) What is the output of the following command?

fdisk -l /disk/win2003.vdb

(4) What is the output of the following command?

guestfish --ro -a /disk/win2003.vdb
run
file /dev/sda1
vfs-type /dev/sda1
exit

Comment 6 xingxing 2014-03-21 14:42:18 UTC
(In reply to Richard W.M. Jones from comment #5)
so I've downgraded libguestfs to 1.16.34 and this is the output;
[root@c1 ~]# ls
debug.txt                libguestfs-1.16.34-2.el6.x86_64.rpm        libguestfs-tools-c-1.16.34-2.el6.x86_64.rpm
downgrade_libguestfs.sh  libguestfs-tools-1.16.34-2.el6.x86_64.rpm  perl-Sys-Guestfs-1.16.34-2.el6.x86_64.rpm
[root@c1 ~]# virt-df -a /chost/guest/disk/cho2014030200036.data.20140319015740
Filesystem                           1K-blocks       Used  Available  Use%
cho2014030200036.data.20140319015740:/dev/sda1
                                     157283324    6138868  151144456    4%
[root@c1 ~]# rpm -qa|grep libguestfs
libguestfs-tools-c-1.16.34-2.el6.x86_64
libguestfs-winsupport-1.0-7.el6.x86_64
libguestfs-1.16.34-2.el6.x86_64
libguestfs-tools-1.16.34-2.el6.x86_64
[root@c1 ~]#

[root@c1 ~]# fdisk -l /chost/guest/disk/cho2014030200036.data.20140319015740

Disk /chost/guest/disk/cho2014030200036.data.20140319015740: 0 MB, 0 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


[root@c1 ~]# guestfish --ro -a /chost/guest/disk/cho2014030200036.data.20140319015740

Welcome to guestfish, the libguestfs filesystem interactive shell for
editing virtual machine filesystems.

Type: 'help' for help on commands
      'man' to read the manual
      'quit' to quit the shell

><fs> run
><fs> file /dev/vda
/dev/vda   /dev/vda1
><fs> file /dev/vda1
x86 boot sector, code offset 0x52, OEM-ID "NTFS    ", sectors/cluster 8, reserved sectors 0, Media descriptor 0xf8, heads 255, hidden sectors 63, dos < 4.0 BootSector (0x80)
><fs> vfs-type /dev/vda1
ntfs

Comment 7 Richard W.M. Jones 2014-03-21 15:24:53 UTC
OK I see.  The problem is the MBR type byte (0x42) on the partition.

The upstream code ignores partitions with type byte 0x42 on the
first pass, because it's expecting that a later pass will detect
a Windows LDM on the partition.
https://github.com/libguestfs/libguestfs/blob/e589b6e82336dec3abb6e2b1aea31313b7ec5172/src/listfs.c#L206

In RHEL we're disabling LDM, so the later pass never finds the
partition.

I don't really know if 0x42 is or is not a valid type byte for
what appears to be a regular NTFS-containing partition.  Matt,
care to comment on that?

However there's a case that we should disable the
is_mbr_partition_type_42 function is LDM is not available.

Potential patch here:

https://www.redhat.com/archives/libguestfs/2014-March/msg00222.html

Test:

guestfish -N fs:ntfs <<EOF
  part-set-mbr-id /dev/sda 1 0x42
  list-filesystems
EOF

(will print '/dev/Xda1: ntfs' if bug is fixed)

Comment 8 Richard W.M. Jones 2014-04-09 20:46:57 UTC
Fix committed upstream:

https://github.com/libguestfs/libguestfs/commit/47ec61e9af19f8a750750ad498adc10fa7ae0521

Comment 9 Matthew Booth 2014-04-10 08:20:21 UTC
I know it's not exactly authoritative, but http://en.wikipedia.org/wiki/Partition_type suggests that type 0x42 is a Windows dynamic (LDM) disk rather than any other type.

It's a while since I looked at this and the details aren't fresh in my mind, however, there is a 'simple' LDM volume type which is just flat. I wonder if you created a simple LDM volume if it would be mountable as NTFS (assuming that's what you put on it), and would also have a type of 0x42.

Comment 10 xingxing 2014-04-10 13:18:59 UTC
> It's a while since I looked at this and the details aren't fresh in my mind,
> however, there is a 'simple' LDM volume type which is just flat. I wonder if
> you created a simple LDM volume if it would be mountable as NTFS (assuming
> that's what you put on it), and would also have a type of 0x42.
The partition is created like this in cmd:
diskpart
select disk=1
convert dynamic
create volume simple
assign letter=D

format /FS:NTFS D:

Comment 11 Richard W.M. Jones 2014-04-10 13:57:44 UTC
That looks like a simple LDM volume.  It would be better for us to
ship ldmtools, but as we don't do that, I guess processing it as
a plain NTFS partition is the only thing available.

Comment 13 Lingfei Kong 2014-09-01 09:08:12 UTC
Can reproduce with libguestfs-1.20.11-2.el6
#guestfish -N fs:ntfs 
libguestfs: error: mkfs: ntfs: /dev/sda1: mkfs.ntfs: No such file or directory
guestfish: error creating prepared disk image 'fs:ntfs' on 'test1.img': failed to create filesystem (ntfs): mkfs: ntfs: /dev/sda1: mkfs.ntfs: No such file or directory


Verify with libguestfs-1.20.11-10.el6:
[host-1]#guestfish -N fs:ntfs 

Welcome to guestfish, the libguestfs filesystem interactive shell for
editing virtual machine filesystems.

Type: 'help' for help on commands
      'man' to read the manual
      'quit' to quit the shell

><fs> part-set-mbr-id /dev/sda 1 0x42
><fs> list-filesystems 
/dev/sda1: ntfs
><fs>

Comment 14 errata-xmlrpc 2014-10-14 06:35:12 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-1458.html


Note You need to log in before you can comment on or make changes to this bug.