Difference between revisions of "NetBSD"

From PrgmrWiki
Line 39: Line 39:
 
  mount_ext2fs /dev/xbd0d /mnt
 
  mount_ext2fs /dev/xbd0d /mnt
  
 
+
and you can edit grub/menu.lst and change the kernel.  (Note, grub will continue to load off that xbd0d partition;  this is because of the way the prgmr.com system is setup.  other providers may be different)
  
 
for the Dom0: http://www.netbsd.org/ports/xen/howto.html#netbsd-dom0
 
for the Dom0: http://www.netbsd.org/ports/xen/howto.html#netbsd-dom0

Revision as of 04:15, 8 September 2008

so, NetBSD-stable doesn't support PAE or AMD64, and non-PAE Xen systems are hard to come by these days. (understandably... 4GB isn't much these days.) to run on most Xen systems, you need a i386-PAE kernel or a AMD64 (x86_64 in linux nomenclature. Same thing as the AMD64 arch in NetBSD)

NetBSD-current supports both AMD64 (as a Dom0 and DomU) and i386 PAE (DomU only) This will be an overview of how to set that up (specifically on prgmr.com systems, but it should work with any provider that gives you pygrub or pvgrub or the like.)

ftp://mirror.planetunix.net/pub/NetBSD-daily/HEAD/200809050002Z/amd64/binary/kernel/netbsd-XEN3_DOMU.gz

ftp://mirror.planetunix.net/pub/NetBSD-daily/HEAD/200809050002Z/amd64/binary/kernel/netbsd-INSTALL_XEN3_DOMU.gz

in the DomU, w/ prgmr.com PyGrub,



title NetBSD install
        root (hd0,0)
        kernel /boot/netbsd-INSTALL_XEN3_DOMU

title NetBSD run
        root (hd0,0)
        kernel /boot/netbsd-XEN3_DOMU root=xbd1a


boot the XenU, select the 'NetBSD install' pygrub option

in the install install onto xbd1 (xbd0 being /boot)

choose ftp for the install media

you will need to change the base directory to something like pub/NetBSD/NetBSD-daily/HEAD/200809050002Z

go through the regular install. reboot, and boot into the netbsd kernel in pygrub Once it is up, you probably want to append ,softdep to the options field in /etc/fstab


Once you are booted into the NetBSD domU if you want to change the grub menu options, execute

mount_ext2fs /dev/xbd0d /mnt

and you can edit grub/menu.lst and change the kernel. (Note, grub will continue to load off that xbd0d partition; this is because of the way the prgmr.com system is setup. other providers may be different)

for the Dom0: http://www.netbsd.org/ports/xen/howto.html#netbsd-dom0

install current

(if disk is slow, look into softdep)


untar pkgsrc install pkgsrc/emulators/netbsd32_compat40 install pkgsrc/sysutils/xentools33 and xenkernel33 now pkg_add -f ftp://ftp.netbsd.org/pub/NetBSD/packages/4.0/i386/sysutils/grub-0.97nb8.tgz