[Libguestfs] Why libguestfs guest exist exceptionally?

Zhi Yong Wu zwu.kernel at gmail.com
Sun Sep 28 15:04:11 UTC 2014


On Sun, Sep 28, 2014 at 6:48 PM, Richard W.M. Jones <rjones at redhat.com> wrote:
> On Sun, Sep 28, 2014 at 06:33:53PM +0800, Zhi Yong Wu wrote:
>> On Sun, Sep 28, 2014 at 6:26 PM, Richard W.M. Jones <rjones at redhat.com> wrote:
>> > Which version of libguestfs is this?  I think you'll have no hope of
>> #rpm -qa | grep libguestfs
>> libguestfs-1.20.8-1
>> libguestfs-tools-c-1.20.8-1
>> > getting upstream libguestfs to run on RHEL 5.  There is a branch
>> Yes. The upstream maybe be involving in libvirtd, you know, there is
>> no libvirtd on RHEL5
>> > ('oldlinux') which may still work:
>> >
>> > https://github.com/libguestfs/libguestfs/commits/oldlinux
>> I will try it.
>
> I think the EPEL 5 package is the same as this branch.  In particular
> the EPEL 5 package has the
> "Add-null-vmchannel-back-for-qemu-without-virt" patch which should
> make it work on RHEL 5, although for some reason it doesn't.
>
> Can you post the full, unedited output from 'libguestfs-test-tool'.
#libguestfs-test-tool
     ************************************************************
     *                    IMPORTANT NOTICE
     *
     * When reporting bugs, include the COMPLETE, UNEDITED
     * output below in your bug report.
     *
     ************************************************************
PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/ali/bin/:/usr/ali/sbin/:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/zhiyong.wzy/bin
SELinux: Disabled
library version: 1.20.8
guestfs_get_append: (null)
guestfs_get_attach_method: appliance
guestfs_get_autosync: 1
guestfs_get_cachedir: /var/tmp
guestfs_get_direct: 0
guestfs_get_memsize: 500
guestfs_get_network: 0
guestfs_get_path: /usr/lib64/guestfs
guestfs_get_pgroup: 0
guestfs_get_qemu: /usr/bin/qemu-kvm
guestfs_get_recovery_proc: 1
guestfs_get_selinux: 0
guestfs_get_smp: 1
guestfs_get_tmpdir: /tmp
guestfs_get_trace: 0
guestfs_get_verbose: 1
host_cpu: x86_64
Launching appliance, timeout set to 600 seconds.
libguestfs: launch: attach-method=appliance
libguestfs: launch: tmpdir=/tmp/libguestfspcFf1K
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.18-274.el5 is a directory
picked vmlinuz-2.6.18-274.el5 because modpath /lib/modules/2.6.18-274.el5 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 [00001ms] visiting /usr/lib64/guestfs/supermin.d/daemon.img
supermin helper [00001ms] visiting /usr/lib64/guestfs/supermin.d/hostfiles
supermin helper [00036ms] visiting /usr/lib64/guestfs/supermin.d/init.img
supermin helper [00036ms] visiting /usr/lib64/guestfs/supermin.d/udev-rules.img
supermin helper [00036ms] adding kernel modules
supermin helper [00071ms] finished creating appliance
libguestfs: checksum of existing appliance:
324cdbfc0cad1d0765d7648b529c39f0bd665c66a69ad941ae2c93ccaee20323
libguestfs: [00113ms] begin testing qemu features
libguestfs: command: run: /usr/bin/qemu-kvm
libguestfs: command: run: \ -nographic
libguestfs: command: run: \ -help
libguestfs: parse_qemu_version: failed to parse qemu version string ''
libguestfs: null_vmchannel_port = 33186
libguestfs: [00157ms] finished testing qemu features
libguestfs: accept_from_daemon: 0x6082b0 g->state = 1
[00158ms] /usr/bin/qemu-kvm \
    -global virtio-blk-pci.scsi=off \
    -nodefconfig \
    -nodefaults \
    -nographic \
    -drive file=/tmp/libguestfs-test-tool-sda-5XmXiw,cache=none,format=raw,if=virtio
\
    -drive file=/var/tmp/.guestfs-0/root.27302,snapshot=on,if=virtio,cache=unsafe
\
    -machine accel=kvm:tcg \
    -m 500 \
    -no-reboot \
    -no-hpet \
    -serial stdio \
    -net user,vlan=0,net=10.0.2.0/24 \
    -net nic,model=virtio,vlan=0 \
    -kernel /var/tmp/.guestfs-0/kernel.27302 \
    -initrd /var/tmp/.guestfs-0/initrd.27302 \
    -append 'panic=1 noapic console=ttyS0 udevtimeout=600
no_timer_check acpi=off printk.time=1 cgroup_disable=memory
root=/dev/vdb selinux=0 guestfs_vmchannel=tcp:10.0.2.2:33186
guestfs_verbose=1 TERM=vt100'Could not access KVM kernel module: No
such file or directory
failed to initialize KVM: No such file or directory
Back to tcg accelerator.
Linux version 2.6.18-274.el5 (mockbuild at x86-002.build.bos.redhat.com)
(gcc version 4.1.2 20080704 (Red Hat 4.1.2-51)) #1 SMP Fri Jul 8
17:36:59 EDT 2011
Command line: panic=1 noapic console=ttyS0 udevtimeout=600
no_timer_check acpi=off printk.time=1 cgroup_disable=memory
root=/dev/vdb selinux=0 guestfs_vmchannel=tcp:10.0.2.2:33186
guestfs_verbose=1 TERM=vt100
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000010000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000001f3fe000 (usable)
 BIOS-e820: 000000001f3fe000 - 000000001f400000 (reserved)
 BIOS-e820: 00000000fffc0000 - 0000000100000000 (reserved)
DMI 2.4 present.
No NUMA configuration found
Faking a node at 0000000000000000-000000001f3fe000
Bootmem setup node 0 0000000000000000-000000001f3fe000
Memory for crash kernel (0x0 to 0x0) notwithin permissible range
disabling kdump
Intel MultiProcessor Specification v1.4
    Virtual Wire compatibility mode.
OEM ID: BOCHSCPU Product ID: 0.1          APIC at: 0xFEE00000
Processor #0 6:13 APIC version 17
I/O APIC #0 Version 17 at 0xFEC00000.
Setting APIC routing to flat
Processors: 1
Nosave address range: 000000000009f000 - 00000000000a0000
Nosave address range: 00000000000a0000 - 00000000000f0000
Nosave address range: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 20000000 (gap: 1f400000:e0bc0000)
SMP: Allowing 1 CPUs, 0 hotplug CPUs
Built 1 zonelists.  Total pages: 124645
Kernel command line: panic=1 noapic console=ttyS0 udevtimeout=600
no_timer_check acpi=off printk.time=1 cgroup_disable=memory
root=/dev/vdb selinux=0 guestfs_vmchannel=tcp:10.0.2.2:33186
guestfs_verbose=1 TERM=vt100
Unknown boot option `printk.time=1': ignoring
Initializing CPU#0
PID hash table entries: 2048 (order: 11, 16384 bytes)
Console: colour *CGA 80x25
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
Checking aperture...
ACPI: DMAR not present
Memory: 494496k/511992k available (2603k kernel code, 17044k reserved,
1660k data, 224k init)
Calibrating delay loop (skipped), value calculated using timer
frequency.. 4805.60 BogoMIPS (lpj=2402800)
Security Framework v1.0.0 initialized
SELinux:  Disabled at boot.
Capability LSM initialized
Mount-cache hash table entries: 256
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 512K (64 bytes/line)
CPU 0/0 -> Node 0
SMP alternatives: switching to UP code
Freeing SMP alternatives: 32k freed
Using local APIC timer interrupts.
Detected 62.568 MHz APIC timer.
Brought up 1 CPUs
WARNING: CPU#0: NMI appears to be stuck (0->0)!
time.c: Using 1.193182 MHz WALL PIT GTOD PIT/TSC timer.
time.c: Detected 2402.800 MHz processor.
checking if image is initramfs... it is
Freeing initrd memory: 2800k freed
NET: Registered protocol family 16
PCI: Using configuration type 1
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI: disabled
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: Probing PCI hardware
ACPI Error (tbget-0168): Invalid address flags 8 [20060707]
ACPI Error (tbget-0168): Invalid address flags 8 [20060707]
ACPI Error (tbget-0168): Invalid address flags 8 [20060707]
ACPI Error (tbget-0168): Invalid address flags 8 [20060707]
PCI quirk: region b000-b03f claimed by PIIX4 ACPI
PCI quirk: region b100-b10f claimed by PIIX4 SMB
ACPI Error (tbget-0168): Invalid address flags 8 [20060707]
ACPI Error (tbget-0168): Invalid address flags 8 [20060707]
ACPI Error (tbget-0168): Invalid address flags 8 [20060707]
PCI: Using IRQ router PIIX/ICH [8086/7000] at 0000:00:01.0
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
ACPI: DMAR not present
PCI-GART: No AMD northbridge found.
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 3, 32768 bytes)
TCP established hash table entries: 16384 (order: 6, 262144 bytes)
TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
TCP: Hash tables configured (established 16384 bind 8192)
TCP reno registered
audit: initializing netlink socket (disabled)
type=2000 audit(1411916216.338:1): initialized
Total HugeTLB memory allocated, 0
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
Initializing Cryptographic API
alg: No test for crc32c (crc32c-generic)
ksign: Installing public key data
Loading keyring
- Added public key 5E046EE793D43754
- User ID: Red Hat, Inc. (Kernel Module GPG key)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Limiting direct PCI/PCI transfers.
PCI: PIIX3: Enabling Passive Release on 0000:00:01.0
Activating ISA DMA hang workarounds.
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
Real Time Clock Driver v1.12ac
Non-volatile memory driver v1.2
Linux agpgart interface v0.101 (c) Dave Jones
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
\xffserial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
brd: module loaded
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX3: IDE controller at PCI slot 0000:00:01.1
PIIX3: chipset revision 0
PIIX3: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xc0a0-0xc0a7, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0xc0a8-0xc0af, BIOS settings: hdc:pio, hdd:pio
ide-floppy driver 0.99.newide
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
PNP: No PS/2 controller found. Probing ports directly.
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: bitmap version 4.39
TCP bic registered
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
Initalizing network drop monitor service
Freeing unused kernel memory: 224k freed
Write protecting the kernel read-only data: 527k
febootstrap: mounting /proc
input: AT Translated Set 2 keyboard as /class/input/input0
febootstrap: uptime: 2.90 2.36
febootstrap: ext2 mini initrd starting up: 3.20
febootstrap: cmdline: panic=1 noapic console=ttyS0 udevtimeout=600
no_timer_check acpi=off printk.time=1 cgroup_disable=memory
root=/dev/vdb selinux=0 guestfs_vmchannel=tcp:10.0.2.2:33186
guestfs_verbose=1 TERM=vt100
febootstrap: mounting /sys
febootstrap: internal insmod crc-ccitt.ko
febootstrap: internal insmod crc-itu-t.ko
febootstrap: internal insmod crc16.ko
febootstrap: internal insmod cdrom.ko
febootstrap: internal insmod scsi_mod.ko
input: ImExPS/2 Generic Explorer Mouse as /class/input/input1
SCSI subsystem initialized
febootstrap: internal insmod sr_mod.ko
febootstrap: internal insmod libata.ko
febootstrap: internal insmod ata_piix.ko
febootstrap: internal insmod scsi_transport_spi.ko
febootstrap: internal insmod sym53c8xx.ko
febootstrap: internal insmod sd_mod.ko
febootstrap: internal insmod ide-cd.ko
febootstrap: internal insmod ide-cs.ko
febootstrap: internal insmod ide-scsi.ko
febootstrap: internal insmod virtio.ko
febootstrap: internal insmod virtio_balloon.ko
febootstrap: internal insmod virtio_blk.ko
febootstrap: internal insmod virtio_console.ko
febootstrap: internal insmod virtio_net.ko
febootstrap: internal insmod virtio_ring.ko
febootstrap: internal insmod virtio_pci.ko
PCI: Found IRQ 10 for device 0000:00:02.0
PCI: Found IRQ 11 for device 0000:00:03.0
 vda: unknown partition table
PCI: Found IRQ 11 for device 0000:00:04.0
 vdb: unknown partition table
febootstrap: internal insmod jbd2.ko
febootstrap: internal insmod ext4.ko
febootstrap: picked /sys/block/vdb/dev as root device
febootstrap: creating /dev/root as block special 253:16
febootstrap: mounting new root on /root
febootstrap: chroot
Starting /init script ...
mount: unknown filesystem type 'devtmpfs'
Starting udev: piix4_smbus 0000:00:01.3: Found 0000:00:01.3 device
input: PC Speaker as /class/input/input2
[  OK  ]
mdadm: No arrays found in config file
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.11.6-ioctl (2011-02-18) initialised: dm-devel at redhat.com
/init: line 93: lvmetad: command not found
  Reading all physical volumes.  This may take a while...
  No volume groups found
  No volume groups found
/init: line 99: ldmtool: command not found
/init: line 102: /sys/block/vd*/queue/rotational: No such file or directory
/dev:
total 0
lrwxrwxrwx 1 root root       13 Sep 28 22:57 MAKEDEV -> /sbin/MAKEDEV
lrwxrwxrwx 1 root root        4 Sep 28 22:57 X0R -> null
crw------- 1 root root   5,   1 Sep 28 22:57 console
lrwxrwxrwx 1 root root       11 Sep 28 22:57 core -> /proc/kcore
drwxr-xr-x 3 root root       60 Sep 28 22:57 cpu
drwxr-xr-x 3 root root       60 Sep 28 22:57 disk
lrwxrwxrwx 1 root root       13 Sep 28 22:57 fd -> /proc/self/fd
crw-rw-rw- 1 root root   1,   7 Sep 28 22:57 full
crw-rw-rw- 1 root root  10, 229 Sep 28 22:57 fuse
drwxr-xr-x 2 root root      140 Sep 28 22:57 input
crw------- 1 root root   1,  11 Sep 28 22:57 kmsg
brw-r----- 1 root disk   7,   0 Sep 28 22:57 loop0
brw-r----- 1 root disk   7,   1 Sep 28 22:57 loop1
brw-r----- 1 root disk   7,   2 Sep 28 22:57 loop2
brw-r----- 1 root disk   7,   3 Sep 28 22:57 loop3
brw-r----- 1 root disk   7,   4 Sep 28 22:57 loop4
brw-r----- 1 root disk   7,   5 Sep 28 22:57 loop5
brw-r----- 1 root disk   7,   6 Sep 28 22:57 loop6
brw-r----- 1 root disk   7,   7 Sep 28 22:57 loop7
drwxr-xr-x 2 root root       60 Sep 28 22:57 mapper
crw------- 1 root root  10, 227 Sep 28 22:57 mcelog
crw-r----- 1 root kmem   1,   1 Sep 28 22:57 mem
drwxr-xr-x 2 root root       60 Sep 28 22:57 net
crw-rw-rw- 1 root root   1,   3 Sep 28 22:57 null
crw-rw---- 1 root root  10, 144 Sep 28 22:57 nvram
crw------- 1 root root   1,  12 Sep 28 22:57 oldmem
crw-rw---- 1 root lp    99,   0 Sep 28 22:57 parport0
crw-rw---- 1 root lp    99,   1 Sep 28 22:57 parport1
crw-rw---- 1 root lp    99,   2 Sep 28 22:57 parport2
crw-rw---- 1 root lp    99,   3 Sep 28 22:57 parport3
crw-r----- 1 root kmem   1,   4 Sep 28 22:57 port
crw------- 1 root root 108,   0 Sep 28 22:57 ppp
crw-rw-rw- 1 root tty    5,   2 Sep 28 22:57 ptmx
drwxr-xr-x 2 root root       40 Sep 28 22:57 pts
lrwxrwxrwx 1 root root        4 Sep 28 22:57 ram -> ram1
brw-r----- 1 root disk   1,   0 Sep 28 22:57 ram0
brw-r----- 1 root disk   1,   1 Sep 28 22:57 ram1
brw-r----- 1 root disk   1,  10 Sep 28 22:57 ram10
brw-r----- 1 root disk   1,  11 Sep 28 22:57 ram11
brw-r----- 1 root disk   1,  12 Sep 28 22:57 ram12
brw-r----- 1 root disk   1,  13 Sep 28 22:57 ram13
brw-r----- 1 root disk   1,  14 Sep 28 22:57 ram14
brw-r----- 1 root disk   1,  15 Sep 28 22:57 ram15
brw-r----- 1 root disk   1,   2 Sep 28 22:57 ram2
brw-r----- 1 root disk   1,   3 Sep 28 22:57 ram3
brw-r----- 1 root disk   1,   4 Sep 28 22:57 ram4
brw-r----- 1 root disk   1,   5 Sep 28 22:57 ram5
brw-r----- 1 root disk   1,   6 Sep 28 22:57 ram6
brw-r----- 1 root disk   1,   7 Sep 28 22:57 ram7
brw-r----- 1 root disk   1,   8 Sep 28 22:57 ram8
brw-r----- 1 root disk   1,   9 Sep 28 22:57 ram9
lrwxrwxrwx 1 root root        4 Sep 28 22:57 ramdisk -> ram0
crw-rw-rw- 1 root root   1,   8 Sep 28 22:57 random
crw------- 1 root root 162,   0 Sep 28 22:57 rawctl
crw-r--r-- 1 root root  10, 135 Sep 28 22:57 rtc
drwxr-xr-x 2 root root       40 Sep 28 22:57 shm
crw------- 1 root root  10, 231 Sep 28 22:57 snapshot
lrwxrwxrwx 1 root root       15 Sep 28 22:57 stderr -> /proc/self/fd/2
lrwxrwxrwx 1 root root       15 Sep 28 22:57 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 root root       15 Sep 28 22:57 stdout -> /proc/self/fd/1
crw-rw-rw- 1 root tty    5,   0 Sep 28 22:57 tty
crw-rw---- 1 root tty    4,   0 Sep 28 22:57 tty0
crw-rw---- 1 root tty    4,   1 Sep 28 22:57 tty1
crw-rw---- 1 root tty    4,  10 Sep 28 22:57 tty10
crw-rw---- 1 root tty    4,  11 Sep 28 22:57 tty11
crw-rw---- 1 root tty    4,  12 Sep 28 22:57 tty12
crw-rw---- 1 root tty    4,  13 Sep 28 22:57 tty13
crw-rw---- 1 root tty    4,  14 Sep 28 22:57 tty14
crw-rw---- 1 root tty    4,  15 Sep 28 22:57 tty15
crw-rw---- 1 root tty    4,  16 Sep 28 22:57 tty16
crw-rw---- 1 root tty    4,  17 Sep 28 22:57 tty17
crw-rw---- 1 root tty    4,  18 Sep 28 22:57 tty18
crw-rw---- 1 root tty    4,  19 Sep 28 22:57 tty19
crw-rw---- 1 root tty    4,   2 Sep 28 22:57 tty2
crw-rw---- 1 root tty    4,  20 Sep 28 22:57 tty20
crw-rw---- 1 root tty    4,  21 Sep 28 22:57 tty21
crw-rw---- 1 root tty    4,  22 Sep 28 22:57 tty22
crw-rw---- 1 root tty    4,  23 Sep 28 22:57 tty23
crw-rw---- 1 root tty    4,  24 Sep 28 22:57 tty24
crw-rw---- 1 root tty    4,  25 Sep 28 22:57 tty25
crw-rw---- 1 root tty    4,  26 Sep 28 22:57 tty26
crw-rw---- 1 root tty    4,  27 Sep 28 22:57 tty27
crw-rw---- 1 root tty    4,  28 Sep 28 22:57 tty28
crw-rw---- 1 root tty    4,  29 Sep 28 22:57 tty29
crw-rw---- 1 root tty    4,   3 Sep 28 22:57 tty3
crw-rw---- 1 root tty    4,  30 Sep 28 22:57 tty30
crw-rw---- 1 root tty    4,  31 Sep 28 22:57 tty31
crw-rw---- 1 root tty    4,  32 Sep 28 22:57 tty32
crw-rw---- 1 root tty    4,  33 Sep 28 22:57 tty33
crw-rw---- 1 root tty    4,  34 Sep 28 22:57 tty34
crw-rw---- 1 root tty    4,  35 Sep 28 22:57 tty35
crw-rw---- 1 root tty    4,  36 Sep 28 22:57 tty36
crw-rw---- 1 root tty    4,  37 Sep 28 22:57 tty37
crw-rw---- 1 root tty    4,  38 Sep 28 22:57 tty38
crw-rw---- 1 root tty    4,  39 Sep 28 22:57 tty39
crw-rw---- 1 root tty    4,   4 Sep 28 22:57 tty4
crw-rw---- 1 root tty    4,  40 Sep 28 22:57 tty40
crw-rw---- 1 root tty    4,  41 Sep 28 22:57 tty41
crw-rw---- 1 root tty    4,  42 Sep 28 22:57 tty42
crw-rw---- 1 root tty    4,  43 Sep 28 22:57 tty43
crw-rw---- 1 root tty    4,  44 Sep 28 22:57 tty44
crw-rw---- 1 root tty    4,  45 Sep 28 22:57 tty45
crw-rw---- 1 root tty    4,  46 Sep 28 22:57 tty46
crw-rw---- 1 root tty    4,  47 Sep 28 22:57 tty47
crw-rw---- 1 root tty    4,  48 Sep 28 22:57 tty48
crw-rw---- 1 root tty    4,  49 Sep 28 22:57 tty49
crw-rw---- 1 root tty    4,   5 Sep 28 22:57 tty5
crw-rw---- 1 root tty    4,  50 Sep 28 22:57 tty50
crw-rw---- 1 root tty    4,  51 Sep 28 22:57 tty51
crw-rw---- 1 root tty    4,  52 Sep 28 22:57 tty52
crw-rw---- 1 root tty    4,  53 Sep 28 22:57 tty53
crw-rw---- 1 root tty    4,  54 Sep 28 22:57 tty54
crw-rw---- 1 root tty    4,  55 Sep 28 22:57 tty55
crw-rw---- 1 root tty    4,  56 Sep 28 22:57 tty56
crw-rw---- 1 root tty    4,  57 Sep 28 22:57 tty57
crw-rw---- 1 root tty    4,  58 Sep 28 22:57 tty58
crw-rw---- 1 root tty    4,  59 Sep 28 22:57 tty59
crw-rw---- 1 root tty    4,   6 Sep 28 22:57 tty6
crw-rw---- 1 root tty    4,  60 Sep 28 22:57 tty60
crw-rw---- 1 root tty    4,  61 Sep 28 22:57 tty61
crw-rw---- 1 root tty    4,  62 Sep 28 22:57 tty62
crw-rw---- 1 root tty    4,  63 Sep 28 22:57 tty63
crw-rw---- 1 root tty    4,   7 Sep 28 22:57 tty7
crw-rw---- 1 root tty    4,   8 Sep 28 22:57 tty8
crw-rw---- 1 root tty    4,   9 Sep 28 22:57 tty9
crw-rw---- 1 root uucp   4,  64 Sep 28 22:57 ttyS0
crw-rw---- 1 root uucp   4,  65 Sep 28 22:57 ttyS1
crw-rw---- 1 root uucp   4,  66 Sep 28 22:57 ttyS2
crw-rw---- 1 root uucp   4,  67 Sep 28 22:57 ttyS3
cr--r--r-- 1 root root   1,   9 Sep 28 22:57 urandom
crw------- 1 root tty    7,   0 Sep 28 22:57 vcs
crw------- 1 root tty    7, 128 Sep 28 22:57 vcsa
brw-r----- 1 root disk 253,   0 Sep 28 22:57 vda
brw-r----- 1 root disk 253,  16 Sep 28 22:57 vdb
crw-rw-rw- 1 root root   1,   5 Sep 28 22:57 zero

/dev/cpu:
total 0
drwxr-xr-x 2 root root 80 Sep 28 22:57 0

/dev/cpu/0:
total 0
crw------- 1 root root 203, 0 Sep 28 22:57 cpuid
crw------- 1 root root 202, 0 Sep 28 22:57 msr

/dev/disk:
total 0
drwxr-xr-x 2 root root 60 Sep 28 22:57 by-uuid

/dev/disk/by-uuid:
total 0
lrwxrwxrwx 1 root root 9 Sep 28 22:57
a239c651-d604-45ea-8e4d-3909a2abb7aa -> ../../vdb

/dev/input:
total 0
crw------- 1 root root 13, 64 Sep 28 22:57 event0
crw------- 1 root root 13, 65 Sep 28 22:57 event1
crw------- 1 root root 13, 66 Sep 28 22:57 event2
crw------- 1 root root 13, 63 Sep 28 22:57 mice
crw------- 1 root root 13, 32 Sep 28 22:57 mouse0

/dev/mapper:
total 0
crw------- 1 root root 10, 63 Sep 28 22:57 control

/dev/net:
total 0
crw------- 1 root root 10, 200 Sep 28 22:57 tun

/dev/pts:
total 0

/dev/shm:
total 0
rootfs / rootfs rw 0 0
proc /proc proc rw 0 0
/dev/root / ext2 rw,noatime 0 0
/proc /proc proc rw 0 0
/sys /sys sysfs rw 0 0
tmpfs /run tmpfs rw,nosuid 0 0
none /dev tmpfs rw 0 0
  No volume groups found
  No volume groups found
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 52:54:00:12:34:56 brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.0/24 brd 10.0.2.255 scope global eth0
10.0.2.0/24 dev eth0  proto kernel  scope link  src 10.0.2.0
default via 10.0.2.2 dev eth0
Module                  Size  Used by
dm_mod                102673  0
pcspkr                 36289  0
i2c_piix4              43724  0
i2c_core               57537  1 i2c_piix4
serio_raw              40517  0
ext4                  301753  0
jbd2                   97737  1 ext4
virtio_pci             41673  0
virtio_ring            37953  1 virtio_pci
virtio_net             48449  0
virtio_console         50681  0
virtio_blk             41673  1
virtio_balloon         41025  0
virtio                 39365  5
virtio_pci,virtio_net,virtio_console,virtio_blk,virtio_balloon
ide_scsi               51017  0
ide_cs                 44481  0
ide_cd                 73825  0
sd_mod                 56513  0
sym53c8xx             109545  0
scsi_transport_spi     59841  1 sym53c8xx
ata_piix               57669  0
libata                209233  1 ata_piix
sr_mod                 50789  0
scsi_mod              199641  6
ide_scsi,sd_mod,sym53c8xx,scsi_transport_spi,libata,sr_mod
cdrom                  68713  2 ide_cd,sr_mod
crc16                  35137  1 ext4
crc_itu_t              35265  0
crc_ccitt              35265  0
Sun Sep 28 22:57:29 CST 2014
uptime: 32.89 2.74
verbose daemon enabled
linux commmand line: panic=1 noapic console=ttyS0 udevtimeout=600
no_timer_check acpi=off printk.time=1 cgroup_disable=memory
root=/dev/vdb selinux=0 guestfs_vmchannel=tcp:10.0.2.2:33186
guestfs_verbose=1 TERM=vt100

vmchannel: tcp:10.0.2.2:33186
udevadm settle
udevadm: No such file or directory
udevsettle
libguestfs: recv_from_daemon: received GUESTFS_LAUNCH_FLAG
libguestfs: [34364ms] appliance is up
Guest launched OK.
libguestfs: send_to_daemon: 64 bytes: 00 00 00 3c | 20 00 f5 f5 | 00
00 00 04 | 00 00 00 d2 | 00 00 00 00 | ...
guestfsd: main_loop: new request, len 0x3c
/dev/sda: No such file or directory
udevadm settle
udevadm: No such file or directory
udevsettle
parted -s -- /dev/vda mklabel msdos mkpart primary 128s -128s
udevadm settle
udevadm: No such file or directory
udevsettle
guestfsd: main_loop: proc 210 (part_disk) took 1.16 seconds
libguestfs: recv_from_daemon: 40 bytes: 20 00 f5 f5 | 00 00 00 04 | 00
00 00 d2 | 00 00 00 01 | 00 12 34 00 | ...
libguestfs: send_to_daemon: 84 bytes: 00 00 00 50 | 20 00 f5 f5 | 00
00 00 04 | 00 00 01 16 | 00 00 00 00 | ...
guestfsd: main_loop: new request, len 0x50
/dev/sda1: No such file or directory
wipefs -a --force /dev/vda1
wipefs: No such file or directory
wipefs -a /dev/vda1
wipefs: No such file or directory
mke4fs -t ext2 -F /dev/vda1
mke4fs 1.42 (29-Nov-2011)
guestfsd: main_loop: proc 278 (mkfs) took 0.41 seconds
libguestfs: recv_from_daemon: 40 bytes: 20 00 f5 f5 | 00 00 00 04 | 00
00 01 16 | 00 00 00 01 | 00 12 34 01 | ...
libguestfs: send_to_daemon: 68 bytes: 00 00 00 40 | 20 00 f5 f5 | 00
00 00 04 | 00 00 00 01 | 00 00 00 00 | ...
guestfsd: main_loop: new request, len 0x40
/dev/sda1: No such file or directory
mount -o  /dev/vda1 /sysroot/
guestfsd: main_loop: proc 1 (mount) took 0.09 seconds
libguestfs: recv_from_daemon: 40 bytes: 20 00 f5 f5 | 00 00 00 04 | 00
00 00 01 | 00 00 00 01 | 00 12 34 02 | ...
libguestfs: send_to_daemon: 56 bytes: 00 00 00 34 | 20 00 f5 f5 | 00
00 00 04 | 00 00 00 03 | 00 00 00 00 | ...
guestfsd: main_loop: new request, len 0x34
guestfsd: main_loop: proc 3 (touch) took 0.01 seconds
libguestfs: recv_from_daemon: 40 bytes: 20 00 f5 f5 | 00 00 00 04 | 00
00 00 03 | 00 00 00 01 | 00 12 34 03 | ...
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: new request, len 0x28
umount /sysroot
fsync /dev/vda
guestfsd: main_loop: proc 282 (internal_autosync) took 1.08 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 04 | ...
libguestfs: sending SIGTERM to process 27341
libguestfs: closing guestfs handle 0x6082b0 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfspcFf1K
===== TEST FINISHED OK =====
>
>> By the way, the libguestfs src can't build one available base.img and
>> daemon.img.
>>
>> #ll /usr/lib64/guestfs/supermin.d/
>> total 1752
>> -rw-r--r-- 1 root root    1536 Sep 27 14:39 base.img    <----- it can't work.
>
> Not sure what you mean.  Why wouldn't it work?
I mean that its original EPEL 5 package can work, but the package
which is built by me from EPEL 5 src.rpm doesn't work.

1. The files shipped with original  EPEL 5 package:
#ll /usr/lib64/guestfs/supermin.d/
total 6756
-rw-r--r-- 1 root root 4920832 Sep 28 15:32 base.img
-rw-r--r-- 1 root root 1762816 Sep 28 15:32 daemon.img
-rw-r--r-- 1 root root  193815 Sep 28 15:32 hostfiles
-rw-r--r-- 1 root root    4608 Sep 28 15:32 init.img
-rw-r--r-- 1 root root    2048 Sep 28 15:32 udev-rules.img

2. The files shipped with the package built by me from EPEL 5 src.rpm
#ll /usr/lib64/guestfs/supermin.d/
total 1752
-rw-r--r-- 1 root root    1536 Sep 27 14:39 base.img
-rw-r--r-- 1 root root 1760768 Sep 27 14:39 daemon.img
-rw-r--r-- 1 root root   10772 Sep 27 14:39 hostfiles
-rw-r--r-- 1 root root    4608 Sep 27 14:39 init.img
-rw-r--r-- 1 root root    2048 Sep 27 14:39 udev-rules.img

>
> Rich.
>
> --
> Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
> Read my programming and virtualization blog: http://rwmj.wordpress.com
> virt-df lists disk usage of guests without needing to install any
> software inside the virtual machine.  Supports Linux and Windows.
> http://people.redhat.com/~rjones/virt-df/



-- 
Regards,

Zhi Yong Wu




More information about the Libguestfs mailing list