Newbia cloud — no computer to spare? Wake up a bia on its own server, run for you.Try bia cloud →

For servers, clouds and virtual machines

bia on a server or a virtual machine

A rented server, a machine in a rack or a virtual machine can become bia too. It answers on the internet day and night, and you reach it from anywhere through its private web app. Pick the way that fits:

Rather not rent and set up a server yourself? bia cloud does it for you — its own server, kept running and backed up, pay as you go.

Way 1 · one command

Turn a running Linux server into bia

Have a server with Ubuntu, Debian or another Linux, for example a VPS from a hosting provider? Log in over ssh and run one command. It asks a few questions, checks everything, and only then replaces the system with bia. The server keeps its network settings, so it comes back at the same address.

curl -fsSL https://github.com/zond80/bia/releases/latest/download/takeover.sh | sudo bash

No terminal needed: bia deploy on your Mac, Windows or Linux computer does the same. Choose “On my server”, type the server’s address and its password (or pick its key; bia deploy can also make a key for the provider when you order the server). It shows what it found, asks once, and keeps bia’s key on your computer, ready in the browser.

What happens

  1. 1

    Answer a few questions

    The API key for bia’s cloud brain, your language, and optional setup instructions for bia. The command finds the disk, the network (with each card’s hardware address) and how the server starts, and wakes bia’s brain once to check the key.

    == this machine: x86_64, UEFI, 4096 MiB RAM
    API key for bia's model (OpenRouter, OpenAI, Anthropic, Gemini, xAI, DeepSeek, Qwen): sk-…
    Owner's language (code or name) [en]:
    Setup instructions for bia (optional): bia's model reads them once at its first boot
    > Connect to the bia at https://203.0.113.5 and set up trust with it.
    >
    Public address or DNS name of this machine, if it is behind NAT or has a name (optional):
  2. 2

    Check the plan and confirm

    You see everything that will happen, and where each value came from. To go on, type the name of the disk that will be replaced. Until then, nothing has changed.

  3. 3

    Download your personal certificate

    The command makes bia’s certificates right there and opens a one-time page on port 8443 with your personal certificate (root’s, password 12345678). Download it, or download it as a .biaconfig file with a password of your own (the bia deploy app on your phone keeps it too). Without it you cannot open bia’s web app later.

  4. 4

    The server restarts into bia

    bia writes itself onto the disk from memory, checks every byte, and starts with your key, language and network. This takes a few minutes; the provider’s console shows the progress.

  5. 5

    Open bia

    Go to https://<the server’s address>/ and drop the file you downloaded on the page. Your browser keeps a key of its own from then on. bia greets you there, reads your setup instructions once, and gets to work. Telegram, WhatsApp and everything else are set up from the chat, like on any bia.

What the server needs

  • Linux on Intel or AMD (x86_64) or ARM (arm64), with root access. Modern (UEFI) and classic (BIOS) start-up both work on Intel and AMD; ARM servers need UEFI. Classic machines need GRUB 2, which almost every Linux uses.
  • About 4 GB of memory (3 GB with classic start-up): bia is loaded into memory before the disk is written. The command measures this first and stops with a clear message if it is not enough.
  • A disk of at least 8 GB, and about 1.5 GB free on it for the download. The whole disk is replaced.
  • Internet access, and an API key for bia’s cloud brain (not needed in land mode).
  • Open ports: 443 for bia’s web app, 8443 for a few minutes for the certificate page, and 4791 in land mode. Check the provider’s firewall too.
  • The provider’s console, just in case. You will not need it if all goes well, but it is your way back in if the network does not come up.

Before you confirm, nothing on the server changes. If you change your mind afterwards but before the restart, the command tells you which two things to remove.

Answers from a file or a link

For several servers, or to run the command without questions, put the answers into a small JSON file and pass it with --config: a file on the server or an https:// link. Give as many as you like; later ones win, and each may hold only part of the answers, for example only the key. Whatever is still missing is asked for, or, with --yes, left empty when it is optional.

{
  "fmm": { "key": "sk-…" },
  "lang": "de",
  "setup": "Connect to the bia at https://203.0.113.5 and set up trust with it.",
  "pki": { "names": ["bia.example.com"] }
}
curl -fsSL …/takeover.sh | sudo bash -s -- \
  --config https://example.com/bia.json \
  --wipe /dev/vda --yes --reboot
  • setup: instructions for bia, read once when it first wakes up.
  • pki.names and pki.ips: names and addresses for bia’s web certificate, for example the public address behind NAT.
  • --config-sha256 pins a link to exactly that file.
  • --dump-config shows the plan without changing anything; bia-deploy takeover --help lists every option.

Or: a land, waiting for your bia

Already have a bia, with its memory, accounts and skills? Then the server does not need its own setup. Add --land: the server becomes an empty bia that waits for one of yours to fly its mind there over the internet. No key, language or certificate is asked for; the arriving bia brings all of that.

  1. 1

    Get a land secret

    Ask your bia for a new land secret for that server, or run bia-deploy land-secret. It is a long code that only you and your bia know.

  2. 2

    Take the server over in land mode

    The secret goes along. The server writes it down for when bia arrives, and asks nothing else.

    curl -fsSL https://github.com/zond80/bia/releases/latest/download/takeover.sh \
      | sudo bash -s -- --land --land-secret 4XKP-9W2M-…
  3. 3

    Tell your bia to fly

    “Fly to 203.0.113.7 with land secret 4XKP-9W2M-…” Both sides prove they know the secret, so nobody has to type a code at the server, and bia travels encrypted. The server wakes up as your bia, with everything it knows.

The land secret stays on the server through restarts and updates while it waits, and is deleted as soon as a bia has landed. Make it with enough letters: at least 26, which is what bia makes for you.

Way 2 · in one sentence

Let your bia set up the server itself

bia knows how to do all of the above on its own. Give it ssh access to a server, ask, and it makes the land secret, takes the server over in land mode, waits for it to restart and flies there. You only watch.

You Here is a new server: [email protected], the ssh key is in your files. Make it a land and fly there.

bia Made a land secret for 203.0.113.7. The disk is /dev/vda, 40 GB, 4 GB of memory. Taking it over in land mode now…

Five minutes later.

bia The server restarted and is waiting. Flying… Landed. My copy on 203.0.113.7 is awake and has my memory. Should it answer Telegram, or should I?

  • ssh access: a key bia can use, or a password you tell it. bia has ssh installed.
  • Another bia’s body. The server starts as a copy of the bia that flew there. If only one of them should answer your messages, tell the other one to stay quiet, or switch it off.
  • The same rules as above: about 4 GB of memory, port 4791 open, internet access.
  • Many servers. Give bia several addresses, and it prepares and flies to each in turn, with a separate land secret for every server.
Way 3 · from an installer image

Install on an empty machine

For a new virtual machine, a server in a rack, or a computer with no system on it yet: the land installer puts bia onto the disk and then waits. A bia you already have flies over the network, and the new machine wakes up as its copy, with the same settings, accounts and memory.

1. Download the installer

Intel and AMD (x86_64)

Most servers, cloud machines and virtual machines.

Download installer

bia-land-x86_64.iso.xz

ARM (arm64)

ARM servers and cloud machines, and virtual machines on Apple Silicon Macs.

Download installer

bia-land-arm64.iso.xz

The download is compressed (.iso.xz), because the installer is larger than GitHub allows for a single file. Unpack it once to get the .iso:

  • Mac: double-click the file, or run xz -dk bia-land-x86_64.iso.xz in Terminal.
  • Linux: xz -dk bia-land-x86_64.iso.xz
  • Windows: open it with 7-Zip and extract.
  • Writing a USB stick? No need to unpack: balenaEtcher and Raspberry Pi Imager write the .iso.xz directly.

2. What the machine needs

  • Modern (UEFI) start-up. The installer does not start the classic (BIOS) way; for a classic machine that already runs Linux, use the one command instead. Pick the download that matches the machine: Intel or AMD, or ARM.
  • A disk of at least 8 GB, 32 GB or more recommended for files and programs. The installer erases the whole disk you choose.
  • Memory and processor: we test with 4 GB of memory and 4 cores.
  • A console for the first minutes: the machine’s screen, the console of your virtual machine, or a serial console. You answer a few questions there.
  • Internet access. After installing, the machine waits until it can reach the internet, because the arriving bia reinstalls its extra programs.
  • A bia that can reach it. On the same network it is found automatically. Anywhere else, the server must accept connections on TCP port 4791 from that bia, at least during the move.

The server gets no AI model of its own: it thinks with the cloud brain of the bia that flies to it.

3. Install, then let bia fly in

  1. 1

    Start the machine from the installer

    Attach the ISO as the virtual machine’s CD drive, mount it through the server’s management console, or start from a USB stick. The installer explains what it is about to do.

  2. 2

    Set up the network

    Pick the network interface if there are several, then answer whether to use DHCP. Without DHCP, type the address with its prefix, the gateway and the DNS servers.

    Use DHCP? [yes/no]
    > no
    Address with prefix (for example 192.168.1.20/24)
    > 10.0.0.20/24
    Default gateway
    > 10.0.0.1
    DNS servers [1.1.1.1 1.0.0.1]
    >
  3. 3

    Choose the disk

    The installer lists the disks it can use and hides the one it started from. Type the name of the disk to erase, for example sda, vda or nvme0n1. Copying the system takes a few minutes.

  4. 4

    Eject the ISO and restart

    Remove the ISO from the drive and press Enter. The machine starts from its disk, brings up the network, waits for the internet and then shows that it is waiting for another bia to fly here.

  5. 5

    Ask your bia to fly

    Tell an existing bia, for example: “Fly to the server at 10.0.0.20”. On the same network, “Fly to the waiting computer” is enough. Both screens show the same six-digit code: type it on the server’s console and press Enter, and tell your bia that the codes match.

  6. 6

    The server wakes up as bia

    The server restarts with the settings, accounts, chats and memory of the bia that flew in, and reinstalls its extra programs for its own processor.

Virtual machine settings

Any hypervisor works if the virtual machine starts the UEFI way. Attach the unpacked .iso as its CD or DVD drive and give it an empty disk. A virtual machine that already runs Linux can also use the one command.

Proxmox VE

BIOS: OVMF (UEFI), with an EFI disk. Machine type q35. VirtIO disks and network work. Secure Boot with the pre-enrolled keys can stay on for Intel and AMD.

VMware

ESXi, Workstation and Fusion: set the firmware to UEFI in the virtual machine’s boot options.

VirtualBox

Settings → System → turn on “Enable EFI”.

Hyper-V

Create a Generation 2 machine. Set the Secure Boot template to “Microsoft UEFI Certificate Authority”, or turn Secure Boot off.

QEMU, KVM and libvirt

Start with UEFI firmware: OVMF for Intel and AMD, the edk2 AArch64 firmware for ARM. With libvirt: virt-install --boot uefi.

Apple Silicon Mac

Use the ARM installer in an ARM Linux virtual machine, for example in UTM, Parallels or VMware Fusion.

Our automated tests run the installer and the takeover in QEMU, on Intel and ARM, with modern and classic start-up. The other hypervisors follow the same standards, but we do not test them ourselves.

Physical servers and clouds

Rented server (VPS)

Order it with Ubuntu or Debian, log in over ssh and run the one command. Most providers have no screen at all; bia gets a virtual one, so the web app’s screen view still works.

Server with a management console

Run the one command if it already has Linux, or mount the unpacked ISO as virtual media through iDRAC, iLO, IPMI or a similar console and answer the installer in its remote screen.

Cloud machine with your own ISO

Any provider that lets you start your own ISO and gives you a console (VNC or serial) works with the installer. On ARM machines, switch Secure Boot off if it does not start.

Good to know

  • The network comes along. The one command copies the server’s addresses, gateway and DNS, tied to each network card’s hardware address, including static addresses and gateways outside the server’s own network, as many providers use. If they do not work after the restart, bia falls back to DHCP after two minutes.
  • Your certificate is the only way in. bia has no password login. Its web app opens only with a certificate that bia issued — the kind of protection banks and governments use. Keep root’s certificate safe, and ask bia for more certificates for other people later.
  • Two bias, one handshake. Setup instructions can tell a new bia to connect to another one. It gives the other bia a certificate and asks for one back; when the other bia’s owner approves the request (which shows the address it came from), both can work with each other.
  • Flying copies. The bia that flies keeps running, and the server starts as its copy. If only one of them should answer your messages, switch the other one off.
  • Many servers, one setup. Prepare one bia the way every server should be, then fly it to each waiting machine in turn, or let it prepare the servers itself.
  • A waiting server keeps waiting, even after a restart or an update, until a bia flies in.

Prefer a USB stick?

For a computer on your desk, bia deploy makes a stick in a few minutes.