Startup/shutdown is automatic based on systemd
Telnet directly to instances
Screen commands to connect to instance consoles
- ssh pi
- screen -ls
- screen -r simh-BSD43
- ^Ad disconnects
- systemd disable simh@BSD43
- systemd stop simh@BSD43
Attach keyboard, monitor, mouse to Raspberry Pi
Hold shift during powerup to enter OS selection screen
Note: Attach keyboard directly to Raspberry Pi 5 until OS select appears
sudo apt update
sudo apt dist-upgrade
sudo apt autoremove
sudo apt install git cmake cmake-data screen
git clone https://github.com/open-simh/simh.git SIMH
cd SIMH
sudo bash .travis/deps.sh linux
cmake/cmake-builder.sh -f ninja
New file: '/etc/netplan/01-bridge.yaml'
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: no
wakeonlan: true
bridges:
br0:
interfaces: [ eth0 ]
dhcp4: yes
macaddress: 2c:cf:67:82:4f:6f
link-local: [ ]
parameters:
stp: true
forward-delay: 4
Note: Copy macaddress from eth0 (if required)
New file: '/etc/systemd/system/tap.service'
[Unit]
Description=TAP Interfaces
After=network.target
[Service]
Type=oneshot
User=root
ExecStart=/usr/sbin/ip tuntap add dev tap0 mode tap
ExecStart=/usr/sbin/ip link set tap0 up
ExecStart=/usr/sbin/ip link set tap0 master br0
ExecStart=/usr/sbin/ip tuntap add dev tap1 mode tap
ExecStart=/usr/sbin/ip link set tap1 up
ExecStart=/usr/sbin/ip link set tap1 master br0
ExecStart=/usr/sbin/ip tuntap add dev tap2 mode tap
ExecStart=/usr/sbin/ip link set tap2 up
ExecStart=/usr/sbin/ip link set tap2 master br0
ExecStart=/usr/sbin/ip tuntap add dev tap3 mode tap
ExecStart=/usr/sbin/ip link set tap3 up
ExecStart=/usr/sbin/ip link set tap3 master br0
[Install]
WantedBy=multi-user.target
New file: '/etc/systemd/system/simh@.service'
Note: Adjust WorkingDirectory, User, Group as required
[Unit]
Description=VAX SimH Emulation
After=network.target
[Service]
WorkingDirectory=/home/username/%i
User=username
Group=username
Restart=always
ExecStart=/usr/bin/screen -DmS simh-%i ./vax8600 boot.ini
ExecStop=/usr/bin/screen -p 0 -S simh-%i -X 'stuff "root"\015'
ExecStop=/bin/sleep 1
ExecStop=/usr/bin/screen -p 0 -S simh-%i -X 'stuff "passwd"\015'
ExecStop=/bin/sleep 5
ExecStop=/usr/bin/screen -p 0 -S simh-%i -X 'stuff "shutdown -h now"\015'
ExecStop=/bin/sleep 30
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable systemd-networkd
sudo systemctl enable tap.service
sudo systemctl enable simh@BSD43
sudo systemctl enable simh@Ultrix45
sudo shutdown -r now