vm:virtualbox:archbsd
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| vm:virtualbox:archbsd [2021/12/29 19:54] – ↷ Page moved and renamed from archbsd:virtualbox to vm:virtualbox:archbsd warnaud | vm:virtualbox:archbsd [2022/04/21 13:05] (current) – [Update] warnaud | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Update ====== | ||
| + | The below method doesn' | ||
| + | SSH is inaccessible/ | ||
| + | ====== Introduction ====== | ||
| + | Purpose: test if it's easily installable, | ||
| + | Main web site: [[https:// | ||
| + | Wiki: [[https:// | ||
| + | |||
| + | ====== VM creation ====== | ||
| + | From VIrtualBOX: New / BSD / FreeBSD 64\\ | ||
| + | RAM: 1024MB\\ | ||
| + | Edit the VM for: | ||
| + | * bidirectional clipboard | ||
| + | * Bridged Adapter | ||
| + | * Remove IDE disk | ||
| + | * Add SATA controller | ||
| + | * Add SATA disk ~ 5GB | ||
| + | * Set as SSD hard drive | ||
| + | * Mount ArchBSD iso in CD | ||
| + | Save and launch the VM | ||
| + | ====== Install ====== | ||
| + | ===== SSH access ===== | ||
| + | ==== Network ==== | ||
| + | Find the ip of your VM: | ||
| + | <code bash> | ||
| + | ifconfig | ||
| + | dhclient em0 | ||
| + | </ | ||
| + | ==== Root Password ==== | ||
| + | Change root password | ||
| + | <code bash> | ||
| + | passwd</ | ||
| + | ==== SSHD config ==== | ||
| + | Setup sshd | ||
| + | <code bash>vi / | ||
| + | Then change/ | ||
| + | < | ||
| + | […] | ||
| + | PermitRootLogin yes | ||
| + | […] | ||
| + | PasswordAuthentication yes | ||
| + | […] | ||
| + | ChallengeResponseAuthentication no | ||
| + | </ | ||
| + | ==== Start SSHD ==== | ||
| + | Then Launch sshd: | ||
| + | <code bash> | ||
| + | / | ||
| + | </ | ||
| + | \\ | ||
| + | Then remote connect to it | ||
| + | ===== Setup keyboard ===== | ||
| + | <code bash> | ||
| + | ===== GPT partition ===== | ||
| + | <code bash> | ||
| + | gpart create -s gpt ada0 | ||
| + | gpart add -s 128k -t freebsd-boot ada0 | ||
| + | gpart add -s 1g -t freebsd-swap ada0 | ||
| + | gpart add -t freebsd-zfs ada0 | ||
| + | </ | ||
| + | ===== ZFS Pool ===== | ||
| + | <code bash> | ||
| + | zpool create tank /dev/ada0p3 | ||
| + | </ | ||
| + | Interesting output: | ||
| + | < | ||
| + | cannot mount '/ | ||
| + | Exit 1</ | ||
| + | ===== Bootloader ===== | ||
| + | <code bash> | ||
| + | ===== ZFS Pool ===== | ||
| + | ==== Reimport ==== | ||
| + | <code bash> | ||
| + | Interesting output: | ||
| + | < | ||
| + | Exit 1</ | ||
| + | <code bash> | ||
| + | <code bash> | ||
| + | Interesting output: | ||
| + | < | ||
| + | Exit 1</ | ||
| + | ==== Checksum (optional) ==== | ||
| + | <code bash>zfs set checksum=fletcher4 tank</ | ||
| + | ==== Datasets ==== | ||
| + | <code bash> | ||
| + | zfs create -o canmount=off -o mountpoint=legacy tank/ROOT | ||
| + | zfs create -o canmount=on -o compression=on -o mountpoint=/ | ||
| + | zfs create -o compression=on -o mountpoint=/ | ||
| + | zfs create -o compression=off -o mountpoint=/ | ||
| + | </ | ||
| + | ====== Installing Base ====== | ||
| + | <code base> | ||
| + | |||
| + | Interesting output ... | ||
| + | < | ||
| + | downloading required keys... | ||
| + | :: Import PGP key 2048R/, " | ||
| + | error: key " | ||
| + | error: required key missing from keyring | ||
| + | error: failed to commit transaction (unexpected error) | ||
| + | Errors occurred, no packages were upgraded. | ||
| + | ==> ERROR: Failed to install packages to new root | ||
| + | Exit 1 | ||
| + | </ | ||
| + | |||
| + | FIXME Workaround: | ||
| + | <code bash>cp / | ||
| + | modifiy / | ||
| + | < | ||
| + | # | ||
| + | SigLevel = Never | ||
| + | </ | ||
| + | |||
| + | then re-run pacstrap as: | ||
| + | <code base> | ||
| + | |||
| + | Errors / warnings: | ||
| + | < | ||
| + | […] | ||
| + | ( 6/27) installing bash | ||
| + | install-info: | ||
| + | […] | ||
| + | (24/27) installing pacman | ||
| + | >>> | ||
| + | >>> | ||
| + | >>> | ||
| + | </ | ||
| + | |||
| + | ====== System configuration ====== | ||
| + | ===== Chroot ===== | ||
| + | <code bash> | ||
| + | ===== /etc/fstab ===== | ||
| + | <code bash> | ||
| + | cat << EOF > /etc/fstab | ||
| + | # Device | ||
| + | proc /proc procfs rw 0 0 | ||
| + | / | ||
| + | EOF | ||
| + | </ | ||
| + | ===== / | ||
| + | <code bash> | ||
| + | cat << EOF >> / | ||
| + | vfs.root.mountfrom=" | ||
| + | EOF | ||
| + | </ | ||
| + | :!: no need to add this (already in the file :!: | ||
| + | < | ||
| + | 25 # Load File-System Support | ||
| + | 26 zfs_load=" | ||
| + | </ | ||
| + | ===== timezone ===== | ||
| + | <code bash> | ||
| + | ln -s / | ||
| + | ===== hostname ===== | ||
| + | <code bash> | ||
| + | echo ' | ||
| + | </ | ||
| + | ===== Root passwd ===== | ||
| + | <code bash> | ||
| + | passwd | ||
| + | </ | ||
| + | ===== Exit chroot ===== | ||
| + | Exit from chroot | ||
| + | <code bash> | ||
| + | ===== zpool save ===== | ||
| + | <code bash> | ||
| + | cp / | ||
| + | </ | ||
| + | Fails ... of course :@ | ||
| + | < | ||
| + | cp: / | ||
| + | Exit 1 | ||
| + | </ | ||
| + | ===== Bootfs ===== | ||
| + | <code bash> | ||
| + | zpool set bootfs=tank/ | ||
| + | </ | ||
| + | ===== FreeBSD init ===== | ||
| + | <code bash> | ||
| + | echo zfs_enable=" | ||
| + | </ | ||
| + | ===== Reboot ===== | ||
| + | Cross fingers … | ||
| + | ====== Post Install ====== | ||
| + | The adventure begun | ||
| + | ===== base-devel ===== | ||
| + | <code bash> | ||
| + | |||
| + | FIXME Work in progress ! | ||
| + | |||
| + | ====== References ====== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
