Re: [Libguestfs] libguestfs fails to mount VBox file
by Richard W.M. Jones
On Mon, Sep 06, 2021 at 05:12:52PM +0200, Joerg Schiermeier wrote:
> On Monday, September 6, 2021 at 16:45:34 CEST Richard W.M. Jones wrote:
>
> > Weird. Does the extended supermin -v -v -v output now include
> > /bin/mount?
> Yes. See attached file:
> 1) libguestfs.txt
So the fix for mount is correct. I pushed that.
> > Does the output of libguestfs-test-tool change or is it
> > still failing because the mount command is missing?
> No. See attached file:
> 2) libguestfs-test-tool.txt
>
> But the "libguestfs-test-tool" is crying about a missing
> "libsystemd.so.0". Devuan didn't have this.
...
> + echo guestfsd --verbose
> guestfsd --verbose
> + guestfsd --verbose
> guestfsd: error while loading shared libraries: libsystemd.so.0: cannot open shared object file: No such file or directory
Does Devuan use Debian's packages unmodified or does it recompile
them? While I understand Devuan's goal is to remove systemd, using
the unmodified Debian libguestfs package won't work because it needs
libsystemd. It needs it to read journal log files from guests that
use journald, eg. for tools like virt-log accessing, say, a Fedora VM.
You can remove this dependency but only by recompiling libguestfs.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top
3 years, 3 months
fixes for building guestfs-tools and virt-v2v against a fresh libguestfs
by Laszlo Ersek
Hi,
I'll post two small patch sets as followups to this "higher order" cover
letter. The goal is to build guestfs-tools and virt-v2v against a
freshly built libguestfs (git checkout), using libguestfs's "run"
script. The modifications affect two projects, libguestfs-common and
guestfs-tools, hence the two (upcoming) patch series.
libguestfs-common is tricky because it is consumed as a submodule by
three git superprojects (libguestfs itself, then guestfs-tools and
virt-v2v). Yet more trickily, the three superprojects don't all seem to
consume libguestfs-common at the same submodule git commit, at the
moment. (libguestfs and guestfs-tools consume the submodule at older
commit 74bc5c5c5cb4, while virt-v2v consumes the submodule at current
HEAD commit 6d26b6eac9da.)
For verifying the libguestfs-common updates, I first attempted various
git-pushes into the submodule checkouts of the superprojects. That
proved super unwieldy, as it would require a whole lot of git massaging
just to (incrementally) rebuild all three superprojects after each
libguestfs-common update. Instead, in each superproject, I created a
development branch, and as first commit on that branch, I removed the
submodule altogether, and replaced it with a directory tree of symbolic
links into my stand-alone libguestfs-common worktree -- refer to the
"lndir" command. I didn't expect creating new files in
libguestfs-common, so once established, the symlink set could be
considered final. Furthermore, "lndir" was required for symlinking
individual regular files: symlinking subdirectories from
libguestfs-common into the superprojects' "common" directories doesn't
work, as the "common" content refers back to the superproject, via
relative pathnames such as "../blah". For such pathnames to work, the
deep "common" directory structure actually needs to exist within each
superproject, only the leaves (the regular files) can be replaced with
symlinks. Thankfully, "lndir" implements just that.
This effectively bumped libguestfs and guestfs-tools to
libguestfs-common HEAD commit 6d26b6eac9da, as a basis for the needed
libguestfs-common fixes.
With the "libguestfs-common" patch set applied (on top of commit
6d26b6eac9da), libguestfs can be built and checked without regressions.
Furthermore, virt-v2v too can be built and checked against the
just-built libguestfs (using the latter's "run" script) without regressions.
The same applies to "guestfs-tools", assuming the other patch set is
applied to it (on top of commit 9ba463545fa0).
Once these patch sets are up-stream, the three superprojects should
advance their submodule references to the new libguestfs-common head commit.
Thanks!
Laszlo
3 years, 3 months
Add detection of AlmaLinux and CloudLinux
by Александр Кравченко
Automatic detection of the distribution doesn't work for AlmaLinux and CloudLinux, so for building you have to specify --with-distro = REDHAT.
https://bugzilla.redhat.com/show_bug.cgi?id=2001636
diff guestfs-appliance.m4 libguestfs/m4/guestfs-appliance.m4
108c108
< [FEDORA | RHEL | CENTOS],[DISTRO=REDHAT],
---
> [FEDORA | RHEL | CENTOS | ALMALINUX | CLOUDLINUX],[DISTRO=REDHAT],
--
Aleksandr Kravchenko
3 years, 3 months
libguestfs fails to mount VBox file
by Joerg Schiermeier
Hello and good morning!
I want to report an error while using guestmount:
1.) What are you trying to do?
I was trying to mount VirtualBox VDI file to a local mount point
2.) What exact command(s) did you run?
guestmount -o umask=0133 -o uid=1000 -o gid=1000 --add /var/local/lib/virtualbox-vm/FreeDOS_x32_9g.vdi --mount /dev/sda1 /home/joerg/Virtualisierung/_guestmount
3.) What was the precise error or output of these commands?
$ guestmount -o umask=0133 -o uid=1000 -o gid=1000 --add /var/local/lib/virtualbox-vm/FreeDOS_x32_9g.vdi --mount /dev/sda1 /home/joerg/Virtualisierung/_guestmount
libguestfs: error: appliance closed the connection unexpectedly.
This usually means the libguestfs appliance crashed.
Do:
export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1
and run the command again. For further information, read:
http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs
You can also run 'libguestfs-test-tool' and post the *complete* output
into a bug report or message to the libguestfs mailing list.
libguestfs: Fehler: guestfs_launch failed.
This usually means the libguestfs appliance failed to start or crashed.
Do:
export LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1
and run the command again. For further information, read:
http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs
You can also run 'libguestfs-test-tool' and post the *complete* output
into a bug report or message to the libguestfs mailing list.
4.) Enable debugging, run the commands again, and capture the complete
output. Do not edit the output.
version of libguestfs: libguestfs0:amd64, v1:1.44.1-2
the operating system version (lsb_release -a):
Distributor ID: Devuan
Description: Devuan GNU/Linux 4 (chimaera)
Release: 4
Codename: chimaera
and how you installed libguestfs (eg. from source, yum install, etc.):
as deb package from Devuans repository
$ export LIBGUESTFS_DEBUG=1
$ export LIBGUESTFS_TRACE=1
$ libguestfs-test-tool
************************************************************
* IMPORTANT NOTICE
*
* When reporting bugs, include the COMPLETE, UNEDITED
* output below in your bug report.
*
************************************************************
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
LIBGUESTFS_DEBUG=1
LIBGUESTFS_TRACE=1
TMPDIR=/tmp/user/1000
PATH=/usr/local/bin:/usr/bin:/bin:/usr/games
XDG_RUNTIME_DIR=/run/user/1000
SELinux: sh: 1: getenforce: not found
libguestfs: trace: add_drive_scratch 104857600
libguestfs: trace: get_tmpdir
libguestfs: trace: get_tmpdir = "/tmp/user/1000"
libguestfs: trace: disk_create "/tmp/user/1000/libguestfscLTaYd/scratch1.img" "raw" 104857600
libguestfs: trace: disk_create = 0
libguestfs: trace: add_drive "/tmp/user/1000/libguestfscLTaYd/scratch1.img" "format:raw" "cachemode:unsafe"
libguestfs: trace: add_drive = 0
libguestfs: trace: add_drive_scratch = 0
libguestfs: trace: get_append
libguestfs: trace: get_append = "NULL"
guestfs_get_append: (null)
libguestfs: trace: get_autosync
libguestfs: trace: get_autosync = 1
guestfs_get_autosync: 1
libguestfs: trace: get_backend
libguestfs: trace: get_backend = "direct"
guestfs_get_backend: direct
libguestfs: trace: get_backend_settings
libguestfs: trace: get_backend_settings = []
guestfs_get_backend_settings: []
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/tmp/user/1000"
guestfs_get_cachedir: /tmp/user/1000
libguestfs: trace: get_hv
libguestfs: trace: get_hv = "/usr/bin/qemu-system-x86_64"
guestfs_get_hv: /usr/bin/qemu-system-x86_64
libguestfs: trace: get_memsize
libguestfs: trace: get_memsize = 1280
guestfs_get_memsize: 1280
libguestfs: trace: get_network
libguestfs: trace: get_network = 0
guestfs_get_network: 0
libguestfs: trace: get_path
libguestfs: trace: get_path = "/usr/lib/x86_64-linux-gnu/guestfs"
guestfs_get_path: /usr/lib/x86_64-linux-gnu/guestfs
libguestfs: trace: get_pgroup
libguestfs: trace: get_pgroup = 0
guestfs_get_pgroup: 0
libguestfs: trace: get_program
libguestfs: trace: get_program = "libguestfs-test-tool"
guestfs_get_program: libguestfs-test-tool
libguestfs: trace: get_recovery_proc
libguestfs: trace: get_recovery_proc = 1
guestfs_get_recovery_proc: 1
libguestfs: trace: get_smp
libguestfs: trace: get_smp = 1
guestfs_get_smp: 1
libguestfs: trace: get_sockdir
libguestfs: trace: get_sockdir = "/run/user/1000"
guestfs_get_sockdir: /run/user/1000
libguestfs: trace: get_tmpdir
libguestfs: trace: get_tmpdir = "/tmp/user/1000"
guestfs_get_tmpdir: /tmp/user/1000
libguestfs: trace: get_trace
libguestfs: trace: get_trace = 1
guestfs_get_trace: 1
libguestfs: trace: get_verbose
libguestfs: trace: get_verbose = 1
guestfs_get_verbose: 1
host_cpu: x86_64
Launching appliance, timeout set to 600 seconds.
libguestfs: trace: launch
libguestfs: trace: max_disks
libguestfs: trace: max_disks = 255
libguestfs: trace: version
libguestfs: trace: version = <struct guestfs_version = major: 1, minor: 44, release: 1, extra: , >
libguestfs: trace: get_backend
libguestfs: trace: get_backend = "direct"
libguestfs: launch: program=libguestfs-test-tool
libguestfs: launch: version=1.44.1
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/user/1000/libguestfscLTaYd
libguestfs: launch: umask=0022
libguestfs: launch: euid=1000
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/tmp/user/1000"
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 /tmp/user/1000/.guestfs-1000/lock
libguestfs: command: run: \ --copy-kernel
libguestfs: command: run: \ -f ext2
libguestfs: command: run: \ --host-cpu x86_64
libguestfs: command: run: \ /usr/lib/x86_64-linux-gnu/guestfs/supermin.d
libguestfs: command: run: \ -o /tmp/user/1000/.guestfs-1000/appliance.d
supermin: version: 5.2.1
supermin: package handler: debian/dpkg
supermin: acquiring lock on /tmp/user/1000/.guestfs-1000/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 = "/tmp/user/1000"
libguestfs: checking for previously cached test results of /usr/bin/qemu-system-x86_64, in /tmp/user/1000/.guestfs-1000
libguestfs: loading previously cached test results
libguestfs: qemu version: 6.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 = "/run/user/1000"
libguestfs: finished testing qemu features
libguestfs: trace: get_backend_setting "gdb"
libguestfs: trace: get_backend_setting = NULL (error)
/usr/bin/qemu-system-x86_64 \
-global virtio-blk-pci.scsi=off \
-no-user-config \
-enable-fips \
-nodefaults \
-display none \
-machine accel=kvm:tcg \
-cpu host \
-m 1280 \
-no-reboot \
-rtc driftfix=slew \
-no-hpet \
-global kvm-pit.lost_tick_policy=discard \
-kernel /tmp/user/1000/.guestfs-1000/appliance.d/kernel \
-initrd /tmp/user/1000/.guestfs-1000/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=/tmp/user/1000/libguestfscLTaYd/scratch1.img,cache=unsafe,format=raw,id=hd0,if=none \
-device scsi-hd,drive=hd0 \
-drive file=/tmp/user/1000/.guestfs-1000/appliance.d/root,snapshot=on,id=appliance,cache=unsafe,if=none,format=raw \
-device scsi-hd,drive=appliance \
-device virtio-serial-pci \
-serial stdio \
-device sga \
-chardev socket,path=/run/user/1000/libguestfs6tpc7f/guestfsd.sock,id=channel0 \
-device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \
-append "panic=1 console=ttyS0 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=UUID=867f6f62-4e14-4677-9451-0069b075372e selinux=0 guestfs_verbose=1 TERM=xterm-256color"
qemu-system-x86_64: -enable-fips: warning: -enable-fips is deprecated, please build QEMU with the `libgcrypt` library as the cryptography provider to enable FIPS compliance
libguestfs: responding to serial console Device Status Report
\x1b[1;256r\x1b[256;256H\x1b[6n
Google, Inc.
Serial Graphics Adapter 08/24/21
SGABIOS $Id$ (build@debian) Tue Aug 24 17:36:26 UTC 2021
Term: 80x24
4 0
SeaBIOS (version 1.14.0-2)
Booting from ROM...
\x1b[2J[ 0.000000] Linux version 5.10.0-8-amd64 (debian-kernel(a)lists.debian.org) (gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP Debian 5.10.46-4 (2021-08-03)
[ 0.000000] Command line: panic=1 console=ttyS0 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=UUID=867f6f62-4e14-4677-9451-0069b075372e selinux=0 guestfs_verbose=1 TERM=xterm-256color
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'compacted' format.
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009f7ff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009f800-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000004ffdcfff] usable
[ 0.000000] BIOS-e820: [mem 0x000000004ffdd000-0x000000004fffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000feffc000-0x00000000feffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] SMBIOS 2.8 present.
[ 0.000000] DMI: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-2 04/01/2014
[ 0.000000] Hypervisor detected: KVM
[ 0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00
[ 0.000000] kvm-clock: cpu 0, msr 3b4b3001, primary cpu clock
[ 0.000000] kvm-clock: using sched offset of 605220453 cycles
[ 0.000002] clocksource: kvm-clock: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
[ 0.000003] tsc: Detected 3699.998 MHz processor
[ 0.000215] last_pfn = 0x4ffdd max_arch_pfn = 0x400000000
[ 0.000252] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WP UC- WT
[ 0.002104] found SMP MP-table at [mem 0x000f5cd0-0x000f5cdf]
[ 0.002214] Using GB pages for direct mapping
[ 0.002349] RAMDISK: [mem 0x4fac9000-0x4ffcffff]
[ 0.002370] ACPI: Early table checksum verification disabled
[ 0.002373] ACPI: RSDP 0x00000000000F5B10 000014 (v00 BOCHS )
[ 0.002375] ACPI: RSDT 0x000000004FFE17EB 000030 (v01 BOCHS BXPC 00000001 BXPC 00000001)
[ 0.002380] ACPI: FACP 0x000000004FFE16D7 000074 (v01 BOCHS BXPC 00000001 BXPC 00000001)
[ 0.002384] ACPI: DSDT 0x000000004FFE0040 001697 (v01 BOCHS BXPC 00000001 BXPC 00000001)
[ 0.002386] ACPI: FACS 0x000000004FFE0000 000040
[ 0.002401] ACPI: APIC 0x000000004FFE174B 000078 (v01 BOCHS BXPC 00000001 BXPC 00000001)
[ 0.002403] ACPI: WAET 0x000000004FFE17C3 000028 (v01 BOCHS BXPC 00000001 BXPC 00000001)
[ 0.002406] ACPI: Reserving FACP table memory at [mem 0x4ffe16d7-0x4ffe174a]
[ 0.002407] ACPI: Reserving DSDT table memory at [mem 0x4ffe0040-0x4ffe16d6]
[ 0.002408] ACPI: Reserving FACS table memory at [mem 0x4ffe0000-0x4ffe003f]
[ 0.002408] ACPI: Reserving APIC table memory at [mem 0x4ffe174b-0x4ffe17c2]
[ 0.002409] ACPI: Reserving WAET table memory at [mem 0x4ffe17c3-0x4ffe17ea]
[ 0.002601] No NUMA configuration found
[ 0.002602] Faking a node at [mem 0x0000000000000000-0x000000004ffdcfff]
[ 0.002609] NODE_DATA(0) allocated [mem 0x4fa9f000-0x4fac8fff]
[ 0.002839] Zone ranges:
[ 0.002839] DMA [mem 0x0000000000001000-0x0000000000ffffff]
[ 0.002841] DMA32 [mem 0x0000000001000000-0x000000004ffdcfff]
[ 0.002842] Normal empty
[ 0.002843] Device empty
[ 0.002844] Movable zone start for each node
[ 0.002846] Early memory node ranges
[ 0.002847] node 0: [mem 0x0000000000001000-0x000000000009efff]
[ 0.002848] node 0: [mem 0x0000000000100000-0x000000004ffdcfff]
[ 0.002849] Initmem setup node 0 [mem 0x0000000000001000-0x000000004ffdcfff]
[ 0.003267] DMA zone: 28770 pages in unavailable ranges
[ 0.004035] DMA32 zone: 35 pages in unavailable ranges
[ 0.004293] ACPI: PM-Timer IO Port: 0x608
[ 0.004300] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
[ 0.004315] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23
[ 0.004317] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[ 0.004319] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
[ 0.004319] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[ 0.004320] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
[ 0.004321] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
[ 0.004325] Using ACPI (MADT) for SMP configuration information
[ 0.004327] TSC deadline timer available
[ 0.004329] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
[ 0.004335] kvm-guest: KVM setup pv remote TLB flush
[ 0.004341] kvm-guest: setup PV sched yield
[ 0.004347] PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff]
[ 0.004348] PM: hibernation: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
[ 0.004349] PM: hibernation: Registered nosave memory: [mem 0x000a0000-0x000effff]
[ 0.004349] PM: hibernation: Registered nosave memory: [mem 0x000f0000-0x000fffff]
[ 0.004351] [mem 0x50000000-0xfeffbfff] available for PCI devices
[ 0.004351] Booting paravirtualized kernel on KVM
[ 0.004353] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645519600211568 ns
[ 0.007189] setup_percpu: NR_CPUS:8192 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1
[ 0.007502] percpu: Embedded 54 pages/cpu s183960 r8192 d29032 u2097152
[ 0.007534] kvm-guest: KVM setup async PF for cpu 0
[ 0.007537] kvm-guest: stealtime: cpu 0, msr 4e418500
[ 0.007540] kvm-guest: PV spinlocks disabled, single CPU
[ 0.007544] Built 1 zonelists, mobility grouping on. Total pages: 322406
[ 0.007545] Policy zone: DMA32
[ 0.007546] Kernel command line: panic=1 console=ttyS0 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=UUID=867f6f62-4e14-4677-9451-0069b075372e selinux=0 guestfs_verbose=1 TERM=xterm-256color
[ 0.007619] cgroup: Disabling memory control group subsystem
[ 0.007917] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[ 0.007937] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.007955] mem auto-init: stack:off, heap alloc:on, heap free:off
[ 0.009245] Memory: 261408K/1310188K available (12295K kernel code, 2544K rwdata, 7552K rodata, 2396K init, 3700K bss, 64104K reserved, 0K cma-reserved)
[ 0.009252] random: get_random_u64 called from __kmem_cache_create+0x2a/0x540 with crng_init=0
[ 0.009322] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.009332] ftrace: allocating 36396 entries in 143 pages
[ 0.017987] ftrace: allocated 143 pages with 5 groups
[ 0.018267] rcu: Hierarchical RCU implementation.
[ 0.018268] rcu: \tRCU restricting CPUs from NR_CPUS=8192 to nr_cpu_ids=1.
[ 0.018269] \tRude variant of Tasks RCU enabled.
[ 0.018270] \tTracing variant of Tasks RCU enabled.
[ 0.018271] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.018271] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.020572] NR_IRQS: 524544, nr_irqs: 256, preallocated irqs: 16
[ 0.020794] random: crng done (trusting CPU's manufacturer)
[ 0.020875] Console: colour *CGA 80x25
[ 0.077348] printk: console [ttyS0] enabled
[ 0.077747] ACPI: Core revision 20200925
[ 0.078135] APIC: Switch to symmetric I/O mode setup
[ 0.078677] x2apic enabled
[ 0.079017] Switched APIC routing to physical x2apic.
[ 0.079433] kvm-guest: setup PV IPIs
[ 0.080241] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x6aaaa638e3b, max_idle_ns: 881590585313 ns
[ 0.081092] Calibrating delay loop (skipped) preset value.. 7399.99 BogoMIPS (lpj=14799992)
[ 0.081761] pid_max: default: 32768 minimum: 301
[ 0.082154] LSM: Security Framework initializing
[ 0.082542] Yama: disabled by default; enable with sysctl kernel.yama.*
[ 0.083105] AppArmor: AppArmor initialized
[ 0.083443] TOMOYO Linux initialized
[ 0.083747] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.084346] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.085088] Last level iTLB entries: 4KB 512, 2MB 255, 4MB 127
[ 0.085088] Last level dTLB entries: 4KB 512, 2MB 255, 4MB 127, 1GB 0
[ 0.085088] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
[ 0.085088] Spectre V2 : Mitigation: Full AMD retpoline
[ 0.085088] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[ 0.085088] Spectre V2 : mitigation: Enabling conditional Indirect Branch Prediction Barrier
[ 0.085088] Speculative Store Bypass: Mitigation: Speculative Store Bypass disabled via prctl and seccomp
[ 0.085088] Freeing SMP alternatives memory: 32K
[ 0.085088] smpboot: CPU0: AMD Ryzen 7 2700X Eight-Core Processor (family: 0x17, model: 0x8, stepping: 0x2)
[ 0.085088] Performance Events: Fam17h+ core perfctr, AMD PMU driver.
[ 0.085088] ... version: 0
[ 0.085088] ... bit width: 48
[ 0.085088] ... generic registers: 6
[ 0.085088] ... value mask: 0000ffffffffffff
[ 0.085088] ... max period: 00007fffffffffff
[ 0.085088] ... fixed-purpose events: 0
[ 0.085088] ... event mask: 000000000000003f
[ 0.085136] rcu: Hierarchical SRCU implementation.
[ 0.085783] smp: Bringing up secondary CPUs ...
[ 0.086156] smp: Brought up 1 node, 1 CPU
[ 0.086489] smpboot: Max logical packages: 1
[ 0.086834] smpboot: Total of 1 processors activated (7399.99 BogoMIPS)
[ 0.090306] node 0 deferred pages initialised in 4ms
[ 0.090900] devtmpfs: initialized
[ 0.091221] x86/mm: Memory block size: 128MB
[ 0.091771] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.092567] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[ 0.093129] pinctrl core: initialized pinctrl subsystem
[ 0.093703] NET: Registered protocol family 16
[ 0.094151] audit: initializing netlink subsys (disabled)
[ 0.094670] thermal_sys: Registered thermal governor 'fair_share'
[ 0.094671] thermal_sys: Registered thermal governor 'bang_bang'
[ 0.095167] thermal_sys: Registered thermal governor 'step_wise'
[ 0.095652] thermal_sys: Registered thermal governor 'user_space'
[ 0.096134] thermal_sys: Registered thermal governor 'power_allocator'
[ 0.096627] cpuidle: using governor ladder
[ 0.097429] audit: type=2000 audit(1630895810.245:1): state=initialized audit_enabled=0 res=1
[ 0.098112] cpuidle: using governor menu
[ 0.098882] ACPI: bus type PCI registered
[ 0.099212] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[ 0.099855] PCI: Using configuration type 1 for base access
[ 0.100313] PCI: Using configuration type 1 for extended access
[ 0.101322] Kprobes globally optimized
[ 0.101721] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.102288] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.102895] alg: self-tests disabled
[ 0.103450] ACPI: Added _OSI(Module Device)
[ 0.103801] ACPI: Added _OSI(Processor Device)
[ 0.104164] ACPI: Added _OSI(3.0 _SCP Extensions)
[ 0.104546] ACPI: Added _OSI(Processor Aggregator Device)
[ 0.104984] ACPI: Added _OSI(Linux-Dell-Video)
[ 0.105095] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[ 0.105527] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)
[ 0.106336] ACPI: 1 ACPI AML tables successfully acquired and loaded
[ 0.107381] ACPI: Interpreter enabled
[ 0.107696] ACPI: (supports S0 S3 S4 S5)
[ 0.108017] ACPI: Using IOAPIC for interrupt routing
[ 0.108427] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[ 0.109159] ACPI: Enabled 2 GPEs in block 00 to 0F
[ 0.110662] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[ 0.111177] acpi PNP0A03:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI HPX-Type3]
[ 0.112061] acpiphp: Slot [2] registered
[ 0.112397] acpiphp: Slot [3] registered
[ 0.112731] acpiphp: Slot [4] registered
[ 0.113065] acpiphp: Slot [5] registered
[ 0.113126] acpiphp: Slot [6] registered
[ 0.113474] acpiphp: Slot [7] registered
[ 0.113810] acpiphp: Slot [8] registered
[ 0.114144] acpiphp: Slot [9] registered
[ 0.114480] acpiphp: Slot [10] registered
[ 0.114822] acpiphp: Slot [11] registered
[ 0.115163] acpiphp: Slot [12] registered
[ 0.115503] acpiphp: Slot [13] registered
[ 0.115845] acpiphp: Slot [14] registered
[ 0.116185] acpiphp: Slot [15] registered
[ 0.116527] acpiphp: Slot [16] registered
[ 0.116871] acpiphp: Slot [17] registered
[ 0.117113] acpiphp: Slot [18] registered
[ 0.117456] acpiphp: Slot [19] registered
[ 0.117803] acpiphp: Slot [20] registered
[ 0.118142] acpiphp: Slot [21] registered
[ 0.118484] acpiphp: Slot [22] registered
[ 0.118825] acpiphp: Slot [23] registered
[ 0.119163] acpiphp: Slot [24] registered
[ 0.119502] acpiphp: Slot [25] registered
[ 0.119841] acpiphp: Slot [26] registered
[ 0.120179] acpiphp: Slot [27] registered
[ 0.120518] acpiphp: Slot [28] registered
[ 0.120857] acpiphp: Slot [29] registered
[ 0.121105] acpiphp: Slot [30] registered
[ 0.121444] acpiphp: Slot [31] registered
[ 0.121780] PCI host bridge to bus 0000:00
[ 0.122116] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window]
[ 0.122663] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window]
[ 0.123210] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
[ 0.123813] pci_bus 0000:00: root bus resource [mem 0x50000000-0xfebfffff window]
[ 0.124415] pci_bus 0000:00: root bus resource [mem 0x100000000-0x17fffffff window]
[ 0.125042] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.125205] pci 0000:00:00.0: [8086:1237] type 00 class 0x060000
[ 0.126047] pci 0000:00:01.0: [8086:7000] type 00 class 0x060100
[ 0.126937] pci 0000:00:01.1: [8086:7010] type 00 class 0x010180
[ 0.128571] pci 0000:00:01.1: reg 0x20: [io 0xc0a0-0xc0af]
[ 0.129483] pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io 0x01f0-0x01f7]
[ 0.130079] pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io 0x03f6]
[ 0.130606] pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io 0x0170-0x0177]
[ 0.131181] pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io 0x0376]
[ 0.131826] pci 0000:00:01.3: [8086:7113] type 00 class 0x068000
[ 0.132627] pci 0000:00:01.3: quirk: [io 0x0600-0x063f] claimed by PIIX4 ACPI
[ 0.133097] pci 0000:00:01.3: quirk: [io 0x0700-0x070f] claimed by PIIX4 SMB
[ 0.133886] pci 0000:00:02.0: [1af4:1005] type 00 class 0x00ff00
[ 0.134831] pci 0000:00:02.0: reg 0x10: [io 0xc080-0xc09f]
[ 0.137276] pci 0000:00:02.0: reg 0x20: [mem 0xfebf0000-0xfebf3fff 64bit pref]
[ 0.138743] pci 0000:00:03.0: [1af4:1004] type 00 class 0x010000
[ 0.139797] pci 0000:00:03.0: reg 0x10: [io 0xc000-0xc03f]
[ 0.140754] pci 0000:00:03.0: reg 0x14: [mem 0xfebfe000-0xfebfefff]
[ 0.142839] pci 0000:00:03.0: reg 0x20: [mem 0xfebf4000-0xfebf7fff 64bit pref]
[ 0.144615] pci 0000:00:04.0: [1af4:1003] type 00 class 0x078000
[ 0.145865] pci 0000:00:04.0: reg 0x10: [io 0xc040-0xc07f]
[ 0.148164] pci 0000:00:04.0: reg 0x14: [mem 0xfebff000-0xfebfffff]
[ 0.150024] pci 0000:00:04.0: reg 0x20: [mem 0xfebf8000-0xfebfbfff 64bit pref]
[ 0.151827] ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
[ 0.152384] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
[ 0.152907] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
[ 0.153156] ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
[ 0.153649] ACPI: PCI Interrupt Link [LNKS] (IRQs *9)
[ 0.154167] iommu: Default domain type: Translated
[ 0.154594] vgaarb: loaded
[ 0.154868] EDAC MC: Ver: 3.0.0
[ 0.155356] NetLabel: Initializing
[ 0.155640] NetLabel: domain hash size = 128
[ 0.155995] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO
[ 0.156457] NetLabel: unlabeled traffic allowed by default
[ 0.156902] PCI: Using ACPI for IRQ routing
[ 0.157236] clocksource: Switched to clocksource kvm-clock
[ 0.164817] VFS: Disk quotas dquot_6.6.0
[ 0.165198] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.165835] AppArmor: AppArmor Filesystem Enabled
[ 0.166240] pnp: PnP ACPI init
[ 0.166685] pnp: PnP ACPI: found 5 devices
[ 0.172167] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[ 0.172921] NET: Registered protocol family 2
[ 0.173320] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.174169] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[ 0.174870] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.175539] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
[ 0.176143] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.176689] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.177250] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 0.178549] NET: Registered protocol family 1
[ 0.178919] NET: Registered protocol family 44
[ 0.179291] pci_bus 0000:00: resource 4 [io 0x0000-0x0cf7 window]
[ 0.179808] pci_bus 0000:00: resource 5 [io 0x0d00-0xffff window]
[ 0.180314] pci_bus 0000:00: resource 6 [mem 0x000a0000-0x000bffff window]
[ 0.180876] pci_bus 0000:00: resource 7 [mem 0x50000000-0xfebfffff window]
[ 0.181446] pci_bus 0000:00: resource 8 [mem 0x100000000-0x17fffffff window]
[ 0.182052] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[ 0.182523] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[ 0.183006] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[ 0.183538] PCI: CLS 0 bytes, default 64
[ 0.183893] Trying to unpack rootfs image as initramfs...
[ 0.186358] Freeing initrd memory: 5148K
[ 0.186780] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x6aaaa638e3b, max_idle_ns: 881590585313 ns
[ 0.187813] Initialise system trusted keyrings
[ 0.188191] Key type blacklist registered
[ 0.188562] workingset: timestamp_bits=36 max_order=19 bucket_order=0
[ 0.189710] zbud: loaded
[ 0.190019] integrity: Platform Keyring initialized
[ 0.190424] Key type asymmetric registered
[ 0.190762] Asymmetric key parser 'x509' registered
[ 0.191165] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 0.191790] io scheduler mq-deadline registered
[ 0.192218] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[ 0.192899] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[ 0.193718] 00:03: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 0.194493] Linux agpgart interface v0.103
[ 0.194882] AMD-Vi: AMD IOMMUv2 driver by Joerg Roedel <jroedel(a)suse.de>
[ 0.195426] AMD-Vi: AMD IOMMUv2 functionality not available on this system
[ 0.196077] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
[ 0.197226] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 0.197633] serio: i8042 AUX port at 0x60,0x64 irq 12
[ 0.198096] mousedev: PS/2 mouse device common for all mice
[ 0.198701] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
[ 0.199570] rtc_cmos 00:04: RTC can wake from S4
[ 0.200130] rtc_cmos 00:04: registered as rtc0
[ 0.200529] rtc_cmos 00:04: setting system clock to 2021-09-06T02:36:49 UTC (1630895809)
[ 0.201198] rtc_cmos 00:04: alarms up to one day, y3k, 242 bytes nvram
[ 0.201736] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.202342] NET: Registered protocol family 10
[ 0.203018] Segment Routing with IPv6
[ 0.203335] mip6: Mobile IPv6
[ 0.203583] NET: Registered protocol family 17
[ 0.203961] mpls_gso: MPLS GSO support
[ 0.204334] IPI shorthand broadcast: enabled
[ 0.204687] sched_clock: Marking stable (140813998, 60366716)->(216134689, -14953975)
[ 0.205359] registered taskstats version 1
[ 0.205700] Loading compiled-in X.509 certificates
[ 0.206242] Loaded X.509 cert 'Debian Secure Boot CA: 6ccece7e4c6c0d1f6149f3dd27dfcc5cbb419ea1'
[ 0.206948] Loaded X.509 cert 'Debian Secure Boot Signer 2021 - linux: 4b6ef5abca669825178e052c84667ccbc0531f8c'
[ 0.207776] zswap: loaded using pool lzo/zbud
[ 0.208333] Key type ._fscrypt registered
[ 0.208666] Key type .fscrypt registered
[ 0.208988] Key type fscrypt-provisioning registered
[ 0.209429] AppArmor: AppArmor sha1 policy hashing enabled
[ 0.211108] Freeing unused kernel image (initmem) memory: 2396K
[ 0.221097] Write protecting the kernel read-only data: 22528k
[ 0.221874] Freeing unused kernel image (text/rodata gap) memory: 2040K
[ 0.222490] Freeing unused kernel image (rodata/data gap) memory: 640K
[ 0.250846] x86/mm: Checked W+X mappings: passed, no W+X pages found.
[ 0.251417] Run /init as init process
supermin: mounting /proc
supermin: ext2 mini initrd starting up: 5.2.1
supermin: cmdline: panic=1 console=ttyS0 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=UUID=867f6f62-4e14-4677-9451-0069b075372e selinux=0 guestfs_verbose=1 TERM=xterm-256color
supermin: uptime: 0.19 0.01
supermin: mounting /sys
supermin: internal insmod crc32-pclmul.ko
supermin: internal insmod crc32c-intel.ko
supermin: internal insmod crct10dif_common.ko
supermin: internal insmod crct10dif-pclmul.ko
supermin: internal insmod crc32_generic.ko
supermin: internal insmod crc32c_generic.ko
supermin: internal insmod crct10dif_generic.ko
supermin: internal insmod libnvdimm.ko
supermin: internal insmod nfit.ko
supermin: internal insmod scsi_mod.ko
[ 0.271379] SCSI subsystem initialized
supermin: internal insmod libata.ko
supermin: internal insmod ata_piix.ko
[ 0.279731] scsi host0: ata_piix
[ 0.280074] scsi host1: ata_piix
[ 0.280370] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc0a0 irq 14
[ 0.280931] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc0a8 irq 15
^H^H^Hsupermin: internal insmod virtio.ko
supermin: internal insmod virtio_ring.ko
supermin: internal insmod virtio_blk.ko
supermin: internal insmod rng-core.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 nd_btt.ko
supermin: internal insmod nd_pmem.ko
supermin: internal insmod nd_virtio.ko
supermin: internal insmod virtio_pmem.ko
supermin: internal insmod crc-t10dif.ko
supermin: internal insmod t10-pi.ko
supermin: internal insmod sd_mod.ko
supermin: internal insmod virtio_scsi.ko
supermin: internal insmod virtio_balloon.ko
supermin: internal insmod virtio_dma_buf.ko
supermin: internal insmod virtio_input.ko
supermin: internal insmod virtio_mem.ko
supermin: internal insmod virtio_mmio.ko
supermin: internal insmod virtio_pci.ko
[ 0.479475] PCI Interrupt Link [LNKB] enabled at IRQ 10
[ 0.491903] PCI Interrupt Link [LNKC] enabled at IRQ 11
[ 0.493489] scsi host2: Virtio SCSI HBA
[ 0.497203] scsi 2:0:0:0: Direct-Access QEMU QEMU HARDDISK 2.5+ PQ: 0 ANSI: 5
[ 0.497974] scsi 2:0:1:0: Direct-Access QEMU QEMU HARDDISK 2.5+ PQ: 0 ANSI: 5
[ 0.509312] sd 2:0:0:0: Power-on or device reset occurred
[ 0.509889] sd 2:0:1:0: Power-on or device reset occurred
[ 0.510406] sd 2:0:0:0: [sda] 204800 512-byte logical blocks: (105 MB/100 MiB)
[ 0.511028] sd 2:0:0:0: [sda] Write Protect is off
[ 0.511484] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 0.512252] sd 2:0:1:0: [sdb] 8388608 512-byte logical blocks: (4.29 GB/4.00 GiB)
[ 0.512879] sd 2:0:1:0: [sdb] Write Protect is off
[ 0.513485] sd 2:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 0.514784] sd 2:0:0:0: [sda] Attached SCSI disk
[ 0.515254] sd 2:0:1:0: [sdb] Attached SCSI disk
[ 0.519276] PCI Interrupt Link [LNKD] enabled at IRQ 11
supermin: internal insmod jbd2.ko
supermin: internal insmod mbcache.ko
supermin: internal insmod crc16.ko
supermin: internal insmod ext4.ko
supermin: internal insmod fuse.ko
[ 0.579789] fuse: init (API version 7.32)
supermin: internal insmod virtiofs.ko
supermin: internal insmod crc-itu-t.ko
supermin: internal insmod crc64.ko
supermin: internal insmod crc7.ko
supermin: internal insmod crc8.ko
supermin: internal insmod libcrc32c.ko
supermin: picked 8:16 as root device
supermin: creating /dev/root as block special 8:16
supermin: mounting new root on /root
[ 0.585012] EXT4-fs (sdb): mounting ext2 file system using the ext4 subsystem
[ 0.586407] EXT4-fs (sdb): mounted filesystem without journal. Opts:
supermin: deleting initramfs files
supermin: chroot
Starting /init script ...
/init: line 35: mount: command not found
/init: line 38: /proc/cmdline: No such file or directory
/init: line 60: mount: command not found
/init: line 63: mount: command not found
/init: line 74: mount: command not found
/init: line 76: mount: command not found
/init: line 78: mount: command not found
dd: failed to open '/dev/urandom': No such file or directory
/init: line 95: systemd-tmpfiles: command not found
failed to parse kernel command line, ignoring: No such file or directory
cannot open /dev/null
starting version 3.2.9
specified group 'tty' unknown
specified group 'dialout' unknown
specified group 'kmem' unknown
specified group 'input' unknown
specified group 'video' unknown
specified group 'audio' unknown
specified group 'lp' unknown
specified group 'disk' unknown
specified group 'cdrom' unknown
specified group 'tape' unknown
specified group 'kvm' unknown
mdadm: cannot open /proc/partitions
mdadm: No devices listed in conf file were found.
/init: line 144: lvmetad: command not found
[ 0.649993] device-mapper: uevent: version 1.0.3
[ 0.650556] device-mapper: ioctl: 4.43.0-ioctl (2020-10-01) initialised: dm-devel(a)redhat.com
lvm: error while loading shared libraries: libsystemd.so.0: cannot open shared object file: No such file or directory
mdadm: cannot open /proc/partitions
mdadm: No devices listed in conf file were found.
Unable to open /sys/block: No such file or directory
[ 0.660948] ldmtool[122]: segfault at 0 ip 00005636845cd205 sp 00007ffe714292e0 error 4 in ldmtool[5636845cb000+3000]
[ 0.661827] Code: ff ff 31 c0 48 8b 5c 24 18 64 48 2b 1c 25 28 00 00 00 75 56 48 83 c4 28 5b 5d 41 5c 41 5d 41 5e 41 5f c3 66 90 e8 eb fd ff ff <4c> 8b 20 48 89 44 24 08 4c 89 e7 e8 2b e0 ff ff 45 31 c0 4c 89 e1
/init: line 154: 122 Segmentation fault ldmtool create all
Linux (none) 5.10.0-8-amd64 #1 SMP Debian 5.10.46-4 (2021-08-03) x86_64 GNU/Linux
/dev:
total 12
lrwxrwxrwx 1 0 0 13 Sep 6 02:36 fd -> /proc/self/fd
-rw-r--r-- 1 0 0 37 Sep 6 02:36 kmsg
drwxr-xr-x 2 0 0 4096 Sep 6 02:36 pts
drwxr-xr-x 2 0 0 4096 Sep 6 02:36 shm
lrwxrwxrwx 1 0 0 15 Sep 6 02:36 stderr -> /proc/self/fd/2
lrwxrwxrwx 1 0 0 15 Sep 6 02:36 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 0 0 15 Sep 6 02:36 stdout -> /proc/self/fd/1
/dev/pts:
total 0
/dev/shm:
total 0
cat: /proc/mounts: No such file or directory
cat: /proc/mdstat: No such file or directory
lvm: error while loading shared libraries: libsystemd.so.0: cannot open shared object file: No such file or directory
lvm: error while loading shared libraries: libsystemd.so.0: cannot open shared object file: No such file or directory
lvm: error while loading shared libraries: libsystemd.so.0: cannot open shared object file: No such file or directory
lvm: error while loading shared libraries: libsystemd.so.0: cannot open shared object file: No such file or directory
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
cat: /etc/resolv.conf: No such file or directory
libkmod: ERROR ../libkmod/libkmod-module.c:1668 kmod_module_new_from_loaded: could not open /proc/modules: No such file or directory
Error: could not get list of modules: No such file or directory
Mon Sep 6 02:36:49 UTC 2021
clocksource: cat: /sys/devices/system/clocksource/clocksource0/current_clocksource: No such file or directory
uptime: cat: /proc/uptime: No such file or directory
grep: /proc/cmdline: No such file or directory
guestfsd --verbose
guestfsd: error while loading shared libraries: libsystemd.so.0: cannot open shared object file: No such file or directory
/init: line 264: reboot: command not found
[ 0.691521] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
[ 0.692153] CPU: 0 PID: 1 Comm: init Not tainted 5.10.0-8-amd64 #1 Debian 5.10.46-4
[ 0.692772] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-2 04/01/2014
[ 0.693456] Call Trace:
[ 0.693667] dump_stack+0x6b/0x83
[ 0.693943] panic+0x101/0x2d7
[ 0.694198] do_exit.cold+0xb3/0xb3
[ 0.694488] do_group_exit+0x33/0xa0
[ 0.694785] __x64_sys_exit_group+0x14/0x20
[ 0.695130] do_syscall_64+0x33/0x80
[ 0.695427] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 0.695848] RIP: 0033:0x7ff62f034699
[ 0.696146] Code: 00 4c 8b 05 f9 27 0f 00 be e7 00 00 00 ba 3c 00 00 00 eb 12 0f 1f 44 00 00 89 d0 0f 05 48 3d 00 f0 ff ff 77 1c f4 89 f0 0f 05 <48> 3d 00 f0 ff ff 76 e7 f7 d8 64 41 89 00 eb df 0f 1f 80 00 00 00
[ 0.697654] RSP: 002b:00007ffeb76fc3d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
[ 0.698269] RAX: ffffffffffffffda RBX: 00007ff62f129610 RCX: 00007ff62f034699
[ 0.698851] RDX: 000000000000003c RSI: 00000000000000e7 RDI: 000000000000007f
[ 0.699431] RBP: 000000000000007f R08: ffffffffffffff80 R09: 0000000000000001
[ 0.700023] R10: 0000000000000004 R11: 0000000000000246 R12: 00007ff62f129610
[ 0.700603] R13: 0000000000000001 R14: 00007ff62f129ae8 R15: 0000000000000000
[ 0.701315] Kernel Offset: 0x1c000000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[ 0.702191] Rebooting in 1 seconds..
libguestfs: error: appliance closed the connection unexpectedly, see earlier error messages
libguestfs: child_cleanup: 0x564199b13e50: child process died
libguestfs: sending SIGTERM to process 13815
libguestfs: qemu maxrss 174092K
libguestfs: error: guestfs_launch failed, see earlier error messages
libguestfs: trace: launch = -1 (error)
libguestfs: trace: close
libguestfs: closing guestfs handle 0x564199b13e50 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/user/1000/libguestfscLTaYd
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /run/user/1000/libguestfs6tpc7f
1 joerg@Archimedes ~/Downloads %
Have a nice day!
--
Kindly regards
Joerg Schiermeier
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Jörg Schiermeier * Informatiker * IT-Ausbilder (AEVO) * MINT-Dozent
Schiermeier-IT * Beratung, Software-Entwicklung und Schulung
Büro: Friedrichstr. 51 * 33615 Bielefeld
fon(g): (0521) 521 88 66 * Mail(g): info(a)Schiermeier-IT.de
fax/msg: (0521) 521 88 67 * Web: www.Schiermeier-IT.de
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
3 years, 3 months
[PATCH] spec: Relax NBD_OPT_LIST_META_CONTEXTS
by Eric Blake
Using OPT_SET_META_CONTEXTS is stateful (it is documented to wipe out
any previously-requested contexts, and we just tightened the spec to
clarify that starting TLS also wipes it out). But
OPT_LIST_META_CONTEXTS is not stateful; and in fact, with a
SELECTIVETLS server, it can be handy to list the meta contexts
available on an unencrypted export, then enable encryption, and then
further list what contexts are available on encrypted exports (as the
server is permitted to let them differ). Thus, while a wise client
will renegotiate structured replies after the starttls, there's no
reason to forbid a server from answering a client that uses
list_meta_contexts prior to encryption without also requesting
structured replies.
---
doc/proto.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/doc/proto.md b/doc/proto.md
index 9dd59da..1586d7d 100644
--- a/doc/proto.md
+++ b/doc/proto.md
@@ -1325,9 +1325,9 @@ of the newstyle negotiation.
Return a list of `NBD_REP_META_CONTEXT` replies, one per context,
followed by an `NBD_REP_ACK` or an error.
- This option MUST NOT be requested unless structured replies have
+ This option SHOULD NOT be requested unless structured replies have
been negotiated first. If a client attempts to do so, a server
- SHOULD send `NBD_REP_ERR_INVALID`.
+ MAY send `NBD_REP_ERR_INVALID`.
Data:
- 32 bits, length of export name.
--
2.31.1
3 years, 3 months
[libnbd PATCH] ci: Add i686 builds
by Martin Kletzander
- ci/refresh: add generation for i686 connections
- ci/build.sh: indentation fix and i686-related changes
- ci/{containers,cirrus}: regenerate files
- .gitlab-ci.yaml: add i686 builds
Signed-off-by: Martin Kletzander <mkletzan(a)redhat.com>
---
The pipeline for this commit can be seen here:
https://gitlab.com/nertpinx/libnbd/-/pipelines/364646965
While at it I was wondering if we maybe want to set up the e-mail notifications
so that libguestfs list is notified as well, maybe someone else who is
interested (Eric?). We can also set up something like libguestfs-ci list where
all the notifications from all projects get sent (similarly to libvirt-ci list),
but I do not suppose that is something people would be interested in. Correct
me if I am wrong, though ;) Feedback appreciated.
.gitlab-ci.yml | 39 ++++++--
ci/build.sh | 26 ++++--
ci/cirrus/freebsd-12.vars | 2 +-
ci/cirrus/freebsd-13.vars | 2 +-
ci/cirrus/freebsd-current.vars | 2 +-
ci/cirrus/macos-11.vars | 2 +-
ci/containers/alpine-314.Dockerfile | 2 +-
ci/containers/alpine-edge.Dockerfile | 2 +-
ci/containers/centos-8.Dockerfile | 2 +-
ci/containers/centos-stream-8.Dockerfile | 2 +-
ci/containers/debian-10-cross-i686.Dockerfile | 90 +++++++++++++++++++
ci/containers/debian-10.Dockerfile | 2 +-
ci/containers/debian-11-cross-i686.Dockerfile | 90 +++++++++++++++++++
ci/containers/debian-11.Dockerfile | 68 ++++++++++++++
ci/containers/debian-sid.Dockerfile | 2 +-
ci/containers/fedora-33.Dockerfile | 2 +-
ci/containers/fedora-34-cross-i686.Dockerfile | 0
ci/containers/fedora-34.Dockerfile | 2 +-
ci/containers/fedora-rawhide.Dockerfile | 2 +-
ci/containers/opensuse-leap-152.Dockerfile | 2 +-
ci/containers/opensuse-tumbleweed.Dockerfile | 2 +-
ci/containers/ubuntu-1804.Dockerfile | 2 +-
ci/containers/ubuntu-2004.Dockerfile | 2 +-
ci/refresh | 6 ++
24 files changed, 322 insertions(+), 31 deletions(-)
create mode 100644 ci/containers/debian-10-cross-i686.Dockerfile
create mode 100644 ci/containers/debian-11-cross-i686.Dockerfile
create mode 100644 ci/containers/debian-11.Dockerfile
create mode 100644 ci/containers/fedora-34-cross-i686.Dockerfile
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 22e732b184d9..a90c25956ca4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -95,6 +95,17 @@ stages:
rules:
- if: "$CIRRUS_GITHUB_REPO && $CIRRUS_API_TOKEN"
+# Cross-compilation container build jobs
+i686-debian-10-container:
+ extends: .container_job
+ variables:
+ NAME: debian-10-cross-i686
+
+i686-debian-11-container:
+ extends: .container_job
+ variables:
+ NAME: debian-11-cross-i686
+
# Native container build jobs
x64-alpine-314-container:
extends: .container_job
@@ -116,10 +127,10 @@ x64-centos-stream-8-container:
variables:
NAME: centos-stream-8
-x64-debian-10-container:
+x64-debian-11-container:
extends: .container_job
variables:
- NAME: debian-10
+ NAME: debian-11
x64-debian-sid-container:
extends: .container_job
@@ -162,14 +173,30 @@ x64-ubuntu-2004-container:
variables:
NAME: ubuntu-2004
-# Native architecture build + test jobs
-
-x64-debian-10:
+# Cross-compilation build jobs
+i686-debian-10:
extends: .native_build_job
needs:
- - x64-debian-10-container
+ - i686-debian-10-container
variables:
NAME: debian-10
+ CROSS: i686
+
+i686-debian-11:
+ extends: .native_build_job
+ needs:
+ - i686-debian-11-container
+ variables:
+ NAME: debian-11
+ CROSS: i686
+
+# Native architecture build + test jobs
+x64-debian-11:
+ extends: .native_build_job
+ needs:
+ - x64-debian-11-container
+ variables:
+ NAME: debian-11
x64-debian-sid:
extends: .native_build_job
diff --git a/ci/build.sh b/ci/build.sh
index 8ee4a87ea9b7..fc43c3008952 100755
--- a/ci/build.sh
+++ b/ci/build.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-set -e
+set -xe
skip_tests() {
# Add a way to run all the tests, even the skipped ones, with an environment
@@ -72,24 +72,34 @@ main() {
CONFIG_ARGS="\
--enable-gcc-warnings \
---enable-fuse \
---enable-ocaml \
---enable-python \
---enable-golang \
--with-gnutls \
--with-libxml2 \
"
- if test "$GOLANG" != "skip"
+ if "$CROSS"
then
- CONFIG_ARGS="$CONFIG_ARGS --enable-golang"
+ CONFIG_ARGS="$CONFIG_ARGS
+ --disable-fuse
+ --disable-ocaml
+ --disable-python"
+ else
+ CONFIG_ARGS="$CONFIG_ARGS
+ --enable-fuse
+ --enable-ocaml
+ --enable-python"
+ if test "$GOLANG" = "skip"
+ then
+ CONFIG_ARGS="$CONFIG_ARGS --disable-golang"
+ else
+ CONFIG_ARGS="$CONFIG_ARGS --enable-golang"
+ fi
fi
./configure $CONFIGURE_OPTS $CONFIG_ARGS
$MAKE
- if test -n "$CROSS"
+ if test -n "$CROSS" -a "$CROSS" != "i686"
then
echo "Possibly run tests with an emulator in the future"
return 0
diff --git a/ci/cirrus/freebsd-12.vars b/ci/cirrus/freebsd-12.vars
index 721c627af0a1..2573de241849 100644
--- a/ci/cirrus/freebsd-12.vars
+++ b/ci/cirrus/freebsd-12.vars
@@ -2,7 +2,7 @@
#
# $ lcitool variables freebsd-12 libnbd
#
-# https://gitlab.com/libvirt/libvirt-ci/-/commit/0bb9bfada8e143e05bb436a067...
+# https://gitlab.com/libvirt/libvirt-ci
PACKAGING_COMMAND='pkg'
CCACHE='/usr/local/bin/ccache'
diff --git a/ci/cirrus/freebsd-13.vars b/ci/cirrus/freebsd-13.vars
index ce43238c7a9f..40e8ddd43e49 100644
--- a/ci/cirrus/freebsd-13.vars
+++ b/ci/cirrus/freebsd-13.vars
@@ -2,7 +2,7 @@
#
# $ lcitool variables freebsd-13 libnbd
#
-# https://gitlab.com/libvirt/libvirt-ci/-/commit/0bb9bfada8e143e05bb436a067...
+# https://gitlab.com/libvirt/libvirt-ci
PACKAGING_COMMAND='pkg'
CCACHE='/usr/local/bin/ccache'
diff --git a/ci/cirrus/freebsd-current.vars b/ci/cirrus/freebsd-current.vars
index e8b58a515836..73dff989ffb4 100644
--- a/ci/cirrus/freebsd-current.vars
+++ b/ci/cirrus/freebsd-current.vars
@@ -2,7 +2,7 @@
#
# $ lcitool variables freebsd-current libnbd
#
-# https://gitlab.com/libvirt/libvirt-ci/-/commit/0bb9bfada8e143e05bb436a067...
+# https://gitlab.com/libvirt/libvirt-ci
PACKAGING_COMMAND='pkg'
CCACHE='/usr/local/bin/ccache'
diff --git a/ci/cirrus/macos-11.vars b/ci/cirrus/macos-11.vars
index 691917d16de0..eae75535a960 100644
--- a/ci/cirrus/macos-11.vars
+++ b/ci/cirrus/macos-11.vars
@@ -2,7 +2,7 @@
#
# $ lcitool variables macos-11 libnbd
#
-# https://gitlab.com/libvirt/libvirt-ci/-/commit/0bb9bfada8e143e05bb436a067...
+# https://gitlab.com/libvirt/libvirt-ci
PACKAGING_COMMAND='brew'
CCACHE='/usr/local/bin/ccache'
diff --git a/ci/containers/alpine-314.Dockerfile b/ci/containers/alpine-314.Dockerfile
index f818f27ef354..0fb954abb66b 100644
--- a/ci/containers/alpine-314.Dockerfile
+++ b/ci/containers/alpine-314.Dockerfile
@@ -2,7 +2,7 @@
#
# $ lcitool dockerfile alpine-314 libnbd
#
-# https://gitlab.com/libvirt/libvirt-ci/-/commit/0bb9bfada8e143e05bb436a067...
+# https://gitlab.com/libvirt/libvirt-ci
FROM docker.io/library/alpine:3.14
diff --git a/ci/containers/alpine-edge.Dockerfile b/ci/containers/alpine-edge.Dockerfile
index d59ed0141513..e27775d647fb 100644
--- a/ci/containers/alpine-edge.Dockerfile
+++ b/ci/containers/alpine-edge.Dockerfile
@@ -2,7 +2,7 @@
#
# $ lcitool dockerfile alpine-edge libnbd
#
-# https://gitlab.com/libvirt/libvirt-ci/-/commit/0bb9bfada8e143e05bb436a067...
+# https://gitlab.com/libvirt/libvirt-ci
FROM docker.io/library/alpine:edge
diff --git a/ci/containers/centos-8.Dockerfile b/ci/containers/centos-8.Dockerfile
index ac1079a47f04..1e05d4cda98a 100644
--- a/ci/containers/centos-8.Dockerfile
+++ b/ci/containers/centos-8.Dockerfile
@@ -2,7 +2,7 @@
#
# $ lcitool dockerfile centos-8 libnbd
#
-# https://gitlab.com/libvirt/libvirt-ci/-/commit/0bb9bfada8e143e05bb436a067...
+# https://gitlab.com/libvirt/libvirt-ci
FROM docker.io/library/centos:8
diff --git a/ci/containers/centos-stream-8.Dockerfile b/ci/containers/centos-stream-8.Dockerfile
index 29be6ed4c1fd..8f2dff57b3a3 100644
--- a/ci/containers/centos-stream-8.Dockerfile
+++ b/ci/containers/centos-stream-8.Dockerfile
@@ -2,7 +2,7 @@
#
# $ lcitool dockerfile centos-stream-8 libnbd
#
-# https://gitlab.com/libvirt/libvirt-ci/-/commit/0bb9bfada8e143e05bb436a067...
+# https://gitlab.com/libvirt/libvirt-ci
FROM quay.io/centos/centos:stream8
diff --git a/ci/containers/debian-10-cross-i686.Dockerfile b/ci/containers/debian-10-cross-i686.Dockerfile
new file mode 100644
index 000000000000..c7c8dca8df4e
--- /dev/null
+++ b/ci/containers/debian-10-cross-i686.Dockerfile
@@ -0,0 +1,90 @@
+# THIS FILE WAS AUTO-GENERATED
+#
+# $ lcitool dockerfile --cross i686 debian-10 libnbd
+#
+# https://gitlab.com/libvirt/libvirt-ci
+
+FROM docker.io/library/debian:10-slim
+
+RUN export DEBIAN_FRONTEND=noninteractive && \
+ apt-get update && \
+ apt-get install -y eatmydata && \
+ eatmydata apt-get dist-upgrade -y && \
+ eatmydata apt-get install --no-install-recommends -y \
+ autoconf \
+ automake \
+ bash-completion \
+ bsdmainutils \
+ ca-certificates \
+ ccache \
+ diffutils \
+ flake8 \
+ fuse3 \
+ git \
+ gnutls-bin \
+ golang \
+ iproute2 \
+ jq \
+ libtool-bin \
+ locales \
+ make \
+ nbd-client \
+ nbd-server \
+ nbdkit \
+ ocaml \
+ ocaml-findlib \
+ ocaml-nox \
+ perl \
+ perl-base \
+ pkgconf \
+ python3-dev \
+ qemu \
+ qemu-utils \
+ sed \
+ valgrind && \
+ eatmydata apt-get autoremove -y && \
+ eatmydata apt-get autoclean -y && \
+ sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
+ dpkg-reconfigure locales && \
+ dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
+ mkdir -p /usr/libexec/ccache-wrappers && \
+ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/i686-linux-gnu-c++ && \
+ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/i686-linux-gnu-cc && \
+ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/i686-linux-gnu-g++ && \
+ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/i686-linux-gnu-gcc
+
+RUN export DEBIAN_FRONTEND=noninteractive && \
+ dpkg --add-architecture i386 && \
+ eatmydata apt-get update && \
+ eatmydata apt-get dist-upgrade -y && \
+ eatmydata apt-get install --no-install-recommends -y dpkg-dev && \
+ eatmydata apt-get install --no-install-recommends -y \
+ g++-i686-linux-gnu \
+ gcc-i686-linux-gnu \
+ libc6-dev:i386 \
+ libev-dev:i386 \
+ libfuse3-dev:i386 \
+ libglib2.0-dev:i386 \
+ libgnutls28-dev:i386 \
+ libxml2-dev:i386 && \
+ eatmydata apt-get autoremove -y && \
+ eatmydata apt-get autoclean -y && \
+ mkdir -p /usr/local/share/meson/cross && \
+ echo "[binaries]\n\
+c = '/usr/bin/i686-linux-gnu-gcc'\n\
+ar = '/usr/bin/i686-linux-gnu-gcc-ar'\n\
+strip = '/usr/bin/i686-linux-gnu-strip'\n\
+pkgconfig = '/usr/bin/i686-linux-gnu-pkg-config'\n\
+\n\
+[host_machine]\n\
+system = 'linux'\n\
+cpu_family = 'x86'\n\
+cpu = 'i686'\n\
+endian = 'little'" > /usr/local/share/meson/cross/i686-linux-gnu
+
+ENV LANG "en_US.UTF-8"
+ENV MAKE "/usr/bin/make"
+ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
+
+ENV ABI "i686-linux-gnu"
+ENV CONFIGURE_OPTS "--host=i686-linux-gnu"
diff --git a/ci/containers/debian-10.Dockerfile b/ci/containers/debian-10.Dockerfile
index 0d039359223e..fbea28350a06 100644
--- a/ci/containers/debian-10.Dockerfile
+++ b/ci/containers/debian-10.Dockerfile
@@ -2,7 +2,7 @@
#
# $ lcitool dockerfile debian-10 libnbd
#
-# https://gitlab.com/libvirt/libvirt-ci/-/commit/0bb9bfada8e143e05bb436a067...
+# https://gitlab.com/libvirt/libvirt-ci
FROM docker.io/library/debian:10-slim
diff --git a/ci/containers/debian-11-cross-i686.Dockerfile b/ci/containers/debian-11-cross-i686.Dockerfile
new file mode 100644
index 000000000000..e0d4fc15961d
--- /dev/null
+++ b/ci/containers/debian-11-cross-i686.Dockerfile
@@ -0,0 +1,90 @@
+# THIS FILE WAS AUTO-GENERATED
+#
+# $ lcitool dockerfile --cross i686 debian-11 libnbd
+#
+# https://gitlab.com/libvirt/libvirt-ci
+
+FROM docker.io/library/debian:11-slim
+
+RUN export DEBIAN_FRONTEND=noninteractive && \
+ apt-get update && \
+ apt-get install -y eatmydata && \
+ eatmydata apt-get dist-upgrade -y && \
+ eatmydata apt-get install --no-install-recommends -y \
+ autoconf \
+ automake \
+ bash-completion \
+ bsdextrautils \
+ ca-certificates \
+ ccache \
+ diffutils \
+ flake8 \
+ fuse3 \
+ git \
+ gnutls-bin \
+ golang \
+ iproute2 \
+ jq \
+ libtool-bin \
+ locales \
+ make \
+ nbd-client \
+ nbd-server \
+ nbdkit \
+ ocaml \
+ ocaml-findlib \
+ ocaml-nox \
+ perl \
+ perl-base \
+ pkgconf \
+ python3-dev \
+ qemu \
+ qemu-utils \
+ sed \
+ valgrind && \
+ eatmydata apt-get autoremove -y && \
+ eatmydata apt-get autoclean -y && \
+ sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
+ dpkg-reconfigure locales && \
+ dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
+ mkdir -p /usr/libexec/ccache-wrappers && \
+ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/i686-linux-gnu-c++ && \
+ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/i686-linux-gnu-cc && \
+ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/i686-linux-gnu-g++ && \
+ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/i686-linux-gnu-gcc
+
+RUN export DEBIAN_FRONTEND=noninteractive && \
+ dpkg --add-architecture i386 && \
+ eatmydata apt-get update && \
+ eatmydata apt-get dist-upgrade -y && \
+ eatmydata apt-get install --no-install-recommends -y dpkg-dev && \
+ eatmydata apt-get install --no-install-recommends -y \
+ g++-i686-linux-gnu \
+ gcc-i686-linux-gnu \
+ libc6-dev:i386 \
+ libev-dev:i386 \
+ libfuse3-dev:i386 \
+ libglib2.0-dev:i386 \
+ libgnutls28-dev:i386 \
+ libxml2-dev:i386 && \
+ eatmydata apt-get autoremove -y && \
+ eatmydata apt-get autoclean -y && \
+ mkdir -p /usr/local/share/meson/cross && \
+ echo "[binaries]\n\
+c = '/usr/bin/i686-linux-gnu-gcc'\n\
+ar = '/usr/bin/i686-linux-gnu-gcc-ar'\n\
+strip = '/usr/bin/i686-linux-gnu-strip'\n\
+pkgconfig = '/usr/bin/i686-linux-gnu-pkg-config'\n\
+\n\
+[host_machine]\n\
+system = 'linux'\n\
+cpu_family = 'x86'\n\
+cpu = 'i686'\n\
+endian = 'little'" > /usr/local/share/meson/cross/i686-linux-gnu
+
+ENV LANG "en_US.UTF-8"
+ENV MAKE "/usr/bin/make"
+ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
+
+ENV ABI "i686-linux-gnu"
+ENV CONFIGURE_OPTS "--host=i686-linux-gnu"
diff --git a/ci/containers/debian-11.Dockerfile b/ci/containers/debian-11.Dockerfile
new file mode 100644
index 000000000000..c817870daa73
--- /dev/null
+++ b/ci/containers/debian-11.Dockerfile
@@ -0,0 +1,68 @@
+# THIS FILE WAS AUTO-GENERATED
+#
+# $ lcitool dockerfile debian-11 libnbd
+#
+# https://gitlab.com/libvirt/libvirt-ci
+
+FROM docker.io/library/debian:11-slim
+
+RUN export DEBIAN_FRONTEND=noninteractive && \
+ apt-get update && \
+ apt-get install -y eatmydata && \
+ eatmydata apt-get dist-upgrade -y && \
+ eatmydata apt-get install --no-install-recommends -y \
+ autoconf \
+ automake \
+ bash-completion \
+ bsdextrautils \
+ ca-certificates \
+ ccache \
+ clang \
+ diffutils \
+ flake8 \
+ fuse3 \
+ g++ \
+ gcc \
+ git \
+ gnutls-bin \
+ golang \
+ iproute2 \
+ jq \
+ libc6-dev \
+ libev-dev \
+ libfuse3-dev \
+ libglib2.0-dev \
+ libgnutls28-dev \
+ libtool-bin \
+ libxml2-dev \
+ locales \
+ make \
+ nbd-client \
+ nbd-server \
+ nbdkit \
+ ocaml \
+ ocaml-findlib \
+ ocaml-nox \
+ perl \
+ perl-base \
+ pkgconf \
+ python3-dev \
+ qemu \
+ qemu-utils \
+ sed \
+ valgrind && \
+ eatmydata apt-get autoremove -y && \
+ eatmydata apt-get autoclean -y && \
+ sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
+ dpkg-reconfigure locales && \
+ dpkg-query --showformat '${Package}_${Version}_${Architecture}\n' --show > /packages.txt && \
+ mkdir -p /usr/libexec/ccache-wrappers && \
+ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/c++ && \
+ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/cc && \
+ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \
+ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/g++ && \
+ ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
+
+ENV LANG "en_US.UTF-8"
+ENV MAKE "/usr/bin/make"
+ENV CCACHE_WRAPPERSDIR "/usr/libexec/ccache-wrappers"
diff --git a/ci/containers/debian-sid.Dockerfile b/ci/containers/debian-sid.Dockerfile
index fe8f49524639..909b772c473f 100644
--- a/ci/containers/debian-sid.Dockerfile
+++ b/ci/containers/debian-sid.Dockerfile
@@ -2,7 +2,7 @@
#
# $ lcitool dockerfile debian-sid libnbd
#
-# https://gitlab.com/libvirt/libvirt-ci/-/commit/0bb9bfada8e143e05bb436a067...
+# https://gitlab.com/libvirt/libvirt-ci
FROM docker.io/library/debian:sid-slim
diff --git a/ci/containers/fedora-33.Dockerfile b/ci/containers/fedora-33.Dockerfile
index 3383762b3a5b..353aa0d1e789 100644
--- a/ci/containers/fedora-33.Dockerfile
+++ b/ci/containers/fedora-33.Dockerfile
@@ -2,7 +2,7 @@
#
# $ lcitool dockerfile fedora-33 libnbd
#
-# https://gitlab.com/libvirt/libvirt-ci/-/commit/0bb9bfada8e143e05bb436a067...
+# https://gitlab.com/libvirt/libvirt-ci
FROM registry.fedoraproject.org/fedora:33
diff --git a/ci/containers/fedora-34-cross-i686.Dockerfile b/ci/containers/fedora-34-cross-i686.Dockerfile
new file mode 100644
index 000000000000..e69de29bb2d1
diff --git a/ci/containers/fedora-34.Dockerfile b/ci/containers/fedora-34.Dockerfile
index f2bfba91e94e..35d84cc3e0f2 100644
--- a/ci/containers/fedora-34.Dockerfile
+++ b/ci/containers/fedora-34.Dockerfile
@@ -2,7 +2,7 @@
#
# $ lcitool dockerfile fedora-34 libnbd
#
-# https://gitlab.com/libvirt/libvirt-ci/-/commit/0bb9bfada8e143e05bb436a067...
+# https://gitlab.com/libvirt/libvirt-ci
FROM registry.fedoraproject.org/fedora:34
diff --git a/ci/containers/fedora-rawhide.Dockerfile b/ci/containers/fedora-rawhide.Dockerfile
index 40d45bd386c5..acbb61f0e74a 100644
--- a/ci/containers/fedora-rawhide.Dockerfile
+++ b/ci/containers/fedora-rawhide.Dockerfile
@@ -2,7 +2,7 @@
#
# $ lcitool dockerfile fedora-rawhide libnbd
#
-# https://gitlab.com/libvirt/libvirt-ci/-/commit/0bb9bfada8e143e05bb436a067...
+# https://gitlab.com/libvirt/libvirt-ci
FROM registry.fedoraproject.org/fedora:rawhide
diff --git a/ci/containers/opensuse-leap-152.Dockerfile b/ci/containers/opensuse-leap-152.Dockerfile
index 86e7171702a2..050ec442151e 100644
--- a/ci/containers/opensuse-leap-152.Dockerfile
+++ b/ci/containers/opensuse-leap-152.Dockerfile
@@ -2,7 +2,7 @@
#
# $ lcitool dockerfile opensuse-leap-152 libnbd
#
-# https://gitlab.com/libvirt/libvirt-ci/-/commit/0bb9bfada8e143e05bb436a067...
+# https://gitlab.com/libvirt/libvirt-ci
FROM registry.opensuse.org/opensuse/leap:15.2
diff --git a/ci/containers/opensuse-tumbleweed.Dockerfile b/ci/containers/opensuse-tumbleweed.Dockerfile
index 004794743c23..bbcdd3220094 100644
--- a/ci/containers/opensuse-tumbleweed.Dockerfile
+++ b/ci/containers/opensuse-tumbleweed.Dockerfile
@@ -2,7 +2,7 @@
#
# $ lcitool dockerfile opensuse-tumbleweed libnbd
#
-# https://gitlab.com/libvirt/libvirt-ci/-/commit/0bb9bfada8e143e05bb436a067...
+# https://gitlab.com/libvirt/libvirt-ci
FROM registry.opensuse.org/opensuse/tumbleweed:latest
diff --git a/ci/containers/ubuntu-1804.Dockerfile b/ci/containers/ubuntu-1804.Dockerfile
index 624b4381d8b6..72dc53b39c13 100644
--- a/ci/containers/ubuntu-1804.Dockerfile
+++ b/ci/containers/ubuntu-1804.Dockerfile
@@ -2,7 +2,7 @@
#
# $ lcitool dockerfile ubuntu-1804 libnbd
#
-# https://gitlab.com/libvirt/libvirt-ci/-/commit/0bb9bfada8e143e05bb436a067...
+# https://gitlab.com/libvirt/libvirt-ci
FROM docker.io/library/ubuntu:18.04
diff --git a/ci/containers/ubuntu-2004.Dockerfile b/ci/containers/ubuntu-2004.Dockerfile
index e6e04391b7d5..6a11fae8d27c 100644
--- a/ci/containers/ubuntu-2004.Dockerfile
+++ b/ci/containers/ubuntu-2004.Dockerfile
@@ -2,7 +2,7 @@
#
# $ lcitool dockerfile ubuntu-2004 libnbd
#
-# https://gitlab.com/libvirt/libvirt-ci/-/commit/0bb9bfada8e143e05bb436a067...
+# https://gitlab.com/libvirt/libvirt-ci
FROM docker.io/library/ubuntu:20.04
diff --git a/ci/refresh b/ci/refresh
index dee8b0bc9713..8a276e42dec6 100755
--- a/ci/refresh
+++ b/ci/refresh
@@ -22,6 +22,12 @@ do
then
$LCITOOL variables "$target" libnbd >"$ci_path/cirrus/$target.vars"
else
+ if test "$target" = "debian-11" -o "$target" = "debian-10"
+ then
+ $LCITOOL dockerfile -x i686 "$target" \
+ libnbd >"$ci_path/containers/$target-cross-i686.Dockerfile"
+ fi
+
$LCITOOL dockerfile "$target" libnbd >"$ci_path/containers/$target.Dockerfile"
fi
done
--
2.33.0
3 years, 3 months
[PATCH 0/2] tests/mount-local: fix relative pathname regression
by Laszlo Ersek
Commit 6d32773e8118 ("tests: Run the tests in parallel.", 2021-03-18)
missed updating a relative pathname in "tests/mount-local". This causes
the test case to hang. Furthermore, due to an earlier error handling
bug, the symptoms of the hang are somewhat chaotic. This small series
intends to fix both issues.
Thanks,
Laszlo
Laszlo Ersek (2):
tests/mount-local: exit child immediately when exec fails
tests/mount-local: fix relative pathname of FUSE client executable
tests/mount-local/test-parallel-mount-local.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--
2.19.1.3.g30247aa5d201
3 years, 3 months
[PATCH] client: Don't confuse Unix socket with TLS hostname
by Eric Blake
When using -u but not -H, we were ending up calling
gnutls_session_set_verify_cert() with the Unix socket's path name,
which is bound to fail (hostnames don't start with /). Saner is to
only default tlshostname when using TCP sockets.
See also https://gitlab.com/nbdkit/nbdkit/-/issues/1, as this was
detected during an attempt to prove TLS interoperability between
nbd-client and nbdkit. Pre-patch, I have to add '-H localhost' to the
nbd-client command line when using nbdkit with a Unix socket, but not
when using a TCP socket; post-patch, I can omit -H and still connect
/dev/nbd0 over TLS using either TCP or Unix.
Signed-off-by: Eric Blake <eblake(a)redhat.com>
---
nbd-client.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nbd-client.c b/nbd-client.c
index e9079a9..463ff86 100644
--- a/nbd-client.c
+++ b/nbd-client.c
@@ -1186,7 +1186,7 @@ int main(int argc, char *argv[]) {
}
}
- if (!tlshostname && hostname)
+ if (!tlshostname && hostname && !b_unix)
tlshostname = strdup(hostname);
if (netlink)
--
2.31.1
3 years, 3 months