* [email protected] <[email protected]> [2018-09-22 18:59:32 -0500]:

Vmd was working (in CURRENT) on this machine a few months ago. Not sure when I
last used it. I tried it today on 6.3 and CURRENT  and got the same
behavior. Booting from an iso, the vm says it has successfully started but
then no vm is shown in status, with no error message that I can find. 

Booting from a kernel panics, as shown below. 

$ vmctl create disk.img -s 4.5G
vmctl: imagefile created

# vmctl start "myvm" -m 1G -i 1 -b /bsd -d disk.img
vmctl: started vm 1 successfully, tty /dev/ttyp3
# vmctl console 1
Connected to /dev/ttyp3 (speed 115200)

ddb{0}> bt
db_enter() at db_enter+0x12
panic() at panic+0x120
dk_mountroot() at dk_mountroot+0x107
main(0) at main+0x611
end trace frame: 0x0, count: -4
ddb{0}> 



Hi 3vns,

You will have to install openbsd on the disk first.

For the iso, the latest one should work and old ones (before mlarkin's
commit in July) would need setting the console to com0 (set tty com0) to
boot.

pdvyas@uss-defiant: ~/ovms % sudo vmctl start x -r 
/home/pdvyas/Downloads/install64.iso -d d.img -c
vmctl: starting without network interfaces
Connected to /dev/ttypa (speed 115200)
SeaBIOS (version 1.11.0p0-OpenBSD-vmm)
Boooott  ffaaiilleedd::  nnoott  aa  bboooottaabbllee  ddiisskk                 
                                                                                
                                               B



CD-ROM: E0
Loading /6.4/AMD64/CDBOOT
probing: pc0 com0 mem[638K 510M a20=on]
disk: hd0+* cd0
OpenBSD/amd64 CDBOOT 3.40
boot>
cannot open cd0a:/etc/random.seed: No such file or directory
booting cd0a:/6.4/amd64/bsd.rd: 3511114+1496064+3887944+0+598016 
[372412+111+440568+293005]=0xa1e438
entry point at 0x1000158
Copyright (c) 1982, 1986, 1989, 1991, 1993
       The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2018 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 6.4-beta (RAMDISK_CD) #299: Sat Sep 22 12:26:43 MDT 2018
   [email protected]:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
real mem = 520077312 (495MB)
avail mem = 500588544 (477MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf1950 (10 entries)
bios0: vendor SeaBIOS version "1.11.0p0-OpenBSD-vmm" date 01/01/2011
bios0: OpenBSD VMM
acpi at bios0 not configured
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel(R) Core(TM) i5-6260U CPU @ 1.80GHz, 1801.16 MHz, 06-4e-03
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,PCLMUL,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,HV,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,RDSEED,ADX,SMAP,CLFLUSHOPT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
pvbus0 at mainbus0: OpenBSD
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "OpenBSD VMM Host" rev 0x00
virtio0 at pci0 dev 1 function 0 "Qumranet Virtio RNG" rev 0x00
viornd0 at virtio0
virtio0: irq 3
virtio1 at pci0 dev 2 function 0 "Qumranet Virtio Storage" rev 0x00
vioblk0 at virtio1
scsibus0 at vioblk0: 2 targets
sd0 at scsibus0 targ 0 lun 0: <VirtIO, Block Device, > SCSI3 0/direct fixed
sd0: 1024MB, 512 bytes/sector, 2097152 sectors
virtio1: irq 5
virtio2 at pci0 dev 3 function 0 "Qumranet Virtio SCSI" rev 0x00
vioscsi0 at virtio2: qsize 128
scsibus1 at vioscsi0: 1 targets
cd0 at scsibus1 targ 0 lun 0: <OpenBSD, VMM CD-ROM, 001> SCSI0 5/cdrom removable
virtio2: irq 6
virtio3 at pci0 dev 4 function 0 "OpenBSD VMM Control" rev 0x00
vmmci0 at virtio3
virtio3: irq 7
isa0 at mainbus0
com0 at isa0 port 0x3f8/8 irq 4: ns16450, no fifo
com0: console
softraid0 at root
scsibus2 at softraid0: 256 targets
root on rd0a swap on rd0b dump on rd0b
erase ^?, werase ^W, kill ^U, intr ^C, status ^T

Welcome to the OpenBSD/amd64 6.4 installation program.
(I)nstall, (U)pgrade, (A)utoinstall or (S)hell?


--
Pratik

Reply via email to