Ubuntu VMs: your own machine in the browser

Some things are only learned on a whole machine: installing packages, editing a config file in /etc, running a web server as a service and finding out why it will not start. A VM is an Ubuntu 26.04 machine of your own, with sudo, opened in a terminal in your browser. Break it and start again.

A VM of your own, started at /vm, needs a free account with bought credit, and its disk is kept between visits: open Build on the bar and choose Run an Ubuntu VM. To try one before that, open a lesson with a VM lab: it starts for anybody with no account, ready in a few seconds and gone when it stops.

What each person gets

In a lesson's VM lab with no account: 1 CPU, 1 GB of memory and a 4 GB disk, for up to 20 minutes, and nothing is kept.

With a free account, which comes with enough free credit each month to follow most lessons: 1 CPU, 1 GB and a 8 GB disk, kept between visits. Each session runs for 60 minutes, and up to 4 hours while nobody is waiting for one, with 4 hours a day in all. You may keep 2 and run one at a time.

In a college: 2 CPUs, 2 GB and a 10 GB disk, kept between visits, with no daily limit. You may keep 3 and run 2 at once.

Terminal or desktop

Each VM card has two buttons side by side. Terminal only is the command line, opened in a browser tab. Desktop is the same Ubuntu with a full desktop shown in your browser, for graphical tools. Neither is a way to browse the web: a VM has no web browser and no open internet, only a curated list of sites for learning (official package mirrors, well-known projects’ downloads, GitHub and other Git hosting, and UK and US government data sites). A terminal starts in seconds; a desktop takes about a minute, because it has a screen to start.

Both buttons are paid for from credits you have bought, never from the free ones. A VM of your own costs 120 credits an hour and a desktop 240, so starting one needs 120 credits and a desktop 240: an account tops up first, then starts either as often as the day allows. A top-up from $1 is about 2 hours of a desktop of your own. With no account, pressing either button takes you to make a free account first, and a lesson's lab is how to try a VM before you have one.

A desktop is bigger and costs more a minute, so it needs bought credit. With an account and bought credits: 2 CPUs, 2 GB and a 12 GB disk, promised 60 minutes and up to 240, no daily limit. In a college: 2 CPUs, 4 GB and a 16 GB disk, promised 60 minutes and up to 120, with no daily limit.

A desktop’s minutes and a terminal’s count together toward the day. A saved VM keeps the kind it was made as, because its disk belongs to that kind: to try the other, make a new VM. A desktop comes without a web browser; install the graphical tools you need with apt.

Using one

Press Terminal only (or Desktop, see above), then Open its terminal: you are logged in as student, with sudo and no password. If you leave the machine with exit, press Enter to go back in.

A server listening on port 80, 3000, 5000, 8000 or 8080 opens in your browser from the VM's card while it runs, privately: only you can open it, or a program sending the token shown on the card. Try sudo apt install nginx, then open port 80.

Stop and save keeps everything on its disk, programs you installed and files you wrote alike, and Start again brings it all back. A VM in a lesson’s lab with no account is gone when it stops.

A saved VM that belongs to a free account and has not been started for 90 days is deleted, after an email 7 days before. Starting it once keeps it.

What a VM can reach

Every lab, a VM or a container lab, reaches the internet through its own proxy, and only the hosts on the platform's one list of allowed hosts: the official package mirrors of the main Linux distributions and programming languages (Ubuntu's package archive, PyPI, npm, Maven and Go modules among them), well-known projects' own downloads, GitHub and other Git hosting, Hugging Face, and UK and US government data sites. So apt, pip install, npm install and git clone work, and the list is the same for every VM, a visitor's as much as an account's. A lab may download up to 200 MB. Nothing else on the internet can be reached, by design: a free machine anybody can open must not be one that sends mail or reaches other people's. A host a lab needed and could not reach is seen by the team, who may add it to the list.

Two rules are for public VMs only, those of a visitor or a free account. One that keeps its processor busy for ten minutes with nobody typing in its terminal is stopped, and says why. And when the VMs are busy, one that has had its promised time already gives way to somebody waiting, and is saved as it stops. Public VMs also run at a quarter of a college’s processor weight, and no more than four of them run at once, a queued one waiting without holding anybody else’s up. A college’s own VMs are neither stopped for being busy nor asked to give way.

What it costs, and how to try it

A school or college has its first 365 days free, for up to 50 students and with no card, and everything on this page is part of it. After that the price is per student a year, with staff free and labs, virtual machines and AI included on a fair-use basis. The pricing page has the figure in your currency and a calculator.

Questions people ask

Is it a real machine?
Yes: a virtual machine with its own Linux kernel, not a container, so systemd, services, users and the whole of /etc behave as on any Ubuntu server.
Can a teacher set a VM for a class?
Yes: a lab task whose kind is Ubuntu VM. Each student gets their own, set up by the teacher’s script, and the class list shows what each student changed.
Can I run Docker in it?
Not yet: a VM cannot fetch images from Docker Hub. For containers, use the Container tab, whose terminal has docker for its own services.
Who can see what I do in it?
Nobody else can open its terminal or its ports. Like any work kept on the platform, its saved disk is yours and goes to your deleted items when you delete it.