I’ve just been trying to set up an OpenBSD 4.6 VM on one of our XenServer machines, and found that it kept shutting itself down during boot after showing the message “nvram: invalid checksum”. After digging around online, I found a fix.
As the VM starts, it will present a boot prompt. At this prompt, type
boot> boot -c
This will boot you into “User Kernel Config”. Once in there, type the following commands;
UKC> disable uhci UKC> quit
This will exit User Kernel Config, and continue a normal boot. The “nvram: invalid checksum” error still appears, but the OpenBSD VM should now boot correctly. However, it will fail again on next reboot of the VM, so to make the change permanent, log in to the VM as root and enter the following commands;
# config -e -f /bsd ukc> disable uhci ukc> quit
Now the change is permanent, and the OpenBSD VM will boot correctly in future.
I posted this because I was unable to find any English information on how to fix this problem. I got the solution from an article written in Japanese.


TKS a lot!!!
Hey Luke,
Nice blog, it worked for me! thx.
Thx a bunch, Luke.
Was setting up OpenBSD 4.7 and it kept dying. The fix works in 4.7 aswell.
Oh! Thanks! This tip will help. I have OBSD mail server as virtual on VmWare server.
I confirm, this fix works in OpenBSD 4.7 and Citrix XenServer 5.6. Good things, thanks Luke!
Thanks, I’ve been looking for solution on this problem a long time…
Now, does anybody know how to fix “re0:watchdog timeout” error and enable networking properly
I’ve tried disabling Realtek driver, but kernel didn’t switch on any other one, so system remained network-less.
Worked like a charm!
Thx!
@Dule Mars: try changing vif model (“model=ne2k_pci” worked for me, I had same problem)
this can also be helpful:
http://wiki.stocksy.co.uk/wiki/OpenBSD_as_a_Xen_domU
Hi,
This is a nice fix, I got the same error seting up a Xen DomU, in my case I’m using Open Source Xen on a netbsd Dom0 but the problem is the same!
This fixed it
I was also getting a lot of watchdog timeouts in “re0″ interface, but a change to the config file also solve this.
If anyone gets that error, change the vif line in the configuration, add –> model=ne2k_pci
Ops … I see now that the watchdog timeout problem was already discussed in the comments!
Sorry…
But thanks for this nice post anyway
Tks a lot
So I’m running into the same issue with Allardsoft’s transfer appliance, which I’ve moved to a Xen system. It boots fine in install, and then the vmram error on first boot.
I can’t stop the system while it’s booting (OpenBSD newbie). Is there a way to apply your fix to this install?
I’m about to create an ESX vm, put the vm appliance in the ESX vm, and then apply your fix, then transfer out.
I’d prefer not to do that.
dev figured it out
mount /dev/wd0a /mnt
/mnt/usr/sbin/chroot /mnt
config -e -f /bsd
ukc> disable uhci
ukc> quit
exit
reboot
Thanks a bunch dude I tried installing openBSD 4.9 on Xen 5.6 and 6.0 but the boot would never give me login prompt. Recently I tried openBSD 5.0 on xen 6.0 with the same result. Tonight I apply this fix and it has worked beautifully thanks a lot.