For those of you looking to rock out FreeBSD on your Linodes, I've written a guide that should get you going.
This guide was originally posted on
http://cloudsdale.ponix.space/~rainbow/blog/ and is not official Linode documentation.
Please be aware FreeBSD is still an unsupported OS on Linode infrastructure, and as such, Linode Support may be unable to assist
you in the event you require help.
-----------------------------------------------------------------------------------
EDIT: Thanks to GLish, the modified image is NO LONGER REQUIRED! Feel free to SKIP steps 1 and 2 entirely!
viewtopic.php?t=12212&p=68289#p68289You can simply use the following command in
Rescue Mode to kickstart the install:
curl
ftp://ftp.freebsd.org/pub/FreeBSD/relea ... mstick.img | dd of=/dev/sda to set up your
installation media.
Original instructions are included below for those who wanted to use the serial console still.
MAKE SURE YOUR /boot/loader.conf FILE LOOKS LIKE THIS:
Code:
boot_multicons="YES"
boot_serial="YES"
comconsole_speed="115200"
console="comconsole,vidconsole"
-----------------------------------------------------------------------------------
Important bits: Linode uses LISH, the Linode Shell, to provide a console for
your Xen or KVM Linode. Lish is basically a serial console. This means that
both your installation media and eventual installation must be aware of the
serial console.
Secondarily, we'll be using RAW disks. That means no resizing the disk later,
no Linode Backup Service, etc. ZFS ZPools roughly solve the issue of "Oh crap
I need more disk space" though!
Step 1. Download the latest memstick.img or mini-memstick.img from:
ftp://ftp.freebsd.org/pub/FreeBSD/relea ... SO-IMAGES/Step 2. Mount said memstick.img In FreeBSD you can do this with #mdconfig -f
$filename and then mount it where ever you like. Once you've done so, cd to
the directory and run:
echo 'console="comconsole"' > ./boot/loader.conf
This will make our memstick serial-aware.
I have provided a download of a serial-aware 10.1 memstick.img at the
following link for anyone that is interested.
http://cloudsdale.hacker.horse/~rainbow ... onsole.imgStep 3. Create a RAW disk 800 Mb in size (or 300 if you're using the mini-
memstick)
Now boot your Linode in Rescue mode, and dd the image up! On your home
computer:
dd if=FreeBSD-memstick.img | ssh root@$IpAddress "dd of=/dev/sda"
If you use my provided image, you can simply run the following command in
Rescue Mode:
curl
http://cloudsdale.hacker.horse/~rainbow ... onsole.img | dd of=/dev/sda
Step 4. Once this completes, shut your Linode down. Create a new Raw disk at
your preferred size. Set up a configuration profile to boot the installer disk
you just finished creating as /dev/sda and your new raw disk as /dev/sdb! Make
sure to turn off ALL of the Linode helpers, they can't do anything for Raw
disks.
Step 5. Boot the installer. Run through it. I prefer to keep lib32 and src,
and uncheck ports, docs, and games. You can always get a more up to date ports
via #portsnap fetch extract later.
Make sure you ONLY install to da1, not da0. da0 is your installation media.
Ensure you turn on DHCP for IPv4 and SLAAC for IPv6.
Step 6. *** IMPORTANT IMPORTANT IMPORTANT ***
If you do not take this step LISH WILL NOT WORK.
After pressing exit, you will be asked if you wish to chroot into your new
system. CHOOSE YES!
Upon doing so, edit /boot/loader.conf with vi and append console="comconsole"
at the very end of the file.
Make any other desired changes, and shut down with shutdown -p now.
Step 7. Once the shutdown finishes, feel free to edit your configuration
profile to only boot your main disk. BAM, you've got a FreeBSD Linode. Awwwwww
yiss.
Finished, you might look something like
https://twitter.com/RainbowHacks/status ... 8545637377If you're new to FreeBSD, I STRONGLY suggest reading the handbook:
https://www.freebsd.org/doc/handbook/Enjoy!
▓▓▓▓▓░▓▓▓▓▒▒▒▒██████▓▓▓
▓▓▓▓░░░▓▓▓▓▒▒▒▒▒█████▓▓
▓▓▓░▐▌░░▓▓▓▓▒▒▒▒▒▒████▄
▓▓▒░░▌░░░░▓▓▓▓▒▒▒▒▒█▌▓▀
▓▒▓░░░░░░░░░▓▓▓▒▒▒▒▒▀▓▓
▓▒▓▓░░░░░▀▀███▓░▒▒▒▒▒▓▓
▒▒▒▓▓░░░▌▄████▌░░▒▒▒▓▓▓
▒▒▒▓▓▓░░███▄█▌░░░▓▓▒▒▓▓
▒▒▒▒▓▓▓░░▀▀▀▀░░░░▓▓▓▒▓▓
▒▒▒▒▒▓▓▓░░░░░░░░░░▓▓▓▓▓
▓▒▒▒▒▒▓░░░░░░░▐▄░▓▓▓▓▓▓
▓█▒▒▒▒▒░░▓▓▓▓▓▓▓▓▓▓▓▓▓▓
▓██▒▒▒▒▒░▓▓▓▓▓▓▓▓▓▓▓▓▓▓