Link to home
Start Free TrialLog in
Avatar of andygee1
andygee1

asked on

Openbsd 4.6 hangs at setting tty flags

I'm running openbsd 4.6 on proxmox/kvm.  It hangs on every restart.  This was upgraded from 4.5.  I followed these directions http://scie.nti.st/2009/10/4/running-openbsd-4-5-in-kvm-on-ubuntu-linux-9-04 to get 4.5 to boot before.  I have done the same thing on 4.6 but it still hangs on reboot.  I can get it to boot this way each time if I go through this process, but upon reboot I have to start all over.  Can anyone provide a solution?
Avatar of andygee1
andygee1

ASKER

Are there separate kernels on bsd like possible in linux that maybe I'm doing this command and it's not applying it to the correct kernel?
OpenBSD works with huge problems in virtualisation (ask google for virtualbox and openbsd for a good example), mostly because of it's advanced security features like randomized malloc which overloads virtual hypervisor's memory management etc.

Do you want to save "disable mpbios" part?

# cat /bsd > /bsd.old
# config -e -o /bsd /bsd.old
ukc> disable mpbios
ukc> quit

this should write new kernel and leave old around should it break something.
REF: http://www.openbsd.org/faq/faq5.html#config
Yes I have done this numerous times on this 4.6 install but each time I do the disable mpbios it tells me that it's 352 mpbios0 already disabled.  I quit and reboot and it hangs at the vtty flags and I have to boot the way the link I provided says, with the bsd -c.  Not sure if that does something else differently but as soon as I do that it boots just fine.

Andy
Then it is another component, mpbios id fine.
Could you boot bsd -v and try to figure out ?
It is sometimes BIOS, sometimes apm, disk DMA or whatever.
Can you boot to single mode (boot -vs)?
I'll try these later tonight and report back.  Can't do it right now as everyone is wanting to work for some reason.  :)
E.g I could not get it working on VirtualBox for presentation and had to use vmware (ESXi is free btw) over network. It is really picky. Since you asked I will try virtualbox and share my experiences.
btw - is it amd64 or i386 or i386 in amd64 kvm?
boot -v returns a error with invalid option, boot -vs does nothing.

This is running on proxmox on a intel 64 kvm.

Strange enough VirtualBox now seems to work(Thurion+OpenBSD/amd64)
Are you running OpenBSD/i386 or OpenBSD/amd64?
Do you experience problems with boot -s also?
Are you able to reproduce problem with factory OpenBSD? Maybe it is proxmox for which we do not see kernel config file and have to guess through 100 device drivers and 200 kernel options...
On a second thought - if you get normal OpenBSD running just replace kernel with original and it goes.
I believe it's just the x86 version, but not positve.  This is a download from allardsoft.com for a mail server.
When I boot -s it ask questions about the terminal type and I'm not sure what I should be putting there.
vt220 does fine for terminal.
"dumb" is the simplest terminal (always works), xterm is common under X11

Since you can boot so far - you can get dmesg output (dmesg|less) and copy/paste here.
I would suggest to disable "bios" also for a single boot. In my virtual machine it seems of very little use (no useful devices after it)

dmesg /less
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 2.6.24-26-server (buildd@vernadsky) (gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu3)) #1 SMP Tue Dec 1 19:19:20 UTC 2009 (Ubuntu 2.6.24-26.64-server)
[    0.000000] BIOS-provided physical RAM map:
[    0.000000]  BIOS-e820: 0000000000000000 - 000000000009f000 (usable)
[    0.000000]  BIOS-e820: 000000000009f000 - 00000000000a0000 (reserved)
[    0.000000]  BIOS-e820: 00000000000e8000 - 0000000000100000 (reserved)
[    0.000000]  BIOS-e820: 0000000000100000 - 000000001fff0000 (usable)
[    0.000000]  BIOS-e820: 000000001fff0000 - 0000000020000000 (ACPI data)
[    0.000000]  BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
[    0.000000] 0MB HIGHMEM available.
[    0.000000] 511MB LOWMEM available.
[    0.000000] found SMP MP-table at 000fbc90
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] Entering add_active_range(0, 0, 131056) 0 entries of 256 used
[    0.000000] Zone PFN ranges:
[    0.000000]   DMA             0 ->     4096
[    0.000000]   Normal       4096 ->   131056
[    0.000000]   HighMem    131056 ->   131056
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[1] active PFN ranges
[    0.000000]     0:        0 ->   131056
[    0.000000] On node 0 totalpages: 131056
[    0.000000]   DMA zone: 32 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 4064 pages, LIFO batch:0
[    0.000000]   Normal zone: 991 pages used for memmap
[    0.000000]   Normal zone: 125969 pages, LIFO batch:31
[    0.000000]   HighMem zone: 0 pages used for memmap
[    0.000000]   Movable zone: 0 pages used for memmap
[    0.000000] DMI 2.4 present.
[    0.000000] ACPI: RSDP signature @ 0xC00FBDB0 checksum 0
[    0.000000] ACPI: RSDP 000FBDB0, 0014 (r0 QEMU  )
[    0.000000] ACPI: RSDT 1FFF0000, 0034 (r1 QEMU   QEMURSDT        1 QEMU        1)
[    0.000000] ACPI: FACP 1FFF01B4, 0074 (r1 QEMU   QEMUFACP        1 QEMU        1)
[    0.000000] ACPI: DSDT 1FFF0280, 1DD4 (r1   BXPC   BXDSDT        1 INTL 20061109)
[    0.000000] ACPI: FACS 1FFF0240, 0040
[    0.000000] ACPI: SSDT 1FFF2054, 09E3 (r1   BXPC   BXSSDT        1 INTL 20061109)
[    0.000000] ACPI: APIC 1FFF2A38, 00EA (r1 QEMU   QEMUAPIC        1 QEMU        1)
[    0.000000] ACPI: HPET 1FFF2B90, 0038 (r1 QEMU   QEMUHPET        1 QEMU        1)
[    0.000000] ACPI: PM-Timer IO Port: 0xb008
[    0.000000] ACPI: Local APIC address 0xfee00000
[    0.000000] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
[    0.000000] Processor #0 6:2 APIC version 20
[    0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x03] lapic_id[0x03] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x04] lapic_id[0x04] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x05] lapic_id[0x05] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x06] lapic_id[0x06] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x07] lapic_id[0x07] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x08] lapic_id[0x08] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x09] lapic_id[0x09] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x0a] lapic_id[0x0a] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x0b] lapic_id[0x0b] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x0c] lapic_id[0x0c] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x0d] lapic_id[0x0d] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x0e] lapic_id[0x0e] disabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x0f] lapic_id[0x0f] disabled)
[    0.000000] ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
[    0.000000] IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-23
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
[    0.000000] ACPI: IRQ0 used by override.
[    0.000000] ACPI: IRQ2 used by override.
[    0.000000] ACPI: IRQ5 used by override.
[    0.000000] ACPI: IRQ9 used by override.
[    0.000000] ACPI: IRQ10 used by override.
[    0.000000] ACPI: IRQ11 used by override.
[    0.000000] Enabling APIC mode:  Flat.  Using 1 I/O APICs
[    0.000000] ACPI: HPET id: 0x8086a201 base: 0xfed00000
[    0.000000] Using ACPI (MADT) for SMP configuration information
[    0.000000] Allocating PCI resources starting at 30000000 (gap: 20000000:dffbc000)
[    0.000000] swsusp: Registered nosave memory region: 000000000009f000 - 00000000000a0000
[    0.000000] swsusp: Registered nosave memory region: 00000000000a0000 - 00000000000e8000
[    0.000000] swsusp: Registered nosave memory region: 00000000000e8000 - 0000000000100000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130033
[    0.000000] Kernel command line: root=UUID=b4e24062-378b-45e0-b0ad-171241d9e359 ro quiet splash
[    0.000000] mapped APIC to ffffb000 (fee00000)
[    0.000000] mapped IOAPIC to ffffa000 (fec00000)
[    0.000000] Enabling fast FPU save and restore... done.
[    0.000000] Enabling unmasked SIMD FPU exception support... done.
[    0.000000] Initializing CPU#0
[    0.000000] PID hash table entries: 2048 (order: 11, 8192 bytes)
[    0.000000] Detected 2400.302 MHz processor.
[1248531.199091] Console: colour VGA+ 80x25
[1248531.199097] console [tty0] enabled
[1248531.199382] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[1248531.199569] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[1248531.204278] Memory: 507616k/524224k available (2261k kernel code, 15996k reserved, 1042k data, 384k init, 0k highmem)
[1248531.204283] virtual kernel memory layout:
[1248531.204284]     fixmap  : 0xfff4c000 - 0xfffff000   ( 716 kB)
[1248531.204285]     pkmap   : 0xffc00000 - 0xffe00000   (2048 kB)
[1248531.204286]     vmalloc : 0xe0800000 - 0xffbfe000   ( 499 MB)
[1248531.204287]     lowmem  : 0xc0000000 - 0xdfff0000   ( 511 MB)
[1248531.204287]       .init : 0xc0440000 - 0xc04a0000   ( 384 kB)
[1248531.204288]       .data : 0xc0335477 - 0xc0439fe4   (1042 kB)
[1248531.204289]       .text : 0xc0100000 - 0xc0335477   (2261 kB)
[1248531.204291] Checking if this processor honours the WP bit even in supervisor mode... Ok.
[1248531.204381] SLUB: Genslabs=11, HWalign=64, Order=0-1, MinObjects=4, CPUs=1, Nodes=1
[1248531.204562] Calibrating delay loop (skipped), using tsc calculated value.. 4800.60 BogoMIPS (lpj=24003020)
[1248531.204606] Security Framework initialized
[1248531.204625] SELinux:  Disabled at boot.
[1248531.204656] AppArmor: AppArmor initialized
[1248531.204662] Failure registering capabilities with primary security module.
[1248531.204675] Mount-cache hash table entries: 512
[1248531.204930] Initializing cgroup subsys ns
[1248531.204946] Initializing cgroup subsys cpuacct
[1248531.204978] CPU: After generic identify, caps: 078bfbfd 2191abfd 00000000 00000000 80000001 00000000 00000000 00000000
[1248531.205008] CPU: L1 I cache: 32K, L1 D cache: 32K
[1248531.205010] CPU: L2 cache: 4096K
[1248531.205021] CPU: After all inits, caps: 078bf3fd 2191abfd 00000000 00040040 80000001 00000000 00000000 00000000
[1248531.205034] Compat vDSO mapped to ffffe000.
[1248531.205120] Checking 'hlt' instruction... OK.
[1248531.247739] SMP alternatives: switching to UP code
[1248531.258355] Freeing SMP alternatives: 12k freed
[1248531.258453] Early unpacking initramfs... done
[1248531.500194] ACPI: Core revision 20070126
[1248531.500251] ACPI: Looking for DSDT in initramfs... error, file /DSDT.aml not found.
[1248531.501055] CPU0: Intel QEMU Virtual CPU version 0.11.0 stepping 03
[1248531.501929] Total of 1 processors activated (4800.60 BogoMIPS).
[1248531.502951] ENABLING IO-APIC IRQs
[1248531.503378] ..TIMER: vector=0x31 apic1=0 pin1=2 apic2=-1 pin2=-1
[1248531.713854] Brought up 1 CPUs
[1248531.714019] CPU0 attaching sched-domain:
[1248531.714025]  domain 0: span 01
[1248531.714026]   groups: 01
[1248531.714173] net_namespace: 64 bytes
[1248531.714177] Booting paravirtualized kernel on bare hardware
[1248531.714644] Time: 11:37:14  Date: 01/05/10
[1248531.714674] NET: Registered protocol family 16
[1248531.714907] EISA bus registered
[1248531.714948] ACPI: bus type pci registered
[1248531.715084] PCI: PCI BIOS revision 2.10 entry at 0xfb490, last bus=0
[1248531.715086] PCI: Using configuration type 1
[1248531.715093] Setting up standard PCI resources
[1248531.716268] ACPI: EC: Look up EC in DSDT
[1248531.717707] ACPI: Interpreter enabled
[1248531.717709] ACPI: (supports S0 S3 S4 S5)
[1248531.717717] ACPI: Using IOAPIC for interrupt routing
[1248531.720752] ACPI: PCI Root Bridge [PCI0] (0000:00)
[1248531.722115] PCI quirk: region b000-b03f claimed by PIIX4 ACPI
[1248531.722124] PCI quirk: region b100-b10f claimed by PIIX4 SMB
[1248531.727513] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
[1248531.730244] ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
[1248531.730324] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
[1248531.730396] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
[1248531.730471] ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
[1248531.730646] Linux Plug and Play Support v0.97 (c) Adam Belay
[1248531.730688] pnp: PnP ACPI init
[1248531.730702] ACPI: bus type pnp registered
[1248531.731663] pnp: PnP ACPI: found 7 devices
[1248531.731664] ACPI: ACPI bus type pnp unregistered
[1248531.731674] PnPBIOS: Disabled by ACPI PNP
[1248531.732014] PCI: Using ACPI for IRQ routing
[1248531.732016] PCI: If a device doesn't work, try "pci=routeirq".  If it helps, post a report
[1248531.763973] NET: Registered protocol family 8
[1248531.763975] NET: Registered protocol family 20
[1248531.764008] NetLabel: Initializing
[1248531.764009] NetLabel:  domain hash size = 128
[1248531.764010] NetLabel:  protocols = UNLABELED CIPSOv4
[1248531.764026] NetLabel:  unlabeled traffic allowed by default
[1248531.764127] AppArmor: AppArmor Filesystem Enabled
[1248531.773713] Time: tsc clocksource has been installed.
[1248531.824144] NET: Registered protocol family 2
[1248531.923560] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[1248531.923745] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[1248531.923880] TCP bind hash table entries: 16384 (order: 5, 131072 bytes)
[1248531.924020] TCP: Hash tables configured (established 16384 bind 16384)
[1248531.924025] TCP reno registered
[1248531.953574] checking if image is initramfs... it is
[1248532.332892] Switched to high resolution mode on CPU 0
[1248532.408828] Freeing initrd memory: 7195k freed
[1248532.409580] audit: initializing netlink socket (disabled)
[1248532.409603] audit(1262691434.090:1): initialized
[1248532.410463] Total HugeTLB memory allocated, 0
[1248532.412255] VFS: Disk quotas dquot_6.5.1
[1248532.412323] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[1248532.412585] io scheduler noop registered
[1248532.412587] io scheduler anticipatory registered
[1248532.412588] io scheduler deadline registered (default)
[1248532.412596] io scheduler cfq registered
[1248532.412609] Limiting direct PCI/PCI transfers.
[1248532.412636] PCI: PIIX3: Enabling Passive Release on 0000:00:01.0
[1248532.413093] Activating ISA DMA hang workarounds.
[1248532.413151] Boot video device is 0000:00:02.0
[1248532.413393] isapnp: Scanning for PnP cards...
[1248532.773503] isapnp: No Plug & Play device found
[1248532.795618] Real Time Clock Driver v1.12ac
[1248532.795690] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
[1248532.795930] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[1248532.796555] 00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[1248532.797052] RAMDISK driver initialized: 16 RAM disks of 65536K size 1024 blocksize
[1248532.797106] input: Macintosh mouse button emulation as /devices/virtual/input/input0
[1248532.797180] PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
[1248532.797711] serio: i8042 KBD port at 0x60,0x64 irq 1
[1248532.797715] serio: i8042 AUX port at 0x60,0x64 irq 12
[1248532.822330] mice: PS/2 mouse device common for all mice
[1248532.822700] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1
[1248532.822711] EISA: Probing bus 0 at eisa.0
[1248532.822785] EISA: Detected 0 cards.
[1248532.822787] cpuidle: using governor ladder
[1248532.822788] cpuidle: using governor menu
[1248532.822851] NET: Registered protocol family 1
[1248532.822891] Using IPI No-Shortcut mode
[1248532.822915] registered taskstats version 1
[1248532.822987]   Magic number: 10:90:630
[1248532.823027] BIOS EDD facility v0.16 2004-Jun-25, 6 devices found
[1248532.823437] Freeing unused kernel memory: 384k freed
[1248532.823552] Write protecting the kernel read-only data: 829k
[1248533.280611] fuse init (API version 7.9)
[1248533.755918] SCSI subsystem initialized
[1248533.798525] libata version 3.00 loaded.
[1248533.806926] usbcore: registered new interface driver usbfs
[1248533.806942] usbcore: registered new interface driver hub
[1248533.815578] Intel(R) PRO/1000 Network Driver - version 7.3.20-k2-NAPI
[1248533.815581] Copyright (c) 1999-2006 Intel Corporation.
[1248533.815804] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
[1248533.815841] ACPI: PCI Interrupt 0000:00:03.0[A] -> Link [LNKC] -> GSI 11 (level, high) -> IRQ 11
[1248533.815884] PCI: Setting latency timer of device 0000:00:03.0 to 64
[1248534.086712] e1000: 0000:00:03.0: e1000_probe: (PCI:33MHz:32-bit) 2e:1f:28:19:5e:a3
[1248534.096777] usbcore: registered new device driver usb
[1248534.113617] USB Universal Host Controller Interface driver v3.0
[1248534.191793] FDC 0 is a S82078B
[1248534.292582] e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection
[1248534.292650] ata_piix 0000:00:01.1: version 2.12
[1248534.292786] PCI: Setting latency timer of device 0000:00:01.1 to 64
[1248534.295385] scsi0 : ata_piix
[1248534.296892] scsi1 : ata_piix
[1248534.296914] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
[1248534.296916] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
[1248534.450248] ata1.01: NODEV after polling detection
[1248534.450532] ata1.00: ATA-7: QEMU HARDDISK, 0.11.0, max UDMA/100
[1248534.450534] ata1.00: 209723392 sectors, multi 16: LBA48 
[1248534.450987] ata1.00: configured for MWDMA2
[1248534.610038] ata2.01: NODEV after polling detection
[1248534.769625] ata2.00: ATAPI: QEMU DVD-ROM, 0.11.0, max UDMA/100
[1248534.929413] ata2.00: configured for MWDMA2
[1248534.929547] scsi 0:0:0:0: Direct-Access     ATA      QEMU HARDDISK    0.11 PQ: 0 ANSI: 5
[1248534.929857] scsi 1:0:0:0: CD-ROM            QEMU     QEMU DVD-ROM     0.11 PQ: 0 ANSI: 5
[1248534.931743] ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 10
[1248534.931768] ACPI: PCI Interrupt 0000:00:01.2[D] -> Link [LNKD] -> GSI 10 (level, high) -> IRQ 10
[1248534.931790] PCI: Setting latency timer of device 0000:00:01.2 to 64
[1248534.931799] uhci_hcd 0000:00:01.2: UHCI Host Controller
[1248534.931974] uhci_hcd 0000:00:01.2: new USB bus registered, assigned bus number 1
[1248534.932060] uhci_hcd 0000:00:01.2: irq 10, io base 0x0000c020
[1248534.932192] usb usb1: configuration #1 chosen from 1 choice
[1248534.932209] hub 1-0:1.0: USB hub found
[1248534.932212] hub 1-0:1.0: 2 ports detected
[1248535.039369] ACPI: PCI Interrupt 0000:00:04.0[A] -> Link [LNKD] -> GSI 10 (level, high) -> IRQ 10
[1248535.156937] Driver 'sd' needs updating - please use bus_type methods
[1248535.156995] sd 0:0:0:0: [sda] 209723392 512-byte hardware sectors (107378 MB)
[1248535.157003] sd 0:0:0:0: [sda] Write Protect is off
[1248535.157004] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[1248535.157014] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[1248535.157060] sd 0:0:0:0: [sda] 209723392 512-byte hardware sectors (107378 MB)
[1248535.157066] sd 0:0:0:0: [sda] Write Protect is off
[1248535.157067] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[1248535.157084] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[1248535.157087]  sda: sda1 sda2 <<4>Driver 'sr' needs updating - please use bus_type methods
[1248535.167663]  sda5 >
[1248535.167743] sd 0:0:0:0: [sda] Attached SCSI disk
[1248535.183054] sr0: scsi3-mmc drive: 4x/4x xa/form2 tray
[1248535.183058] Uniform CD-ROM driver Revision: 3.20
[1248535.183085] sr 1:0:0:0: Attached scsi CD-ROM sr0
[1248535.192145] sd 0:0:0:0: Attached scsi generic sg0 type 0
[1248535.192159] sr 1:0:0:0: Attached scsi generic sg1 type 5
[1248535.318601] usb 1-2: new full speed USB device using uhci_hcd and address 2
[1248535.612179] Attempting manual resume
[1248535.612185] swsusp: Resume From Partition 8:5
[1248535.612186] PM: Checking swsusp image.
[1248535.612432] PM: Resume from disk failed.
[1248535.634123] kjournald starting.  Commit interval 5 seconds
[1248535.634130] EXT3-fs: mounted filesystem with ordered data mode.
[1248535.664706] usb 1-2: configuration #1 chosen from 1 choice
[1248535.688144] usbcore: registered new interface driver hiddev
[1248535.709099] input: QEMU 0.11.0 QEMU USB Tablet as /devices/pci0000:00/0000:00:01.2/usb1/1-2/1-2:1.0/input/input2
[1248535.728122] input,hidraw0: USB HID v0.01 Pointer [QEMU 0.11.0 QEMU USB Tablet] on usb-0000:00:01.2-2
[1248535.728136] usbcore: registered new interface driver usbhid
[1248535.728139] /build/buildd/linux-2.6.24/drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
[1248537.428906] piix4_smbus 0000:00:01.3: Found 0000:00:01.3 device
[1248537.785168] input: Power Button (FF) as /devices/virtual/input/input3
[1248537.815007] ACPI: Power Button (FF) [PWRF]
[1248538.134972] e1000: eth0: e1000_watchdog: NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
[1248538.679723] input: PC Speaker as /devices/platform/pcspkr/input/input4
[1248538.864476] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input5
[1248538.913939] parport_pc 00:05: reported by Plug and Play ACPI
[1248538.914066] parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
[1248540.751165] loop: module loaded
[1248540.774416] lp0: using parport0 (interrupt-driven).
[1248540.980015] Adding 1510068k swap on /dev/sda5.  Priority:-1 extents:1 across:1510068k
[1248541.159178] EXT3 FS on sda1, internal journal
[1248541.879330] ip_tables: (C) 2000-2006 Netfilter Core Team
[1248543.456486] audit(1262691445.906:2): type=1503 operation="capable" name="sys_resource" pid=4061 profile="/usr/sbin/named" namespace="default"
[1248543.582210] audit(1262691446.036:3): type=1503 operation="inode_link" requested_mask="rw::rwl" denied_mask="::l" name="/var/cache/bind/db-rlj4sS7F" name2="/var/cache/bind/samhadley.com.hosts" pid=4061 profile="/usr/sbin/named" namespace="default"
]0;root@nospam2: ~root@nospam2:~#

Open in new window

It is a dmesg output from Linux system. It is of absolutely no help with OpenBSD.
You are correct, sorry copied from wrong system.
OpenBSD 4.6-stable (GENERIC.MP) #3: Sun Sep 27 00:08:10 EST 2009
    root@compiler.allard.nu:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: QEMU Virtual CPU version 0.11.0 ("GenuineIntel" 686-class) 2.41 GHz
cpu0: FPU,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3
real mem  = 536375296 (511MB)
avail mem = 509816832 (486MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 07/28/09, BIOS32 rev. 0 @ 0xfb450, SMBIOS rev. 2.4 @ 0xfbcbf (10 entries)
bios0: vendor QEMU version "QEMU" date 01/01/2007
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP SSDT APIC HPET
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
acpihpet0 at acpi0: counter not incrementing
acpiprt0 at acpi0: bus 0 (PCI0)
mpbios0 at bios0: Intel MP Specification 1.4
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: unknown i686 model 0x0, can't get bus clock (0x0)
cpu0: apic clock running at 1000MHz
mpbios0: bus 0 is type ISA
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 11, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 1
bios0: ROM list: 0xc0000/0x8c00 0xc9000/0x600!
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02
pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00
pciide0 at pci0 dev 1 function 1 "Intel 82371SB IDE" rev 0x00: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <QEMU HARDDISK>
wd0: 16-sector PIO, LBA48, 71688MB, 146817024 sectors
wd0(pciide0:0:0): using PIO mode 0, DMA mode 2
OpenBSD 4.6-stable (GENERIC) #3: Sun Sep 27 00:00:08 EST 2009
    root@compiler.allard.nu:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: QEMU Virtual CPU version 0.11.0 ("GenuineIntel" 686-class) 2.41 GHz
cpu0: FPU,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3
real mem  = 536375296 (511MB)
avail mem = 509837312 (486MB)
User Kernel Config
UKC> exit
Continuing...
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 07/28/09, BIOS32 rev. 0 @ 0xfb450, SMBIOS rev. 2.4 @ 0xfbcbf (10 entries)
bios0: vendor QEMU version "QEMU" date 01/01/2007
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP SSDT APIC HPET
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
acpihpet0 at acpi0: counter not incrementing
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
mpbios at bios0 function 0x0 not configured
bios0: ROM list: 0xc0000/0x8c00 0xc9000/0x600!
cpu0 at mainbus0: (uniprocessor)
cpu0: unknown i686 model 0x2, can't get bus clock (0x0)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02
pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00
pciide0 at pci0 dev 1 function 1 "Intel 82371SB IDE" rev 0x00: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <QEMU HARDDISK>
wd0: 16-sector PIO, LBA48, 71688MB, 146817024 sectors
wd0(pciide0:0:0): using PIO mode 0, DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <QEMU, QEMU DVD-ROM, 0.11> ATAPI 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 0
uhci0 at pci0 dev 1 function 2 "Intel 82371SB USB" rev 0x01: irq 11
piixpm0 at pci0 dev 1 function 3 "Intel 82371AB Power" rev 0x03: irq 10
iic0 at piixpm0
iic0: addr 0x18 00=d0 01=d0 02=d0 03=d0 04=d0 05=d0 06=d0 07=d0 08=d0 words 00=0000 01=0000 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000
iic0: addr 0x1a 00=d0 01=d0 02=d0 03=d0 04=d0 05=d0 06=d0 07=d0 08=d0 words 00=0000 01=0000 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000
iic0: addr 0x4c 00=d0 01=d0 02=d0 03=d0 04=d0 05=d0 06=d0 07=d0 08=d0 words 00=0000 01=0000 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000
iic0: addr 0x4e 00=d0 01=d0 02=d0 03=d0 04=d0 05=d0 06=d0 07=d0 08=d0 words 00=0000 01=0000 02=0000 03=0000 04=0000 05=0000 06=0000 07=0000
vga1 at pci0 dev 2 function 0 "Cirrus Logic CL-GD5446" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
em0 at pci0 dev 3 function 0 "Intel PRO/1000MT (82540EM)" rev 0x03: irq 11, address a2:63:8a:83:53:f4
unknown vendor 0x1af4 product 0x1002 (class memory subclass RAM, rev 0x00) at pci0 dev 4 function 0 not configured
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: probed fifo depth: 0 bytes
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: density unknown
fd1 at fdc0 drive 1: density unknown
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
biomask ed6d netmask ed6d ttymask ffff
mtrr: Pentium Pro MTRR support
nvram: invalid checksum
uhidev0 at uhub0 port 2 configuration 1 interface 0 "QEMU 0.11.0 QEMU USB Tablet" rev 1.00/0.00 addr 2
uhidev0: iclass 3/1
uhid0 at uhidev0: input=6, output=0, feature=0
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
WARNING: / was not properly unmounted
clock: unknown CMOS layout

Open in new window

And with "bios" disabled?
And with piixpm disabled?
And without pciide?
Without ioapic?

Give them a try one by one. If it works use config -e.

e.g for bios0 - it serves only fake BIOS date, has no acpi power button AND HPET is not incrementing, no need for mpbios for single cpu - so it actually does nothing.

bios0 at mainbus0: AT/286+ BIOS, date 07/28/09, BIOS32 rev. 0 @ 0xfb450, SMBIOS rev. 2.4 @ 0xfbcbf (10 entries)
bios0: vendor QEMU version "QEMU" date 01/01/2007
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP SSDT APIC HPET
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
acpihpet0 at acpi0: counter not incrementing
acpiprt0 at acpi0: bus 0 (PCI0)
mpbios0 at bios0: Intel MP Specification 1.4
I have disable them one at a time and all together, still stopping at setting tty flags.  Will post another dmesg in a sec.
Maybe a clue......In proxmox if I disable acpi then openbsd will boot past the setting tty flags, (pf enabled is the next thing that shows), but then I continually get em0: watchdog timeouts.  Does that help?

root@mail:root# dmesg /less
OpenBSD 4.6-stable (GENERIC.MP) #3: Sun Sep 27 00:08:10 EST 2009
    root@compiler.allard.nu:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: QEMU Virtual CPU version 0.11.0 ("GenuineIntel" 686-class) 2.41 GHz
cpu0: FPU,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3
real mem  = 536375296 (511MB)
avail mem = 509816832 (486MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 07/28/09, BIOS32 rev. 0 @ 0xfb450, SMBIOS rev. 2.4 @ 0xfbcbf (10 entries)
bios0: vendor QEMU version "QEMU" date 01/01/2007
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP SSDT APIC HPET
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
acpihpet0 at acpi0: counter not incrementing
acpiprt0 at acpi0: bus 0 (PCI0)
mpbios0 at bios0: Intel MP Specification 1.4
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: unknown i686 model 0x0, can't get bus clock (0x0)
cpu0: apic clock running at 1000MHz
mpbios0: bus 0 is type ISA
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 11, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 1
bios0: ROM list: 0xc0000/0x8c00 0xc9000/0x600!
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02
pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00
pciide0 at pci0 dev 1 function 1 "Intel 82371SB IDE" rev 0x00: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <QEMU HARDDISK>
wd0: 16-sector PIO, LBA48, 71688MB, 146817024 sectors
wd0(pciide0:0:0): using PIO mode 0, DMA mode 2
OpenBSD 4.6-stable (GENERIC.MP) #3: Sun Sep 27 00:08:10 EST 2009
    root@compiler.allard.nu:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: QEMU Virtual CPU version 0.11.0 ("GenuineIntel" 686-class) 2.41 GHz
cpu0: FPU,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3
real mem  = 536375296 (511MB)
avail mem = 509816832 (486MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 07/28/09, BIOS32 rev. 0 @ 0xfb450, SMBIOS rev. 2.4 @ 0xfbcbf (10 entries)
bios0: vendor QEMU version "QEMU" date 01/01/2007
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP SSDT APIC HPET
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
acpihpet0 at acpi0: counter not incrementing
acpiprt0 at acpi0: bus 0 (PCI0)
mpbios0 at bios0: Intel MP Specification 1.4
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: unknown i686 model 0x0, can't get bus clock (0x0)
cpu0: apic clock running at 1000MHz
mpbios0: bus 0 is type ISA
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 11, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 1
bios0: ROM list: 0xc0000/0x8c00 0xc9000/0x600!
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02
pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00
pciide0 at pci0 dev 1 function 1 "Intel 82371SB IDE" rev 0x00: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
OpenBSD 4.6-stable (GENERIC) #3: Sun Sep 27 00:00:08 EST 2009
    root@compiler.allard.nu:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: QEMU Virtual CPU version 0.11.0 ("GenuineIntel" 686-class) 2.41 GHz
cpu0: FPU,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3
real mem  = 536375296 (511MB)
avail mem = 509837312 (486MB)
User Kernel Config
UKC> exit
Continuing...
mainbus0 at root
bios at mainbus0 not configured
cpu0 at mainbus0: (uniprocessor)
cpu0: unknown i686 model 0x2, can't get bus clock (0x0)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02
pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00
"Intel 82371SB IDE" rev 0x00 at pci0 dev 1 function 1 not configured
uhci0 at pci0 dev 1 function 2 "Intel 82371SB USB" rev 0x01: irq 11
"Intel 82371AB Power" rev 0x03 at pci0 dev 1 function 3 not configured
vga1 at pci0 dev 2 function 0 "Cirrus Logic CL-GD5446" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
em0 at pci0 dev 3 function 0 "Intel PRO/1000MT (82540EM)" rev 0x03: irq 11, address a2:63:8a:83:53:f4
unknown vendor 0x1af4 product 0x1002 (class memory subclass RAM, rev 0x00) at pci0 dev 4 function 0 not configured
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: probed fifo depth: 0 bytes
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
wdc0 at isa0 port 0x1f0/8 irq 14
wd0 at wdc0 channel 0 drive 0: <QEMU HARDDISK>
wd0: 16-sector PIO, LBA48, 71688MB, 146817024 sectors
wd0(wdc0:0:0): using BIOS timings
wdc1 at isa0 port 0x170/8 irq 15
atapiscsi0 at wdc1 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <QEMU, QEMU DVD-ROM, 0.11> ATAPI 5/cdrom removable
cd0(wdc1:0:0): using BIOS timings
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: density unknown
fd1 at fdc0 drive 1: density unknown
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
biomask ef6d netmask ef6d ttymask ffff
mtrr: Pentium Pro MTRR support
nvram: invalid checksum
uhidev0 at uhub0 port 2 configuration 1 interface 0 "QEMU 0.11.0 QEMU USB Tablet" rev 1.00/0.00 addr 2
uhidev0: iclass 3/1
uhid0 at uhidev0: input=6, output=0, feature=0
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
WARNING: / was not properly unmounted
clock: unknown CMOS layout
root@mail:root#

Open in new window

Since disabling acpi helped - could be system does not work around stopped hpet or something like that with rest of devices behind acpi.


Try fixed speed using ifconfig media
ifconfig em0 media # gives hints on possible types

watchdog message means that cable is not plugged (which is not the case)
So actually net driver emulation is not right
Maybe there is an option for changing network driver?
There are several options for network cards in proxmox.  Choices I have are :  rtl8139, ne2k_pci, e1000, pcnet, virtuo, ne2k_isa, i82551, i82557b, i82559er.

Currently I'm running the e1000, any preference on which on would be best?
i8* are classic efficient cards (they use fxp driver, rename ifconfig.xxx accordingly) pcnet is pcn0
ne2k and rtl are very cpu-consuming.
virtuo would be more efficient than e1000

IF e1000 passes traffic - it is merely a cosmetic defect.
Try some network speed benchmark like netio for every change.
I've gone through each of the different network cards and still seem to have the same problem rebooting.  Any other ideas or suggestions?  I'm about ready to just live with it.
You mean watchdog message?
It is hopeless on 32bit OpenBSD. e1000 goes well in 64bit system sometimes. AND there is no danger ignoring the message.
http://old.nabble.com/OpenBSD-and-XenSource-td20771647.html
No I'm not worried about the watchdog messages, worried about getting the os to boot without having to boot to bsd -c manual.
Ok I have install another proxmox vm with 4.6 and followed the procedure in the first post.  It boots just fine each time.  So the upgraded (production) machine does not work without doing this each time but the clean install works fine.  Does that help?  Is there something I can do short of setting everything up on the new machine?
I have never seen proxmox.
Can you examine boot path - e.g. something loaded from ramdisk or /boot etc.
Only FreeBSD used chflags for kernel up to v3, it is not seen later (so file kind of stands world-writable, but actually is completely immutable).
I still have not found what is causing this, and I really don't understand why when I do a bsd -c boot each time it's fine but the other times it is not.
ASKER CERTIFIED SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I've given up on this as it's above my head.  Thanks for the help.
OpenBSD is NOT tweaked for defects in virtual machines: http://old.nabble.com/Bug-reports-regarding-Innotek-VirtualBox-td15907184.html
It makes virtual machines crash because of memory randomization and uncommon memory protections (and is proud because of first COTS package with such security)