On Wed, Jun 14, 2017 at 10:25:43PM -0500, Ax0n wrote:
> I'm having trouble booting OpenBSD 6.1-Release in vmm on recent snapshots.
> 
> I can boot an amd64 bsd.rd and do the install, but the resulting disk image
> aborts silently (or hangs with no console output) with the subject line
> above the only hint of what happens, found in daemon.log, and "vm_resetcpu:
> failed" in dmesg.
> 
> I can boot my -stable disk image if I specify -b /bsd (and thus, use the
> snapshot kernel from the host to boot the -release VM's disk image) but
> this seems like a Bad Idea.
> 

Your machine is older and doesn't have unrestricted guest capability, which
for the moment means no BIOS. Since that's the default now, this is why it
is breaking.

I will fix this at some point but for now, use -b, and set it the same as
the disk image. That should force it to fallback to the old faux-bootloader
mode, loading the disk's own /bsd image (not from your host):

vmctl start test -c -i 1 -d disk.img -b disk.img

-ml

> dmesg:
> OpenBSD 6.1-current (GENERIC.MP) #8: Wed Jun 14 16:10:57 MDT 2017
>     dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 8560467968 (8163MB)
> avail mem = 8295235584 (7910MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xdc010 (37 entries)
> bios0: vendor TOSHIBA version "V2.90" date 12/10/2010
> bios0: TOSHIBA Qosmio X505
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP HPET MCFG APIC BOOT SLIC DMAR SSDT
> acpi0: wakeup devices EHC1(S3) EHC2(S3) HDEF(S3) PXS1(S4) RP05(S5) PXS5(S5)
> RP07(S5) PXS7(S5) GLAN(S4) PEG4(S4) PEG5(S4) PEG6(S4) LID_(S4)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpihpet0 at acpi0: 14318179 Hz
> acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Core(TM) i7 CPU Q 740 @ 1.73GHz, 1729.23 MHz
> cpu0:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR
> cpu0: 256KB 64b/line 8-way L2 cache
> cpu0: TSC frequency 1729233020 Hz
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 132MHz
> cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
> cpu1 at mainbus0: apid 2 (application processor)
> cpu1: Intel(R) Core(TM) i7 CPU Q 740 @ 1.73GHz, 1729.00 MHz
> cpu1:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR
> cpu1: 256KB 64b/line 8-way L2 cache
> cpu1: smt 0, core 1, package 0
> cpu2 at mainbus0: apid 4 (application processor)
> cpu2: Intel(R) Core(TM) i7 CPU Q 740 @ 1.73GHz, 1729.00 MHz
> cpu2:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR
> cpu2: 256KB 64b/line 8-way L2 cache
> cpu2: smt 0, core 2, package 0
> cpu3 at mainbus0: apid 6 (application processor)
> cpu3: Intel(R) Core(TM) i7 CPU Q 740 @ 1.73GHz, 1729.00 MHz
> cpu3:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR
> cpu3: 256KB 64b/line 8-way L2 cache
> cpu3: smt 0, core 3, package 0
> cpu4 at mainbus0: apid 1 (application processor)
> cpu4: Intel(R) Core(TM) i7 CPU Q 740 @ 1.73GHz, 1729.00 MHz
> cpu4:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR
> cpu4: 256KB 64b/line 8-way L2 cache
> cpu4: smt 1, core 0, package 0
> cpu5 at mainbus0: apid 3 (application processor)
> cpu5: Intel(R) Core(TM) i7 CPU Q 740 @ 1.73GHz, 1729.00 MHz
> cpu5:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR
> cpu5: 256KB 64b/line 8-way L2 cache
> cpu5: smt 1, core 1, package 0
> cpu6 at mainbus0: apid 5 (application processor)
> cpu6: Intel(R) Core(TM) i7 CPU Q 740 @ 1.73GHz, 1729.00 MHz
> cpu6:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR
> cpu6: 256KB 64b/line 8-way L2 cache
> cpu6: smt 1, core 2, package 0
> cpu7 at mainbus0: apid 7 (application processor)
> cpu7: Intel(R) Core(TM) i7 CPU Q 740 @ 1.73GHz, 1729.00 MHz
> cpu7:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,SENSOR
> cpu7: 256KB 64b/line 8-way L2 cache
> cpu7: smt 1, core 3, package 0
> ioapic0 at mainbus0: apid 8 pa 0xfec00000, version 20, 24 pins
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus 1 (P0P3)
> acpiprt2 at acpi0: bus -1 (P0P2)
> acpiprt3 at acpi0: bus 12 (P0P1)
> acpiprt4 at acpi0: bus 2 (RP01)
> acpiprt5 at acpi0: bus -1 (RP02)
> acpiprt6 at acpi0: bus -1 (RP03)
> acpiprt7 at acpi0: bus 7 (RP04)
> acpiprt8 at acpi0: bus 10 (RP05)
> acpiprt9 at acpi0: bus 11 (RP07)
> acpiprt10 at acpi0: bus -1 (PEG5)
> acpiec0 at acpi0
> acpicpu0 at acpi0: !C3(350@245 mwait.3@0x20), C1(1000@3 mwait.1), PSS
> acpicpu1 at acpi0: !C3(350@245 mwait.3@0x20), C1(1000@3 mwait.1), PSS
> acpicpu2 at acpi0: !C3(350@245 mwait.3@0x20), C1(1000@3 mwait.1), PSS
> acpicpu3 at acpi0: !C3(350@245 mwait.3@0x20), C1(1000@3 mwait.1), PSS
> acpicpu4 at acpi0: !C3(350@245 mwait.3@0x20), C1(1000@3 mwait.1), PSS
> acpicpu5 at acpi0: !C3(350@245 mwait.3@0x20), C1(1000@3 mwait.1), PSS
> acpicpu6 at acpi0: !C3(350@245 mwait.3@0x20), C1(1000@3 mwait.1), PSS
> acpicpu7 at acpi0: !C3(350@245 mwait.3@0x20), C1(1000@3 mwait.1), PSS
> acpitz0 at acpi0: critical temperature is 104 degC
> "PNP0C14" at acpi0 not configured
> "PNP0C32" at acpi0 not configured
> "PNP0C32" at acpi0 not configured
> "PNP0C32" at acpi0 not configured
> "PNP0C32" at acpi0 not configured
> "PNP0303" at acpi0 not configured
> "SYN102F" at acpi0 not configured
> acpiac0 at acpi0: AC unit online
> acpibat0 at acpi0: BAT1 not present
> acpibtn0 at acpi0: PWRB
> "TOS6205" at acpi0 not configured
> "TOS1900" at acpi0 not configured
> "TOS620A" at acpi0 not configured
> "QCI0701" at acpi0 not configured
> acpibtn1 at acpi0: LID_
> acpivideo0 at acpi0: VGA_
> acpivout0 at acpivideo0: LCD_
> acpivideo1 at acpi0: GFX0
> acpivout at acpivideo1 not configured
> acpivout at acpivideo1 not configured
> acpivideo2 at acpi0: VGA_
> cpu0: Enhanced SpeedStep 1729 MHz: speeds: 1734, 1733, 1599, 1466, 1333,
> 1199, 1066, 933 MHz
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel Core DMI" rev 0x11
> ppb0 at pci0 dev 3 function 0 "Intel Core PCIE" rev 0x11: msi
> pci1 at ppb0 bus 1
> vga1 at pci1 dev 0 function 0 "NVIDIA GeForce GTX 460M" rev 0xa1
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> azalia0 at pci1 dev 0 function 1 vendor "NVIDIA", unknown product 0x0be9
> rev 0xa1: msi
> azalia0: no supported codecs
> "Intel Core Management" rev 0x11 at pci0 dev 8 function 0 not configured
> "Intel Core Scratch" rev 0x11 at pci0 dev 8 function 1 not configured
> "Intel Core Control" rev 0x11 at pci0 dev 8 function 2 not configured
> "Intel Core Misc" rev 0x11 at pci0 dev 8 function 3 not configured
> "Intel Core QPI Link" rev 0x11 at pci0 dev 16 function 0 not configured
> "Intel Core QPI Routing" rev 0x11 at pci0 dev 16 function 1 not configured
> ehci0 at pci0 dev 26 function 0 "Intel 3400 USB" rev 0x05: apic 8 int 16
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev
> 2.00/1.00 addr 1
> azalia1 at pci0 dev 27 function 0 "Intel 3400 HD Audio" rev 0x05: msi
> azalia1: codecs: Conexant/0x5067
> audio0 at azalia1
> ppb1 at pci0 dev 28 function 0 "Intel 3400 PCIE" rev 0x05: msi
> pci2 at ppb1 bus 2
> ppb2 at pci0 dev 28 function 3 "Intel 3400 PCIE" rev 0x05: msi
> pci3 at ppb2 bus 7
> vendor "O2 Micro", unknown product 0x10f7 (class serial bus subclass
> Firewire, rev 0x01) at pci3 dev 0 function 0 not configured
> sdhc0 at pci3 dev 0 function 1 vendor "O2 Micro", unknown product 0x8120
> rev 0x01: apic 8 int 17
> sdhc0: SDHC 2.0, 50 MHz base clock
> sdmmc0 at sdhc0: 4-bit, sd high-speed, mmc high-speed, dma
> vendor "O2 Micro", unknown product 0x8130 (class mass storage subclass
> miscellaneous, rev 0x01) at pci3 dev 0 function 2 not configured
> ppb3 at pci0 dev 28 function 4 "Intel 3400 PCIE" rev 0x05: msi
> pci4 at ppb3 bus 10
> "Realtek 8192SE" rev 0x10 at pci4 dev 0 function 0 not configured
> ppb4 at pci0 dev 28 function 6 "Intel 3400 PCIE" rev 0x05: msi
> pci5 at ppb4 bus 11
> alc0 at pci5 dev 0 function 0 "Attansic Technology L1C" rev 0xc0: msi,
> address 60:eb:69:50:21:92
> atphy0 at alc0 phy 0: F1 10/100/1000 PHY, rev. 11
> ehci1 at pci0 dev 29 function 0 "Intel 3400 USB" rev 0x05: apic 8 int 23
> usb1 at ehci1: USB revision 2.0
> uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev
> 2.00/1.00 addr 1
> ppb5 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xa5
> pci6 at ppb5 bus 12
> pcib0 at pci0 dev 31 function 0 "Intel PM55 LPC" rev 0x05
> ahci0 at pci0 dev 31 function 2 "Intel 3400 AHCI" rev 0x05: msi, AHCI 1.3
> ahci0: port 0: 1.5Gb/s
> ahci0: port 4: 1.5Gb/s
> scsibus1 at ahci0: 32 targets
> sd0 at scsibus1 targ 0 lun 0: <ATA, TOSHIBA MK8034GS, AH30> SCSI3 0/direct
> fixed t10.ATA_TOSHIBA_MK8034GSX_Y6UHFCRCS
> sd0: 76319MB, 512 bytes/sector, 156301488 sectors
> cd0 at scsibus1 targ 4 lun 0: <MATSHITA, BD-CMB UJ141EL, 1.00> ATAPI
> 5/cdrom removable
> ichiic0 at pci0 dev 31 function 3 "Intel 3400 SMBus" rev 0x05: apic 8 int 18
> iic0 at ichiic0
> spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-8500 SO-DIMM with thermal
> sensor
> spdmem1 at iic0 addr 0x52: 4GB DDR3 SDRAM PC3-8500 SO-DIMM with thermal
> sensor
> isa0 at pcib0
> isadma0 at isa0
> pckbc0 at isa0 port 0x60/5 irq 1 irq 12
> pckbd0 at pckbc0 (kbd slot)
> wskbd0 at pckbd0: console keyboard, using wsdisplay0
> pms0 at pckbc0 (aux slot)
> wsmouse0 at pms0 mux 0
> pms0: Synaptics touchpad, firmware 7.2
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> pci7 at mainbus0 bus 255
> pchb1 at pci7 dev 0 function 0 vendor "Intel", unknown product 0x2c52 rev
> 0x04
> pchb2 at pci7 dev 0 function 1 vendor "Intel", unknown product 0x2c81 rev
> 0x04
> pchb3 at pci7 dev 2 function 0 vendor "Intel", unknown product 0x2c90 rev
> 0x04
> pchb4 at pci7 dev 2 function 1 vendor "Intel", unknown product 0x2c91 rev
> 0x04
> pchb5 at pci7 dev 3 function 0 vendor "Intel", unknown product 0x2c98 rev
> 0x04
> pchb6 at pci7 dev 3 function 1 vendor "Intel", unknown product 0x2c99 rev
> 0x04
> pchb7 at pci7 dev 3 function 4 vendor "Intel", unknown product 0x2c9c rev
> 0x04
> pchb8 at pci7 dev 4 function 0 vendor "Intel", unknown product 0x2ca0 rev
> 0x04
> pchb9 at pci7 dev 4 function 1 vendor "Intel", unknown product 0x2ca1 rev
> 0x04
> pchb10 at pci7 dev 4 function 2 vendor "Intel", unknown product 0x2ca2 rev
> 0x04
> pchb11 at pci7 dev 4 function 3 vendor "Intel", unknown product 0x2ca3 rev
> 0x04
> pchb12 at pci7 dev 5 function 0 vendor "Intel", unknown product 0x2ca8 rev
> 0x04
> pchb13 at pci7 dev 5 function 1 vendor "Intel", unknown product 0x2ca9 rev
> 0x04
> pchb14 at pci7 dev 5 function 2 vendor "Intel", unknown product 0x2caa rev
> 0x04
> pchb15 at pci7 dev 5 function 3 vendor "Intel", unknown product 0x2cab rev
> 0x04
> vmm0 at mainbus0: VMX/EPT
> uhub2 at uhub0 port 1 configuration 1 interface 0 "Intel Rate Matching Hub"
> rev 2.00/0.00 addr 2
> urtwn0 at uhub2 port 2 configuration 1 interface 0 "Realtek 802.11n WLAN
> Adapter" rev 2.00/2.00 addr 3
> urtwn0: MAC/BB RTL8192CU, RF 6052 2T2R, address 04:8d:38:d6:fd:c5
> uhub3 at uhub1 port 1 configuration 1 interface 0 "Intel Rate Matching Hub"
> rev 2.00/0.00 addr 2
> uvideo0 at uhub3 port 1 configuration 1 interface 0 "Chicony USB2.0 UVC
> WebCam" rev 2.00/77.29 addr 3
> video0 at uvideo0
> ugen0 at uhub3 port 3 "Broadcom Corp Askey for Toshiba" rev 2.00/3.08 addr 4
> vscsi0 at root
> scsibus2 at vscsi0: 256 targets
> softraid0 at root
> scsibus3 at softraid0: 256 targets
> root on sd0a (73b4284c504a2a6b.a) swap on sd0b dump on sd0b
> vm_resetcpu: failed
> vm_resetcpu: failed
> vm_resetcpu: failed
> vm_resetcpu: failed
> 
> My vm.conf:
> switch "local" {
>         add alc0
>         up
> }
> 
> vm "stable.vm" {
>         disable
>         owner axon
>         memory 256M
>         disk "/home/axon/vmm/stable.img"
>         interface {
>                 switch "local"
>                 lladdr fe:e1:bb:d1:23:00
>         }
> }

Reply via email to