VBoxManage storageattach $NAME --storagectl "IDE Controller" \
--port 0 --device 0 --type dvddrive --medium $ISO
VBoxManage modifyvm $NAME --boot1 dvd --boot2 disk
- VBoxManage unattended install $NAME --iso=$ISO \
- --locale en_US --country US \
- --hostname $NAME.small.private \
- --user=sysadm --password=fubar \
- --full-user-name=System\ Administrator
}
#+END_SRC
After this shell function creates a VM, its network interface is
-typically attached to the NAT network ~premises~, simulating the
-Internet connected network where actual hardware will be prepared.
+attached to the default NAT network, simulating the Internet connected
+network where actual hardware is prepared.
Here are the commands needed to create the test machine ~front~ with
512MiB of RAM and 4GiB of disk and the Debian 11.3.0 release in its
-CDROM drive, to put ~front~ on the Internet connected NAT network
-~premises~, and to boot ~front~ into the Debian installer.
+CDROM drive.
#+BEGIN_SRC sh
NAME=front
DISK=4096
ISO=~/Downloads/debian-11.3.0-amd64-netinst.iso
create_vm
-VBoxManage modifyvm $NAME --nic1 natnetwork --natnetwork1 premises
-VBoxManage startvm $NAME --type headless
#+END_SRC
The machine's console should soon show the installer's first prompt:
~vboxnet1~ and is given the local address ~192.168.57.3~.
#+BEGIN_SRC sh
+VBoxManage modifyvm front --nic1 natnetwork --natnetwork1 premises
VBoxManage modifyvm front --nic2 hostonly --hostonlyadapter2 vboxnet1
#+END_SRC
The ~gate~ machine is created with the same amount of RAM and disk as
~front~. Assuming the ~RAM~, ~DISK~, and ~ISO~ shell variables have
-not changed, ~gate~ can be created with two commands, then connected
-to NAT network ~premesis~ and booted with two more.
+not changed, ~gate~ can be created with two commands.
#+BEGIN_SRC sh
NAME=gate
create_vm
-VBoxManage modifyvm gate --nic1 natnetwork --natnetwork1 premises
-VBoxManage startvm gate --type headless
#+END_SRC
After Debian is installed (as detailed in [[*A Test Machine][A Test Machine]]) and the
RAM=2048
DISK=6144
create_vm
-VBoxManage modifyvm core --nic1 natnetwork --natnetwork1 premises
-VBoxManage startvm core --type headless
#+END_SRC
After Debian is installed (as detailed in [[*A Test Machine][A Test Machine]]) and the
RAM=2048
DISK=8192
create_vm
-VBoxManage modifyvm $NAME --nic1 hostonly --hostonlyadapter1 vboxnet1
VBoxManage modifyvm $NAME --macaddress1 080027dc54b5
-VBoxManage startvm $NAME --type headless
+VBoxManage modifyvm $NAME --nic1 hostonly --hostonlyadapter1 vboxnet1
#+END_SRC
Dick's notebook, ~dick~, is initially connected to the host-only