I'm trying to virtualize one of our "black box" embedded systems to run under bhyve, and run into an issue where it dies during boot. The original machine has a VIA EPIA board, and although I don't remember exactly what model it is (as I'm not at work right now), it's very old. To give you a bit of an idea, it has only IDE ports--no SATA, and it is probably a 32-bit system. I've since managed to image and restore the disk into a bhyve VM by booting to some software, and following the vm-bhyve wiki, gotten it to start booting. The problem is, after it starts booting, it suddenly dies.
First, let me show you the current config I'm using:
To debug, I've commented out the grub_runX lines, and run the commands manually via the
...and then it's gone.
First, let me show you the current config I'm using:
Code:
guest="linux"
loader="grub"
grub_run_partition="msdos1"
cpu=1
memory=1G
network0_type="virtio-net"
network0_switch="data"
disk0_type="ahci-hd"
disk0_name="disk0.img"
disk0_opts="sectorsize=512"
grub_run0="linux /boot/vmlinuz-2.6.18-1.2798.fc6 root=/dev/mapper/VolGroup-lv_root"
grub_run1="initrd /boot/initrd-2.6.18-1.2798.fc6.img"
grub_run2="boot"
uuid="redacted"
network0_mac="redacted"
vm console
command, which at least shows me the booting process, presumably right up until it crashes:
Code:
Linux version 2.6.18-1.2798.fc6 (brewbuilder@hs20-bc2-3.build.redhat.com) (gcc version 4.1.1 20061011 (Red Hat 4.1.1-30)) #1 SMP Mon Oct 16 14:54:20 EDT 2006
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009ffff (usable)
BIOS-e820: 0000000000100000 - 0000000040000000 (usable)
128MB HIGHMEM available.
896MB LOWMEM available.
found SMP MP-table at 000f0000
Using x86 segment limits to approximate NX protection
DMI 2.4 present.
Using APIC driver default
ACPI: PM-Timer IO Port: 0x408
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 6:10 APIC version 16
ACPI: LAPIC_NMI (acpi_id[0xff] high edge lint[0x1])
ACPI: IOAPIC (id[0x00] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 0 already used, trying 1
IOAPIC[0]: apic_id 1, version 17, address 0xfec00000, GSI 0-31
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 high edge)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level)
Enabling APIC mode: Flat. Using 1 I/O APICs
ACPI: HPET id: 0x80860701 base: 0xfed00000
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 50000000 (gap: 40000000:c0000000)
Detected 3092.599 MHz processor.
Built 1 zonelists. Total pages: 262144
Kernel command line: console=ttyS0 BOOT_IMAGE=/boot/vmlinuz-2.6.18-1.2798.fc6 root=/dev/mapper/VolGroup-lv_root
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
CPU 0 irqstacks, hard=c079f000 soft=c077f000
PID hash table entries: 4096 (order: 12, 16384 bytes)
Console: colour EGA 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1034168k/1048576k available (2105k kernel code, 13776k reserved, 844k data, 240k init, 131072k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
hpet0: at MMIO 0xfed00000 (virtual 0xf8800000), IRQs 2, 8, 0, 0, 0, 0, 0, 0
hpet0: 8 32-bit timers, 16777216 Hz
Calibrating delay using timer specific routine.. 6196.92 BogoMIPS (lpj=12393849)
Security Framework v1.0.0 initialized
SELinux: Initializing.
SELinux: Starting in permissive mode
selinux_register_security: Registering secondary module capability
Capability LSM initialized as secondary
Mount-cache hash table entries: 512
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 256K
CPU: L3 cache: 8192K
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
Checking 'hlt' instruction... OK.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 12k freed
ACPI: Core revision 20060707
CPU0: Intel(R) Xeon(R) CPU E31220 @ 3.10GHz stepping 07
vm list
simply shows it in the "Stopped" state, and I don't see anything interesting in dmesg
. Any ideas on where to go from here, or how to better debug this?