# Inside a Computer

URL: https://heaven.dev/docs/inside-a-computer
Updated: 2026-11-22

Programs in a Computer see an ordinary Linux machine: its own kernel, a writable root disk, a private network address and a few Heaven services at fixed addresses.

## Operating system

Heaven supplies the kernel, and the [image](https://heaven.dev/docs/images) supplies the distribution and software. The [default image](https://heaven.dev/docs/images#default-image) is Ubuntu with systemd. Shells open as `heaven` in `/home/heaven`, and `sudo` works without a password. Other images can [choose their login user](https://heaven.dev/docs/images#registry-images).

## Processors and memory

`nproc` and `free -h` show the processors and memory available. Both can change while the Computer runs, for example after a [resize](https://heaven.dev/docs/managing-computers#resize), so a program that sizes itself at startup may need to check again.

## Disk

The root disk is `/dev/vda`, an ext4 filesystem mounted at `/`. `df -h /` shows the space left on it, and the pool's [storage limit](https://heaven.dev/docs/limits#storage) applies as well. Everything on the disk stays across stops and restarts, and you can [snapshot, copy or restore](https://heaven.dev/docs/snapshots) it.

## Network

A Computer has a private IPv4 address, DNS and [outbound internet access](https://heaven.dev/docs/networking#outbound). Its hostname is its name, and after a rename it changes on the next boot. Computers can't reach each other's private addresses: use a [peer integration](https://heaven.dev/docs/integrations#peer-integrations) instead.

To serve the Computer's [website](https://heaven.dev/docs/websites#http-and-tls), listen on `0.0.0.0`. An app that listens only on `127.0.0.1` can't be reached from outside the Computer.

## Heaven's services

Programs in the Computer can call these addresses.

| Address | Use |
| --- | --- |
| `http://169.254.169.254/gateway/email/send` | Send [email](https://heaven.dev/docs/email#sending-email) as the Computer. |
| `https://self.int.heaven.dev/` | Read the Computer's [name, addresses, tags and integrations](https://heaven.dev/docs/integrations#computer-metadata). |
| `https://NAME.int.heaven.dev` | Use an [attached integration](https://heaven.dev/docs/integrations#how-integrations-work), such as `https://models.int.heaven.dev`. |

## Power

`sudo reboot` restarts the Computer, which shows as `starting` until it's back. `sudo shutdown -P now` stops it, and it stays stopped until you [start](https://heaven.dev/docs/managing-computers#start-and-stop) it.

## Virtualization

A Computer can run its own virtual machines when its processor shows the `svm` feature. On the default image, this checks for it and loads the driver.

```sh
grep -qw svm /proc/cpuinfo && sudo modprobe kvm_amd && test -c /dev/kvm
```
