Description of problem: In my project, I share a vmdk file with the ntfs file system in a container through the qemu-nbd server. I want to access it in the form of guestfish -a nbd://ip in another container based on the ARM-64 environment. /dev/sdx can be mounted successfully. When I call inspect_os, the shell throws a Hivex error. Version-Release number of selected component (if applicable): libguestfs 1.40.2 Additional info: The logs are as follows: ><fs> run libguestfs: trace: launch libguestfs: trace: max_disks libguestfs: trace: max_disks = 255 libguestfs: trace: get_tmpdir libguestfs: trace: get_tmpdir = "/tmp" libguestfs: trace: version libguestfs: trace: version = <struct guestfs_version = major: 1, minor: 40, release: 2, extra: libvirt, > libguestfs: trace: get_backend libguestfs: trace: get_backend = "direct" libguestfs: launch: program=guestfish libguestfs: launch: version=1.40.2libvirt libguestfs: launch: backend registered: unix libguestfs: launch: backend registered: uml libguestfs: launch: backend registered: libvirt libguestfs: launch: backend registered: direct libguestfs: launch: backend=direct libguestfs: launch: tmpdir=/tmp/libguestfsQiRYQ4 libguestfs: launch: umask=0022 libguestfs: launch: euid=0 libguestfs: trace: get_cachedir libguestfs: trace: get_cachedir = "/var/tmp" libguestfs: begin building supermin appliance libguestfs: run supermin libguestfs: command: run: /usr/bin/supermin libguestfs: command: run: \ --build libguestfs: command: run: \ --verbose libguestfs: command: run: \ --if-newer libguestfs: command: run: \ --lock /var/tmp/.guestfs-0/lock libguestfs: command: run: \ --copy-kernel libguestfs: command: run: \ -f ext2 libguestfs: command: run: \ --host-cpu aarch64 libguestfs: command: run: \ /usr/lib64/guestfs/supermin.d libguestfs: command: run: \ -o /var/tmp/.guestfs-0/appliance.d supermin: version: 5.2.0 supermin: rpm: detected RPM version 4.15 supermin: rpm: detected RPM architecture aarch64 supermin: package handler: fedora/rpm supermin: acquiring lock on /var/tmp/.guestfs-0/lock supermin: if-newer: output does not need rebuilding libguestfs: finished building supermin appliance libguestfs: begin testing qemu features libguestfs: trace: get_cachedir libguestfs: trace: get_cachedir = "/var/tmp" libguestfs: checking for previously cached test results of /usr/bin/qemu-kvm, in /var/tmp/.guestfs-0 libguestfs: loading previously cached test results libguestfs: QMP parse error: '[' or '{' expected near end of file (ignored) libguestfs: QMP parse error: '[' or '{' expected near end of file (ignored) libguestfs: qemu version: 4.1 libguestfs: qemu mandatory locking: yes libguestfs: qemu KVM: enabled libguestfs: trace: get_backend_setting "force_tcg" libguestfs: trace: get_backend_setting = NULL (error) libguestfs: trace: get_sockdir libguestfs: trace: get_sockdir = "/tmp" libguestfs: finished testing qemu features libguestfs: trace: get_backend_setting "gdb" libguestfs: trace: get_backend_setting = NULL (error) /usr/bin/qemu-kvm \ -global virtio-blk-pci.scsi=off \ -no-user-config \ -enable-fips \ -nodefaults \ -display none \ -machine virt,gic-version=host,accel=kvm:tcg \ -cpu host \ -m 1024 \ -no-reboot \ -rtc driftfix=slew \ -kernel /var/tmp/.guestfs-0/appliance.d/kernel \ -initrd /var/tmp/.guestfs-0/appliance.d/initrd \ -object rng-random,filename=/dev/urandom,id=rng0 \ -device virtio-rng-pci,rng=rng0 \ -device virtio-scsi-pci,id=scsi \ -drive file=nbd:172.28.0.2:10813,cache=writeback,id=hd0,if=none \ -device scsi-hd,drive=hd0 \ -drive file=/var/tmp/.guestfs-0/appliance.d/root,snapshot=on,id=appliance,cache=unsafe,if=none,format=raw \ -device scsi-hd,drive=appliance \ -device virtio-serial-pci \ -serial stdio \ -chardev socket,path=/tmp/libguestfs9qyIw5/guestfsd.sock,id=channel0 \ -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \ -append "panic=1 console=ttyAMA0 earlyprintk=pl011,,0x9000000 ignore_loglevel efi-rtc=noprobe edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm" 2020-10-22T19:01:05.242164+08:00|info|qemu[425]|[425]|main[3081]|: qemu pid is 425, options parsing start 2020-10-22T19:01:05.247027+08:00|info|qemu[425]|[425]|main[3296]|: memory options parse start 2020-10-22T19:01:05.250023+08:00|info|qemu[425]|[425]|configure_memory_map[2959]|: [disable] allocate memory with MAP_NORESERVE flag 2020-10-22T19:01:05.252702+08:00|info|qemu[425]|[425]|drive_new[1019]|: blockdev init(nbd:172.28.0.2:10813). WARNING: Image format was not specified for 'nbd://172.28.0.2:10813' and probing guessed raw. Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted. Specify the 'raw' format explicitly to remove the restrictions. 2020-10-22T19:01:05.355550+08:00|info|qemu[425]|[425]|drive_new[1019]|: blockdev init(/var/tmp/.guestfs-0/appliance.d/root). 2020-10-22T19:01:05.373906+08:00|info|qemu[425]|[425]|configure_blockdev[1281]|: Finish drive init. 2020-10-22T19:01:05.373991+08:00|info|qemu[425]|[425]|main[4329]|: configure accelerator virt-4.1 start 2020-10-22T19:01:05.374881+08:00|info|qemu[425]|[425]|main[4500]|: machine init start 2020-10-22T19:01:05.375954+08:00|info|qemu[425]|[425]|machvirt_init[1808]|: cpu init start 2020-10-22T19:01:05.381556+08:00|info|qemu[425]|[425]|hot_replace_mmap[535]|: mach-virt.ram alloc ptr=0x4ffece600000 size=1073741824 OK. 2020-10-22T19:01:05.390909+08:00|info|qemu[425]|[425]|arm_load_kernel[1288]|: load the kernel 2020-10-22T19:01:05.550447+08:00|info|qemu[425]|[425]|realtime_init[1339]|: create mlock thread 2020-10-22T19:01:05.550920+08:00|info|qemu[425]|[425]|main[4538]|: device init start 2020-10-22T19:01:05.552049+08:00|info|qemu[425]|[425]|qdev_device_add[644]|: add qdev virtio-rng-pci:none success 2020-10-22T19:01:05.552284+08:00|info|qemu[425]|[425]|virtio_scsi_pci_realize[54]|: virtio scsi HBA scsi begin to initialize. 2020-10-22T19:01:05.553336+08:00|info|qemu[425]|[425]|qdev_device_add[644]|: add qdev virtio-scsi-pci:scsi success 2020-10-22T19:01:05.554749+08:00|info|qemu[425]|[425]|qdev_device_add[644]|: add qdev scsi-hd:none success 2020-10-22T19:01:05.557661+08:00|info|qemu[425]|[425]|qdev_device_add[644]|: add qdev scsi-hd:none success 2020-10-22T19:01:05.560714+08:00|info|qemu[425]|[425]|qdev_device_add[644]|: add qdev virtio-serial-pci:none success 2020-10-22T19:01:05.560996+08:00|info|qemu[425]|[425]|send_control_event[261]|: virtio serial port 1 send control message event = 6, value = 1 2020-10-22T19:01:05.561071+08:00|info|qemu[425]|[425]|send_control_event[261]|: virtio serial port 1 send control message event = 1, value = 1 2020-10-22T19:01:05.561132+08:00|info|qemu[425]|[425]|qdev_device_add[644]|: add qdev virtserialport:none success 2020-10-22T19:01:05.579394+08:00|info|qemu[425]|[425]|vnc_set_try_times[138]|: You have 3 chances to input the vnc passwd in 30 seconds 2020-10-22T19:01:05.579510+08:00|info|qemu[425]|[425]|vnc_set_time_wait[150]|: If the vnc locked, you should wait 300 seconds 2020-10-22T19:01:05.579591+08:00|info|qemu[425]|[425]|kvm_set_dirty_log_protect_cap[1739]|: Enable KVM_CAP_MANUAL_DIRTY_LOG_PROTECT2 capbility 3 success. 2020-10-22T19:01:05.579664+08:00|info|qemu[425]|[425]|migration_configure[398]|: migration configure prior, reload configure file. 2020-10-22T19:01:05.579740+08:00|info|qemu[425]|[425]|migration_set_socket_timeout[52]|: set the send/receive socket timeout to 1000 2020-10-22T19:01:05.580134+08:00|info|qemu[425]|[425]|qemu_devices_reset[68]|: reset all devices qemu-kvm: warning: global mc146818rtc.lost_tick_policy has invalid class name 2020-10-22T19:01:05.692940+08:00|info|qemu[425]|[425]|vm_prepare_start[2186]|: vm_state-notify:0ms 2020-10-22T19:01:05.693123+08:00|info|qemu[425]|[425]|main[4643]|: qemu enter main_loop [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x481fd010] [ 0.000000] Linux version 4.19.90-vhulk2007.1.0.h185.eulerosv2r9.aarch64 (abuild@szxrtosci10000) (gcc version 7.3.0 (GCC)) #1 SMP Tue Jul 21 00:06:33 UTC 2020 [ 0.000000] Machine model: linux,dummy-virt [ 0.000000] debug: ignoring loglevel setting. [ 0.000000] efi: Getting EFI parameters from FDT: [ 0.000000] efi: UEFI not found. [ 0.000000] parse cmdline param err, kbox reserve memory max size = 0x8000000, cur size = 0x0 [ 0.000000] cma: Reserved 64 MiB at 0x000000007c000000 [ 0.000000] memory reserve information: [ 0.000000] reserved type: 7 [ 0.000000] enable : no [ 0.000000] NUMA: No NUMA configuration found [ 0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x000000007fffffff] [ 0.000000] NUMA: NODE_DATA [mem 0x7bfe72c0-0x7bfe8bff] [ 0.000000] Zone ranges: [ 0.000000] DMA32 [mem 0x0000000040000000-0x000000007fffffff] [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000040000000-0x000000007fffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff] [ 0.000000] On node 0 totalpages: 262144 [ 0.000000] DMA32 zone: 4096 pages used for memmap [ 0.000000] DMA32 zone: 0 pages reserved [ 0.000000] DMA32 zone: 262144 pages, LIFO batch:63 [ 0.000000] psci: probing for conduit method from DT. [ 0.000000] psci: PSCIv1.0 detected in firmware. [ 0.000000] psci: Using standard PSCI v0.2 function IDs [ 0.000000] psci: Trusted OS migration not required [ 0.000000] psci: SMC Calling Convention v1.1 [ 0.000000] random: get_random_bytes called from start_kernel+0xa8/0x508 with crng_init=0 [ 0.000000] percpu: Embedded 25 pages/cpu s64728 r8192 d29480 u102400 [ 0.000000] pcpu-alloc: s64728 r8192 d29480 u102400 alloc=25*4096 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Detected VIPT I-cache on CPU0 [ 0.000000] CPU features: enabling workaround for Mismatched cache type [ 0.000000] Speculative Store Bypass Disable mitigation not required [ 0.000000] CPU features: enabling workaround for Hisi 1620 Cache Readunique Disable [ 0.000000] CPU features: detected: GIC system register CPU interface [ 0.000000] CPU features: detected: Hardware dirty bit management [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 258048 [ 0.000000] Policy zone: DMA32 [ 0.000000] Kernel command line: panic=1 console=ttyAMA0 earlyprintk=pl011,,0x9000000 ignore_loglevel efi-rtc=noprobe edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm [ 0.000000] quick kexec-Debug reserve_quick_kexec_pages! [ 0.000000] [ 0.000000] Memory: 939388K/1048576K available (10108K kernel code, 1438K rwdata, 3588K rodata, 4608K init, 2345K bss, 43652K reserved, 65536K cma-reserved) [ 0.000000] E820: [mem 0x0000000040000000-0x000000007fffffff] usable [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] ftrace: allocating 35263 entries in 138 pages [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] rcu: \tRCU restricting CPUs from NR_CPUS=1024 to nr_cpu_ids=1. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] GICv3: Distributor has no Range Selector support [ 0.000000] GICv3: no VLPI support, no direct LPI support [ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x00000000080a0000 [ 0.000000] ITS [mem 0x08080000-0x0809ffff] [ 0.000000] ITS@0x0000000008080000: allocated 8192 Devices @7a930000 (indirect, esz 8, psz 64K, shr 1) [ 0.000000] ITS@0x0000000008080000: allocated 8192 Interrupt Collections @7a940000 (flat, esz 8, psz 64K, shr 1) [ 0.000000] GICv3: using LPI property table @0x000000007a950000 [ 0.000000] Dummy vpend table: 0x7a970000 [ 0.000000] GICv3: CPU0: using allocated LPI pending table @0x000000007a960000 [ 0.000000] rcu: \tOffload RCU callbacks from CPUs: (none). [ 0.000000] arch_timer: cp15 timer(s) running at 100.00MHz (virt). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x171024e7e0, max_idle_ns: 440795205315 ns [ 0.000002] sched_clock: 56 bits at 100MHz, resolution 10ns, wraps every 4398046511100ns [ 0.000230] Console: colour dummy device 80x25 [ 0.000287] Calibrating delay loop (skipped), value calculated using timer frequency.. 200.00 BogoMIPS (lpj=400000) [ 0.000291] pid_max: default: 32768 minimum: 301 [ 0.000401] Security Framework initialized [ 0.000414] Yama: becoming mindful. [ 0.000418] SELinux: Disabled at boot. [ 0.001284] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes) [ 0.001678] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes) [ 0.001706] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes) [ 0.001720] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes) [ 0.003086] Disabling memory control group subsystem [ 0.004382] ASID allocator initialised with 32768 entries [ 0.004453] rcu: Hierarchical SRCU implementation. [ 0.005238] Platform MSI: its@8080000 domain created [ 0.005264] PCI/MSI: /intc@8000000/its@8080000 domain created [ 0.005302] EFI services will not be available. [ 0.005355] smp: Bringing up secondary CPUs ... [ 0.005357] smp: Brought up 1 node, 1 CPU [ 0.005359] SMP: Total of 1 processors activated. [ 0.005362] CPU features: detected: Privileged Access Never [ 0.005364] CPU features: detected: LSE atomic instructions [ 0.005365] CPU features: detected: User Access Override [ 0.005367] CPU features: detected: Data cache clean to Point of Persistence [ 0.005368] CPU features: detected: RAS Extension Support [ 0.005369] CPU features: detected: ARM64 MPAM Extension Support [ 0.005370] CPU features: detected: CRC32 instructions [ 0.007027] CPU: All CPU(s) started at EL1 [ 0.007032] alternatives: patching kernel code [ 0.009832] devtmpfs: initialized [ 0.011121] genirq: IRQ affinity hint notify enabled [ 0.011135] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.011143] futex hash table entries: 256 (order: 2, 16384 bytes) [ 0.012255] pinctrl core: initialized pinctrl subsystem [ 0.012449] DMI not present or invalid. [ 0.012881] NET: Registered protocol family 16 [ 0.013072] audit: initializing netlink subsys (disabled) [ 0.013545] cpuidle: using governor menu [ 0.013612] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 0.013753] audit: type=2000 audit(0.012:1): state=initialized audit_enabled=0 res=1 [ 0.014273] DMA: preallocated 256 KiB pool for atomic allocations [ 0.014376] Serial: AMBA PL011 UART driver [ 0.016144] 9000000.pl011: ttyAMA0 at MMIO 0x9000000 (irq = 39, base_baud = 0) is a PL011 rev1 [ 0.069549] console [ttyAMA0] enabled [ 0.071715] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages [ 0.072860] ACPI: Interpreter disabled. [ 0.073365] vgaarb: loaded [ 0.073802] SCSI subsystem initialized [ 0.074143] usbcore: USB support disabled [ 0.074547] pps_core: LinuxPPS API ver. 1 registered [ 0.075011] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti> [ 0.075684] PTP clock support registered [ 0.076211] EDAC MC: Ver: 3.0.0 [ 0.077198] NetLabel: Initializing [ 0.077470] NetLabel: domain hash size = 128 [ 0.077888] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO [ 0.078412] NetLabel: unlabeled traffic allowed by default [ 0.079117] clocksource: Switched to clocksource arch_sys_counter [ 0.098072] Pin memory enabled [ 0.098486] VFS: Disk quotas dquot_6.6.0 [ 0.098879] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 0.099705] pnp: PnP ACPI: disabled [ 0.101741] NET: Registered protocol family 2 [ 0.102687] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes) [ 0.103309] TCP established hash table entries: 8192 (order: 4, 65536 bytes) [ 0.103857] TCP bind hash table entries: 8192 (order: 5, 131072 bytes) [ 0.104442] TCP: Hash tables configured (established 8192 bind 8192) [ 0.105063] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 0.105496] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 0.106136] NET: Registered protocol family 1 [ 0.106493] PCI: CLS 0 bytes, default 64 [ 0.106933] Unpacking initramfs... [ 0.114714] Freeing initrd memory: 3784K [ 0.115497] hw perfevents: enabled with armv8_pmuv3 PMU driver, 13 counters available [ 0.116103] kvm [1]: HYP mode not available [ 0.116505] alg: self-tests disabled [ 0.117235] Initialise system trusted keyrings [ 0.117783] workingset: timestamp_bits=43 max_order=18 bucket_order=0 [ 0.118244] [memstat]starting init memstat for modules [ 0.130519] zbud: loaded [ 0.132436] NET: Registered protocol family 38 [ 0.132787] Key type asymmetric registered [ 0.133092] Asymmetric key parser 'x509' registered [ 0.133463] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247) [ 0.134043] io scheduler noop registered [ 0.134338] io scheduler deadline registered (default) [ 0.134856] io scheduler cfq registered [ 0.135167] io scheduler mq-deadline registered (default) [ 0.135558] io scheduler kyber registered [ 0.135923] io scheduler bfq registered [ 0.136299] atomic64_test: passed [ 0.137060] pl061_gpio 9030000.pl061: PL061 GPIO chip @0x0000000009030000 registered [ 0.137736] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 [ 0.138307] pci-host-generic 4010000000.pcie: host bridge /pcie@10000000 ranges: [ 0.138935] pci-host-generic 4010000000.pcie: IO 0x3eff0000..0x3effffff -> 0x00000000 [ 0.139684] pci-host-generic 4010000000.pcie: MEM 0x10000000..0x3efeffff -> 0x10000000 [ 0.140242] pci-host-generic 4010000000.pcie: MEM 0x8000000000..0xffffffffff -> 0x8000000000 [ 0.140895] pci-host-generic 4010000000.pcie: ECAM at [mem 0x4010000000-0x401fffffff] for [bus 00-ff] [ 0.141628] pci-host-generic 4010000000.pcie: PCI host bridge to bus 0000:00 [ 0.142123] pci_bus 0000:00: root bus resource [bus 00-ff] [ 0.142497] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] [ 0.142939] pci_bus 0000:00: root bus resource [mem 0x10000000-0x3efeffff] [ 0.143593] pci_bus 0000:00: root bus resource [mem 0x8000000000-0xffffffffff] [ 0.144211] pci 0000:00:00.0: [1b36:0008] type 00 class 0x060000 [ 0.145061] pci 0000:00:01.0: [1af4:1005] type 00 class 0x00ff00 [ 0.145540] pci 0000:00:01.0: reg 0x10: [io 0x0000-0x001f] [ 0.145981] pci 0000:00:01.0: reg 0x20: [mem 0x00000000-0x00003fff 64bit pref] [ 0.146825] pci 0000:00:02.0: [1af4:1004] type 00 class 0x010000 [ 0.147403] pci 0000:00:02.0: reg 0x10: [io 0x0000-0x003f] [ 0.147806] pci 0000:00:02.0: reg 0x14: [mem 0x00000000-0x00000fff] [ 0.148289] pci 0000:00:02.0: reg 0x20: [mem 0x00000000-0x00003fff 64bit pref] [ 0.149059] pci 0000:00:03.0: [1af4:1003] type 00 class 0x078000 [ 0.149691] pci 0000:00:03.0: reg 0x10: [io 0x0000-0x003f] [ 0.150092] pci 0000:00:03.0: reg 0x14: [mem 0x00000000-0x00000fff] [ 0.150567] pci 0000:00:03.0: reg 0x20: [mem 0x00000000-0x00003fff 64bit pref] [ 0.151990] pci 0000:00:01.0: BAR 4: assigned [mem 0x8000000000-0x8000003fff 64bit pref] [ 0.152579] pci 0000:00:02.0: BAR 4: assigned [mem 0x8000004000-0x8000007fff 64bit pref] [ 0.153147] pci 0000:00:03.0: BAR 4: assigned [mem 0x8000008000-0x800000bfff 64bit pref] [ 0.153765] pci 0000:00:02.0: BAR 1: assigned [mem 0x10000000-0x10000fff] [ 0.154314] pci 0000:00:03.0: BAR 1: assigned [mem 0x10001000-0x10001fff] [ 0.154805] pci 0000:00:02.0: BAR 0: assigned [io 0x1000-0x103f] [ 0.155275] pci 0000:00:03.0: BAR 0: assigned [io 0x1040-0x107f] [ 0.155705] pci 0000:00:01.0: BAR 0: assigned [io 0x1080-0x109f] [ 0.156580] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled [ 0.157816] rdac: device handler registered [ 0.158208] hp_sw: device handler registered [ 0.158519] emc: device handler registered [ 0.158943] alua: device handler registered [ 0.159518] libphy: Fixed MDIO Bus: probed [ 0.160102] mousedev: PS/2 mouse device common for all mice [ 0.160763] rtc-pl031 9010000.pl031: rtc core: registered pl031 as rtc0 [ 0.162559] hidraw: raw HID events driver (C) Jiri Kosina [ 0.163360] Initializing XFRM netlink socket [ 0.163889] NET: Registered protocol family 10 [ 0.164970] Segment Routing with IPv6 [ 0.165270] NET: Registered protocol family 17 [ 0.165834] registered taskstats version 1 [ 0.166147] Loading compiled-in X.509 certificates [ 0.167490] Loaded X.509 cert [ 0.167761] zswap: loaded using pool lzo/zbud [ 0.168525] Key type big_key registered [ 0.168941] Key type encrypted registered [ 0.169363] rtc-pl031 9010000.pl031: setting system clock to 2020-10-22 11:01:06 UTC (1603364466) [ 0.169987] [PLE] Not support PLE, skip PLE init [ 0.172502] SDEI NMI watchdog: Bind interrupt failed. Firmware may not support SDEI ! [ 0.173101] watchdog: sample period is: 4000000000 [ 0.173602] uart-pl011 9000000.pl011: no DMA platform data [ 0.176283] Freeing unused kernel memory: 4608K [ 0.183300] Run /init as init process supermin: mounting /proc supermin: ext2 mini initrd starting up: 5.2.0 glibc supermin: cmdline: panic=1 console=ttyAMA0 earlyprintk=pl011,,0x9000000 ignore_loglevel efi-rtc=noprobe edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm supermin: uptime: 18446744064486179579.66 0.00 supermin: mounting /sys supermin: internal insmod crct10dif-ce.ko supermin: internal insmod crc32_generic.ko supermin: internal insmod libata.ko [ 0.203663] libata version 3.00 loaded. supermin: internal insmod ata_piix.ko supermin: internal insmod virtio.ko supermin: internal insmod virtio_ring.ko supermin: internal insmod virtio_blk.ko supermin: internal insmod virtio-rng.ko supermin: internal insmod virtio_console.ko supermin: internal insmod crypto_engine.ko supermin: internal insmod virtio_crypto.ko supermin: internal insmod failover.ko supermin: internal insmod net_failover.ko supermin: internal insmod virtio_net.ko supermin: internal insmod libnvdimm.ko supermin: internal insmod nd_btt.ko supermin: internal insmod nd_pmem.ko supermin: internal insmod sd_mod.ko supermin: internal insmod virtio_scsi.ko supermin: internal insmod virtio_balloon.ko supermin: internal insmod virtio_input.ko supermin: internal insmod virtio_mmio.ko supermin: internal insmod virtio_pci.ko [ 0.246769] virtio-pci 0000:00:01.0: enabling device (0000 -> 0003) 2020-10-22T19:01:06.138363+08:00|info|qemu[425]|[430]|virtio_set_status[1186]|: virtio-rng device status is 1 that means ACKNOWLEDGE 2020-10-22T19:01:06.138468+08:00|info|qemu[425]|[430]|virtio_set_status[1186]|: virtio-rng device status is 3 that means DRIVER 2020-10-22T19:01:06.138537+08:00|info|qemu[425]|[430]|virtio_set_status[1186]|: virtio-rng device status is 11 that means DRIVER 2020-10-22T19:01:06.138728+08:00|info|qemu[425]|[430]|virtio_set_status[1186]|: virtio-rng device status is 15 that means DRIVER OK [ 0.249646] virtio-pci 0000:00:02.0: enabling device (0000 -> 0003) 2020-10-22T19:01:06.141676+08:00|info|qemu[425]|[430]|virtio_set_status[1186]|: virtio-scsi device status is 1 that means ACKNOWLEDGE 2020-10-22T19:01:06.141792+08:00|info|qemu[425]|[430]|virtio_set_status[1186]|: virtio-scsi device status is 3 that means DRIVER 2020-10-22T19:01:06.141852+08:00|info|qemu[425]|[430]|virtio_set_status[1186]|: virtio-scsi device status is 11 that means DRIVER [ 0.252474] random: fast init done [ 0.253459] scsi host0: Virtio SCSI HBA 2020-10-22T19:01:06.144135+08:00|info|qemu[425]|[430]|virtio_set_status[1186]|: virtio-scsi device status is 15 that means DRIVER OK 2020-10-22T19:01:06.144173+08:00|info|qemu[425]|[430]|virtio_pci_set_guest_notifiers[969]|: with_irqfd is True 2020-10-22T19:01:06.144770+08:00|info|qemu[425]|[430]|virtio_pci_set_guest_notifiers[1018]|: guest notifier with irqfd set ok [ 0.255470] random: crng init done [ 0.257778] scsi 0:0:0:0: Direct-Access QEMU QEMU HARDDISK 2.5+ PQ: 0 ANSI: 5 [ 0.258594] virtio-pci 0000:00:03.0: enabling device (0000 -> 0003) [ 0.261402] scsi 0:0:1:0: Direct-Access QEMU QEMU HARDDISK 2.5+ PQ: 0 ANSI: 5 2020-10-22T19:01:06.153664+08:00|info|qemu[425]|[430]|virtio_set_status[1186]|: virtio-serial device status is 1 that means ACKNOWLEDGE 2020-10-22T19:01:06.157597+08:00|info|qemu[425]|[430]|virtio_set_status[1186]|: virtio-serial device status is 3 that means DRIVER 2020-10-22T19:01:06.157824+08:00|info|qemu[425]|[430]|virtio_set_status[1186]|: virtio-serial device status is 11 that means DRIVER 2020-10-22T19:01:06.173227+08:00|info|qemu[425]|[430]|virtio_set_status[1186]|: virtio-serial device status is 15 that means DRIVER OK 2020-10-22T19:01:06.286870+08:00|info|qemu[425]|[425]|handle_control_message[372]|: virtio serial port '4294967295' handle control message event = 0, value = 1 2020-10-22T19:01:06.287014+08:00|info|qemu[425]|[425]|send_control_event[261]|: virtio serial port 1 send control message event = 1, value = 1 2020-10-22T19:01:06.289140+08:00|info|qemu[425]|[425]|handle_control_message[372]|: virtio serial port '1' handle control message event = 3, value = 1 2020-10-22T19:01:06.289236+08:00|info|qemu[425]|[425]|send_control_event[261]|: virtio serial port 1 send control message event = 6, value = 1 [ 0.545518] sd 0:0:0:0: Power-on or device reset occurred [ 0.546812] sd 0:0:1:0: Power-on or device reset occurred [ 0.548968] sd 0:0:1:0: [sdb] 8388608 512-byte logical blocks: (4.29 GB/4.00 GiB) [ 0.550383] sd 0:0:0:0: [sda] 23068672 512-byte logical blocks: (11.8 GB/11.0 GiB) [ 0.552361] sd 0:0:1:0: [sdb] Write Protect is off [ 0.553248] sd 0:0:1:0: [sdb] Mode Sense: 63 00 00 08 [ 0.554394] sd 0:0:0:0: [sda] Write Protect is off [ 0.555608] sd 0:0:0:0: [sda] Mode Sense: 63 00 00 08 [ 0.556550] sd 0:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 0.558364] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 0.563658] sda: sda1 sda2 [ 0.565121] sd 0:0:1:0: [sdb] Attached SCSI disk [ 0.567004] sd 0:0:0:0: [sda] Attached SCSI disk supermin: internal insmod jbd2.ko supermin: internal insmod mbcache.ko supermin: internal insmod ext4.ko supermin: internal insmod crc-itu-t.ko supermin: internal insmod crc7.ko supermin: internal insmod crc8.ko supermin: internal insmod libcrc32c.ko supermin: picked /sys/block/sdb/dev (8:16) as root device supermin: creating /dev/root as block special 8:16 supermin: mounting new root on /root [ 0.668056] EXT4-fs (sdb): mounting ext2 file system using the ext4 subsystem [ 0.682906] EXT4-fs (sdb): mounted filesystem without journal. Opts: supermin: deleting initramfs files supermin: chroot Starting /init script ... + [[ panic=1 console=ttyAMA0 earlyprintk=pl011,,0x9000000 ignore_loglevel efi-rtc=noprobe edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm == *guestfs_network=1* ]] + [[ panic=1 console=ttyAMA0 earlyprintk=pl011,,0x9000000 ignore_loglevel efi-rtc=noprobe edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm == *guestfs_rescue=1* ]] + [[ panic=1 console=ttyAMA0 earlyprintk=pl011,,0x9000000 ignore_loglevel efi-rtc=noprobe edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm == *guestfs_noreboot=1* ]] + [[ panic=1 console=ttyAMA0 earlyprintk=pl011,,0x9000000 ignore_loglevel efi-rtc=noprobe edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm == *guestfs_boot_analysis=1* ]] + '[' '!' -d /sys ']' + mkdir -p /sys + mount -t sysfs /sys /sys + mkdir -p /run + mount -t tmpfs -o nosuid,size=20%,mode=0755 tmpfs /run + mkdir -p /run/lock + ln -s ../run/lock /var/lock + test -e /etc/mtab + ln -s /proc/mounts /etc/mtab + mount -t devtmpfs /dev /dev + mkdir -p /dev/pts + mount -t devpts /dev/pts /dev/pts + mkdir -p /dev/shm + mount -t tmpfs -o mode=1777 shmfs /dev/shm + [[ panic=1 console=ttyAMA0 earlyprintk=pl011,,0x9000000 ignore_loglevel efi-rtc=noprobe edd=off udevtimeout=6000 udev.event-timeout=6000 no_timer_check printk.time=1 cgroup_disable=memory usbcore.nousb cryptomgr.notests tsc=reliable 8250.nr_uarts=1 root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm == *selinux=1* ]] + mkdir -p /run/tmpfiles.d + kmod static-nodes --format=tmpfiles --output=/run/tmpfiles.d/kmod.conf ++ od -x -A n ++ dd if=/dev/urandom bs=16 count=1 status=none + machine_id=' d482 97db 318d d4b6 0555 32c5 b0cc f04b' + echo d48297db318dd4b6055532c5b0ccf04b + systemd-tmpfiles --prefix=/dev --prefix=/run --prefix=/var/run --create --boot [/usr/lib/tmpfiles.d/static-nodes-permissions.conf:17] Unknown group 'kvm'. [/usr/lib/tmpfiles.d/systemd.conf:11] Unknown group 'utmp'. [/usr/lib/tmpfiles.d/systemd.conf:19] Unknown user 'systemd-network'. [/usr/lib/tmpfiles.d/systemd.conf:20] Unknown user 'systemd-network'. [/usr/lib/tmpfiles.d/systemd.conf:21] Unknown user 'systemd-network'. [/usr/lib/tmpfiles.d/systemd.conf:25] Unknown group 'systemd-journal'. [/usr/lib/tmpfiles.d/systemd.conf:26] Unknown group 'systemd-journal'. + for f in /lib/systemd/systemd-udevd /usr/lib/systemd/systemd-udevd /sbin/udevd /lib/udev/udevd /usr/lib/udev/udevd + '[' -x /lib/systemd/systemd-udevd ']' + UDEVD=/lib/systemd/systemd-udevd + break + '[' -z /lib/systemd/systemd-udevd ']' + /lib/systemd/systemd-udevd --daemon Starting version v243-18.oe1 + udevadm trigger + udevadm settle --timeout=600 [ 1.527371] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 1.530418] sd 0:0:1:0: Attached scsi generic sg1 type 0 + shopt -s nullglob + for f in /sys/block/sd*/device/timeout + echo 300 + for f in /sys/block/sd*/device/timeout + echo 300 + for f in /sys/block/{h,s,ub,v}d*/queue/scheduler + echo noop /init: line 116: echo: write error: Invalid argument + for f in /sys/block/{h,s,ub,v}d*/queue/scheduler + echo noop /init: line 116: echo: write error: Invalid argument + shopt -u nullglob + ip addr add 127.0.0.1/8 brd + dev lo scope host + ip link set dev lo up + test '' = 1 + mdadm -As --auto=yes --no-degraded mdadm: No arrays found in config file or automatically + mkdir -p /tmp/lvm + touch /tmp/lvm/lvm.conf + LVM_SYSTEM_DIR=/tmp/lvm + export LVM_SYSTEM_DIR + lvmetad + modprobe dm_mod [ 1.947262] device-mapper: uevent: version 1.0.3 [ 1.947739] device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: dm-devel + lvm pvscan --cache --activate ay + mdadm -As --auto=yes --run mdadm: No arrays found in config file or automatically + ldmtool create all ldmtool: error while loading shared libraries: libjson-glib-1.0.so.0: cannot open shared object file: No such file or directory + test 1 = 1 + test '' '!=' 1 + uname -a Linux (none) 4.19.90-vhulk2007.1.0.h185.eulerosv2r9.aarch64 #1 SMP Tue Jul 21 00:06:33 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux + ls -lR /dev /dev: total 0 crw-r--r-- 1 root root 10, 235 Oct 22 11:01 autofs drwxr-xr-x 2 root root 120 Oct 22 11:01 block drwxr-xr-x 2 root root 80 Oct 22 11:01 bsg drwxr-xr-x 2 root root 2060 Oct 22 11:01 char crw------- 1 root root 5, 1 Oct 22 11:01 console lrwxrwxrwx 1 root root 11 Oct 22 11:01 core -> /proc/kcore crw------- 1 root root 10, 62 Oct 22 11:01 cpu_dma_latency crw------- 1 root root 10, 203 Oct 22 11:01 cuse drwxr-xr-x 7 root root 140 Oct 22 11:01 disk lrwxrwxrwx 1 root root 13 Oct 22 11:01 fd -> /proc/self/fd crw-rw-rw- 1 root root 1, 7 Oct 22 11:01 full crw-rw-rw- 1 root root 10, 229 Oct 22 11:01 fuse crw------- 1 root root 254, 0 Oct 22 11:01 gpiochip0 crw------- 1 root root 10, 183 Oct 22 11:01 hwrng drwxr-xr-x 2 root root 60 Jan 1 1970 input crw-r--r-- 1 root root 1, 11 Oct 22 11:01 kmsg crw-rw---- 1 root disk 10, 237 Oct 22 11:01 loop-control drwxr-xr-x 2 root root 60 Oct 22 11:01 mapper crw------- 1 root root 1, 1 Oct 22 11:01 mem crw------- 1 root root 10, 59 Oct 22 11:01 memory_bandwidth drwxr-xr-x 2 root root 60 Oct 22 11:01 net crw------- 1 root root 10, 61 Oct 22 11:01 network_latency crw------- 1 root root 10, 60 Oct 22 11:01 network_throughput crw-rw-rw- 1 root root 1, 3 Oct 22 11:01 null crw-rw-rw- 1 root root 5, 2 Oct 22 11:01 ptmx drwxr-xr-x 2 root root 0 Oct 22 11:01 pts crw-rw-rw- 1 root root 1, 8 Oct 22 11:01 random drwxr-xr-x 2 root root 60 Jan 1 1970 raw crw------- 1 root root 10, 242 Oct 22 11:01 rfkill lrwxrwxrwx 1 root root 4 Oct 22 11:01 rtc -> rtc0 crw------- 1 root root 251, 0 Oct 22 11:01 rtc0 brw------- 1 root root 8, 0 Oct 22 11:01 sda brw------- 1 root root 8, 1 Oct 22 11:01 sda1 brw------- 1 root root 8, 2 Oct 22 11:01 sda2 brw------- 1 root root 8, 16 Oct 22 11:01 sdb crw-rw---- 1 root disk 21, 0 Oct 22 11:01 sg0 crw-rw---- 1 root disk 21, 1 Oct 22 11:01 sg1 drwxrwxrwt 2 root root 40 Oct 22 11:01 shm crw------- 1 root root 10, 231 Oct 22 11:01 snapshot lrwxrwxrwx 1 root root 15 Oct 22 11:01 stderr -> /proc/self/fd/2 lrwxrwxrwx 1 root root 15 Oct 22 11:01 stdin -> /proc/self/fd/0 lrwxrwxrwx 1 root root 15 Oct 22 11:01 stdout -> /proc/self/fd/1 crw-rw-rw- 1 root root 5, 0 Oct 22 11:01 tty crw------- 1 root root 4, 0 Oct 22 11:01 tty0 crw------- 1 root root 4, 1 Oct 22 11:01 tty1 crw------- 1 root root 4, 10 Oct 22 11:01 tty10 crw------- 1 root root 4, 11 Oct 22 11:01 tty11 crw------- 1 root root 4, 12 Oct 22 11:01 tty12 crw------- 1 root root 4, 13 Oct 22 11:01 tty13 crw------- 1 root root 4, 14 Oct 22 11:01 tty14 crw------- 1 root root 4, 15 Oct 22 11:01 tty15 crw------- 1 root root 4, 16 Oct 22 11:01 tty16 crw------- 1 root root 4, 17 Oct 22 11:01 tty17 crw------- 1 root root 4, 18 Oct 22 11:01 tty18 crw------- 1 root root 4, 19 Oct 22 11:01 tty19 crw------- 1 root root 4, 2 Oct 22 11:01 tty2 crw------- 1 root root 4, 20 Oct 22 11:01 tty20 crw------- 1 root root 4, 21 Oct 22 11:01 tty21 crw------- 1 root root 4, 22 Oct 22 11:01 tty22 crw------- 1 root root 4, 23 Oct 22 11:01 tty23 crw------- 1 root root 4, 24 Oct 22 11:01 tty24 crw------- 1 root root 4, 25 Oct 22 11:01 tty25 crw------- 1 root root 4, 26 Oct 22 11:01 tty26 crw------- 1 root root 4, 27 Oct 22 11:01 tty27 crw------- 1 root root 4, 28 Oct 22 11:01 tty28 crw------- 1 root root 4, 29 Oct 22 11:01 tty29 crw------- 1 root root 4, 3 Oct 22 11:01 tty3 crw------- 1 root root 4, 30 Oct 22 11:01 tty30 crw------- 1 root root 4, 31 Oct 22 11:01 tty31 crw------- 1 root root 4, 32 Oct 22 11:01 tty32 crw------- 1 root root 4, 33 Oct 22 11:01 tty33 crw------- 1 root root 4, 34 Oct 22 11:01 tty34 crw------- 1 root root 4, 35 Oct 22 11:01 tty35 crw------- 1 root root 4, 36 Oct 22 11:01 tty36 crw------- 1 root root 4, 37 Oct 22 11:01 tty37 crw------- 1 root root 4, 38 Oct 22 11:01 tty38 crw------- 1 root root 4, 39 Oct 22 11:01 tty39 crw------- 1 root root 4, 4 Oct 22 11:01 tty4 crw------- 1 root root 4, 40 Oct 22 11:01 tty40 crw------- 1 root root 4, 41 Oct 22 11:01 tty41 crw------- 1 root root 4, 42 Oct 22 11:01 tty42 crw------- 1 root root 4, 43 Oct 22 11:01 tty43 crw------- 1 root root 4, 44 Oct 22 11:01 tty44 crw------- 1 root root 4, 45 Oct 22 11:01 tty45 crw------- 1 root root 4, 46 Oct 22 11:01 tty46 crw------- 1 root root 4, 47 Oct 22 11:01 tty47 crw------- 1 root root 4, 48 Oct 22 11:01 tty48 crw------- 1 root root 4, 49 Oct 22 11:01 tty49 crw------- 1 root root 4, 5 Oct 22 11:01 tty5 crw------- 1 root root 4, 50 Oct 22 11:01 tty50 crw------- 1 root root 4, 51 Oct 22 11:01 tty51 crw------- 1 root root 4, 52 Oct 22 11:01 tty52 crw------- 1 root root 4, 53 Oct 22 11:01 tty53 crw------- 1 root root 4, 54 Oct 22 11:01 tty54 crw------- 1 root root 4, 55 Oct 22 11:01 tty55 crw------- 1 root root 4, 56 Oct 22 11:01 tty56 crw------- 1 root root 4, 57 Oct 22 11:01 tty57 crw------- 1 root root 4, 58 Oct 22 11:01 tty58 crw------- 1 root root 4, 59 Oct 22 11:01 tty59 crw------- 1 root root 4, 6 Oct 22 11:01 tty6 crw------- 1 root root 4, 60 Oct 22 11:01 tty60 crw------- 1 root root 4, 61 Oct 22 11:01 tty61 crw------- 1 root root 4, 62 Oct 22 11:01 tty62 crw------- 1 root root 4, 63 Oct 22 11:01 tty63 crw------- 1 root root 4, 7 Oct 22 11:01 tty7 crw------- 1 root root 4, 8 Oct 22 11:01 tty8 crw------- 1 root root 4, 9 Oct 22 11:01 tty9 crw------- 1 root root 204, 64 Oct 22 11:01 ttyAMA0 crw------- 1 root root 4, 64 Oct 22 11:01 ttyS0 crw------- 1 root root 10, 239 Oct 22 11:01 uhid crw-rw-rw- 1 root root 1, 9 Oct 22 11:01 urandom crw------- 1 root root 245, 0 Oct 22 11:01 usbmon0 crw------- 1 root root 7, 0 Oct 22 11:01 vcs crw------- 1 root root 7, 1 Oct 22 11:01 vcs1 crw------- 1 root root 7, 128 Oct 22 11:01 vcsa crw------- 1 root root 7, 129 Oct 22 11:01 vcsa1 crw------- 1 root root 7, 64 Oct 22 11:01 vcsu crw------- 1 root root 7, 65 Oct 22 11:01 vcsu1 drwxr-xr-x 2 root root 60 Oct 22 11:01 vfio crw------- 1 root root 10, 63 Oct 22 11:01 vga_arbiter crw------- 1 root root 10, 238 Oct 22 11:01 vhost-net crw------- 1 root root 10, 241 Oct 22 11:01 vhost-vsock drwxr-xr-x 2 root root 60 Oct 22 11:01 virtio-ports crw------- 1 root root 241, 1 Oct 22 11:01 vport2p1 crw-rw-rw- 1 root root 1, 5 Oct 22 11:01 zero /dev/block: total 0 lrwxrwxrwx 1 root root 6 Oct 22 11:01 8:0 -> ../sda lrwxrwxrwx 1 root root 7 Oct 22 11:01 8:1 -> ../sda1 lrwxrwxrwx 1 root root 6 Oct 22 11:01 8:16 -> ../sdb lrwxrwxrwx 1 root root 7 Oct 22 11:01 8:2 -> ../sda2 /dev/bsg: total 0 crw------- 1 root root 247, 0 Oct 22 11:01 0:0:0:0 crw------- 1 root root 247, 1 Oct 22 11:01 0:0:1:0 /dev/char: total 0 lrwxrwxrwx 1 root root 8 Oct 22 11:01 10:183 -> ../hwrng lrwxrwxrwx 1 root root 11 Oct 22 11:01 10:231 -> ../snapshot lrwxrwxrwx 1 root root 9 Oct 22 11:01 10:235 -> ../autofs lrwxrwxrwx 1 root root 17 Oct 22 11:01 10:236 -> ../mapper/control lrwxrwxrwx 1 root root 19 Oct 22 11:01 10:59 -> ../memory_bandwidth lrwxrwxrwx 1 root root 21 Oct 22 11:01 10:60 -> ../network_throughput lrwxrwxrwx 1 root root 18 Oct 22 11:01 10:61 -> ../network_latency lrwxrwxrwx 1 root root 18 Oct 22 11:01 10:62 -> ../cpu_dma_latency lrwxrwxrwx 1 root root 14 Oct 22 11:01 10:63 -> ../vga_arbiter lrwxrwxrwx 1 root root 13 Oct 22 11:01 13:63 -> ../input/mice lrwxrwxrwx 1 root root 13 Oct 22 11:01 162:0 -> ../raw/rawctl lrwxrwxrwx 1 root root 6 Oct 22 11:01 1:1 -> ../mem lrwxrwxrwx 1 root root 7 Oct 22 11:01 1:11 -> ../kmsg lrwxrwxrwx 1 root root 7 Oct 22 11:01 1:3 -> ../null lrwxrwxrwx 1 root root 7 Oct 22 11:01 1:5 -> ../zero lrwxrwxrwx 1 root root 7 Oct 22 11:01 1:7 -> ../full lrwxrwxrwx 1 root root 9 Oct 22 11:01 1:8 -> ../random lrwxrwxrwx 1 root root 10 Oct 22 11:01 1:9 -> ../urandom lrwxrwxrwx 1 root root 10 Oct 22 11:01 204:64 -> ../ttyAMA0 lrwxrwxrwx 1 root root 6 Oct 22 11:01 21:0 -> ../sg0 lrwxrwxrwx 1 root root 6 Oct 22 11:01 21:1 -> ../sg1 lrwxrwxrwx 1 root root 11 Oct 22 11:01 241:1 -> ../vport2p1 lrwxrwxrwx 1 root root 10 Oct 22 11:01 245:0 -> ../usbmon0 lrwxrwxrwx 1 root root 14 Oct 22 11:01 247:0 -> ../bsg/0:0:0:0 lrwxrwxrwx 1 root root 14 Oct 22 11:01 247:1 -> ../bsg/0:0:1:0 lrwxrwxrwx 1 root root 7 Oct 22 11:01 251:0 -> ../rtc0 lrwxrwxrwx 1 root root 12 Oct 22 11:01 254:0 -> ../gpiochip0 lrwxrwxrwx 1 root root 7 Oct 22 11:01 4:0 -> ../tty0 lrwxrwxrwx 1 root root 7 Oct 22 11:01 4:1 -> ../tty1 lrwxrwxrwx 1 root root 8 Oct 22 11:01 4:10 -> ../tty10 lrwxrwxrwx 1 root root 8 Oct 22 11:01 4:11 -> ../tty11 lrwxrwxrwx 1 root root 8 Oct 22 11:01 4:12 -> ../tty12 lrwxrwxrwx 1 root root 8 Oct 22 11:01 4:13 -> ../tty13 lrwxrwxrwx 1 root root 8 Oct 22 11:01 4:14 -> ../tty14 lrwxrwxrwx 1 root root 8 Oct 22 11:01 4:15 -> ../tty15 lrwxrwxrwx 1 root root 8 Oct 22 11:01 4:16 -> ../tty16 lrwxrwxrwx 1 root root 8 Oct 22 11:01 4:17 -> ../tty17 lrwxrwxrwx 1 root root 8 Oct 22 11:01 4:18 -> ../tty18 lrwxrwxrwx 1 root root 8 Oct 22 11:01 4:19 -> ../tty19 lrwxrwxrwx 1 root root 7 Oct 22 11:01 4:2 -> ../tty2 lrwxrwxrwx 1 root root 8 Oct 22 11:01 4:20 -> ../tty20 lrwxrwxrwx 1 root root 8 Oct 22 11:01 4:21 -> ../tty21 lrwxrwxrwx 1 root root 8 Oct 22 11:01 4:22 -> ../tty22 lrwxrwxrwx 1 root root 8 Oct 22 11:01 4:23 -> ../tty23 lrwxrwxrwx 1 root root 8 Oct 22 11:01 4:24 -> ../tty24 lrwxrwxrwx 1 root root 8 Oct 22 11:01 4:25 -> ../tty25 lrwxrwxrwx 1 root root 8 Oct 22 11:01 4:26 -> ../tty26 lrwxrwxrwx 1 root root 8 Oct 22 11:01 4:27 -> ../tty27 lrwxrwxrwx 1 root root 8 Oct 22 11:01 4:28 -> ../tty28 lrwxrwxrwx 1 root root 8 Oct 22 11:01 4:29 -> ../tty29 lrwxrwxrwx 1 root root 7 Oct 22 11:01 4:7 -> ../tty7 lrwxrwxrwx 1 root root 7 Oct 22 11:01 4:8 -> ../tty8 lrwxrwxrwx 1 root root 7 Oct 22 11:01 4:9 -> ../tty9 lrwxrwxrwx 1 root root 6 Oct 22 11:01 5:0 -> ../tty lrwxrwxrwx 1 root root 10 Oct 22 11:01 5:1 -> ../console lrwxrwxrwx 1 root root 7 Oct 22 11:01 5:2 -> ../ptmx lrwxrwxrwx 1 root root 6 Oct 22 11:01 7:0 -> ../vcs lrwxrwxrwx 1 root root 7 Oct 22 11:01 7:1 -> ../vcs1 lrwxrwxrwx 1 root root 7 Oct 22 11:01 7:128 -> ../vcsa lrwxrwxrwx 1 root root 8 Oct 22 11:01 7:129 -> ../vcsa1 lrwxrwxrwx 1 root root 7 Oct 22 11:01 7:64 -> ../vcsu lrwxrwxrwx 1 root root 8 Oct 22 11:01 7:65 -> ../vcsu1 /dev/disk: total 0 drwxr-xr-x 2 root root 120 Oct 22 11:01 by-id drwxr-xr-x 2 root root 60 Oct 22 11:01 by-label drwxr-xr-x 2 root root 80 Oct 22 11:01 by-partuuid drwxr-xr-x 2 root root 120 Oct 22 11:01 by-path drwxr-xr-x 2 root root 100 Oct 22 11:01 by-uuid /dev/disk/by-id: total 0 lrwxrwxrwx 1 root root 9 Oct 22 11:01 scsi-0QEMU_QEMU_HARDDISK_appliance -> ../../sdb lrwxrwxrwx 1 root root 9 Oct 22 11:01 scsi-0QEMU_QEMU_HARDDISK_hd0 -> ../../sda lrwxrwxrwx 1 root root 10 Oct 22 11:01 scsi-0QEMU_QEMU_HARDDISK_hd0-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Oct 22 11:01 scsi-0QEMU_QEMU_HARDDISK_hd0-part2 -> ../../sda2 /dev/disk/by-label: total 0 lrwxrwxrwx 1 root root 10 Oct 22 11:01 'System\x20Reserved' -> ../../sda1 /dev/disk/by-partuuid: total 0 lrwxrwxrwx 1 root root 10 Oct 22 11:01 4a38cac8-01 -> ../../sda1 lrwxrwxrwx 1 root root 10 Oct 22 11:01 4a38cac8-02 -> ../../sda2 /dev/disk/by-path: total 0 lrwxrwxrwx 1 root root 9 Oct 22 11:01 platform-4010000000.pcie-pci-0000:00:02.0-scsi-0:0:0:0 -> ../../sda lrwxrwxrwx 1 root root 10 Oct 22 11:01 platform-4010000000.pcie-pci-0000:00:02.0-scsi-0:0:0:0-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Oct 22 11:01 platform-4010000000.pcie-pci-0000:00:02.0-scsi-0:0:0:0-part2 -> ../../sda2 lrwxrwxrwx 1 root root 9 Oct 22 11:01 platform-4010000000.pcie-pci-0000:00:02.0-scsi-0:0:1:0 -> ../../sdb /dev/disk/by-uuid: total 0 lrwxrwxrwx 1 root root 10 Oct 22 11:01 728ADDA48ADD655F -> ../../sda2 lrwxrwxrwx 1 root root 10 Oct 22 11:01 DCD2DA9DD2DA7B6A -> ../../sda1 lrwxrwxrwx 1 root root 9 Oct 22 11:01 ba9d6112-69a8-452c-9186-506eb7adbae8 -> ../../sdb /dev/input: total 0 crw------- 1 root root 13, 63 Oct 22 11:01 mice /dev/mapper: total 0 crw------- 1 root root 10, 236 Oct 22 11:01 control /dev/net: total 0 crw-rw-rw- 1 root root 10, 200 Oct 22 11:01 tun /dev/pts: total 0 c--------- 1 root root 5, 2 Oct 22 11:01 ptmx /dev/raw: total 0 crw------- 1 root root 162, 0 Oct 22 11:01 rawctl /dev/shm: total 0 /dev/vfio: total 0 crw------- 1 root root 10, 196 Oct 22 11:01 vfio /dev/virtio-ports: total 0 lrwxrwxrwx 1 root root 11 Oct 22 11:01 org.libguestfs.channel.0 -> ../vport2p1 + cat /proc/mounts /dev/root / ext2 rw,noatime 0 0 /proc /proc proc rw,relatime 0 0 /sys /sys sysfs rw,relatime 0 0 tmpfs /run tmpfs rw,nosuid,relatime,size=202664k,mode=755 0 0 /dev /dev devtmpfs rw,relatime,size=469692k,nr_inodes=117423,mode=755 0 0 /dev/pts /dev/pts devpts rw,relatime,mode=600,ptmxmode=000 0 0 shmfs /dev/shm tmpfs rw,relatime 0 0 + cat /proc/mdstat Personalities : unused devices: <none> + lvm config + lvm pvs + lvm vgs + lvm lvs + ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 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 valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever + ip r + cat /etc/resolv.conf cat: /etc/resolv.conf: No such file or directory + lsmod Module Size Used by dm_mod 172032 0 sg 53248 0 libcrc32c 16384 0 crc8 16384 0 crc7 16384 0 crc_itu_t 16384 0 ext4 782336 1 mbcache 16384 1 ext4 jbd2 147456 1 ext4 virtio_pci 28672 0 virtio_mmio 20480 0 virtio_input 20480 0 virtio_balloon 20480 0 virtio_scsi 20480 1 sd_mod 57344 1 nd_pmem 20480 0 nd_btt 28672 1 nd_pmem libnvdimm 176128 2 nd_btt,nd_pmem virtio_net 57344 0 net_failover 20480 1 virtio_net failover 16384 1 net_failover virtio_crypto 28672 0 crypto_engine 16384 1 virtio_crypto virtio_console 40960 0 virtio_rng 16384 0 virtio_blk 20480 0 virtio_ring 32768 10 virtio_rng,virtio_mmio,virtio_console,virtio_balloon,virtio_scsi,virtio_crypto,virtio_input,virtio_pci,virtio_blk,virtio_net virtio 16384 10 virtio_rng,virtio_mmio,virtio_console,virtio_balloon,virtio_scsi,virtio_crypto,virtio_input,virtio_pci,virtio_blk,virtio_net ata_piix 36864 0 libata 303104 1 ata_piix crc32_generic 16384 0 crct10dif_ce 16384 0 + date Thu Oct 22 11:01:08 UTC 2020 + echo -n 'clocksource: ' clocksource: + cat /sys/devices/system/clocksource/clocksource0/current_clocksource arch_sys_counter + echo -n 'uptime: ' uptime: + cat /proc/uptime 2.61 0.18 + cmd=guestfsd ++ grep -Eo 'guestfs_channel=[^[:space:]]+' /proc/cmdline + eval + test x '!=' x + test 1 = 1 + cmd='guestfsd --verbose' + test '' = 1 + false + test '' = 1 + echo guestfsd --verbose guestfsd --verbose + guestfsd --verbose lvm_system_dir = /tmp/lvm OCaml daemon loaded trying to open virtio-serial channel '/dev/virtio-ports/org.libguestfs.channel.0' 2020-10-22T19:01:08.622806+08:00|info|qemu[425]|[425]|handle_control_message[372]|: virtio serial port '1' handle control message event = 6, value = 1 commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle Unknown filesystem type 62656572 mounted on /sys/fs/cgroup. libguestfs: recv_from_daemon: received GUESTFS_LAUNCH_FLAG libguestfs: appliance is up libguestfs: trace: launch = 0 ><fs> inspect-os libguestfs: trace: inspect_os guestfsd: <= inspect_os (0x1e0) request length 40 bytes commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle -E /dev/sdb Unknown filesystem type 62656572 mounted on /sys/fs/cgroup. commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle -E /dev/sda Unknown filesystem type 62656572 mounted on /sys/fs/cgroup. commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle -E /dev/sdb Unknown filesystem type 62656572 mounted on /sys/fs/cgroup. commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle -E /dev/sda Unknown filesystem type 62656572 mounted on /sys/fs/cgroup. commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle Unknown filesystem type 62656572 mounted on /sys/fs/cgroup. command: parted '-m' '-s' '--' '/dev/sda' 'unit' 'b' 'print' command: parted returned 0 command: parted: stdout: BYT; /dev/sda:11811160064B:scsi:512:512:msdos:QEMU QEMU HARDDISK:; 1:1048576B:525336575B:524288000B:ntfs::boot; 2:525336576B:11810111487B:11284774912B:ntfs::; commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle Unknown filesystem type 62656572 mounted on /sys/fs/cgroup. commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle Unknown filesystem type 62656572 mounted on /sys/fs/cgroup. command: parted '-m' '-s' '--' '/dev/sda' 'unit' 'b' 'print' command: parted returned 0 command: parted: stdout: BYT; /dev/sda:11811160064B:scsi:512:512:msdos:QEMU QEMU HARDDISK:; 1:1048576B:525336575B:524288000B:ntfs::boot; 2:525336576B:11810111487B:11284774912B:ntfs::; commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle Unknown filesystem type 62656572 mounted on /sys/fs/cgroup. command: sfdisk '--help' command: sfdisk returned 0 command: sfdisk: stdout: Usage: sfdisk [options] <dev> [[-N] <part>] sfdisk [options] <command> Display or manipulate a disk partition table. Commands: -A, --activate <dev> [<part> ...] list or set bootable (P)MBR partitions -d, --dump <dev> dump partition table (usable for later input) -J, --json <dev> dump partition table in JSON format -g, --show-geometry [<dev> ...] list geometry of all or specified devices -l, --list [<dev> ...] list partitions of each device -F, --list-free [<dev> ...] list unpartitioned free areas of each device -r, --reorder <dev> fix partitions order (by start offset) -s, --show-size [<dev> ...] list sizes of all or specified devices -T, --list-types print the recognized types (see -X) -V, --verify [<dev> ...] test whether partitions seem correct --delete <dev> [<part> ...] delete all or specified partitions --part-label <dev> <part> [<str>] print or change partition label --part-type <dev> <part> [<type>] print or change partition type --part-uuid <dev> <part> [<uuid>] print or change partition uuid --part-attrs <dev> <part> [<str>] print or change partition attributes <dev> device (usually disk) path <part> partition number <type> partition type, GUID for GPT, hex for MBR Options: -a, --append append partitions to existing partition table -b, --backup backup partition table sectors (see -O) --bytes print SIZE in bytes rather than in human readable format --move-data[=<typescript>] move partition data after relocation (requires -N) -f, --force disable all consistency checking --color[=<when>] colorize output (auto, always or never) colors are enabled by default -N, --partno <num> specify partition number -n, --no-act do everything except write to device --no-reread do not check whether the device is in use --no-tell-kernel do not tell kernel about changes -O, --backup-file <path> override default backup file name -o, --output <list> output columns -q, --quiet suppress extra info messages -w, --wipe <mode> wipe signatures (auto, always or never) -W, --wipe-partitions <mode> wipe signatures from new partitions (auto, always or never) -X, --label <name> specify label type (dos, gpt, ...) -Y, --label-nested <name> specify nested label type (dos, bsd) -G, --show-pt-geometry deprecated, alias to --show-geometry -L, --Linux deprecated, only for backward compatibility -u, --unit S deprecated, only sector unit is supported -h, --help display this help -v, --version display version Available output columns: gpt: Device Start End Sectors Size Type Type-UUID Attrs Name UUID dos: Device Start End Sectors Cylinders Size Type Id Attrs Boot End-C/H/S Start-C/H/S bsd: Slice Start End Sectors Cylinders Size Type Bsize Cpg Fsize sgi: Device Start End Sectors Cylinders Size Type Id Attrs sun: Device Start End Sectors Cylinders Size Type Id Flags For more details see sfdisk(8). commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle Unknown filesystem type 62656572 mounted on /sys/fs/cgroup. command: sfdisk '--part-type' '/dev/sda' '1' command: sfdisk returned 0 command: sfdisk: stdout: 7 commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle Unknown filesystem type 62656572 mounted on /sys/fs/cgroup. commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle Unknown filesystem type 62656572 mounted on /sys/fs/cgroup. command: fold-stdout-on-stderr sgdisk '/dev/sda' '-i' '1' [ 29.240157] sda: sda1 sda2 command: sgdisk returned 0 command: sgdisk: stderr: *************************************************************** Found invalid GPT and valid MBR; converting MBR to GPT format in memory. *************************************************************** Partition GUID code: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 (Microsoft basic data) Partition unique GUID: 3BF23C39-A61C-4070-A13B-1057D0A54BC4 First sector: 2048 (at 1024.0 KiB) Last sector: 1026047 (at 501.0 MiB) Partition size: 1024000 sectors (500.0 MiB) Attribute flags: 0000000000000000 Partition name: 'Microsoft basic data' commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle Unknown filesystem type 62656572 mounted on /sys/fs/cgroup. commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle Unknown filesystem type 62656572 mounted on /sys/fs/cgroup. command: parted '-m' '-s' '--' '/dev/sda' 'unit' 'b' 'print' command: parted returned 0 command: parted: stdout: BYT; /dev/sda:11811160064B:scsi:512:512:msdos:QEMU QEMU HARDDISK:; 1:1048576B:525336575B:524288000B:ntfs::boot; 2:525336576B:11810111487B:11284774912B:ntfs::; commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle Unknown filesystem type 62656572 mounted on /sys/fs/cgroup. commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle Unknown filesystem type 62656572 mounted on /sys/fs/cgroup. command: parted '-m' '-s' '--' '/dev/sda' 'unit' 'b' 'print' command: parted returned 0 command: parted: stdout: BYT; /dev/sda:11811160064B:scsi:512:512:msdos:QEMU QEMU HARDDISK:; 1:1048576B:525336575B:524288000B:ntfs::boot; 2:525336576B:11810111487B:11284774912B:ntfs::; commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle Unknown filesystem type 62656572 mounted on /sys/fs/cgroup. commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle Unknown filesystem type 62656572 mounted on /sys/fs/cgroup. command: sfdisk '--part-type' '/dev/sda' '2' command: sfdisk returned 0 command: sfdisk: stdout: 7 commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle Unknown filesystem type 62656572 mounted on /sys/fs/cgroup. commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle Unknown filesystem type 62656572 mounted on /sys/fs/cgroup. command: fold-stdout-on-stderr sgdisk '/dev/sda' '-i' '2' [ 29.821708] sda: sda1 sda2 command: sgdisk returned 0 command: sgdisk: stderr: *************************************************************** Found invalid GPT and valid MBR; converting MBR to GPT format in memory. *************************************************************** Partition GUID code: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 (Microsoft basic data) Partition unique GUID: 84620B55-A36F-4BEE-B347-28A172F89D94 First sector: 1026048 (at 501.0 MiB) Last sector: 23066623 (at 11.0 GiB) Partition size: 22040576 sectors (10.5 GiB) Attribute flags: 0000000000000000 Partition name: 'Microsoft basic data' commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle Unknown filesystem type 62656572 mounted on /sys/fs/cgroup. command: blkid '-c' '/dev/null' '-o' 'value' '-s' 'TYPE' '/dev/sda1' command: blkid returned 0 command: blkid: stdout: ntfs command: blkid '-c' '/dev/null' '-o' 'value' '-s' 'TYPE' '/dev/sda2' command: blkid returned 0 command: blkid: stdout: ntfs command: lvm 'lvs' '--help' command: lvm returned 0 command: lvm: stdout: lvs - Display information about logical volumes lvs \t[ -H|--history ] \t[ -a|--all ] \t[ -o|--options String ] \t[ -S|--select String ] \t[ -O|--sort String ] \t[ --segments ] \t[ --aligned ] \t[ --binary ] \t[ --configreport log|vg|lv|pv|pvseg|seg ] \t[ --foreign ] \t[ --ignorelockingfailure ] \t[ --ignoreskippedcluster ] \t[ --logonly ] \t[ --nameprefixes ] \t[ --noheadings ] \t[ --nolocking ] \t[ --nosuffix ] \t[ --readonly ] \t[ --reportformat basic|json ] \t[ --rows ] \t[ --separator String ] \t[ --shared ] \t[ --trustcache ] \t[ --unbuffered ] \t[ --units r|R|h|H|b|B|s|S|k|K|m|M|g|G|t|T|p|P|e|E ] \t[ --unquoted ] \t[ COMMON_OPTIONS ] \t[ VG|LV|Tag ... ] Common options for lvm: \t[ -d|--debug ] \t[ -h|--help ] \t[ -q|--quiet ] \t[ -v|--verbose ] \t[ -y|--yes ] \t[ -t|--test ] \t[ --commandprofile String ] \t[ --config String ] \t[ --driverloaded y|n ] \t[ --lockopt String ] \t[ --longhelp ] \t[ --profile String ] \t[ --version ] Use --longhelp to show all options and advanced commands. command: lvm 'lvs' '-o' 'vg_name,lv_name' '-S' 'lv_role=public && lv_skip_activation!=yes' '--noheadings' '--separator' '/' command: lvm returned 0 check_for_filesystem_on: /dev/sda1 (ntfs) command: mount '-o' 'ro' '/dev/sda1' '/sysroot//' [ 30.091386] fuse init (API version 7.27) command: mount returned 0 chroot: /sysroot: running 'is_file: /grub/menu.lst' chroot: /sysroot: running 'is_file: /grub/grub.conf' chroot: /sysroot: running 'is_file: /grub2/grub.cfg' chroot: /sysroot: running 'is_dir: /etc' chroot: /sysroot: running 'is_dir: /etc' chroot: /sysroot: running 'is_dir: /etc' chroot: /sysroot: running 'is_file: /hurd/console' chroot: /sysroot: running 'is_dir: /etc' chroot: /sysroot: running 'is_dir: /etc' chroot: /sysroot: running 'is_dir: /etc' chroot: /sysroot: running 'is_dir: /etc' chroot: /sysroot: running 'is_dir: /etc' chroot: /sysroot: running 'is_dir: /bin' chroot: /sysroot: running 'is_dir: /log' chroot: /sysroot: running 'case_sensitive_path: /windows' chroot: /sysroot: running 'case_sensitive_path: /windows/system32' chroot: /sysroot: running 'case_sensitive_path: /winnt' chroot: /sysroot: running 'case_sensitive_path: /winnt/system32' chroot: /sysroot: running 'case_sensitive_path: /win32' chroot: /sysroot: running 'case_sensitive_path: /win32/system32' chroot: /sysroot: running 'case_sensitive_path: /win' chroot: /sysroot: running 'case_sensitive_path: /win/system32' chroot: /sysroot: running 'case_sensitive_path: /reactos' chroot: /sysroot: running 'case_sensitive_path: /reactos/system32' chroot: /sysroot: running 'case_sensitive_path: /boot.ini' chroot: /sysroot: running 'get_windows_systemroot_from_boot_ini' chroot: /sysroot: running 'case_sensitive_path: /System Volume Information' chroot: /sysroot: running 'is_dir: /System Volume Information' chroot: /sysroot: running 'case_sensitive_path: /Program Files' chroot: /sysroot: running 'is_dir: /Program Files' chroot: /sysroot: running 'case_sensitive_path: /System Volume Information' chroot: /sysroot: running 'is_dir: /System Volume Information' check_filesystem: /dev/sda1 matched Windows volume without installed applications command: umount '/sysroot' command: umount returned 0 check_for_filesystem_on: /dev/sda2 (ntfs) command: mount '-o' 'ro' '/dev/sda2' '/sysroot//' command: mount returned 0 chroot: /sysroot: running 'is_file: /grub/menu.lst' chroot: /sysroot: running 'is_file: /grub/grub.conf' chroot: /sysroot: running 'is_file: /grub2/grub.cfg' chroot: /sysroot: running 'is_dir: /etc' chroot: /sysroot: running 'is_dir: /etc' chroot: /sysroot: running 'is_dir: /etc' chroot: /sysroot: running 'is_file: /hurd/console' chroot: /sysroot: running 'is_dir: /etc' chroot: /sysroot: running 'is_dir: /etc' chroot: /sysroot: running 'is_dir: /etc' chroot: /sysroot: running 'is_dir: /etc' chroot: /sysroot: running 'is_dir: /etc' chroot: /sysroot: running 'is_dir: /bin' chroot: /sysroot: running 'is_dir: /log' chroot: /sysroot: running 'case_sensitive_path: /windows' chroot: /sysroot: running 'case_sensitive_path: /Windows/system32' chroot: /sysroot: running 'is_dir: /Windows/System32' chroot: /sysroot: running 'case_sensitive_path: /Windows/system32/config' chroot: /sysroot: running 'is_dir: /Windows/System32/config' chroot: /sysroot: running 'case_sensitive_path: /Windows/system32/cmd.exe' chroot: /sysroot: running 'is_file: /Windows/System32/cmd.exe' get_windows_systemroot: windows %SYSTEMROOT% = /Windows check_filesystem: /dev/sda2 matched Windows root chroot: /sysroot: running 'case_sensitive_path: /windows' chroot: /sysroot: running 'case_sensitive_path: /Windows/system32' chroot: /sysroot: running 'is_dir: /Windows/System32' chroot: /sysroot: running 'case_sensitive_path: /Windows/system32/config' chroot: /sysroot: running 'is_dir: /Windows/System32/config' chroot: /sysroot: running 'case_sensitive_path: /Windows/system32/cmd.exe' chroot: /sysroot: running 'is_file: /Windows/System32/cmd.exe' get_windows_systemroot: windows %SYSTEMROOT% = /Windows chroot: /sysroot: running 'case_sensitive_path: /Windows/system32/cmd.exe' commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle -E /Windows/System32/cmd.exe Unknown filesystem type 62656572 mounted on /sys/fs/cgroup. chroot: /sysroot: running 'file: /Windows/System32/cmd.exe' command: file '-zb' '/sysroot//Windows/System32/cmd.exe' command: file returned 0 command: file: stdout: PE32+ executable (console) x86-64, for MS Windows chroot: /sysroot: running 'case_sensitive_path: /Windows/system32/config/software' chroot: /sysroot: running 'is_file: /Windows/System32/config/SOFTWARE' chroot: /sysroot: running 'case_sensitive_path: /Windows/system32/config/system' chroot: /sysroot: running 'is_file: /Windows/System32/config/SYSTEM' hivex: hivex_open: successfully read Windows Registry hive file: pages: 14055 [sml: 4096, lge: 16384] blocks: 1111157 [sml: 8, avg: 56, lge: 16352] blocks used: 1110291 bytes used: 62533912 hivex: hivex_close: hivex_close ocaml_exn: 'inspect_os' raised 'Hivex.Error' exception guestfsd: error: internal error: inspect_os: unhandled exception thrown: Hivex.Error guestfsd: => inspect_os (0x1e0) took 2.84 secs libguestfs: trace: inspect_os = NULL (error) libguestfs: error: inspect_os: internal error: inspect_os: unhandled exception thrown: Hivex.Error
Can you try the following, hopefully they will reveal more information about what is wrong with the registry: ><fs> download /Windows/System32/config/SOFTWARE /tmp/software ><fs> download /Windows/System32/config/SYSTEM /tmp/system And then in the regular shell: $ hivexml /tmp/software > /tmp/software.xml $ hivexml /tmp/system > /tmp/system.xml In particular see if hivexml prints any error messages. If you can't see what's going on then attach /tmp/software and /tmp/system to this bug, marked as private attachments.
Created attachment 1723500 [details] download from /Windows/System32/config/SYSTEM
I tried these commands. ><fs> download /Windows/System32/config/SOFTWARE /tmp/software libguestfs: trace: download "/Windows/System32/config/SOFTWARE" "/tmp/software" guestfsd: => ll (0x5) took 0.02 secs guestfsd: <= download (0x43) request length 80 bytes commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle -E /Windows/System32/config/SOFTWARE Unknown filesystem type 62656572 mounted on /sys/fs/cgroup. commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle -E /Windows/System32/config/SOFTWARE Unknown filesystem type 62656572 mounted on /sys/fs/cgroup. guestfsd: => download (0x43) took 0.49 secs libguestfs: trace: download = 0 ><fs> download /Windows/System32/config/SYSTEM /tmp/system libguestfs: trace: download "/Windows/System32/config/SYSTEM" "/tmp/system" guestfsd: <= download (0x43) request length 76 bytes commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle -E /Windows/System32/config/SYSTEM Unknown filesystem type 62656572 mounted on /sys/fs/cgroup. commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle -E /Windows/System32/config/SYSTEM Unknown filesystem type 62656572 mounted on /sys/fs/cgroup. libguestfs: trace: download = 0 And then the reguler shell reveals: [root@xxx src]# hivexml /tmp/software > /tmp/software.xml hivex_visit: /tmp/software: Bad file descriptor [root@xxx src]# hivexml /tmp/system > /tmp/system.xml hivex_visit: /tmp/system: Bad file descriptor There seems to be a problem with the encoding format of the file. And I submitted the software document. File system is too large to upload.
I'm not able to reproduce any problem with the system hive that you attached. You could compress the software hive before attaching it.
Created attachment 1723515 [details] download from /Windows/System32/config/SYSTEM and /SOFTWARE
There doesn't seem to be anything wrong with the hives themselves. However: $ hivexml software > /tmp/software.xml $ hivexml system > /tmp/system.xml I do not see the "Bad file descriptor" errors, so I guess that might be related to this problem. Where did you get hivex from?
I guess it's the same problem, so I tried to get hivex from https://download.libguestfs.org/hivex/ to compile it manually. But the following error occurred when I run the make command. Making all in images make[2]: Entering directory '/root/hivex-1.3.19/images' CC mklarge-mklarge.o CCLD mklarge cmp -s ./minimal ./minimal || \ cp ./minimal ./minimal ./mklarge ./minimal ./large mklarge: hivex_node_add_child: Invalid argument make[2]: *** [Makefile:1749: large] Error 1 make[2]: Leaving directory '/root/hivex-1.3.19/images' make[1]: *** [Makefile:1611: all-recursive] Error 1 make[1]: Leaving directory '/root/hivex-1.3.19' make: *** [Makefile:1518: all] Error 2
As always, I need to see the full log from the configure && make in order to say anything useful.
Created attachment 1723532 [details] configure and make hivex
There's something very odd going on with the development environment. I cannot reproduce anything like this error on Fedora/aarch64. Can you try: $ HIVEX_DEBUG=1 ./images/mklarge images/minimal images/large This will produce a lot of debug output which is useful to see, completely. You could also try: $ valgrind ./images/mklarge images/minimal images/large in order to see if the binary or library has been built incorrectly. Also please answer some of the previous questions about this environment. What is the hardware? Operating system? Where did the original hivex come from?
[root@dataenableengine-server-0 hivex-1.3.19]# HIVEX_DEBUG=1 ./images/mklarge images/minimal images/large hivex: hivex_open: created handle 0x2a01d260 hivex_open: header fields: file version 1.5 sequence nos 256 256 (sequences nos should match if hive was synched at shutdown) last modified 129095917722700000 (Windows filetime, x 100 ns since 1601-01-01) original file name (conversion failed) (only 32 chars are stored, name is probably truncated) root offset 0x20 + 0x1000 end of last page 0x1000 + 0x1000 (total file size 0x2000) checksum 0xfa3859bf (calculated 0xfa3859bf) hivex: hivex_open: root offset = 0x1020 hivex: hivex_open: page at 0x1000, size 4096 hivex: hivex_open: used block id 110,107 (nk) at 0x1020 size 96 (root) hivex: hivex_open: used block id 115,107 (sk) at 0x1080 size 312 hivex: hivex_open: free block id 0,0 (..) at 0x11b8 size 3656 hivex: hivex_open: successfully read Windows Registry hive file: pages: 1 [sml: 4096, lge: 4096] blocks: 3 [sml: 96, avg: 1354, lge: 3656] blocks used: 2 bytes used: 408 hivex: hivex_node_add_child: returning EINVAL because: malformed name mklarge: hivex_node_add_child: Invalid argument The EulerOS aarch64 is used. The Hivex package is obtained from the open source community. I tried to compile hivex on another computer and found that the compilation was successful, but the hivexml binary file was missing. The attachment has been uploaded.
Created attachment 1723548 [details] hivex
hivex rpm https://bugzilla.redhat.com/show_bug.cgi?id=1890478
So this is very good information, I think we are starting to get to the bottom of the problem: > hivex: hivex_node_add_child: returning EINVAL because: malformed name https://github.com/libguestfs/hivex/blob/1bb4b0fd05f316e029760d1efd6b7ee97020ae82/lib/write.c#L615 This must happen because the previous call to _hivex_encode_string failed: https://github.com/libguestfs/hivex/blob/1bb4b0fd05f316e029760d1efd6b7ee97020ae82/lib/utf16.c#L94 You might want to try adding some debugging prints to that function and also _hivex_recode to see if you can narrow down the problem. It might be because of your locale settings? Or iconv is broken in some way?
This seems to work for me. My local time is already very late, I will check the issue tomorrow and thanks again for your help! This is the source of my hivex package https://repo.openeuler.org/openEuler-20.03-LTS/everything/aarch64/Packages/hivex-1.3.17-2.oe1.aarch64.rpm
Hello, Mr. Rich. Your last comment is correct. I upgraded the glibc-common software package in the container. The iconv contained in the package can solve the Hivex.Error problem. Thank you very much for your help. I will try to write a demo program for the umount_local() problem mentioned in the previous email. Thank you again for your help!