netbsd-linode.md (1888B)
1 ### Installing NetBSD on Linode 2 3 In this short guide I will show you how to install NetBSD amd64 4 6.1.4 on a Linode VPS. 5 First you will have to create a 64MB ext3 disk image to hold 6 the DomU kernels. Create a second raw disk image to be used as 7 your NetBSD root partition. 8 9 Prepare to reboot into rescue mode and allocate the kernel disk 10 accordingly: 11 12 /dev/xvda: kernel # your small ext3 disk image 13 14 Now boot into Finnix and copy the DomU kernel images: 15 16 # mkfs.ext3 /dev/xvda 17 # mount /dev/xvda /mnt 18 # curl -O ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-6.1.4/amd64/binary/kernel/netbsd-INSTALL_XEN3_DOMU.gz 19 # curl -O ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-6.1.4/amd64/binary/kernel/netbsd-XEN3_DOMU.gz 20 # gzip -d netbsd-INSTALL_XEN3_DOMU.gz 21 # gzip -d netbsd-XEN3_DOMU.gz 22 # mv netbsd-INSTALL_XEN3_DOMU /mnt/kernel-install 23 # mv netbsd-XEN3_DOMU /mnt/kernel 24 # umount /mnt 25 26 Once that's done, you can shutdown Finnix. 27 28 Create a new configuration profile, call it NetBSD 29 select the `pv-grub-x86_64` kernel. Allocate the disks 30 as shown below: 31 32 /dev/xvda: root # your rootfs disk image 33 /dev/xvdb: kernel # the kernel disk image 34 35 Set the root device to `/dev/xvda`. 36 37 Boot your new configuration profile. You will be presented with a 38 a pv-grub command line. Boot into your NetBSD DomU install kernel: 39 40 grubdom> kernel (hd1)/kernel-install 41 grubdom> boot 42 43 Install NetBSD as usual and choose the target disk to be 44 `/dev/xbd0`. Once you are done, shutdown the machine. 45 46 Reboot your configuration profile and select the NetBSD DomU kernel. 47 48 grubdom> kernel (hd1)/kernel 49 grubdom> boot 50 51 You should be presented with the login prompt. 52 53 At this point, you may consider mounting the kernel disk under 54 /extboot. You should also be able to set up a GRUB configuration file 55 to allow the system to boot without human intervention. 56 57 Cheers! 58 59 sin@