Hi all,
I am trying to use etc/installerconfig to templatize the dev VM installations that I frequently do, but cannot figure out how to enable networking. I would like to enable networking during the install, so that I can download packages. The interface name with likely be em0, or vtnet0. Is there a way to say "DHCPv4 on whichever interface is available"? Can that be saved for the OS?
The end of my script shares a lot of "DEBUG" messages under a menu that says "Error", though I do not see an error, it seems to just be variable settings but I do not see an actual error message. This seems to happen immediately after the
My installation script is this:
Please advise. Thanks!
I am trying to use etc/installerconfig to templatize the dev VM installations that I frequently do, but cannot figure out how to enable networking. I would like to enable networking during the install, so that I can download packages. The interface name with likely be em0, or vtnet0. Is there a way to say "DHCPv4 on whichever interface is available"? Can that be saved for the OS?
The end of my script shares a lot of "DEBUG" messages under a menu that says "Error", though I do not see an error, it seems to just be variable settings but I do not see an actual error message. This seems to happen immediately after the
pkg
command, which only prompts me to if I want to install pkg
, but does not actually install.My installation script is this:
Code:
DISTRIBUTIONS="kernel.txz base.txz"
export ZFSBOOT_VDEV_TYPE=stripe
export ZFSBOOT_DISKS="ada0"
export nonInteractive="YES"
#!/bin/sh
sysrc ifconfig_DEFAULT=DHCP
sysrc sshd_enable=YES
sysrc hostname=freebsddevm
sysrc sendmail_enable="NONE"
echo Install packages
pkg -y install sudo bash git gdb bat vim tmux rsync
echo Setup User
pw user add farhan -w random -m -s /usr/local/bin/bash
mkdir -m 700 /home/farhan/.ssh
echo ssh-rsa REMOVED_LONG_KEY > /home/farhan/.ssh/authorized_keys
echo Clone Repository
chown farhan:farhan /usr/src
/usr/local/bin/git clone https://github.com/freebsd/freebsd-src /usr/src
Please advise. Thanks!