#********************************************************************* #** Short Version of How to Install FreeBSD 12.1 in VirtualBox 6.1 #********************************************************************* We will take about 15 minutes to complete the install. Prepare Install Configure Test --------------------------------------------------------------------- Prepare --------------------------------------------------------------------- Download and install Virtualbox Download the FreeBSD 12.1 amd64 disc1 iso --------------------------------------------------------------------- Install --------------------------------------------------------------------- Start Virtualbox Press the New Button Name: freebsd Continue 2048 MB is fine Continue again The defaults are going to be fine for hard disk Create Continue twice Create again Change 4 settings, one required, three a good idea Storage Click Empty and click the CD icon on the right Select Choose a file... Browse to and select the ISO you downloaded Open System 2 CPUS Network Advanced Port Forwarding Click the add button on the right Name: ssh Host Port 2424 (choose a port that isn't already used) Guest Port 22 (default ssh port) OK and OK again Ready to start Click the Start Button Select the FreeBSD ISO from the drop down list Start Press Enter at the Boot Menu to select the default, or wait 10 seconds Select Install at the Welcome screen Select Continue to use the default US keymap or change it as needed Set the fully qualified hostname Unselect kernel-dbg and Select lib32 (if not selected) ZFS works great, but on VM's I choose UFS Select Auto (UFS) Select Entire Disk GPT GUID Partition Table, click OK Observe partitions and click Finish Confirm and Commit The BSD installer installs the selections to disk Set root password and confirm Select em0 Intel Pro 1000 Select IPv4 Select DHCP Select No for IPv6 Search: sentech.home Select OK to confirm Network configuration Select Yes to choose UTC for local clock Select 2. America 49. United States 11. Central Time Select Yes for CDT Skip setting the date Skip setting the time Select local_unbound, sshd, ntpd, dumpdev as services to start at boot Skip System Hardening Select Yes to add user set Username, Full name, wheel operator video, and password Select Yes to save Select No to stop adding users Select Handbook Select OK Select Exit to apply configurations Select Yes for a Shell shutdown -p now In Virtualbox Storage Click FreeBSD... and click the CD icon on the right Select Remove Disk from Virtual Drive In the new VM (freebsd-work) Snapshot baseline Start headless At the welcome screen, press enter or wait to boot --------------------------------------------------------------------- Configure --------------------------------------------------------------------- At the console login as regular user on the host system ssh user@localhost -p 2424 on Windows, putty will work become root (you could also just log in as root, but this is a useful skill) su - Update the system freebsd-update fetch install pkg update pkg upgrade pkg install sudo visudo uncomment wheel line exit test as regular user sudo ls -l # take note of the version freebsd-version -k -u 12.1-Release-p7 12.1-Release-p7 # and the uname string uname -a FreeBSD freebsd.local 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC amd64 sudo reboot --------------------------------------------------------------------- Test --------------------------------------------------------------------- login uname -a FreeBSD freebsd.local 12.1-RELEASE-p7 FreeBSD 12.1-RELEASE-p7 GENERIC amd64 ping yahoo.com Two control files you should know about /boot/loader.conf /etc/rc.conf and their defaults /boot/defaults/loader.conf /etc/defaults/rc.conf In VirtualBox, snapshot updated-p7 Celebrate!!! Next episodes: Install Oldschool Desktop Environment - twm Install Modern Desktop Environment - Plasma shutdown -p now