Translation(s): none

Aranym is a virtual Atari machine which is useful for M68k Porting. This is a one page installation intended to get Debian/m68k sid running quickly. The disk image is fairly minimal, but can be extended easily.

Contact: <>

Download Files

Download the January 2015 base image tarball.

The following instructions are for this (January 2015) image, but the April 2012 image is close enough. Follow the Aranym/Quick.bak instructions for the older image.

Kernel configuration

For a post-4.1 kernel you may need (if your ARAnyM is not recent enough) to add initcall_blacklist=atari_scsi_driver_init to the kernel command line (section [LILO], key Args in the ARAnyM configuration file) in order for the system to boot, see #865928 for background information.

The hard disk image

… contains an ext4fs at offset 2048 sectors (1 MiB), which – according to atari-fdisk – ends at block (sector) {tbd}. The rest is swap. It’s fairly big, but in theory, shrinking it and then transferring it to a disk to be used in an Amiga, mac68k or other Debian/m68k system should be possible. (But you don’t need that, we have images for that.)

The packages contained therein stem from a debootstrap with --variant=minbase plus a few others, such as a sensible shell (mksh) and editor (ed and jupp) and Desktop Environment (mc), but several others from the default set (and any development tools) are missing. Use dselect to add them from a list. The /etc/apt/apt.conf file is set up to not install Recommends automatically. Also, see the README.txt file included with the image.

All packages, except one, are standard Debian packages. If you want to keep things strictly Debian, purge wtf-debian-keyring and remove all nōn-Debian/Debian-Ports entries from /etc/apt/sources.list.

Install Aranym

aranym recommends bridge-utils and uml-utilities. The latter is required for networking, so we force its installation. Older versions also recommended ipmasq which may cause you networking grief if you aren't aware, so don't install that.

sudo apt-get --purge install aranym uml-utilities

Configure Networking

Make sure tun is available and setup correctly.

The disk image is setup for point-to-point networking. On your host add the following to /etc/network/interfaces:

auto tap4
iface tap4 inet static
        tunctl_user tglase
        up iptables -t nat -A POSTROUTING -s -j MASQUERADE
        up echo 1 > /proc/sys/net/ipv4/ip_forward
        down iptables -t nat -D POSTROUTING -s -j MASQUERADE

This assumes tap4 is a free tun interface on your system, and tglase is your username (so you can access it as nōn-root). Now start up the interface with: sudo ifup tap4

To get tun/tap networking working, your user must also be in the uml-net group:

$ sudo adduser tglase uml-net

You might need to re-login or simply modify the permissions of /dev/net/tun if you don't care about security.

If you use more than one ARAnyM instance, you will need separate tap interfaces for each instance, which needs changing in three places: aranym.cfg (both Tunnel – to the tap interface used – and Mac – to keep unique), /etc/network/interfaces and, in the guest, also /etc/network/interfaces – do make sure that the address and pointopoint of host and guest are swapped, and that the up and down commands on the host match the guest’s IP.

You will also need to configure the guest if you have only one instance, but the IP range is already in use by you.

Start Aranym

aranym is an SDL application, so you need X11 or something like Aranym/Headless. The configuration file specifies the amount of RAM ARAnyM gets (see FastRAM). It’s currently set at 768 MiB, adjust to taste. ARAnyM will happily drive a single cpu core on the host to 100%, but usually isn’t that demanding.

I generally put this into a file ./ in the directory with the image.

cd "$(dirname "$0")"
# avoid it hogging the sound card
# run ARAnyM on CPU core #0 (only)
taskset 0x01 aranym-mmu -l -c aranym.cfg

Read the taskset manual page for details. Basically, use 0x01 shifted left by the number of the CPU core (starting with 0) you want it to use (i.e. 0x02 for the second CPU core, 0x04 for the third, etc). (Or just skip taskset and run aranym-mmu directly.)

When doing this over VNC, do be sure to not move the mouse until the login prompt arrives and you have typed a letter, otherwise the keyboard will not be usable. Actually, scrap that. Over VNC, the keyboard will normally not be usable. There is no serial port support on the Atari, and nfcon is only for output, so you will have to do the initial setup (hostname, root password, add some entropy, install sshd) on a local X11 session (X11 forwarding is even more unusable). Then you can run it headlessly and access it over SSH.

First Steps

See the README.txt file included, too.

To compile packages, the best would be to install cowbuilder and set it up, similarily to what was described in M68k/Cowbuilder:

You can also just install the build-essential package and begin compiling in your main system. Or set up a buildd…

Closing Remarks

ThorstenGlaser made this image due to the pressure of several requests for one, while being ill. It has not been tested much, contains way too few packages for its size (looking back, at least the base packages should all have been included, considering how big it ended up anyway due to mc and locales-all and stuff), and the First Steps could probably have been made into a shell script. But, there you are. Better than nothing. It’s at least a working image, cleanly made according to latest Debian sid standards (instead of upgrading old etch-m68k images more and more) and with space to compile lots of things.

CategoryPermalink CategoryPorts