Replication instructions
Setup and start of the Virtual Machine
Setup of the VM in which it will be replicated:- Download FreeBSD-15.1-RELEASE-amd64-dvd1.iso and the checksum file CHECKSUM.SHA512-FreeBSD-15.1-RELEASE-amd64.
- Check the checksum with
sha512sum --ignore-missing -c CHECKSUM.SHA512-FreeBSD-15.1-RELEASE-amd64. - Mount
FreeBSD-15.1-RELEASE-amd64-dvd1.isoat some mountpoint of your preference. - Run
cp -ar $AMYP $SWP, where$AMYPis the mountpoint whereFreeBSD-15.1-RELEASE-amd64-dvd1.isowas mounted and$SWPis a writable place where you can work. - Now run
which should configure the console as in Chapter 30. Serial Communications 0.6.3. Setting a Faster Serial Port Speed.Code:cat >> $SWP/$(dirname $AMYP )/boot/loader.conf <<EOF boot_multicons="YES" boot_serial="YES" comconsole_speed="115200" console="comconsole,vidconsole" EOF - Finally build the new disk with
Code:CUSTOM_ISO_TITLE=$(isoinfo -d -i ${ISO_DIR}/${ISO} | grep "Volume id" | awk '{print $3}') sudo mkisofs -J -R -no-emul-boot -V "${CUSTOM_ISO_TITLE}" -p "Joyent" -b boot/cdboot -o FreeBSD-15.1-RELEASE-SERIAL-amd64-dvd1.iso.iso $SWP/$(dirname $AMYP ) - At last: start the VM, press enter or wait to start of the install wizard.
Code:virt-install --connect qemu:///system -n replication_base --description "Replication Base" \ --os-variant=freebsd15.0 \ --ram=512 --vcpus=1 \ --graphics vnc --console pty \ --disk path=/var/lib/libvirt/images/rb.qcow2,bus=virtio,format=qcow2,size=10 \ --cdrom "$(pwd)/FreeBSD-15.1-RELEASE-SERIAL-amd64-dvd1.iso.iso" \ --network network:default
Installation of FreeBSD
Now is turn to install FreeBSD in the Virtual Machine, thus Following Handbook Chapter 2. Installing FreeBSD.- Now we enter the Virtual Machine installation console with
virsh --connect qemu:///system console replication_base. - Following 2.4.1. FreeBSD Boot Loader Menu is trivial and needs no commentary.
- Given that we are in a console continuing with the default keymap is the proper choice for 2.5.1. Selecting the Keymap Menu.
- Set hostname to "
example" on 2.5.2. Setting the Hostname. - On 2.5.3. Selecting Installation Type select Distributions Sets.
- On 2.5.4. Selecting Components to Install only select
lib32. - On 2.6. Allocating Disk Space select Auto (ZFS).
- On 2.6.4. Guided Partitioning Using Root-on-ZFS set Swap Size to 0 and then "proceed with Installation".
- On Figure 21. ZFS Pool Type, select stripe.
- On Figure 22. Disk Selection select
vtbd0with space and the continue with enter. - On Figure 28. Last Chance select YES.
- On 2.8.1. Setting the root Password skip.
- On 2.8.2. Configuring Network Interfaces select manual, Yes for configuration of IPv4, Yes for DHCP of the IPv4, No for IPv6.
- On Figure 45. DNS Configuration just go with OK.
- On 2.8.3. Setting the Time Zone select 0 UTC, and then confirm on Figure 50. Confirm Time Zone.
- Now skip Figure 51. Select Date and Figure 52. Select Time.
- Enable all services on 2.8.4. Enabling Services.
- Enable all except hide_uids, hide_gids, and random_pids on 2.8.5. Enabling Hardening Security Options.
- On 2.8.6. Add Users select No.
- On 2.8.7. Final Configuration select finish.
- On Figure 59. Manual Configuration select Yes.
- Login as root (there is no password, so only press enter).
- Now add
to /mnt/boot/loader.conf as recommened by Chapter 30. Serial Communications 0.6.3. Setting a Faster Serial Port Speed.Code:boot_multicons="YES" boot_serial="YES" comconsole_speed="115200" console="comconsole,vidconsole" - Finally run
poweroff.
First Start and Configuration
- Before finally starting with the replication, go to
/etc/resolv.confand uncomment the nameserver, as otherwise you will be gettingTransient resolver failureerrors. - Run
pkgfor installing pkg, and accept withythe installation prompt. - Run
pkg updatefor updating the package list.
Finally the problem
Try to install vim (editors/vim) with pkg install vim and get the error:
Code:
pkg: No packages available to install matching 'vim' have been found in the repositories