Talk:NetBSD howto
From LinodeWiki
- Bdragon's experiences with bootstrapping over the network directly
Create a small ext2 image (16 megs should be plenty) to store the install kernel. "Bootstrap image"
Create a finnix profile and add the bootstrap image to it.
Boot finnix, mount the bootstrap image and wget the netbsd-INSTALL_XEN3_DOMU.gz kernel to it.
Shut down the finnix profile.
Create a raw disk image to be used as the netbsd root partition. Optionally, create a swap image and additional images.
Create a pv-grub-x86_64 profile. Set /dev/xvda to the root image you just made. Add the other images. Turn off all the helper options (They don't work on NetBSD). Add the bootstrap image as well because you'll need it for the first boot. (I used /dev/xvdd)
Boot into the pv-grub profile.
grubdom> kernel (hd3)/netbsd-INSTALL_XEN3_DOMU.gz
grubdom> boot
Exit sysinst and set your terminal to vt100 so it doesn't look so horrible in lish.
Go back into sysinst.
- export TERM=vt100
- sysinst
We will be fetching packages via ftp.
device [xennet0]: <ENTER> Network media type: none<ENTER>
DO perform DHCP autoconfiguration.
(You should probabaly skip ipv6 autoconfiguration.)
Fix the base directory (Daily builds come from a time sensitive directory on the ftp server.)
Fetch the distribution sets. (This will take a few)
Let the system install.
Go to utilities and spawn a shell. There's some last minute stuff we need to do before rebooting.
Remount the targetroot.
- mount /dev/xbd0d /targetroot
Fetch the netbsd-XEN3_DOMU.gz kernel to the targetroot, as the installed one is GENERIC, which won't work in Xen.
I overwrote netbsd, but it doesn't matter what you do, as long as it's available for grub.
kernel (hd0,0)/netbsd (Hmm, had to boot off the bootstrap partition.) boot
Login and
Edit /etc/ttys
(Yeah, it needs some work / cleanup.)
