ContainerCraft / kmi

KubeVirt Virtual Machine Disk Image Library
Apache License 2.0
10 stars 1 forks source link

openbsd cloud-init fails to apply (could not find data source) #12

Closed jbpratt closed 2 years ago

jbpratt commented 2 years ago

Playing around with packaging and booting an openbsd-6.9 CDI (no customizations). On boot, a few exceptions within cloud-init are thrown plus some concerning logs (util.py[WARNING]: Can not apply stage final, no datasource found! Likely bad things to come! :sweat_smile: ). We should work with @goneri (sorry for the tag!) on understanding and resolving these issues. This will also allow the 'upstream' image source (https://bsd-cloud-image.org/) to be consistently tested on kubevirt within our pipeline.

OpenBSD console logs ``` ❯ virtctl console -n kargo openbsd-br0 Successfully connected to openbsd-br0 console. The escape sequence is ^] cannot open hd0a:/etc/random.seed: No such file or directory booting hd0a:/bsd: 14411048+3224584+344096+0+1175552 [1009441+128+1145856+866050]=0x1528eb0 entry point at 0xffffffff81001000 [ using 3022512 bytes of bsd ELF symbol table ] Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2021 OpenBSD. All rights reserved. https://www.OpenBSD.org OpenBSD 6.9 (GENERIC.MP) #473: Mon Apr 19 10:40:28 MDT 2021 deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 3983396864 (3798MB) avail mem = 3847290880 (3669MB) random: good seed from bootblocks mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xf5a00 (11 entries) bios0: vendor SeaBIOS version "1.14.0-1.el8s" date 04/01/2014 bios0: KubeVirt None acpi0 at bios0: ACPI 3.0 acpi0: sleep states S5 acpi0: tables DSDT FACP APIC MCFG WAET acpi0: wakeup devices acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM) i5-4690K CPU @ 3.50GHz, 664.21 MHz, 06-3c-03 cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SS,HTT,SSE3,PCLMUL,VMX,SSSE3,FMA3,CX16,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,HV,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,UMIP,MD_CLEAR,IBRS,IBPB,STIBP,SSBD,ARAT,XSAVEOPT,MELTDOWN cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 16-way L2 cache cpu0: ITLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped cpu0: DTLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic clock running at 999MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Core(TM) i5-4690K CPU @ 3.50GHz, 750.26 MHz, 06-3c-03 cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SS,HTT,SSE3,PCLMUL,VMX,SSSE3,FMA3,CX16,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,HV,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,UMIP,MD_CLEAR,IBRS,IBPB,STIBP,SSBD,ARAT,XSAVEOPT,MELTDOWN cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 16-way L2 cache cpu1: ITLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped cpu1: DTLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped cpu1: smt 1, core 0, package 0 ioapic0 at mainbus0: apid 0 pa 0xfec00000, version 11, 24 pins acpimcfg0 at acpi0 acpimcfg0: addr 0xb0000000, bus 0-255 acpiprt0 at acpi0: bus 0 (PCI0) "ACPI0006" at acpi0 not configured acpipci0 at acpi0 PCI0: 0x00000000 0x00000011 0x00000001 acpicmos0 at acpi0 "PNP0A06" at acpi0 not configured "PNP0A06" at acpi0 not configured "QEMU0002" at acpi0 not configured "ACPI0010" at acpi0 not configured acpicpu0 at acpi0: C1(@1 halt!) acpicpu1 at acpi0: C1(@1 halt!) cpu0: using VERW MDS workaround pvbus0 at mainbus0: KVM pvclock0 at pvbus0 pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 "Intel 82G33 Host" rev 0x00 vga1 at pci0 dev 1 function 0 "Bochs VGA" rev 0x02 wsdisplay at vga1 not configured ppb0 at pci0 dev 2 function 0 vendor "Red Hat", unknown product 0x000c rev 0x00: apic 0 int 22 pci1 at ppb0 bus 1 virtio0 at pci1 dev 0 function 0 "Qumranet Virtio 1.x Network" rev 0x01 vio0 at virtio0: address 02:f4:00:00:00:00 virtio0: msix shared ppb1 at pci0 dev 2 function 1 vendor "Red Hat", unknown product 0x000c rev 0x00: apic 0 int 22 pci2 at ppb1 bus 2 virtio1 at pci2 dev 0 function 0 "Qumranet Virtio 1.x SCSI" rev 0x01 vioscsi0 at virtio1: qsize 256 scsibus1 at vioscsi0: 255 targets virtio1: msix per-VQ ppb2 at pci0 dev 2 function 2 vendor "Red Hat", unknown product 0x000c rev 0x00: apic 0 int 22 pci3 at ppb2 bus 3 virtio2 at pci3 dev 0 function 0 "Qumranet Virtio 1.x Console" rev 0x01 virtio2: no matching child driver; not configured ppb3 at pci0 dev 2 function 3 vendor "Red Hat", unknown product 0x000c rev 0x00: apic 0 int 22 pci4 at ppb3 bus 4 virtio3 at pci4 dev 0 function 0 "Qumranet Virtio 1.x Storage" rev 0x01 vioblk0 at virtio3 scsibus2 at vioblk0: 1 targets sd0 at scsibus2 targ 0 lun 0: sd0: 2048MB, 512 bytes/sector, 4194304 sectors virtio3: msix per-VQ ppb4 at pci0 dev 2 function 4 vendor "Red Hat", unknown product 0x000c rev 0x00: apic 0 int 22 pci5 at ppb4 bus 5 virtio4 at pci5 dev 0 function 0 "Qumranet Virtio 1.x Storage" rev 0x01 vioblk1 at virtio4 scsibus3 at vioblk1: 1 targets sd1 at scsibus3 targ 0 lun 0: sd1: 1MB, 512 bytes/sector, 2048 sectors virtio4: msix per-VQ ppb5 at pci0 dev 2 function 5 vendor "Red Hat", unknown product 0x000c rev 0x00: apic 0 int 22 pci6 at ppb5 bus 6 virtio5 at pci6 dev 0 function 0 vendor "Qumranet", unknown product 0x1045 rev 0x01 viomb0 at virtio5 virtio5: apic 0 int 22 ppb6 at pci0 dev 2 function 6 vendor "Red Hat", unknown product 0x000c rev 0x00: apic 0 int 22 pci7 at ppb6 bus 7 virtio6 at pci7 dev 0 function 0 "Qumranet Virtio 1.x RNG" rev 0x01 viornd0 at virtio6 virtio6: apic 0 int 22 ppb7 at pci0 dev 2 function 7 vendor "Red Hat", unknown product 0x000c rev 0x00: apic 0 int 22 pci8 at ppb7 bus 8 pcib0 at pci0 dev 31 function 0 "Intel 82801IB LPC" rev 0x02 ahci0 at pci0 dev 31 function 2 "Intel 82801I AHCI" rev 0x02: msi, AHCI 1.0 scsibus4 at ahci0: 32 targets ichiic0 at pci0 dev 31 function 3 "Intel 82801I SMBus" rev 0x02: apic 0 int 16 iic0 at ichiic0 isa0 at pcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo com0: console pckbc0 at isa0 port 0x60/5 irq 1 irq 12 pckbd0 at pckbc0 (kbd slot) wskbd0 at pckbd0 mux 1 pms0 at pckbc0 (aux slot) wsmouse0 at pms0 mux 0 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 vmm0 at mainbus0: VMX/EPT (using slow L1TF mitigation) vscsi0 at root scsibus5 at vscsi0: 256 targets softraid0 at root scsibus6 at softraid0: 256 targets root on sd0a (a46cc531a8dcc550.a) swap on sd0b dump on sd0b Automatic boot in progress: starting file system checks. /dev/sd0a (a46cc531a8dcc550.a): file system is clean; not checking pf enabled 2021-12-03 14:17:09,518 - handlers.py[DEBUG]: start: init-local: searching for local datasources 2021-12-03 14:17:09,556 - util.py[WARNING]: Unable to read uptime using method: ctypes 2021-12-03 14:17:09,557 - util.py[DEBUG]: Unable to read uptime using method: ctypes Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/util.py", line 1820, in uptime uptime_str = str(time.time() - boottime()) File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/util.py", line 1802, in boottime if libc.sysctlbyname(b"kern.boottime" + NULL_BYTES, ctypes.byref(buf), File "/usr/local/lib/python3.8/ctypes/__init__.py", line 386, in __getattr__ func = self.__getitem__(name) File "/usr/local/lib/python3.8/ctypes/__init__.py", line 391, in __getitem__ func = self._FuncPtr((name_or_ordinal, self)) AttributeError: Unable to resolve symbol 2021-12-03 14:17:09,572 - util.py[DEBUG]: Attempting to remove /run/cloud-init/status.json 2021-12-03 14:17:09,574 - util.py[DEBUG]: Attempting to remove /run/cloud-init/result.json 2021-12-03 14:17:09,575 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/data/status.json 2021-12-03 14:17:09,576 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/data/result.json 2021-12-03 14:17:09,577 - atomic_helper.py[DEBUG]: Atomically writing to file /var/lib/cloud/data/status.json (via temporary file /var/lib/cloud/data/tmpq58j0fia) - w: [644] 469 bytes/chars 2021-12-03 14:17:09,579 - util.py[DEBUG]: Creating symbolic link from '/run/cloud-init/status.json' => '../../var/lib/cloud/data/status.json' 2021-12-03 14:17:09,619 - util.py[DEBUG]: Reading from /proc/1/environ (quiet=False) 2021-12-03 14:17:09,621 - util.py[DEBUG]: Reading from /proc/self/status (quiet=False) 2021-12-03 14:17:09,622 - util.py[DEBUG]: Reading from /proc/cmdline (quiet=False) 2021-12-03 14:17:09,628 - util.py[WARNING]: Unable to read uptime using method: ctypes 2021-12-03 14:17:09,629 - util.py[DEBUG]: Unable to read uptime using method: ctypes Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/util.py", line 1820, in uptime uptime_str = str(time.time() - boottime()) File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/util.py", line 1802, in boottime if libc.sysctlbyname(b"kern.boottime" + NULL_BYTES, ctypes.byref(buf), File "/usr/local/lib/python3.8/ctypes/__init__.py", line 386, in __getattr__ func = self.__getitem__(name) File "/usr/local/lib/python3.8/ctypes/__init__.py", line 391, in __getitem__ func = self._FuncPtr((name_or_ordinal, self)) AttributeError: Unable to resolve symbol 2021-12-03 14:17:09,637 - util.py[DEBUG]: Reading from /etc/cloud/cloud.cfg (quiet=False) 2021-12-03 14:17:09,640 - util.py[DEBUG]: Read 2068 bytes from /etc/cloud/cloud.cfg 2021-12-03 14:17:09,641 - util.py[DEBUG]: Attempting to load yaml from string of length 2068 with allowed root types (,) 2021-12-03 14:17:09,664 - util.py[DEBUG]: Reading from /etc/cloud/cloud.cfg.d/05_logging.cfg (quiet=False) 2021-12-03 14:17:09,665 - util.py[DEBUG]: Read 2070 bytes from /etc/cloud/cloud.cfg.d/05_logging.cfg 2021-12-03 14:17:09,667 - util.py[DEBUG]: Attempting to load yaml from string of length 2070 with allowed root types (,) 2021-12-03 14:17:09,683 - util.py[DEBUG]: Reading from /run/cloud-init/cloud.cfg (quiet=False) 2021-12-03 14:17:09,684 - util.py[DEBUG]: Attempting to load yaml from string of length 0 with allowed root types (,) 2021-12-03 14:17:09,687 - util.py[DEBUG]: loaded blob returned None, returning default. 2021-12-03 14:17:09,690 - util.py[DEBUG]: Redirecting <_io.TextIOWrapper name='' mode='w' encoding='utf-8'> to | tee -a /var/log/cloud-init-output.log 2021-12-03 14:17:09,701 - util.py[DEBUG]: Redirecting <_io.TextIOWrapper name='' mode='w' encoding='utf-8'> to | tee -a /var/log/cloud-init-output.log 2021-12-03 14:17:09,705 - main.py[DEBUG]: Logging being reset, this logger may no longer be active shortly Cloud-init v. 21.2 running 'init-local' at Fri, 03 Dec 2021 14:17:09 +0000. Up ?? seconds. 2021-12-03 14:17:09,818 - dmi.py[WARNING]: did not find either path /sys/class/dmi/id or dmidecode command 2021-12-03 14:17:09,898 - dmi.py[WARNING]: did not find either path /sys/class/dmi/id or dmidecode command 2021-12-03 14:17:09,913 - dmi.py[WARNING]: did not find either path /sys/class/dmi/id or dmidecode command 2021-12-03 14:17:09,915 - dmi.py[WARNING]: did not find either path /sys/class/dmi/id or dmidecode command 2021-12-03 14:17:09,916 - dmi.py[WARNING]: did not find either path /sys/class/dmi/id or dmidecode command 2021-12-03 14:17:09,918 - dmi.py[WARNING]: did not find either path /sys/class/dmi/id or dmidecode command 2021-12-03 14:17:09,954 - util.py[WARNING]: Failed to parse /etc/resolv.conf, use new empty file 2021-12-03 14:17:09,973 - util.py[WARNING]: failed stage init-local failed run of stage init-local ------------------------------------------------------------ Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/cmd/main.py", line 322, in main_init init.fetch(existing=existing) File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/stages.py", line 363, in fetch return self._get_data_source(existing=existing) File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/stages.py", line 263, in _get_data_source (ds, dsname) = sources.find_source(self.cfg, File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/sources/__init__.py", line 817, in find_source raise DataSourceNotFoundException(msg) cloudinit.sources.DataSourceNotFoundException: Did not find any data source, searched classes: (DataSourceNoCloud, DataSourceConfigDrive, DataSourceAzure, DataSourceOpenStackLocal, DataSourceEc2Local) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/cmd/main.py", line 652, in status_wrapper ret = functor(name, args) File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/cmd/main.py", line 340, in main_init init.apply_network_config(bring_up=not args.local) File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/stages.py", line 824, in apply_network_config return self.distro.apply_network_config( File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/distros/__init__.py", line 210, in apply_network_config dev_names = self._write_network_config(netconfig) File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/distros/bsd.py", line 124, in _write_network_config return self._supported_write_network_config(netconfig) File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/distros/__init__.py", line 122, in _supported_write_network_config renderer.render_network_config(network_config) File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/net/renderer.py", line 54, in render_network_config return self.render_network_state( File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/net/bsd.py", line 149, in render_network_state self.start_services(run=self._postcmds) File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/net/openbsd.py", line 39, in start_services subp.subp(['pkill', 'dhclient']) File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/subp.py", line 293, in subp raise ProcessExecutionError(stdout=out, stderr=err, cloudinit.subp.ProcessExecutionError: Unexpected error while running command. Command: ['pkill', 'dhclient'] Exit code: 1 Reason: - Stdout: Stderr: ------------------------------------------------------------ starting network WARNING: /etc/hostname.vio0 is insecure, fixing permissions. vio0: no lease....got lease vio0: 192.168.1.205 lease accepted from 192.168.1.1 (84:16:f9:7d:0d:4b) dd: /var/db/host.random: No such file or directory chmod: /var/db/host.random: No such file or directory 2021-12-03 14:17:13,977 - handlers.py[DEBUG]: start: init-network: searching for network datasources 2021-12-03 14:17:13,989 - util.py[WARNING]: Unable to read uptime using method: ctypes 2021-12-03 14:17:13,990 - util.py[DEBUG]: Unable to read uptime using method: ctypes Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/util.py", line 1820, in uptime uptime_str = str(time.time() - boottime()) File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/util.py", line 1802, in boottime if libc.sysctlbyname(b"kern.boottime" + NULL_BYTES, ctypes.byref(buf), File "/usr/local/lib/python3.8/ctypes/__init__.py", line 386, in __getattr__ func = self.__getitem__(name) File "/usr/local/lib/python3.8/ctypes/__init__.py", line 391, in __getitem__ func = self._FuncPtr((name_or_ordinal, self)) AttributeError: Unable to resolve symbol 2021-12-03 14:17:14,001 - util.py[DEBUG]: Reading from /var/lib/cloud/data/status.json (quiet=False) 2021-12-03 14:17:14,002 - util.py[DEBUG]: Read 602 bytes from /var/lib/cloud/data/status.json 2021-12-03 14:17:14,004 - atomic_helper.py[DEBUG]: Atomically writing to file /var/lib/cloud/data/status.json (via temporary file /var/lib/cloud/data/tmpo3k8epb_) - w: [644] 617 bytes/chars 2021-12-03 14:17:14,006 - util.py[DEBUG]: Creating symbolic link from '/run/cloud-init/status.json' => '../../var/lib/cloud/data/status.json' 2021-12-03 14:17:14,008 - util.py[DEBUG]: Attempting to remove /run/cloud-init/status.json 2021-12-03 14:17:14,042 - util.py[DEBUG]: Reading from /proc/1/environ (quiet=False) 2021-12-03 14:17:14,044 - util.py[DEBUG]: Reading from /proc/self/status (quiet=False) 2021-12-03 14:17:14,045 - util.py[DEBUG]: Reading from /proc/cmdline (quiet=False) 2021-12-03 14:17:14,051 - util.py[WARNING]: Unable to read uptime using method: ctypes 2021-12-03 14:17:14,052 - util.py[DEBUG]: Unable to read uptime using method: ctypes Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/util.py", line 1820, in uptime uptime_str = str(time.time() - boottime()) File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/util.py", line 1802, in boottime if libc.sysctlbyname(b"kern.boottime" + NULL_BYTES, ctypes.byref(buf), File "/usr/local/lib/python3.8/ctypes/__init__.py", line 386, in __getattr__ func = self.__getitem__(name) File "/usr/local/lib/python3.8/ctypes/__init__.py", line 391, in __getitem__ func = self._FuncPtr((name_or_ordinal, self)) AttributeError: Unable to resolve symbol 2021-12-03 14:17:14,061 - util.py[DEBUG]: Reading from /etc/cloud/cloud.cfg (quiet=False) 2021-12-03 14:17:14,062 - util.py[DEBUG]: Read 2068 bytes from /etc/cloud/cloud.cfg 2021-12-03 14:17:14,063 - util.py[DEBUG]: Attempting to load yaml from string of length 2068 with allowed root types (,) 2021-12-03 14:17:14,084 - util.py[DEBUG]: Reading from /etc/cloud/cloud.cfg.d/05_logging.cfg (quiet=False) 2021-12-03 14:17:14,086 - util.py[DEBUG]: Read 2070 bytes from /etc/cloud/cloud.cfg.d/05_logging.cfg 2021-12-03 14:17:14,087 - util.py[DEBUG]: Attempting to load yaml from string of length 2070 with allowed root types (,) 2021-12-03 14:17:14,100 - util.py[DEBUG]: Reading from /run/cloud-init/cloud.cfg (quiet=False) 2021-12-03 14:17:14,101 - util.py[DEBUG]: Attempting to load yaml from string of length 0 with allowed root types (,) 2021-12-03 14:17:14,103 - util.py[DEBUG]: loaded blob returned None, returning default. 2021-12-03 14:17:14,105 - util.py[DEBUG]: Redirecting <_io.TextIOWrapper name='' mode='w' encoding='utf-8'> to | tee -a /var/log/cloud-init-output.log 2021-12-03 14:17:14,114 - util.py[DEBUG]: Redirecting <_io.TextIOWrapper name='' mode='w' encoding='utf-8'> to | tee -a /var/log/cloud-init-output.log 2021-12-03 14:17:14,116 - main.py[DEBUG]: Logging being reset, this logger may no longer be active shortly Cloud-init v. 21.2 running 'init' at Fri, 03 Dec 2021 14:17:14 +0000. Up ?? seconds. ci-info: +++++++++++++++++++++++++++Net device info+++++++++++++++++++++++++++ ci-info: +--------+-------+----------------+------------+-------+------------+ ci-info: | Device | Up | Address | Mask | Scope | Hw-Address | ci-info: +--------+-------+----------------+------------+-------+------------+ ci-info: | enc0 | False | . | . | . | . | ci-info: | lo0 | True | 127.0.0.1 | 0xff000000 | . | . | ci-info: | lo0 | True | ::1/128 | . | . | . | ci-info: | lo0 | True | fe80::1%lo0/64 | . | 0x3 | . | ci-info: | vio0 | True | 192.168.1.205 | 0xffffff00 | . | . | ci-info: +--------+-------+----------------+------------+-------+------------+ ci-info: 2021-12-03 14:17:14,211 - dmi.py[WARNING]: did not find either path /sys/class/dmi/id or dmidecode command 2021-12-03 14:17:24,270 - util.py[WARNING]: No active metadata service found 2021-12-03 14:17:24,291 - dmi.py[WARNING]: did not find either path /sys/class/dmi/id or dmidecode command 2021-12-03 14:17:24,307 - dmi.py[WARNING]: did not find either path /sys/class/dmi/id or dmidecode command 2021-12-03 14:17:24,324 - dmi.py[WARNING]: did not find either path /sys/class/dmi/id or dmidecode command 2021-12-03 14:17:24,339 - dmi.py[WARNING]: did not find either path /sys/class/dmi/id or dmidecode command You were disconnected from the console. This has one of the following reasons: - another user connected to the console of the target vm - network issues websocket: close 1006 (abnormal closure): unexpected EOF kmi  refactor-sysprep-on-host [$!?] 1m23s ❯ virtctl console -n kargo openbsd-br0 Successfully connected to openbsd-br0 console. The escape sequence is ^] ^CCloud-init 21.2 received SIGINT, exiting... Filename: /usr/local/lib/python3.8/site-packages/urllib3/util/connection.py Function: create_connection Line number: 86 Filename: /usr/local/lib/python3.8/site-packages/urllib3/connection.py Function: _new_conn Line number: 169 Filename: /usr/local/lib/python3.8/site-packages/urllib3/connection.py Function: connect Line number: 200 reordering libraries: done. openssl: generating isakmpd/iked RSA keys... done. ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519 starting early daemons: syslogd pflogd ntpd. starting RPC daemons:. savecore: /dev/sd0b: Device not configured checking quotas: done. clearing /tmp kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd smtpd(failed) sndiod. 2021-12-03 14:19:08,916 - handlers.py[DEBUG]: start: modules-config: running modules for config 2021-12-03 14:19:08,928 - util.py[WARNING]: Unable to read uptime using method: ctypes 2021-12-03 14:19:08,929 - util.py[DEBUG]: Unable to read uptime using method: ctypes Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/util.py", line 1820, in uptime uptime_str = str(time.time() - boottime()) File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/util.py", line 1802, in boottime if libc.sysctlbyname(b"kern.boottime" + NULL_BYTES, ctypes.byref(buf), File "/usr/local/lib/python3.8/ctypes/__init__.py", line 386, in __getattr__ func = self.__getitem__(name) File "/usr/local/lib/python3.8/ctypes/__init__.py", line 391, in __getitem__ func = self._FuncPtr((name_or_ordinal, self)) AttributeError: Unable to resolve symbol 2021-12-03 14:19:08,939 - util.py[DEBUG]: Reading from /var/lib/cloud/data/status.json (quiet=False) 2021-12-03 14:19:08,940 - util.py[DEBUG]: Read 617 bytes from /var/lib/cloud/data/status.json 2021-12-03 14:19:08,942 - atomic_helper.py[DEBUG]: Atomically writing to file /var/lib/cloud/data/status.json (via temporary file /var/lib/cloud/data/tmp0iri0ksn) - w: [644] 641 bytes/chars 2021-12-03 14:19:08,944 - util.py[DEBUG]: Creating symbolic link from '/run/cloud-init/status.json' => '../../var/lib/cloud/data/status.json' 2021-12-03 14:19:08,946 - util.py[DEBUG]: Attempting to remove /run/cloud-init/status.json 2021-12-03 14:19:08,952 - util.py[WARNING]: Unable to read uptime using method: ctypes 2021-12-03 14:19:08,953 - util.py[DEBUG]: Unable to read uptime using method: ctypes Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/util.py", line 1820, in uptime uptime_str = str(time.time() - boottime()) File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/util.py", line 1802, in boottime if libc.sysctlbyname(b"kern.boottime" + NULL_BYTES, ctypes.byref(buf), File "/usr/local/lib/python3.8/ctypes/__init__.py", line 386, in __getattr__ func = self.__getitem__(name) File "/usr/local/lib/python3.8/ctypes/__init__.py", line 391, in __getitem__ func = self._FuncPtr((name_or_ordinal, self)) AttributeError: Unable to resolve symbol 2021-12-03 14:19:08,961 - util.py[DEBUG]: Reading from /etc/cloud/cloud.cfg (quiet=False) 2021-12-03 14:19:08,962 - util.py[DEBUG]: Read 2068 bytes from /etc/cloud/cloud.cfg 2021-12-03 14:19:08,963 - util.py[DEBUG]: Attempting to load yaml from string of length 2068 with allowed root types (,) 2021-12-03 14:19:08,983 - util.py[DEBUG]: Reading from /etc/cloud/cloud.cfg.d/05_logging.cfg (quiet=False) 2021-12-03 14:19:08,985 - util.py[DEBUG]: Read 2070 bytes from /etc/cloud/cloud.cfg.d/05_logging.cfg 2021-12-03 14:19:08,986 - util.py[DEBUG]: Attempting to load yaml from string of length 2070 with allowed root types (,) 2021-12-03 14:19:08,999 - util.py[DEBUG]: Reading from /run/cloud-init/cloud.cfg (quiet=False) 2021-12-03 14:19:09,028 - util.py[DEBUG]: Reading from /proc/1/environ (quiet=False) 2021-12-03 14:19:09,029 - util.py[DEBUG]: Reading from /proc/self/status (quiet=False) 2021-12-03 14:19:09,030 - util.py[DEBUG]: Reading from /proc/cmdline (quiet=False) 2021-12-03 14:19:09,031 - util.py[DEBUG]: Attempting to load yaml from string of length 0 with allowed root types (,) 2021-12-03 14:19:09,033 - util.py[DEBUG]: loaded blob returned None, returning default. 2021-12-03 14:19:09,035 - handlers.py[DEBUG]: start: modules-config/check-cache: attempting to read from cache [trust] 2021-12-03 14:19:09,036 - util.py[DEBUG]: Reading from /var/lib/cloud/instance/obj.pkl (quiet=False) 2021-12-03 14:19:09,037 - stages.py[DEBUG]: no cache found 2021-12-03 14:19:09,038 - handlers.py[DEBUG]: finish: modules-config/check-cache: SUCCESS: no cache found 2021-12-03 14:19:09,039 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/instance 2021-12-03 14:19:09,047 - stages.py[DEBUG]: Using distro class 2021-12-03 14:19:09,049 - __init__.py[DEBUG]: Looking for data source in: ['NoCloud', 'ConfigDrive', 'Azure', 'OpenStack', 'Ec2'], via packages ['', 'cloudinit.sources'] that matches dependencies [] 2021-12-03 14:19:09,079 - __init__.py[DEBUG]: Searching for local data source in: [] 2021-12-03 14:19:09,080 - util.py[WARNING]: Can not apply stage config, no datasource found! Likely bad things to come! 2021-12-03 14:19:09,081 - util.py[DEBUG]: Can not apply stage config, no datasource found! Likely bad things to come! Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/cmd/main.py", line 484, in main_modules init.fetch(existing="trust") File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/stages.py", line 363, in fetch return self._get_data_source(existing=existing) File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/stages.py", line 263, in _get_data_source (ds, dsname) = sources.find_source(self.cfg, File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/sources/__init__.py", line 817, in find_source raise DataSourceNotFoundException(msg) cloudinit.sources.DataSourceNotFoundException: Did not find any data source, searched classes: () Can not apply stage config, no datasource found! Likely bad things to come! ------------------------------------------------------------ Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/cmd/main.py", line 484, in main_modules init.fetch(existing="trust") File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/stages.py", line 363, in fetch return self._get_data_source(existing=existing) File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/stages.py", line 263, in _get_data_source (ds, dsname) = sources.find_source(self.cfg, File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/sources/__init__.py", line 817, in find_source raise DataSourceNotFoundException(msg) cloudinit.sources.DataSourceNotFoundException: Did not find any data source, searched classes: () ------------------------------------------------------------ 2021-12-03 14:19:09,101 - atomic_helper.py[DEBUG]: Atomically writing to file /var/lib/cloud/data/status.json (via temporary file /var/lib/cloud/data/tmp_rgx2pk_) - w: [644] 728 bytes/chars 2021-12-03 14:19:09,103 - util.py[DEBUG]: cloud-init mode 'modules' took 0.185 seconds (N/A) 2021-12-03 14:19:09,104 - handlers.py[DEBUG]: finish: modules-config: SUCCESS: running modules for config starting local daemons: cron. 2021-12-03 14:19:09,881 - handlers.py[DEBUG]: start: modules-final: running modules for final 2021-12-03 14:19:09,893 - util.py[WARNING]: Unable to read uptime using method: ctypes 2021-12-03 14:19:09,894 - util.py[DEBUG]: Unable to read uptime using method: ctypes Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/util.py", line 1820, in uptime uptime_str = str(time.time() - boottime()) File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/util.py", line 1802, in boottime if libc.sysctlbyname(b"kern.boottime" + NULL_BYTES, ctypes.byref(buf), File "/usr/local/lib/python3.8/ctypes/__init__.py", line 386, in __getattr__ func = self.__getitem__(name) File "/usr/local/lib/python3.8/ctypes/__init__.py", line 391, in __getitem__ func = self._FuncPtr((name_or_ordinal, self)) AttributeError: Unable to resolve symbol 2021-12-03 14:19:09,904 - util.py[DEBUG]: Reading from /var/lib/cloud/data/status.json (quiet=False) 2021-12-03 14:19:09,905 - util.py[DEBUG]: Read 728 bytes from /var/lib/cloud/data/status.json 2021-12-03 14:19:09,907 - atomic_helper.py[DEBUG]: Atomically writing to file /var/lib/cloud/data/status.json (via temporary file /var/lib/cloud/data/tmptd74we02) - w: [644] 753 bytes/chars 2021-12-03 14:19:09,909 - util.py[DEBUG]: Creating symbolic link from '/run/cloud-init/status.json' => '../../var/lib/cloud/data/status.json' 2021-12-03 14:19:09,911 - util.py[DEBUG]: Attempting to remove /run/cloud-init/status.json 2021-12-03 14:19:09,939 - util.py[WARNING]: Unable to read uptime using method: ctypes 2021-12-03 14:19:09,940 - util.py[DEBUG]: Unable to read uptime using method: ctypes Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/util.py", line 1820, in uptime uptime_str = str(time.time() - boottime()) File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/util.py", line 1802, in boottime if libc.sysctlbyname(b"kern.boottime" + NULL_BYTES, ctypes.byref(buf), File "/usr/local/lib/python3.8/ctypes/__init__.py", line 386, in __getattr__ func = self.__getitem__(name) File "/usr/local/lib/python3.8/ctypes/__init__.py", line 391, in __getitem__ func = self._FuncPtr((name_or_ordinal, self)) AttributeError: Unable to resolve symbol 2021-12-03 14:19:09,949 - util.py[DEBUG]: Reading from /etc/cloud/cloud.cfg (quiet=False) 2021-12-03 14:19:09,950 - util.py[DEBUG]: Read 2068 bytes from /etc/cloud/cloud.cfg 2021-12-03 14:19:09,951 - util.py[DEBUG]: Attempting to load yaml from string of length 2068 with allowed root types (,) 2021-12-03 14:19:09,972 - util.py[DEBUG]: Reading from /etc/cloud/cloud.cfg.d/05_logging.cfg (quiet=False) 2021-12-03 14:19:09,973 - util.py[DEBUG]: Read 2070 bytes from /etc/cloud/cloud.cfg.d/05_logging.cfg 2021-12-03 14:19:09,974 - util.py[DEBUG]: Attempting to load yaml from string of length 2070 with allowed root types (,) 2021-12-03 14:19:09,987 - util.py[DEBUG]: Reading from /run/cloud-init/cloud.cfg (quiet=False) 2021-12-03 14:19:10,018 - util.py[DEBUG]: Reading from /proc/1/environ (quiet=False) 2021-12-03 14:19:10,019 - util.py[DEBUG]: Reading from /proc/self/status (quiet=False) 2021-12-03 14:19:10,020 - util.py[DEBUG]: Reading from /proc/cmdline (quiet=False) 2021-12-03 14:19:10,021 - util.py[DEBUG]: Attempting to load yaml from string of length 0 with allowed root types (,) 2021-12-03 14:19:10,022 - util.py[DEBUG]: loaded blob returned None, returning default. 2021-12-03 14:19:10,024 - handlers.py[DEBUG]: start: modules-final/check-cache: attempting to read from cache [trust] 2021-12-03 14:19:10,026 - util.py[DEBUG]: Reading from /var/lib/cloud/instance/obj.pkl (quiet=False) 2021-12-03 14:19:10,027 - stages.py[DEBUG]: no cache found 2021-12-03 14:19:10,028 - handlers.py[DEBUG]: finish: modules-final/check-cache: SUCCESS: no cache found 2021-12-03 14:19:10,029 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/instance 2021-12-03 14:19:10,038 - stages.py[DEBUG]: Using distro class 2021-12-03 14:19:10,040 - __init__.py[DEBUG]: Looking for data source in: ['NoCloud', 'ConfigDrive', 'Azure', 'OpenStack', 'Ec2'], via packages ['', 'cloudinit.sources'] that matches dependencies [] 2021-12-03 14:19:10,068 - __init__.py[DEBUG]: Searching for local data source in: [] 2021-12-03 14:19:10,069 - util.py[WARNING]: Can not apply stage final, no datasource found! Likely bad things to come! 2021-12-03 14:19:10,070 - util.py[DEBUG]: Can not apply stage final, no datasource found! Likely bad things to come! Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/cmd/main.py", line 484, in main_modules init.fetch(existing="trust") File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/stages.py", line 363, in fetch return self._get_data_source(existing=existing) File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/stages.py", line 263, in _get_data_source (ds, dsname) = sources.find_source(self.cfg, File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/sources/__init__.py", line 817, in find_source raise DataSourceNotFoundException(msg) cloudinit.sources.DataSourceNotFoundException: Did not find any data source, searched classes: () Can not apply stage final, no datasource found! Likely bad things to come! ------------------------------------------------------------ Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/cmd/main.py", line 484, in main_modules init.fetch(existing="trust") File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/stages.py", line 363, in fetch return self._get_data_source(existing=existing) File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/stages.py", line 263, in _get_data_source (ds, dsname) = sources.find_source(self.cfg, File "/usr/local/lib/python3.8/site-packages/cloud_init-21.2-py3.8.egg/cloudinit/sources/__init__.py", line 817, in find_source raise DataSourceNotFoundException(msg) cloudinit.sources.DataSourceNotFoundException: Did not find any data source, searched classes: () ------------------------------------------------------------ 2021-12-03 14:19:10,095 - atomic_helper.py[DEBUG]: Atomically writing to file /var/lib/cloud/data/status.json (via temporary file /var/lib/cloud/data/tmpue88snr2) - w: [644] 840 bytes/chars 2021-12-03 14:19:10,097 - atomic_helper.py[DEBUG]: Atomically writing to file /var/lib/cloud/data/result.json (via temporary file /var/lib/cloud/data/tmp711pb4aq) - w: [644] 341 bytes/chars 2021-12-03 14:19:10,099 - util.py[DEBUG]: Creating symbolic link from '/run/cloud-init/result.json' => '../../var/lib/cloud/data/result.json' 2021-12-03 14:19:10,101 - util.py[DEBUG]: cloud-init mode 'modules' took 0.219 seconds (N/A) 2021-12-03 14:19:10,102 - handlers.py[DEBUG]: finish: modules-final: SUCCESS: running modules for final Fri Dec 3 07:19:10 MST 2021 OpenBSD/amd64 (Amnesiac) (tty00) login: kc2user Password: Login incorrect login: ```

The image can be found at https://github.com/users/jbpratt/packages/container/package/openbsd

openbsd-br0.yml ``` --- # https://github.com/kubevirt/kubevirt/blob/master/docs/cloud-init.md apiVersion: kubevirt.io/v1alpha3 kind: VirtualMachine metadata: name: openbsd-br0 namespace: kargo labels: app: kargo spec: running: true template: spec: evictionStrategy: LiveMigrate nodeSelector: node-role.kubernetes.io/kubevirt: "" domain: clock: utc: {} timer: {} cpu: cores: 1 sockets: 1 threads: 2 model: host-passthrough dedicatedCpuPlacement: false devices: rng: {} autoattachPodInterface: false autoattachSerialConsole: true autoattachGraphicsDevice: true networkInterfaceMultiqueue: false disks: - name: containerdisk bootOrder: 1 disk: bus: virtio - name: cloudinitdisk disk: bus: virtio interfaces: - name: enp1s0 model: virtio bridge: {} machine: type: q35 resources: limits: memory: 4G requests: memory: 4G devices.kubevirt.io/kvm: "1" hostname: openbsd-br0 networks: - name: enp1s0 multus: networkName: kargo-net-attach-def-br0 terminationGracePeriodSeconds: 0 accessCredentials: - sshPublicKey: source: secret: secretName: kargo-sshpubkey-kc2user propagationMethod: qemuGuestAgent: users: - "kc2user" volumes: - name: containerdisk containerDisk: image: ghcr.io/jbpratt/openbsd:6.9-f8e31e3 imagePullPolicy: Always - name: cloudinitdisk cloudInitNoCloud: networkData: | version: 2 ethernets: enp1s0: dhcp4: true dhcp6: true dhcp-identifier: mac userData: | #cloud-config hostname: openbsd-br0 ssh_pwauth: true disable_root: true chpasswd: list: | kc2user:kc2user expire: False users: - name: kc2user shell: /bin/bash lock_passwd: false sudo: ['ALL=(ALL) NOPASSWD:ALL'] groups: sudo,wheel growpart: mode: auto devices: ['/'] ignore_growroot_disabled: true package_upgrade: true packages: - vim - screenfetch runcmd: - "screenfetch" ```
goneri commented 2 years ago

Hi! How do you expose the meta-data? And do you have the serial console output?

jbpratt commented 2 years ago

Hi @goneri ! First off, thank you for the awesome work with the bsd images, I'm excited to get this working and as well the quick reply.

My understanding of KubeVirt internals are going to be quite shallow, but we are using cloudInitNoCloud (https://github.com/kubevirt/kubevirt/blob/099be903803556bfe3a85075a7b55f0a711d9ca7/docs/cloud-init.md) in-line like so https://github.com/ContainerCraft/qubo/blob/main/examples/vms/microk8s-br0.yaml#L68-L119 (just an example). https://github.com/kubevirt/kubevirt/blob/099be903803556bfe3a85075a7b55f0a711d9ca7/docs/cloud-init.md#nocloud-implementation-details

Yes, in https://github.com/ContainerCraft/kmi/issues/12#issue-1070652543 the first collapsed section is the serial console output, sorry that was hidden. The second is the actual VMI file.

goneri commented 2 years ago

Ok, thanks for the details, I will take a look later today.

usrbinkat commented 2 years ago

I tried a couple different ways to get the cloud config into the vm:

Cloud Init Config Drive:

Cloud Init NoCloud:

usrbinkat commented 2 years ago

This is a more complete log https://termbin.com/ekio

usrbinkat commented 2 years ago

Kubevirt launcher pod including some qemu-guest-agent connection logs: https://termbin.com/einnk

Libvirt XML: https://termbin.com/d3ix

usrbinkat commented 2 years ago

We're attaching the disks via virtio type. I also tried with efi/uefi and basic bios boot with no change.

We do come to a final login prompt via serial console but the cloud-config user credentials are not active. An ip is also acquired by the vm. SSH server does not seem to be running on the vm.

usrbinkat commented 2 years ago

A sata based cloudInitConfigDrive vm

goneri commented 2 years ago

UEFI won't work with the current image. I prepare a lab to reproduce the problem.

goneri commented 2 years ago

Can you please try this image: https://object-storage.public.mtl1.vexxhost.net/swift/v1/1dbafeefbd4f4c80864414a441e72dd2/bsd-cloud-image.org/images/openbsd/7.0/openbsd-7.0.qcow2 ?

usrbinkat commented 2 years ago

@goneri we Tested both NoCloud and ConfigDrive with no luck. Serial console was not enabled so I only have screenshots of the vnc console. If the image has a default username / password I can login and upload the cloud-init logs and block device info to a pastebin.

Screenshot ConfigDrive Screenshot NoCloud

goneri commented 2 years ago

Can you please share your metadata disk and the libvirt domain XML.

usrbinkat commented 2 years ago

While the screen was scrolling, I saw a /dev/sd0b device not configured

cloud-init NoCloud userdata ``` # full kubevirt vm definition @ https://termbin.com/s5ha cloudInitNoCloud: userData: | #cloud-config hostname: openbsd ssh_pwauth: false disable_root: false chpasswd: list: | kc2user:kc2user expire: False users: - name: kc2user shell: /bin/bash lock_passwd: false sudo: ['ALL=(ALL) NOPASSWD:ALL'] groups: sudo,wheel runcmd: - "echo hello" ```
Libvirt XML ``` default_bsd 8000000000 hvm d3f9d048-e6ba-5304-9a4f-5c283153ea10 KubeVirt KubeVirt None /dev/urandom 7ef269fe-1661-4ebb-af13-0383108be274 0 8 1 ```
goneri commented 2 years ago

I need the driver image actually. Because it's the source of the problem. It's not an ISO image exposed through a CDROM device, nor a disk with a partition. It's a mix of both.

usrbinkat commented 2 years ago

I'm checking with the Kubevirt community kubernetes slack channel for advice on how to provide that to you.

jbpratt commented 2 years ago

Hi @goneri, can you provide a password to get into the machine with? I'm not sure if there is a default password set and we are unable to set one through our usual means (virt-sysprep or cloud-init). Or if you have other recommended methods, that would be awesome. I think we can then better try to provide the data you are requesting.

Some virt-sysprep operations are supported on BSD flavors but I'm unable to inject my ssh key (or anything else) due to the disk layout it seems.

virt-sysprep ssh-inject output ```console ❯ sudo virt-sysprep -v --add image.qcow2 --ssh-inject openbsd:file:/home/bpratt/.ssh/id_rsa.pub [ 0.0] Examining the guest ... libguestfs: launch: program=virt-sysprep libguestfs: launch: version=1.46.0fedora=35,release=1.fc35,libvirt libguestfs: launch: backend registered: direct libguestfs: launch: backend registered: libvirt libguestfs: launch: backend registered: uml libguestfs: launch: backend registered: unix libguestfs: launch: backend=libvirt libguestfs: launch: tmpdir=/tmp/libguestfsNEXRYN libguestfs: launch: umask=0022 libguestfs: launch: euid=0 libguestfs: libvirt version = 7006000 (7.6.0) libguestfs: guest random name = guestfs-68w9hab81q5sla5h libguestfs: connect to libvirt libguestfs: opening libvirt handle: URI = qemu:///system, auth = default+wrapper, flags = 0 libguestfs: successfully opened libvirt handle: conn = 0x55d6f8f8b030 libguestfs: qemu version (reported by libvirt) = 6001000 (6.1.0) libguestfs: get libvirt capabilities libguestfs: parsing capabilities XML libguestfs: parsing domcapabilities XML libguestfs: build appliance 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 x86_64 libguestfs: command: run: \ /usr/lib64/guestfs/supermin.d libguestfs: command: run: \ -o /var/tmp/.guestfs-0/appliance.d supermin: version: 5.3.1 supermin: rpm: detected RPM version 4.17 supermin: rpm: detected RPM architecture x86_64 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: command: run: qemu-img --help | grep -sqE -- '\binfo\b.*-U\b' libguestfs: command: run: qemu-img libguestfs: command: run: \ info libguestfs: command: run: \ -U libguestfs: command: run: \ --output json libguestfs: command: run: \ /var/tmp/.guestfs-0/appliance.d/root libguestfs: parse_json: qemu-img info JSON output:\n{\n "virtual-size": 4294967296,\n "filename": "/var/tmp/.guestfs-0/appliance.d/root",\n "format": "raw",\n "actual-size": 415055872,\n "dirty-flag": false\n}\n\n libguestfs: command: run: qemu-img libguestfs: command: run: \ create libguestfs: command: run: \ -f qcow2 libguestfs: command: run: \ -o backing_file=/var/tmp/.guestfs-0/appliance.d/root,backing_fmt=raw libguestfs: command: run: \ /tmp/libguestfsNEXRYN/overlay1.qcow2 Formatting '/tmp/libguestfsNEXRYN/overlay1.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=4294967296 backing_file=/var/tmp/.guestfs-0/appliance.d/root backing_fmt=raw lazy_refcounts=off refcount_bits=16 libguestfs: create libvirt XML libguestfs: command: run: qemu-img libguestfs: command: run: \ info libguestfs: command: run: \ -U libguestfs: command: run: \ --output json libguestfs: command: run: \ ./image.qcow2 libguestfs: parse_json: qemu-img info JSON output:\n{\n "virtual-size": 2147483648,\n "filename": "./image.qcow2",\n "cluster-size": 65536,\n "format": "qcow2",\n "actual-size": 612581376,\n "format-specific": {\n "type": "qcow2",\n "data": {\n "compat": "1.1",\n "compression-type": "zlib",\n "lazy-refcounts": false,\n "refcount-bits": 16,\n "corrupt": false,\n "extended-l2": false\n }\n },\n "dirty-flag": false\n}\n\n libguestfs: libvirt XML:\n\n\n guestfs-68w9hab81q5sla5h\n 1280\n 1280\n \n 1\n \n \n \n \n \n \n hvm\n /var/tmp/.guestfs-0/appliance.d/kernel\n /var/tmp/.guestfs-0/appliance.d/initrd\n 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=59d489e9-11ba-4773-80e6-80c7b36cc2d9 selinux=0 guestfs_verbose=1 TERM=xterm-256color\n \n \n \n destroy\n \n /usr/bin/qemu-kvm\n \n /dev/urandom\n \n \n \n \n \n \n
\n \n \n \n \n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n libguestfs: command: run: ls libguestfs: command: run: \ -a libguestfs: command: run: \ -l libguestfs: command: run: \ -R libguestfs: command: run: \ -Z /var/tmp/.guestfs-0 libguestfs: /var/tmp/.guestfs-0: libguestfs: total 0 libguestfs: drwxr-xr-x. 1 root root unconfined_u:object_r:user_tmp_t:s0 30 Dec 7 06:05 . libguestfs: drwxrwxrwt. 1 root root system_u:object_r:tmp_t:s0 1984 Dec 7 06:05 .. libguestfs: drwxr-xr-x. 1 root root unconfined_u:object_r:user_tmp_t:s0 32 Dec 7 05:50 appliance.d libguestfs: -rw-r--r--. 1 root root unconfined_u:object_r:user_tmp_t:s0 0 Nov 16 16:53 lock libguestfs: libguestfs: /var/tmp/.guestfs-0/appliance.d: libguestfs: total 419932 libguestfs: drwxr-xr-x. 1 root root unconfined_u:object_r:user_tmp_t:s0 32 Dec 7 05:50 . libguestfs: drwxr-xr-x. 1 root root unconfined_u:object_r:user_tmp_t:s0 30 Dec 7 06:05 .. libguestfs: -rw-r--r--. 1 root root unconfined_u:object_r:user_tmp_t:s0 3784704 Dec 7 06:05 initrd libguestfs: -rwxr-xr-x. 1 root root unconfined_u:object_r:user_tmp_t:s0 11167408 Dec 7 06:05 kernel libguestfs: -rw-r--r--. 1 bpratt qemu unconfined_u:object_r:user_tmp_t:s0 4294967296 Dec 7 06:05 root libguestfs: command: run: ls libguestfs: command: run: \ -a libguestfs: command: run: \ -l libguestfs: command: run: \ -Z /tmp/libguestfsfiDy0R libguestfs: total 0 libguestfs: drwxr-xr-x. 2 root root unconfined_u:object_r:user_tmp_t:s0 80 Dec 7 06:05 . libguestfs: drwxrwxrwt. 30 root root system_u:object_r:tmp_t:s0 1060 Dec 7 06:05 .. libguestfs: srw-rw----. 1 root qemu unconfined_u:object_r:user_tmp_t:s0 0 Dec 7 06:05 console.sock libguestfs: srw-rw----. 1 root qemu unconfined_u:object_r:user_tmp_t:s0 0 Dec 7 06:05 guestfsd.sock libguestfs: launch libvirt guest libguestfs: responding to serial console Device Status Report \x1b[1;256r\x1b[256;256H\x1b[6n Google, Inc. Serial Graphics Adapter 07/23/21 SGABIOS $Id$ (mockbuild@) Fri Jul 23 21:20:21 UTC 2021 Term: 80x24 4 0 SeaBIOS (version 1.14.0-6.fc35) Machine UUID ca459f7d-c932-4296-ab2e-1d9dcd90aeb3 Booting from ROM... \x1b[2J[ 0.000000] Linux version 5.15.6-200.fc35.x86_64 (mockbuild@bkernel01.iad2.fedoraproject.org) (gcc (GCC) 11.2.1 20210728 (Red Hat 11.2.1-1), GNU ld version 2.37-10.fc35) #1 SMP Wed Dec 1 13:41:10 UTC 2021 [ 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=59d489e9-11ba-4773-80e6-80c7b36cc2d9 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: Supporting XSAVE feature 0x008: 'MPX bounds registers' [ 0.000000] x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR' [ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256 [ 0.000000] x86/fpu: xstate_offset[3]: 832, xstate_sizes[3]: 64 [ 0.000000] x86/fpu: xstate_offset[4]: 896, xstate_sizes[4]: 64 [ 0.000000] x86/fpu: Enabled xstate features 0x1f, context size is 960 bytes, using 'compacted' format. [ 0.000000] signal: max sigframe size: 2032 [ 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-0x000000004fffcfff] usable [ 0.000000] BIOS-e820: [mem 0x000000004fffd000-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-6.fc35 04/01/2014 [ 0.000000] Hypervisor detected: KVM [ 0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00 [ 0.000000] kvm-clock: cpu 0, msr 46c01001, primary cpu clock [ 0.000002] kvm-clock: using sched offset of 134447601 cycles [ 0.000008] clocksource: kvm-clock: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns [ 0.000016] tsc: Detected 2111.996 MHz processor [ 0.000303] last_pfn = 0x4fffd max_arch_pfn = 0x400000000 [ 0.000344] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WP UC- WT [ 0.008773] found SMP MP-table at [mem 0x000f5c30-0x000f5c3f] [ 0.008880] Using GB pages for direct mapping [ 0.009065] RAMDISK: [mem 0x4fc54000-0x4ffeffff] [ 0.009089] ACPI: Early table checksum verification disabled [ 0.009223] ACPI BIOS Error (bug): A valid RSDP was not found (20210730/tbxfroot-210) [ 0.009483] No NUMA configuration found [ 0.009484] Faking a node at [mem 0x0000000000000000-0x000000004fffcfff] [ 0.009496] NODE_DATA(0) allocated [mem 0x4fc29000-0x4fc53fff] [ 0.011998] Zone ranges: [ 0.012002] DMA [mem 0x0000000000001000-0x0000000000ffffff] [ 0.012004] DMA32 [mem 0x0000000001000000-0x000000004fffcfff] [ 0.012006] Normal empty [ 0.012007] Device empty [ 0.012008] Movable zone start for each node [ 0.012010] Early memory node ranges [ 0.012011] node 0: [mem 0x0000000000001000-0x000000000009efff] [ 0.012013] node 0: [mem 0x0000000000100000-0x000000004fffcfff] [ 0.012017] Initmem setup node 0 [mem 0x0000000000001000-0x000000004fffcfff] [ 0.012026] On node 0, zone DMA: 1 pages in unavailable ranges [ 0.012060] On node 0, zone DMA: 97 pages in unavailable ranges [ 0.013578] On node 0, zone DMA32: 3 pages in unavailable ranges [ 0.013959] Intel MultiProcessor Specification v1.4 [ 0.013962] MPTABLE: OEM ID: BOCHSCPU [ 0.013963] MPTABLE: Product ID: 0.1 [ 0.013964] MPTABLE: APIC at: 0xFEE00000 [ 0.013987] Processor #0 (Bootup-CPU) [ 0.014024] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23 [ 0.014027] Processors: 1 [ 0.014028] TSC deadline timer available [ 0.014035] smpboot: Allowing 1 CPUs, 0 hotplug CPUs [ 0.014092] kvm-guest: KVM setup pv remote TLB flush [ 0.014095] kvm-guest: setup PV sched yield [ 0.014112] PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff] [ 0.014114] PM: hibernation: Registered nosave memory: [mem 0x0009f000-0x0009ffff] [ 0.014115] PM: hibernation: Registered nosave memory: [mem 0x000a0000-0x000effff] [ 0.014116] PM: hibernation: Registered nosave memory: [mem 0x000f0000-0x000fffff] [ 0.014117] [mem 0x50000000-0xfeffbfff] available for PCI devices [ 0.014118] Booting paravirtualized kernel on KVM [ 0.014129] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1910969940391419 ns [ 0.019001] setup_percpu: NR_CPUS:8192 nr_cpumask_bits:1 nr_cpu_ids:1 nr_node_ids:1 [ 0.019221] percpu: Embedded 61 pages/cpu s212992 r8192 d28672 u2097152 [ 0.019255] kvm-guest: setup async PF for cpu 0 [ 0.019259] kvm-guest: stealtime: cpu 0, msr 4e633080 [ 0.019262] kvm-guest: PV spinlocks disabled, single CPU [ 0.019273] Built 1 zonelists, mobility grouping on. Total pages: 322301 [ 0.019275] Policy zone: DMA32 [ 0.019276] 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=59d489e9-11ba-4773-80e6-80c7b36cc2d9 selinux=0 guestfs_verbose=1 TERM=xterm-256color [ 0.019444] cgroup: Disabling memory control group subsystem [ 0.019495] Unknown kernel command line parameters "edd=off udevtimeout=6000 guestfs_verbose=1", will be passed to user space. [ 0.019640] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear) [ 0.019664] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear) [ 0.019706] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.023474] Memory: 1226328K/1310316K available (16394K kernel code, 3561K rwdata, 10528K rodata, 2904K init, 4796K bss, 83728K reserved, 0K cma-reserved) [ 0.023487] random: get_random_u64 called from __kmem_cache_create+0x2a/0x500 with crng_init=0 [ 0.023604] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.023621] Kernel/User page tables isolation: enabled [ 0.023642] ftrace: allocating 47361 entries in 186 pages [ 0.038626] ftrace: allocated 186 pages with 5 groups [ 0.038809] rcu: Hierarchical RCU implementation. [ 0.038810] rcu: \tRCU restricting CPUs from NR_CPUS=8192 to nr_cpu_ids=1. [ 0.038812] \tTrampoline variant of Tasks RCU enabled. [ 0.038812] \tRude variant of Tasks RCU enabled. [ 0.038813] \tTracing variant of Tasks RCU enabled. [ 0.038814] rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies. [ 0.038814] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1 [ 0.042005] NR_IRQS: 524544, nr_irqs: 256, preallocated irqs: 16 [ 0.042285] random: crng done (trusting CPU's manufacturer) [ 0.042389] Console: colour *CGA 80x25 [ 0.110094] printk: console [ttyS0] enabled [ 0.110561] APIC: Switch to symmetric I/O mode setup [ 0.111275] x2apic enabled [ 0.111773] Switched APIC routing to physical x2apic. [ 0.112302] kvm-guest: setup PV IPIs [ 0.113457] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x1e717485a72, max_idle_ns: 440795205496 ns [ 0.114536] Calibrating delay loop (skipped) preset value.. 4223.99 BogoMIPS (lpj=2111996) [ 0.115391] pid_max: default: 32768 minimum: 301 [ 0.115533] LSM: Security Framework initializing [ 0.115533] Yama: becoming mindful. [ 0.115533] LSM support for eBPF active [ 0.115533] landlock: Up and running. [ 0.115533] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.115533] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.115533] x86/cpu: User Mode Instruction Prevention (UMIP) activated [ 0.115533] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0 [ 0.115533] Last level dTLB entries: 4KB 0, 2MB 0, 4MB 0, 1GB 0 [ 0.115533] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization [ 0.115533] Spectre V2 : Mitigation: Full generic retpoline [ 0.115533] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch [ 0.115533] Spectre V2 : Enabling Restricted Speculation for firmware calls [ 0.115533] Spectre V2 : mitigation: Enabling conditional Indirect Branch Prediction Barrier [ 0.115533] Speculative Store Bypass: Mitigation: Speculative Store Bypass disabled via prctl and seccomp [ 0.115533] SRBDS: Unknown: Dependent on hypervisor status [ 0.115533] MDS: Mitigation: Clear CPU buffers [ 0.115533] Freeing SMP alternatives memory: 44K [ 0.115533] smpboot: CPU0: Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (family: 0x6, model: 0x8e, stepping: 0xa) [ 0.115665] Performance Events: Skylake events, full-width counters, Intel PMU driver. [ 0.116515] ... version: 2 [ 0.116535] ... bit width: 48 [ 0.116979] ... generic registers: 4 [ 0.117395] ... value mask: 0000ffffffffffff [ 0.117535] ... max period: 00007fffffffffff [ 0.118085] ... fixed-purpose events: 3 [ 0.118503] ... event mask: 000000070000000f [ 0.118629] rcu: Hierarchical SRCU implementation. [ 0.119458] smp: Bringing up secondary CPUs ... [ 0.119537] smp: Brought up 1 node, 1 CPU [ 0.119960] smpboot: Max logical packages: 1 [ 0.120409] smpboot: Total of 1 processors activated (4223.99 BogoMIPS) [ 0.120680] devtmpfs: initialized [ 0.121092] x86/mm: Memory block size: 128MB [ 0.121769] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns [ 0.122541] futex hash table entries: 256 (order: 2, 16384 bytes, linear) [ 0.123286] pinctrl core: initialized pinctrl subsystem [ 0.123650] PM: RTC time: 12:05:18, date: 2021-12-07 [ 0.124262] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.124618] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations [ 0.125359] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations [ 0.125540] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations [ 0.126365] audit: initializing netlink subsys (disabled) [ 0.126627] thermal_sys: Registered thermal governor 'fair_share' [ 0.126627] thermal_sys: Registered thermal governor 'bang_bang' [ 0.127263] thermal_sys: Registered thermal governor 'step_wise' [ 0.127535] thermal_sys: Registered thermal governor 'user_space' [ 0.128159] cpuidle: using governor menu [ 0.129099] PCI: Using configuration type 1 for base access [ 0.130473] Kprobes globally optimized [ 0.130541] audit: type=2000 audit(1638878718.755:1): state=initialized audit_enabled=0 res=1 [ 0.131480] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages [ 0.131537] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages [ 0.132318] alg: self-tests disabled [ 0.132764] cryptd: max_cpu_qlen set to 1000 [ 0.133614] raid6: skip pq benchmark and using algorithm avx2x4 [ 0.134237] raid6: using avx2x2 recovery algorithm [ 0.134558] ACPI: Interpreter disabled. [ 0.135000] iommu: Default domain type: Translated [ 0.135511] iommu: DMA domain TLB invalidation policy: lazy mode [ 0.135584] vgaarb: loaded [ 0.135930] SCSI subsystem initialized [ 0.136362] usbcore: USB support disabled [ 0.136559] pps_core: LinuxPPS API ver. 1 registered [ 0.137080] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti [ 0.137537] PTP clock support registered [ 0.137976] EDAC MC: Ver: 3.0.0 [ 0.138441] NetLabel: Initializing [ 0.138537] NetLabel: domain hash size = 128 [ 0.138990] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO [ 0.139547] NetLabel: unlabeled traffic allowed by default [ 0.140129] PCI: Probing PCI hardware [ 0.140529] PCI host bridge to bus 0000:00 [ 0.140536] pci_bus 0000:00: root bus resource [io 0x0000-0xffff] [ 0.141177] pci_bus 0000:00: root bus resource [mem 0x00000000-0x7fffffffff] [ 0.141538] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff] [ 0.142382] pci 0000:00:00.0: [8086:1237] type 00 class 0x060000 [ 0.142844] pci 0000:00:01.0: [8086:7000] type 00 class 0x060100 [ 0.143868] pci 0000:00:01.1: [8086:7010] type 00 class 0x010180 [ 0.145536] pci 0000:00:01.1: reg 0x20: [io 0xc0a0-0xc0af] [ 0.146553] pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io 0x01f0-0x01f7] [ 0.147296] pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io 0x03f6] [ 0.147535] pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io 0x0170-0x0177] [ 0.148275] pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io 0x0376] [ 0.148737] pci 0000:00:02.0: [1af4:1004] type 00 class 0x010000 [ 0.149863] pci 0000:00:02.0: reg 0x10: [io 0xc000-0xc03f] [ 0.150853] pci 0000:00:02.0: reg 0x14: [mem 0xfebfe000-0xfebfefff] [ 0.152864] pci 0000:00:02.0: reg 0x20: [mem 0xfebf0000-0xfebf3fff 64bit pref] [ 0.154446] pci 0000:00:03.0: [1af4:1003] type 00 class 0x078000 [ 0.155059] pci 0000:00:03.0: reg 0x10: [io 0xc040-0xc07f] [ 0.155955] pci 0000:00:03.0: reg 0x14: [mem 0xfebff000-0xfebfffff] [ 0.157731] pci 0000:00:03.0: reg 0x20: [mem 0xfebf4000-0xfebf7fff 64bit pref] [ 0.159232] pci 0000:00:04.0: [1af4:1005] type 00 class 0x00ff00 [ 0.159928] pci 0000:00:04.0: reg 0x10: [io 0xc080-0xc09f] [ 0.162202] pci 0000:00:04.0: reg 0x20: [mem 0xfebf8000-0xfebfbfff 64bit pref] [ 0.163279] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00 [ 0.163557] pci 0000:00:01.0: PIIX/ICH IRQ router [8086:7000] [ 0.164367] clocksource: Switched to clocksource kvm-clock [ 0.170947] VFS: Disk quotas dquot_6.6.0 [ 0.171413] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 0.172188] pnp: PnP ACPI: disabled [ 0.173286] NET: Registered PF_INET protocol family [ 0.173840] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear) [ 0.180972] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear) [ 0.181887] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 0.182726] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear) [ 0.183496] TCP: Hash tables configured (established 16384 bind 16384) [ 0.184215] MPTCP token hash table entries: 2048 (order: 3, 49152 bytes, linear) [ 0.184999] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear) [ 0.185706] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear) [ 0.186471] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 0.187071] NET: Registered PF_XDP protocol family [ 0.187588] pci_bus 0000:00: resource 4 [io 0x0000-0xffff] [ 0.188168] pci_bus 0000:00: resource 5 [mem 0x00000000-0x7fffffffff] [ 0.188846] pci 0000:00:01.0: PIIX3: Enabling Passive Release [ 0.189460] pci 0000:00:00.0: Limiting direct PCI/PCI transfers [ 0.190088] pci 0000:00:01.0: Activating ISA DMA hang workarounds [ 0.190753] PCI: CLS 0 bytes, default 64 [ 0.191197] Trying to unpack rootfs image as initramfs... [ 0.192972] Freeing initrd memory: 3696K [ 0.193495] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x1e717485a72, max_idle_ns: 440795205496 ns [ 0.194574] platform rtc_cmos: registered platform RTC device (no PNP device found) [ 0.195680] Initialise system trusted keyrings [ 0.196170] Key type blacklist registered [ 0.196617] workingset: timestamp_bits=36 max_order=19 bucket_order=0 [ 0.198138] zbud: loaded [ 0.198710] integrity: Platform Keyring initialized [ 0.205013] NET: Registered PF_ALG protocol family [ 0.205521] xor: automatically using best checksumming function avx [ 0.206268] Key type asymmetric registered [ 0.206708] Asymmetric key parser 'x509' registered [ 0.207240] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245) [ 0.208050] io scheduler mq-deadline registered [ 0.208530] io scheduler kyber registered [ 0.208978] io scheduler bfq registered [ 0.209562] atomic64_test: passed for x86-64 platform with CX8 and with SSE [ 0.210478] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 [ 0.211420] virtio-pci 0000:00:02.0: PCI->APIC IRQ transform: INT A -> IRQ 10 [ 0.212874] virtio-pci 0000:00:03.0: PCI->APIC IRQ transform: INT A -> IRQ 11 [ 0.214307] virtio-pci 0000:00:04.0: PCI->APIC IRQ transform: INT A -> IRQ 11 [ 0.215681] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled [ 0.216909] serial8250: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A [ 0.217826] Non-volatile memory driver v1.3 [ 0.218491] Linux agpgart interface v0.103 [ 0.219495] scsi host0: ata_piix [ 0.219979] scsi host1: ata_piix [ 0.220392] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc0a0 irq 14 [ 0.221105] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc0a8 irq 15 [ 0.222164] libphy: Fixed MDIO Bus: probed [ 0.222679] usbserial: usb_serial_init - registering generic driver failed [ 0.223398] usbserial: usb_serial_init - returning with error -19 [ 0.224040] i8042: PNP: No PS/2 controller found. [ 0.224529] i8042: Probing ports directly. [ 0.225494] serio: i8042 KBD port at 0x60,0x64 irq 1 [ 0.226202] serio: i8042 AUX port at 0x60,0x64 irq 12 [ 0.226794] mousedev: PS/2 mouse device common for all mice [ 0.227577] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0 [ 0.228952] input: VirtualPS/2 VMware VMMouse as /devices/platform/i8042/serio1/input/input3 [ 0.229984] input: VirtualPS/2 VMware VMMouse as /devices/platform/i8042/serio1/input/input2 [ 0.231145] rtc_cmos rtc_cmos: registered as rtc0 [ 0.231690] rtc_cmos rtc_cmos: setting system clock to 2021-12-07T12:05:18 UTC (1638878718) [ 0.232564] rtc_cmos rtc_cmos: alarms up to one day, 114 bytes nvram [ 0.233233] device-mapper: core: CONFIG_IMA_DISABLE_HTABLE is disabled. Duplicate IMA measurements will not be recorded in the IMA log. [ 0.234498] device-mapper: uevent: version 1.0.3 [ 0.235025] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com [ 0.235939] intel_pstate: CPU model not supported [ 0.236474] hid: raw HID events driver (C) Jiri Kosina [ 0.237072] intel_pmc_core intel_pmc_core.0: initialized [ 0.237669] drop_monitor: Initializing network drop monitor service [ 0.238367] Initializing XFRM netlink socket [ 0.238878] NET: Registered PF_INET6 protocol family [ 0.239731] Segment Routing with IPv6 [ 0.240125] RPL Segment Routing with IPv6 [ 0.240553] In-situ OAM (IOAM) with IPv6 [ 0.240974] mip6: Mobile IPv6 [ 0.241290] NET: Registered PF_PACKET protocol family [ 0.241934] IPI shorthand broadcast: enabled [ 0.242389] AVX2 version of gcm_enc/dec engaged. [ 0.242897] AES CTR mode by8 optimization enabled [ 0.243572] sched_clock: Marking stable (171128770, 72407254)->(281974364, -38438340) [ 0.244436] registered taskstats version 1 [ 0.244901] Loading compiled-in X.509 certificates [ 0.245858] Loaded X.509 cert 'Fedora kernel signing key: 783c86212ace97f6862148dd2d91648eb8a1c2da' [ 0.246834] zswap: loaded using pool lzo/zbud [ 0.247335] page_owner is disabled [ 0.247726] Key type ._fscrypt registered [ 0.248151] Key type .fscrypt registered [ 0.248572] Key type fscrypt-provisioning registered [ 0.249282] Btrfs loaded, crc32c=crc32c-generic, zoned=yes, fsverity=yes [ 0.250005] Key type big_key registered [ 0.250489] Key type encrypted registered [ 0.250924] ima: No TPM chip found, activating TPM-bypass! [ 0.251507] Loading compiled-in module X.509 certificates [ 0.252475] Loaded X.509 cert 'Fedora kernel signing key: 783c86212ace97f6862148dd2d91648eb8a1c2da' [ 0.253420] ima: Allocated hash algorithm: sha256 [ 0.253936] ima: No architecture policies found [ 0.254428] evm: Initialising EVM extended attributes: [ 0.254973] evm: security.selinux [ 0.255328] evm: security.SMACK64 (disabled) [ 0.255774] evm: security.SMACK64EXEC (disabled) [ 0.256258] evm: security.SMACK64TRANSMUTE (disabled) [ 0.256784] evm: security.SMACK64MMAP (disabled) [ 0.257270] evm: security.apparmor (disabled) [ 0.257734] evm: security.ima [ 0.258052] evm: security.capability [ 0.258429] evm: HMAC attrs: 0x1 [ 0.258923] PM: Magic number: 1:348:76 [ 0.259376] RAS: Correctable Errors collector initialized. [ 0.381239] Freeing unused decrypted memory: 2036K [ 0.383440] Freeing unused kernel image (initmem) memory: 2904K [ 0.384914] Write protecting the kernel read-only data: 30720k [ 0.388401] Freeing unused kernel image (text/rodata gap) memory: 2036K [ 0.391042] Freeing unused kernel image (rodata/data gap) memory: 1760K [ 0.437849] x86/mm: Checked W+X mappings: passed, no W+X pages found. [ 0.438562] rodata_test: all tests were successful [ 0.439071] x86/mm: Checking user space page tables [ 0.477900] x86/mm: Checked W+X mappings: passed, no W+X pages found. [ 0.478593] Run /init as init process supermin: mounting /proc supermin: ext2 mini initrd starting up: 5.3.1 dietlibc 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=59d489e9-11ba-4773-80e6-80c7b36cc2d9 selinux=0 guestfs_verbose=1 TERM=xterm-256color supermin: uptime: 0.40 0.11 supermin: mounting /sys supermin: internal insmod crc32-pclmul.ko supermin: internal insmod crc32c-intel.ko supermin: internal insmod crct10dif-pclmul.ko supermin: internal insmod crc32_generic.ko supermin: internal insmod libnvdimm.ko supermin: internal insmod nfit.ko insmod: init_module: nfit.ko: No such device supermin: internal insmod virtio_blk.ko supermin: internal insmod ecdh_generic.ko supermin: internal insmod rfkill.ko supermin: internal insmod bluetooth.ko [ 0.509643] Bluetooth: Core ver 2.22 [ 0.510065] NET: Registered PF_BLUETOOTH protocol family [ 0.510629] Bluetooth: HCI device and connection manager initialized [ 0.511306] Bluetooth: HCI socket layer initialized [ 0.511827] Bluetooth: L2CAP socket layer initialized [ 0.512369] Bluetooth: SCO socket layer initialized supermin: internal insmod virtio_bt.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 virtio_scsi.ko [ 0.538980] scsi host2: Virtio SCSI HBA [ 0.539955] scsi 2:0:0:0: Direct-Access QEMU QEMU HARDDISK 2.5+ PQ: 0 ANSI: 5 [ 0.541100] scsi 2:0:1:0: Direct-Access QEMU QEMU HARDDISK 2.5+ PQ: 0 ANSI: 5 [ 0.550338] sd 2:0:0:0: Power-on or device reset occurred [ 0.550995] sd 2:0:0:0: Attached scsi generic sg0 type 0 [ 0.551799] sd 2:0:1:0: Power-on or device reset occurred [ 0.552402] sd 2:0:1:0: Attached scsi generic sg1 type 0 [ 0.553025] sd 2:0:0:0: [sda] 4194304 512-byte logical blocks: (2.15 GB/2.00 GiB) [ 0.553927] sd 2:0:0:0: [sda] Write Protect is off [ 0.554568] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 0.555635] sd 2:0:1:0: [sdb] 8388608 512-byte logical blocks: (4.29 GB/4.00 GiB) [ 0.556498] sd 2:0:1:0: [sdb] Write Protect is off [ 0.557111] sd 2:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 0.561986] sda: sda4 [ 0.561986] sda4: [ 0.564991] sd 2:0:1:0: [sdb] Attached SCSI disk [ 0.565771] sd 2:0:0:0: [sda] Attached SCSI disk 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 vdpa.ko supermin: internal insmod virtio_vdpa.ko supermin: internal insmod fuse.ko [ 0.578109] fuse: init (API version 7.34) supermin: internal insmod virtiofs.ko supermin: internal insmod crc-itu-t.ko supermin: internal insmod crc4.ko supermin: internal insmod crc64.ko supermin: internal insmod crc7.ko supermin: internal insmod crc8.ko supermin: internal insmod soundcore.ko supermin: internal insmod snd.ko supermin: internal insmod snd-timer.ko supermin: internal insmod snd-pcm.ko supermin: internal insmod virtio_snd.ko supermin: picked 8:16 as root device supermin: creating /dev/root as block special 8:16 supermin: mounting new root on /root [ 0.596668] EXT4-fs (sdb): mounting ext2 file system using the ext4 subsystem [ 0.598486] EXT4-fs (sdb): mounted filesystem without journal. Opts: . Quota mode: none. supermin: deleting initramfs files supermin: chroot Starting /init script ... + [[ 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=59d489e9-11ba-4773-80e6-80c7b36cc2d9 selinux=0 guestfs_verbose=1 TERM=xterm-256color == *guestfs_network=1* ]] + [[ 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=59d489e9-11ba-4773-80e6-80c7b36cc2d9 selinux=0 guestfs_verbose=1 TERM=xterm-256color == *guestfs_rescue=1* ]] + [[ 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=59d489e9-11ba-4773-80e6-80c7b36cc2d9 selinux=0 guestfs_verbose=1 TERM=xterm-256color == *guestfs_noreboot=1* ]] + [[ 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=59d489e9-11ba-4773-80e6-80c7b36cc2d9 selinux=0 guestfs_verbose=1 TERM=xterm-256color == *guestfs_boot_analysis=1* ]] + mkdir -p /dev/pts /dev/shm + mount -t devpts /dev/pts /dev/pts + mount -t tmpfs -o mode=1777 shmfs /dev/shm + mkdir -p /sysroot + mkdir -p /run + mount -t tmpfs -o nosuid,size=20%,mode=0755 tmpfs /run + mkdir -p /run/lock + ln -s ../run/lock /var/lock + [[ 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=59d489e9-11ba-4773-80e6-80c7b36cc2d9 selinux=0 guestfs_verbose=1 TERM=xterm-256color == *selinux=1* ]] + test -e /etc/mtab + ln -s /proc/mounts /etc/mtab + 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=' 2e4c 4d28 4c43 a3cd fff6 cd80 64a9 b1ad' + echo 2e4c4d284c43a3cdfff6cd8064a9b1ad + systemd-tmpfiles --prefix=/dev --prefix=/run --prefix=/var/run --create --boot \x1b[0;1;31m/usr/lib/tmpfiles.d/static-nodes-permissions.conf:17: Failed to resolve group 'kvm'.\x1b[0m \x1b[0;1;31m/usr/lib/tmpfiles.d/static-nodes-permissions.conf:18: Failed to resolve group 'kvm'.\x1b[0m \x1b[0;1;31m/usr/lib/tmpfiles.d/static-nodes-permissions.conf:19: Failed to resolve group 'kvm'.\x1b[0m \x1b[0;1;31m/usr/lib/tmpfiles.d/systemd.conf:11: Failed to resolve group 'utmp'.\x1b[0m \x1b[0;1;31m/usr/lib/tmpfiles.d/systemd.conf:19: Failed to resolve user 'systemd-network': No such process\x1b[0m \x1b[0;1;31m/usr/lib/tmpfiles.d/systemd.conf:20: Failed to resolve user 'systemd-network': No such process\x1b[0m \x1b[0;1;31m/usr/lib/tmpfiles.d/systemd.conf:21: Failed to resolve user 'systemd-network': No such process\x1b[0m \x1b[0;1;31m/usr/lib/tmpfiles.d/systemd.conf:22: Failed to resolve user 'systemd-network': No such process\x1b[0m \x1b[0;1;31m/usr/lib/tmpfiles.d/systemd.conf:26: Failed to resolve group 'systemd-journal'.\x1b[0m \x1b[0;1;31m/usr/lib/tmpfiles.d/systemd.conf:27: Failed to resolve group 'systemd-journal'.\x1b[0m + 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 v249.7-2.fc35 + udevadm trigger + udevadm settle --timeout=600 + 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 111: echo: write error: Invalid argument + for f in /sys/block/{h,s,ub,v}d*/queue/scheduler + echo noop /init: line 111: 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 /init: line 139: lvmetad: command not found + modprobe dm_mod + lvm pvscan --cache --activate ay + mdadm -As --auto=yes --run mdadm: No arrays found in config file or automatically + ldmtool create all /init: line 149: ldmtool: command not found + test 1 = 1 + test '' '!=' 1 + uname -a Linux (none) 5.15.6-200.fc35.x86_64 #1 SMP Wed Dec 1 13:41:10 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux + ls -lR /dev /dev: total 0 crw-r--r-- 1 root root 10, 235 Dec 7 12:05 autofs drwxr-xr-x 2 root root 120 Dec 7 12:05 block drwxr-xr-x 2 root root 80 Dec 7 12:05 bsg crw------- 1 root root 10, 234 Dec 7 12:05 btrfs-control drwxr-xr-x 2 root root 2260 Dec 7 12:05 char crw------- 1 root root 5, 1 Dec 7 12:05 console drwxr-xr-x 3 root root 60 Dec 7 12:05 cpu crw------- 1 root root 10, 125 Dec 7 12:05 cpu_dma_latency crw------- 1 root root 10, 203 Dec 7 12:05 cuse drwxr-xr-x 5 root root 100 Dec 7 12:05 disk drwxr-xr-x 2 root root 60 Dec 7 12:05 dma_heap lrwxrwxrwx 1 root root 13 Dec 7 12:05 fd -> /proc/self/fd crw-rw-rw- 1 root root 1, 7 Dec 7 12:05 full crw-rw-rw- 1 root root 10, 229 Dec 7 12:05 fuse crw------- 1 root root 10, 183 Dec 7 12:05 hwrng drwxr-xr-x 3 root root 180 Dec 7 12:05 input crw-r--r-- 1 root root 1, 11 Dec 7 12:05 kmsg crw-rw---- 1 root disk 10, 237 Dec 7 12:05 loop-control drwxr-xr-x 2 root root 60 Dec 7 12:05 mapper crw------- 1 root root 10, 227 Dec 7 12:05 mcelog crw------- 1 root root 1, 1 Dec 7 12:05 mem drwxr-xr-x 2 root root 60 Dec 7 12:05 net crw-rw-rw- 1 root root 1, 3 Dec 7 12:05 null crw------- 1 root root 10, 144 Dec 7 12:05 nvram crw------- 1 root root 1, 4 Dec 7 12:05 port crw------- 1 root root 108, 0 Dec 7 12:05 ppp crw-rw-rw- 1 root root 5, 2 Dec 7 12:05 ptmx drwxr-xr-x 2 root root 0 Dec 7 12:05 pts crw-rw-rw- 1 root root 1, 8 Dec 7 12:05 random crw------- 1 root root 10, 242 Dec 7 12:05 rfkill lrwxrwxrwx 1 root root 4 Dec 7 12:05 rtc -> rtc0 crw------- 1 root root 250, 0 Dec 7 12:05 rtc0 brw------- 1 root root 8, 0 Dec 7 12:05 sda brw------- 1 root root 8, 4 Dec 7 12:05 sda4 brw------- 1 root root 8, 5 Dec 7 12:05 sda5 brw------- 1 root root 8, 16 Dec 7 12:05 sdb crw------- 1 root root 21, 0 Dec 7 12:05 sg0 crw------- 1 root root 21, 1 Dec 7 12:05 sg1 drwxrwxrwt 2 root root 40 Dec 7 12:05 shm crw------- 1 root root 10, 231 Dec 7 12:05 snapshot drwxr-xr-x 2 root root 80 Dec 7 12:05 snd crw-rw-rw- 1 root root 5, 0 Dec 7 12:05 tty crw------- 1 root root 4, 0 Dec 7 12:05 tty0 crw------- 1 root root 4, 1 Dec 7 12:05 tty1 crw------- 1 root root 4, 10 Dec 7 12:05 tty10 crw------- 1 root root 4, 11 Dec 7 12:05 tty11 crw------- 1 root root 4, 12 Dec 7 12:05 tty12 crw------- 1 root root 4, 13 Dec 7 12:05 tty13 crw------- 1 root root 4, 14 Dec 7 12:05 tty14 crw------- 1 root root 4, 15 Dec 7 12:05 tty15 crw------- 1 root root 4, 16 Dec 7 12:05 tty16 crw------- 1 root root 4, 17 Dec 7 12:05 tty17 crw------- 1 root root 4, 18 Dec 7 12:05 tty18 crw------- 1 root root 4, 19 Dec 7 12:05 tty19 crw------- 1 root root 4, 2 Dec 7 12:05 tty2 crw------- 1 root root 4, 20 Dec 7 12:05 tty20 crw------- 1 root root 4, 21 Dec 7 12:05 tty21 crw------- 1 root root 4, 22 Dec 7 12:05 tty22 crw------- 1 root root 4, 23 Dec 7 12:05 tty23 crw------- 1 root root 4, 24 Dec 7 12:05 tty24 crw------- 1 root root 4, 25 Dec 7 12:05 tty25 crw------- 1 root root 4, 26 Dec 7 12:05 tty26 crw------- 1 root root 4, 27 Dec 7 12:05 tty27 crw------- 1 root root 4, 28 Dec 7 12:05 tty28 crw------- 1 root root 4, 29 Dec 7 12:05 tty29 crw------- 1 root root 4, 3 Dec 7 12:05 tty3 crw------- 1 root root 4, 30 Dec 7 12:05 tty30 crw------- 1 root root 4, 31 Dec 7 12:05 tty31 crw------- 1 root root 4, 32 Dec 7 12:05 tty32 crw------- 1 root root 4, 33 Dec 7 12:05 tty33 crw------- 1 root root 4, 34 Dec 7 12:05 tty34 crw------- 1 root root 4, 35 Dec 7 12:05 tty35 crw------- 1 root root 4, 36 Dec 7 12:05 tty36 crw------- 1 root root 4, 37 Dec 7 12:05 tty37 crw------- 1 root root 4, 38 Dec 7 12:05 tty38 crw------- 1 root root 4, 39 Dec 7 12:05 tty39 crw------- 1 root root 4, 4 Dec 7 12:05 tty4 crw------- 1 root root 4, 40 Dec 7 12:05 tty40 crw------- 1 root root 4, 41 Dec 7 12:05 tty41 crw------- 1 root root 4, 42 Dec 7 12:05 tty42 crw------- 1 root root 4, 43 Dec 7 12:05 tty43 crw------- 1 root root 4, 44 Dec 7 12:05 tty44 crw------- 1 root root 4, 45 Dec 7 12:05 tty45 crw------- 1 root root 4, 46 Dec 7 12:05 tty46 crw------- 1 root root 4, 47 Dec 7 12:05 tty47 crw------- 1 root root 4, 48 Dec 7 12:05 tty48 crw------- 1 root root 4, 49 Dec 7 12:05 tty49 crw------- 1 root root 4, 5 Dec 7 12:05 tty5 crw------- 1 root root 4, 50 Dec 7 12:05 tty50 crw------- 1 root root 4, 51 Dec 7 12:05 tty51 crw------- 1 root root 4, 52 Dec 7 12:05 tty52 crw------- 1 root root 4, 53 Dec 7 12:05 tty53 crw------- 1 root root 4, 54 Dec 7 12:05 tty54 crw------- 1 root root 4, 55 Dec 7 12:05 tty55 crw------- 1 root root 4, 56 Dec 7 12:05 tty56 crw------- 1 root root 4, 57 Dec 7 12:05 tty57 crw------- 1 root root 4, 58 Dec 7 12:05 tty58 crw------- 1 root root 4, 59 Dec 7 12:05 tty59 crw------- 1 root root 4, 6 Dec 7 12:05 tty6 crw------- 1 root root 4, 60 Dec 7 12:05 tty60 crw------- 1 root root 4, 61 Dec 7 12:05 tty61 crw------- 1 root root 4, 62 Dec 7 12:05 tty62 crw------- 1 root root 4, 63 Dec 7 12:05 tty63 crw------- 1 root root 4, 7 Dec 7 12:05 tty7 crw------- 1 root root 4, 8 Dec 7 12:05 tty8 crw------- 1 root root 4, 9 Dec 7 12:05 tty9 crw------- 1 root root 4, 64 Dec 7 12:05 ttyS0 crw------- 1 root root 10, 126 Dec 7 12:05 udmabuf crw------- 1 root root 10, 239 Dec 7 12:05 uhid crw------- 1 root root 10, 223 Dec 7 12:05 uinput crw-rw-rw- 1 root root 1, 9 Dec 7 12:05 urandom crw------- 1 root root 242, 0 Dec 7 12:05 usbmon0 crw------- 1 root root 7, 0 Dec 7 12:05 vcs crw------- 1 root root 7, 1 Dec 7 12:05 vcs1 crw------- 1 root root 7, 128 Dec 7 12:05 vcsa crw------- 1 root root 7, 129 Dec 7 12:05 vcsa1 crw------- 1 root root 7, 64 Dec 7 12:05 vcsu crw------- 1 root root 7, 65 Dec 7 12:05 vcsu1 drwxr-xr-x 2 root root 60 Dec 7 12:05 vfio crw------- 1 root root 10, 127 Dec 7 12:05 vga_arbiter crw------- 1 root root 10, 137 Dec 7 12:05 vhci crw-rw-rw- 1 root root 10, 238 Dec 7 12:05 vhost-net crw-rw-rw- 1 root root 10, 241 Dec 7 12:05 vhost-vsock drwxr-xr-x 2 root root 60 Dec 7 12:05 virtio-ports crw------- 1 root root 237, 1 Dec 7 12:05 vport1p1 crw-rw-rw- 1 root root 1, 5 Dec 7 12:05 zero /dev/block: total 0 lrwxrwxrwx 1 root root 6 Dec 7 12:05 8:0 -> ../sda lrwxrwxrwx 1 root root 6 Dec 7 12:05 8:16 -> ../sdb lrwxrwxrwx 1 root root 7 Dec 7 12:05 8:4 -> ../sda4 lrwxrwxrwx 1 root root 7 Dec 7 12:05 8:5 -> ../sda5 /dev/bsg: total 0 crw------- 1 root root 245, 0 Dec 7 12:05 2:0:0:0 crw------- 1 root root 245, 1 Dec 7 12:05 2:0:1:0 /dev/char: total 0 lrwxrwxrwx 1 root root 18 Dec 7 12:05 10:125 -> ../cpu_dma_latency lrwxrwxrwx 1 root root 10 Dec 7 12:05 10:126 -> ../udmabuf lrwxrwxrwx 1 root root 14 Dec 7 12:05 10:127 -> ../vga_arbiter lrwxrwxrwx 1 root root 8 Dec 7 12:05 10:144 -> ../nvram lrwxrwxrwx 1 root root 8 Dec 7 12:05 10:183 -> ../hwrng lrwxrwxrwx 1 root root 9 Dec 7 12:05 10:227 -> ../mcelog lrwxrwxrwx 1 root root 7 Dec 7 12:05 10:229 -> ../fuse lrwxrwxrwx 1 root root 11 Dec 7 12:05 10:231 -> ../snapshot lrwxrwxrwx 1 root root 16 Dec 7 12:05 10:234 -> ../btrfs-control lrwxrwxrwx 1 root root 9 Dec 7 12:05 10:235 -> ../autofs lrwxrwxrwx 1 root root 17 Dec 7 12:05 10:236 -> ../mapper/control lrwxrwxrwx 1 root root 9 Dec 7 12:05 10:242 -> ../rfkill lrwxrwxrwx 1 root root 12 Dec 7 12:05 116:33 -> ../snd/timer lrwxrwxrwx 1 root root 15 Dec 7 12:05 13:32 -> ../input/mouse0 lrwxrwxrwx 1 root root 15 Dec 7 12:05 13:33 -> ../input/mouse1 lrwxrwxrwx 1 root root 13 Dec 7 12:05 13:63 -> ../input/mice lrwxrwxrwx 1 root root 15 Dec 7 12:05 13:64 -> ../input/event0 lrwxrwxrwx 1 root root 15 Dec 7 12:05 13:65 -> ../input/event1 lrwxrwxrwx 1 root root 15 Dec 7 12:05 13:66 -> ../input/event2 lrwxrwxrwx 1 root root 6 Dec 7 12:05 1:1 -> ../mem lrwxrwxrwx 1 root root 7 Dec 7 12:05 1:11 -> ../kmsg lrwxrwxrwx 1 root root 7 Dec 7 12:05 1:3 -> ../null lrwxrwxrwx 1 root root 7 Dec 7 12:05 1:4 -> ../port lrwxrwxrwx 1 root root 7 Dec 7 12:05 1:5 -> ../zero lrwxrwxrwx 1 root root 7 Dec 7 12:05 1:7 -> ../full lrwxrwxrwx 1 root root 9 Dec 7 12:05 1:8 -> ../random lrwxrwxrwx 1 root root 10 Dec 7 12:05 1:9 -> ../urandom lrwxrwxrwx 1 root root 12 Dec 7 12:05 202:0 -> ../cpu/0/msr lrwxrwxrwx 1 root root 14 Dec 7 12:05 203:0 -> ../cpu/0/cpuid lrwxrwxrwx 1 root root 6 Dec 7 12:05 21:0 -> ../sg0 lrwxrwxrwx 1 root root 6 Dec 7 12:05 21:1 -> ../sg1 lrwxrwxrwx 1 root root 11 Dec 7 12:05 237:1 -> ../vport1p1 lrwxrwxrwx 1 root root 10 Dec 7 12:05 242:0 -> ../usbmon0 lrwxrwxrwx 1 root root 14 Dec 7 12:05 245:0 -> ../bsg/2:0:0:0 lrwxrwxrwx 1 root root 14 Dec 7 12:05 245:1 -> ../bsg/2:0:1:0 lrwxrwxrwx 1 root root 7 Dec 7 12:05 250:0 -> ../rtc0 lrwxrwxrwx 1 root root 18 Dec 7 12:05 251:0 -> ../dma_heap/system lrwxrwxrwx 1 root root 7 Dec 7 12:05 4:0 -> ../tty0 lrwxrwxrwx 1 root root 7 Dec 7 12:05 4:1 -> ../tty1 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:10 -> ../tty10 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:11 -> ../tty11 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:12 -> ../tty12 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:13 -> ../tty13 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:14 -> ../tty14 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:15 -> ../tty15 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:16 -> ../tty16 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:17 -> ../tty17 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:18 -> ../tty18 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:19 -> ../tty19 lrwxrwxrwx 1 root root 7 Dec 7 12:05 4:2 -> ../tty2 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:20 -> ../tty20 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:21 -> ../tty21 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:22 -> ../tty22 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:23 -> ../tty23 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:24 -> ../tty24 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:25 -> ../tty25 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:26 -> ../tty26 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:27 -> ../tty27 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:28 -> ../tty28 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:29 -> ../tty29 lrwxrwxrwx 1 root root 7 Dec 7 12:05 4:3 -> ../tty3 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:30 -> ../tty30 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:31 -> ../tty31 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:32 -> ../tty32 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:33 -> ../tty33 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:34 -> ../tty34 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:35 -> ../tty35 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:36 -> ../tty36 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:37 -> ../tty37 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:38 -> ../tty38 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:39 -> ../tty39 lrwxrwxrwx 1 root root 7 Dec 7 12:05 4:4 -> ../tty4 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:40 -> ../tty40 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:41 -> ../tty41 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:42 -> ../tty42 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:43 -> ../tty43 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:44 -> ../tty44 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:45 -> ../tty45 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:46 -> ../tty46 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:47 -> ../tty47 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:48 -> ../tty48 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:49 -> ../tty49 lrwxrwxrwx 1 root root 7 Dec 7 12:05 4:5 -> ../tty5 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:50 -> ../tty50 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:51 -> ../tty51 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:52 -> ../tty52 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:53 -> ../tty53 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:54 -> ../tty54 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:55 -> ../tty55 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:56 -> ../tty56 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:57 -> ../tty57 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:58 -> ../tty58 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:59 -> ../tty59 lrwxrwxrwx 1 root root 7 Dec 7 12:05 4:6 -> ../tty6 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:60 -> ../tty60 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:61 -> ../tty61 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:62 -> ../tty62 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:63 -> ../tty63 lrwxrwxrwx 1 root root 8 Dec 7 12:05 4:64 -> ../ttyS0 lrwxrwxrwx 1 root root 7 Dec 7 12:05 4:7 -> ../tty7 lrwxrwxrwx 1 root root 7 Dec 7 12:05 4:8 -> ../tty8 lrwxrwxrwx 1 root root 7 Dec 7 12:05 4:9 -> ../tty9 lrwxrwxrwx 1 root root 6 Dec 7 12:05 5:0 -> ../tty lrwxrwxrwx 1 root root 10 Dec 7 12:05 5:1 -> ../console lrwxrwxrwx 1 root root 7 Dec 7 12:05 5:2 -> ../ptmx lrwxrwxrwx 1 root root 6 Dec 7 12:05 7:0 -> ../vcs lrwxrwxrwx 1 root root 7 Dec 7 12:05 7:1 -> ../vcs1 lrwxrwxrwx 1 root root 7 Dec 7 12:05 7:128 -> ../vcsa lrwxrwxrwx 1 root root 8 Dec 7 12:05 7:129 -> ../vcsa1 lrwxrwxrwx 1 root root 7 Dec 7 12:05 7:64 -> ../vcsu lrwxrwxrwx 1 root root 8 Dec 7 12:05 7:65 -> ../vcsu1 /dev/cpu: total 0 drwxr-xr-x 2 root root 80 Dec 7 12:05 0 /dev/cpu/0: total 0 crw------- 1 root root 203, 0 Dec 7 12:05 cpuid crw------- 1 root root 202, 0 Dec 7 12:05 msr /dev/disk: total 0 drwxr-xr-x 2 root root 120 Dec 7 12:05 by-id drwxr-xr-x 2 root root 120 Dec 7 12:05 by-path drwxr-xr-x 2 root root 80 Dec 7 12:05 by-uuid /dev/disk/by-id: total 0 lrwxrwxrwx 1 root root 9 Dec 7 12:05 scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-0 -> ../../sda lrwxrwxrwx 1 root root 10 Dec 7 12:05 scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-0-part4 -> ../../sda4 lrwxrwxrwx 1 root root 10 Dec 7 12:05 scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-0-part5 -> ../../sda5 lrwxrwxrwx 1 root root 9 Dec 7 12:05 scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-1-0 -> ../../sdb /dev/disk/by-path: total 0 lrwxrwxrwx 1 root root 9 Dec 7 12:05 pci-0000:00:02.0-scsi-0:0:0:0 -> ../../sda lrwxrwxrwx 1 root root 10 Dec 7 12:05 pci-0000:00:02.0-scsi-0:0:0:0-part4 -> ../../sda4 lrwxrwxrwx 1 root root 10 Dec 7 12:05 pci-0000:00:02.0-scsi-0:0:0:0-part5 -> ../../sda5 lrwxrwxrwx 1 root root 9 Dec 7 12:05 pci-0000:00:02.0-scsi-0:0:1:0 -> ../../sdb /dev/disk/by-uuid: total 0 lrwxrwxrwx 1 root root 9 Dec 7 12:05 59d489e9-11ba-4773-80e6-80c7b36cc2d9 -> ../../sdb lrwxrwxrwx 1 root root 10 Dec 7 12:05 61ace01e43044aa4 -> ../../sda4 /dev/dma_heap: total 0 crw------- 1 root root 251, 0 Dec 7 12:05 system /dev/input: total 0 drwxr-xr-x 2 root root 100 Dec 7 12:05 by-path crw------- 1 root root 13, 64 Dec 7 12:05 event0 crw------- 1 root root 13, 65 Dec 7 12:05 event1 crw------- 1 root root 13, 66 Dec 7 12:05 event2 crw------- 1 root root 13, 63 Dec 7 12:05 mice crw------- 1 root root 13, 32 Dec 7 12:05 mouse0 crw------- 1 root root 13, 33 Dec 7 12:05 mouse1 /dev/input/by-path: total 0 lrwxrwxrwx 1 root root 9 Dec 7 12:05 platform-i8042-serio-0-event-kbd -> ../event0 lrwxrwxrwx 1 root root 9 Dec 7 12:05 platform-i8042-serio-1-event-mouse -> ../event1 lrwxrwxrwx 1 root root 9 Dec 7 12:05 platform-i8042-serio-1-mouse -> ../mouse0 /dev/mapper: total 0 crw------- 1 root root 10, 236 Dec 7 12:05 control /dev/net: total 0 crw-rw-rw- 1 root root 10, 200 Dec 7 12:05 tun /dev/pts: total 0 c--------- 1 root root 5, 2 Dec 7 12:05 ptmx /dev/shm: total 0 /dev/snd: total 0 crw-rw---- 1 root audio 116, 1 Dec 7 12:05 seq crw-rw---- 1 root audio 116, 33 Dec 7 12:05 timer /dev/vfio: total 0 crw-rw-rw- 1 root root 10, 196 Dec 7 12:05 vfio /dev/virtio-ports: total 0 lrwxrwxrwx 1 root root 11 Dec 7 12:05 org.libguestfs.channel.0 -> ../vport1p1 + cat /proc/mounts /dev/root / ext2 rw,noatime 0 0 /proc /proc proc rw,relatime 0 0 /sys /sys sysfs rw,relatime 0 0 /dev /dev devtmpfs rw,relatime,size=613316k,nr_inodes=153329,mode=755,inode64 0 0 /dev/pts /dev/pts devpts rw,relatime,mode=600,ptmxmode=000 0 0 shmfs /dev/shm tmpfs rw,relatime,inode64 0 0 tmpfs /run tmpfs rw,nosuid,relatime,size=247816k,mode=755,inode64 0 0 + cat /proc/mdstat Personalities : unused devices: + lvm config + lvm pvs + lvm vgs + lvm lvs + ip a 1: lo: 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 virtio_snd 36864 0 snd_pcm 139264 1 virtio_snd snd_timer 49152 1 snd_pcm snd 114688 3 virtio_snd,snd_timer,snd_pcm soundcore 16384 1 snd crc8 16384 0 crc7 16384 0 crc64 16384 0 crc4 16384 0 crc_itu_t 16384 0 virtiofs 32768 0 fuse 167936 1 virtiofs virtio_vdpa 16384 0 vdpa 20480 1 virtio_vdpa virtio_mmio 16384 0 virtio_mem 36864 0 virtio_input 16384 0 virtio_dma_buf 16384 0 virtio_balloon 28672 0 virtio_scsi 28672 1 nd_pmem 24576 0 nd_btt 32768 1 nd_pmem virtio_net 65536 0 net_failover 24576 1 virtio_net failover 16384 1 net_failover virtio_crypto 28672 0 crypto_engine 16384 1 virtio_crypto virtio_console 40960 0 virtio_bt 16384 0 bluetooth 671744 1 virtio_bt rfkill 36864 1 bluetooth ecdh_generic 16384 1 bluetooth virtio_blk 20480 0 libnvdimm 204800 2 nd_btt,nd_pmem crc32_generic 16384 0 crct10dif_pclmul 16384 1 crc32c_intel 24576 1 crc32_pclmul 16384 0 + date Tue Dec 7 12:05:19 UTC 2021 + echo -n 'clocksource: ' clocksource: + cat /sys/devices/system/clocksource/clocksource0/current_clocksource kvm-clock + echo -n 'uptime: ' uptime: + cat /proc/uptime 1.00 0.14 + 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 commandrvf: stdout=y stderr=y flags=0x0 commandrvf: ls -1v /dev/disk/by-path commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle -E /dev/sda SELinux enabled state cached to: disabled No filesystem is currently mounted on /sys/fs/cgroup. Failed to determine unit we run in, ignoring: No data available commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle -E /dev/sdb SELinux enabled state cached to: disabled No filesystem is currently mounted on /sys/fs/cgroup. Failed to determine unit we run in, ignoring: No data available trying to open virtio-serial channel '/dev/virtio-ports/org.libguestfs.channel.0' commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle SELinux enabled state cached to: disabled No filesystem is currently mounted on /sys/fs/cgroup. Failed to determine unit we run in, ignoring: No data available libguestfs: recv_from_daemon: received GUESTFS_LAUNCH_FLAG libguestfs: appliance is up guestfsd: <= list_partitions (0x8) request length 40 bytes command: ls '-1v' '/dev/disk/by-path' command: ls returned 0 command: ls: stdout: pci-0000:00:02.0-scsi-0:0:0:0 pci-0000:00:02.0-scsi-0:0:0:0-part4 pci-0000:00:02.0-scsi-0:0:0:0-part5 pci-0000:00:02.0-scsi-0:0:1:0 commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle -E /dev/sda SELinux enabled state cached to: disabled No filesystem is currently mounted on /sys/fs/cgroup. Failed to determine unit we run in, ignoring: No data available commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle -E /dev/sdb SELinux enabled state cached to: disabled No filesystem is currently mounted on /sys/fs/cgroup. Failed to determine unit we run in, ignoring: No data available guestfsd: => list_partitions (0x8) took 0.02 secs guestfsd: <= vfs_type (0xc6) request length 56 bytes commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle -E /dev/sda4 SELinux enabled state cached to: disabled No filesystem is currently mounted on /sys/fs/cgroup. Failed to determine unit we run in, ignoring: No data available command: blkid '-c' '/dev/null' '-o' 'value' '-s' 'TYPE' '/dev/sda4' command: blkid returned 0 command: blkid: stdout: ufs guestfsd: => vfs_type (0xc6) took 0.01 secs guestfsd: <= vfs_type (0xc6) request length 56 bytes commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle -E /dev/sda5 SELinux enabled state cached to: disabled No filesystem is currently mounted on /sys/fs/cgroup. Failed to determine unit we run in, ignoring: No data available command: blkid '-c' '/dev/null' '-o' 'value' '-s' 'TYPE' '/dev/sda5' command: blkid returned 0 command: blkid: stdout: ufs guestfsd: => vfs_type (0xc6) took 0.01 secs guestfsd: <= inspect_os (0x1e0) request length 40 bytes command: ls '-1v' '/dev/disk/by-path' command: ls returned 0 command: ls: stdout: pci-0000:00:02.0-scsi-0:0:0:0 pci-0000:00:02.0-scsi-0:0:0:0-part4 pci-0000:00:02.0-scsi-0:0:0:0-part5 pci-0000:00:02.0-scsi-0:0:1:0 commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle -E /dev/sda SELinux enabled state cached to: disabled No filesystem is currently mounted on /sys/fs/cgroup. Failed to determine unit we run in, ignoring: No data available commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle -E /dev/sdb SELinux enabled state cached to: disabled No filesystem is currently mounted on /sys/fs/cgroup. Failed to determine unit we run in, ignoring: No data available command: ls '-1v' '/dev/disk/by-path' command: ls returned 0 command: ls: stdout: pci-0000:00:02.0-scsi-0:0:0:0 pci-0000:00:02.0-scsi-0:0:0:0-part4 pci-0000:00:02.0-scsi-0:0:0:0-part5 pci-0000:00:02.0-scsi-0:0:1:0 commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle -E /dev/sda SELinux enabled state cached to: disabled No filesystem is currently mounted on /sys/fs/cgroup. Failed to determine unit we run in, ignoring: No data available commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle -E /dev/sdb SELinux enabled state cached to: disabled No filesystem is currently mounted on /sys/fs/cgroup. Failed to determine unit we run in, ignoring: No data available commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle SELinux enabled state cached to: disabled No filesystem is currently mounted on /sys/fs/cgroup. Failed to determine unit we run in, ignoring: No data available command: parted '-m' '-s' '--' '/dev/sda' 'unit' 'b' 'print' command: parted returned 0 command: parted: stdout: BYT; /dev/sda:2147483648B:scsi:512:512:msdos:QEMU QEMU HARDDISK:; 4:65536B:2147481599B:2147416064B:::boot; commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle [ 1.260295] sda: sda4 [ 1.260295] sda4: SELinux enabled state cached to: disabled No filesystem is currently mounted on /sys/fs/cgroup. Failed to determine unit we run in, ignoring: No data available commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle SELinux enabled state cached to: disabled No filesystem is currently mounted on /sys/fs/cgroup. Failed to determine unit we run in, ignoring: No data available command: parted '-m' '-s' '--' '/dev/sda' 'unit' 'b' 'print' command: parted returned 0 command: parted: stdout: BYT; /dev/sda:2147483648B:scsi:512:512:msdos:QEMU QEMU HARDDISK:; 4:65536B:2147481599B:2147416064B:::boot; commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle [ 1.319464] sda: sda4 [ 1.319464] sda4: SELinux enabled state cached to: disabled No filesystem is currently mounted on /sys/fs/cgroup. Failed to determine unit we run in, ignoring: No data available command: sfdisk '--help' command: sfdisk returned 0 command: sfdisk: stdout: Usage: sfdisk [options] [[-N] ] sfdisk [options] Display or manipulate a disk partition table. Commands: -A, --activate [ ...] list or set bootable (P)MBR partitions -d, --dump dump partition table (usable for later input) -J, --json dump partition table in JSON format -g, --show-geometry [ ...] list geometry of all or specified devices -l, --list [ ...] list partitions of each device -F, --list-free [ ...] list unpartitioned free areas of each device -r, --reorder fix partitions order (by start offset) -s, --show-size [ ...] list sizes of all or specified devices -T, --list-types print the recognized types (see -X) -V, --verify [ ...] test whether partitions seem correct --delete [ ...] delete all or specified partitions --part-label [] print or change partition label --part-type [] print or change partition type --part-uuid [] print or change partition uuid --part-attrs [] print or change partition attributes --disk-id [] print or change disk label ID (UUID) --relocate move partition header Arguments: device (usually disk) path partition number 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[=] move partition data after relocation (requires -N) --move-use-fsync use fsync after each write when move data -f, --force disable all consistency checking --color[=] colorize output (auto, always or never) colors are enabled by default --lock[=] use exclusive device lock (yes, no or nonblock) -N, --partno 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 override default backup file name -o, --output output columns -q, --quiet suppress extra info messages -w, --wipe wipe signatures (auto, always or never) -W, --wipe-partitions wipe signatures from new partitions (auto, always or never) -X, --label specify label type (dos, gpt, ...) -Y, --label-nested 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 SELinux enabled state cached to: disabled No filesystem is currently mounted on /sys/fs/cgroup. Failed to determine unit we run in, ignoring: No data available command: sfdisk '--part-type' '/dev/sda' '4' command: sfdisk returned 0 command: sfdisk: stdout: a6 commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle SELinux enabled state cached to: disabled No filesystem is currently mounted on /sys/fs/cgroup. Failed to determine unit we run in, ignoring: No data available commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle SELinux enabled state cached to: disabled No filesystem is currently mounted on /sys/fs/cgroup. Failed to determine unit we run in, ignoring: No data available command: fold-stdout-on-stderr sgdisk '/dev/sda' '-i' '4' [ 1.417876] sda: sda4 [ 1.417876] sda4: command: sgdisk returned 0 command: sgdisk: stderr: *************************************************************** Found invalid GPT and valid MBR; converting MBR to GPT format in memory. *************************************************************** Warning! Secondary partition table overlaps the last partition by 29 blocks! Try reducing the partition table size by 116 entries. (Use the 's' item on the experts' menu.) Partition GUID code: 824CC7A0-36A8-11E3-890A-952519AD3F61 (OpenBSD disklabel) Partition unique GUID: C22A7ACF-6086-440D-A81D-1A548D89A7E7 First sector: 128 (at 64.0 KiB) Last sector: 4194299 (at 2.0 GiB) Partition size: 4194172 sectors (2.0 GiB) Attribute flags: 0000000000000000 Partition name: 'OpenBSD disklabel' commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle SELinux enabled state cached to: disabled No filesystem is currently mounted on /sys/fs/cgroup. Failed to determine unit we run in, ignoring: No data available commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle SELinux enabled state cached to: disabled No filesystem is currently mounted on /sys/fs/cgroup. Failed to determine unit we run in, ignoring: No data available command: parted '-m' '-s' '--' '/dev/sda' 'unit' 'b' 'print' command: parted returned 0 command: parted: stdout: BYT; /dev/sda:2147483648B:scsi:512:512:msdos:QEMU QEMU HARDDISK:; 4:65536B:2147481599B:2147416064B:::boot; commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle [ 1.475427] sda: sda4 [ 1.475427] sda4: SELinux enabled state cached to: disabled No filesystem is currently mounted on /sys/fs/cgroup. Failed to determine unit we run in, ignoring: No data available commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle SELinux enabled state cached to: disabled No filesystem is currently mounted on /sys/fs/cgroup. Failed to determine unit we run in, ignoring: No data available command: parted '-m' '-s' '--' '/dev/sda' 'unit' 'b' 'print' command: parted returned 0 command: parted: stdout: BYT; /dev/sda:2147483648B:scsi:512:512:msdos:QEMU QEMU HARDDISK:; 4:65536B:2147481599B:2147416064B:::boot; commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle [ 1.523383] sda: sda4 [ 1.523383] sda4: SELinux enabled state cached to: disabled No filesystem is currently mounted on /sys/fs/cgroup. Failed to determine unit we run in, ignoring: No data available commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle SELinux enabled state cached to: disabled No filesystem is currently mounted on /sys/fs/cgroup. Failed to determine unit we run in, ignoring: No data available command: sfdisk '--part-type' '/dev/sda' '5' command: sfdisk returned 1 command: sfdisk: stderr: sfdisk: /dev/sda: partition 5: partition table contains only 4 partitions ocaml_exn: 'inspect_os' raised 'Failure' exception guestfsd: error: sfdisk exited with status 1: sfdisk: /dev/sda: partition 5: partition table contains only 4 partitions guestfsd: => inspect_os (0x1e0) took 0.37 secs virt-sysprep: error: libguestfs error: inspect_os: sfdisk exited with status 1: sfdisk: /dev/sda: partition 5: partition table contains only 4 partitions If reporting bugs, run virt-sysprep with debugging enabled and include the complete output: virt-sysprep -v -x [...] libguestfs: closing guestfs handle 0x55d6f8f85800 (state 2) guestfsd: <= internal_autosync (0x11a) request length 40 bytes umount-all: /proc/mounts: fsname=/dev/root dir=/ type=ext2 opts=rw,noatime freq=0 passno=0 umount-all: /proc/mounts: fsname=/proc dir=/proc type=proc opts=rw,relatime freq=0 passno=0 umount-all: /proc/mounts: fsname=/sys dir=/sys type=sysfs opts=rw,relatime freq=0 passno=0 umount-all: /proc/mounts: fsname=/dev dir=/dev type=devtmpfs opts=rw,relatime,size=613316k,nr_inodes=153329,mode=755,inode64 freq=0 passno=0 umount-all: /proc/mounts: fsname=/dev/pts dir=/dev/pts type=devpts opts=rw,relatime,mode=600,ptmxmode=000 freq=0 passno=0 umount-all: /proc/mounts: fsname=shmfs dir=/dev/shm type=tmpfs opts=rw,relatime,inode64 freq=0 passno=0 umount-all: /proc/mounts: fsname=tmpfs dir=/run type=tmpfs opts=rw,nosuid,relatime,size=247816k,mode=755,inode64 freq=0 passno=0 commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle -E /dev/sdb SELinux enabled state cached to: disabled No filesystem is currently mounted on /sys/fs/cgroup. Failed to determine unit we run in, ignoring: No data available commandrvf: stdout=n stderr=y flags=0x0 commandrvf: udevadm --debug settle -E /dev/sda SELinux enabled state cached to: disabled No filesystem is currently mounted on /sys/fs/cgroup. Failed to determine unit we run in, ignoring: No data available fsync /dev/sda guestfsd: => internal_autosync (0x11a) took 0.02 secs libguestfs: calling virDomainDestroy flags=0 libguestfs: command: run: rm libguestfs: command: run: \ -rf /tmp/libguestfsNEXRYN libguestfs: command: run: rm libguestfs: command: run: \ -rf /tmp/libguestfsfiDy0R ```
goneri commented 2 years ago

Yes, the GuestFS tools don't work properly with BSD system. @jbpratt you can try https://object-storage.public.mtl1.vexxhost.net/swift/v1/1dbafeefbd4f4c80864414a441e72dd2/bsd-cloud-image.org/openbsd-7.0-root-root.qcow2 login/pw are root/root .

We need to figure out why the meta-data disk is not mounted. It should be something like mount_cd9660 /dev/sd1a /mnt. sysctl hw.disknames will give you the list of the volume disks.

jbpratt commented 2 years ago

Thank you, here is the output

# ls /mnt
# mount_cd9660 /dev/sd1a /mnt
# sysctl hw.disknames
hw.disknames=sd0:da4d7a4ffdb53171,sd1:
# ls /mnt
meta-data      network-config user-data
goneri commented 2 years ago

Thanks! So my fix makes sense but I've also probably missed something else.

goneri commented 2 years ago

Can you attach the logs? /var/log/cloud-init-output.log /var/log/cloud-init.log and the content of these files (meta-data, network-onfig and user-data).

jbpratt commented 2 years ago

cloud-init.log https://termbin.com/bjxr cloud-init-output.log https://termbin.com/ax2x

# cat /mnt/network-config
version: 2
ethernets:
  enp1s0:
    dhcp4: true
    dhcp6: true
    dhcp-identifier: mac
# cat /mnt/user-data
#cloud-config
hostname: openbsd-br0
ssh_pwauth: true
disable_root: true
chpasswd:
  list: |
     kc2user:kc2user
  expire: False
users:
  - name: kc2user
    shell: /bin/bash
    lock_passwd: false
    sudo: ['ALL=(ALL) NOPASSWD:ALL']
    groups: sudo,wheel
growpart:
  mode: auto
  devices: ['/']
  ignore_growroot_disabled: true
package_upgrade: true
packages:
  - vim
  - screenfetch
runcmd:
  - "screenfetch"
# cat /mnt/meta-data
{"instance-id":"openbsd-br0.kargo","local-hostname":"openbsd-br0"
jbpratt commented 2 years ago

latest PRs result in cloud-init successfully applying on boot. Thanks to @goneri for the effort.

jbpratt commented 2 years ago

This can be closed once https://github.com/canonical/cloud-init/pull/1149 is merged

goneri commented 2 years ago

FYI, I've pushed an OpenBSD 7.0 image on https://bsd-cloud-image.org/ that include the patch.

jbpratt commented 2 years ago

In that case, we can go ahead and close this. Thank you @goneri! :tada: