--- wikisrc/ports/xen/howto.mdwn 2014/12/27 00:04:00 1.54 +++ wikisrc/ports/xen/howto.mdwn 2014/12/27 00:15:40 1.55 @@ -407,10 +407,36 @@ and adjusts /etc. Note that one must update both the non-Xen kernel typically used for rescue purposes and the DOM0 kernel used with Xen. -To convert from grub to /boot, install an mbr bootblock with fdisk, -bootxx_ with installboot, /boot and /boot.cfg. This really should be -no different than completely reinstalling boot blocks on a non-Xen -system. +Converting from grub to /boot +----------------------------- + +These instructions were [TODO: will be] used to convert a system from +grub to /boot. The system was originally installed in February of +2006 with a RAID1 setup and grub to boot Xen 2, and has been updated +over time. Before these commands, it was running NetBSD 6 i386, Xen +4.1 and grub, much like the message linked earlier in the grub +section. + + # Install mbr bootblocks on both disks. + fdisk -i /dev/rwd0d + fdisk -i /dev/rwd1d + # Install NetBSD primary boot loader (/ is FFSv1) into RAID1 components. + installboot -v /dev/rwd0d /usr/mdec/bootxx_ffsv1 + installboot -v /dev/rwd1d /usr/mdec/bootxx_ffsv1 + # Install secondary boot loader + cp -p /usr/mdec/boot / + # Create boog.cfg following earlier guidance: + menu=Xen:load /netbsd-XEN3PAE_DOM0.gz console=pc;multiboot /xen.gz dom0_mem=256M + menu=Xen.ok:load /netbsd-XEN3PAE_DOM0.ok.gz console=pc;multiboot /xen.ok.gz dom0_mem=256M + menu=GENERIC:boot + menu=GENERIC single-user:boot -s + menu=GENERIC.ok:boot netbsd.ok + menu=GENERIC.ok single-user:boot netbsd.ok -s + menu=Drop to boot prompt:prompt + default=1 + timeout=30 + +TODO: actually do this and fix it if necessary. Updating Xen versions ---------------------