Linux Cloud Images
A cloud image is a Linux server that's already installed. VirtualProg downloads it once, and cloud-init sets up each VM made from it on its first start: your account, your SSH key, the hostname and a disk grown to the size you chose. There is no installer to click through, and the VM is ready in under a minute. Cloud images need a Mac with Apple silicon.
Images
| Image | Alias |
|---|---|
| Ubuntu Server 26.04 LTS | ubuntu-cloud |
| Debian 13 | debian-cloud |
| Fedora Cloud 44 | fedora-cloud |
| Rocky Linux 10 | rocky-cloud |
| CentOS Stream 10 | centos-cloud |
| openSUSE Leap 16.1 | opensuse-leap-cloud |
| openSUSE Tumbleweed | opensuse-tumbleweed-cloud |
| Alpine Linux 3.24 | alpine-cloud |
Each image comes from its publisher and is checked against the publisher's checksum before it is used. They are listed under Cloud Images in the Image Catalog. The first VM from an image takes a minute longer, while VirtualProg prepares the image once.
Your Own Images
Add an image the catalog doesn't have, such as an older release or one you built yourself: click + in the Image Catalog, choose Linux Cloud Image, then give a Name and the image's Download URL (https) or a Local File.
- Checksum (optional): a SHA-256 or SHA-512 hash, or the URL of the publisher's checksum
file, such as
SHA256SUMS. Without one, the image is used as downloaded and marked Unverified. - Distribution: sets the account up to suit it. Alpine gets
doasand the packages Guest Tools need; Other Linux keeps the image's own login shell. - Formats: qcow2, raw (
.img,.raw), or either compressed as.xzor.gz, which is unpacked after the download..zst,.zip,.tar, VMDK and installer ISOs are refused with a message saying why, as is a web page served instead of the image.
The image must be built for ARM64 (aarch64), boot with UEFI and include cloud-init,
as the publishers' "generic cloud" images are. A URL that names another processor, such as
x86_64 or amd64, gets a warning. If a VM from it has no IP address after three minutes, the
VM list's hint says the image may not boot; open the VM's window to see why.
Your images appear under Your Images in Quick Create and work everywhere the built-in ones
do, by name or by their custom- alias. Delete in the Image Catalog removes the image and its
downloaded file; VMs made from it keep their own disks.
vpvm images add --type cloud --name "Ubuntu 24.04" \
--url https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-arm64.img \
--checksum https://cloud-images.ubuntu.com/noble/current/SHA256SUMS --distro ubuntu
vpvm images get "Ubuntu 24.04"
vpvm create web2 --image "Ubuntu 24.04"
vpvm images add --type cloud --name "My Build" --path ~/Images/build-arm64.qcow2 --distro other
Create a VM
📸 Screenshot:
- Open Quick Create, choose Linux, then set Source to Cloud Image.
- Pick an image. Click Download if it isn't downloaded yet.
- Enter the account: User (your Mac user name by default), a Password, an SSH Key,
or both. Click Choose… to pick a public key such as
~/.ssh/id_ed25519.pub. - Click Create. Disks start at 20 GB and grow to the size you set.
Sign in on the VM's screen, or with ssh user@ip. The account can use sudo without a password
(doas on Alpine). The VM gets its hostname from the VM name and its IP address over DHCP.
💡 Cloud images are servers, without a desktop. Install one with the distribution's package manager if you need it.
Several VMs at Once
Count, next to the name in Quick Create, makes up to 10 VMs from the image in one go, for a lab, a test cluster or an Ansible inventory. The name becomes a prefix: web with Count 3 makes web1, web2 and web3 (a name ending in a digit gets a hyphen: node2-1). Names already in use are skipped. Hovering over Count shows the names it will use, and the button reads Create 3 VMs.
All of them get the same account, SSH keys, user data, processors, memory and disk. Each is its own machine: its own hostname, IP address, MAC address, machine ID and SSH host keys. The image is prepared once; the other disks take seconds. The Mac app starts them once they are made (without windows when Headless is on); from the web dashboard, the mobile apps and the command lines, start them yourself.
- Together they may not use more than the Mac's memory: 4 VMs of 2 GB on an 8 GB Mac, for example. Give each less memory or make fewer.
- Open Advanced Config is off for several VMs; change their settings afterwards in each VM's configuration.
- If some can't be made, the rest are kept, and a message lists which failed and why.
To set each VM up differently, use cloud-init's own variables in the user data. Start it with
## template: jinja, and {{ v1.local_hostname }} becomes each VM's hostname:
## template: jinja
#cloud-config
write_files:
- path: /etc/motd
content: "This is {{ v1.local_hostname }}\n"
vpvm create web --image ubuntu-cloud --count 3
vpvm start web1,web2,web3
for vm in web1 web2 web3; do vpvm wait "$vm"; done
See A k3s Cluster below for a cluster made this way.
When the VM Is Ready
Until the setup is done, the VM list shows how far it has got:
| Stage | Means |
|---|---|
| Starting | The VM is booting. |
| Network up | The VM has an IP address. |
| SSH ready | You can sign in with SSH. |
| Finishing setup | Guest Tools are running; cloud-init is finishing its last steps. |
| Setup failed | cloud-init reported errors; hover over the stage to see them, or click it for the setup logs. |
Guest Tools are installed on the first start, so the clipboard, Live
Resources, Shut Down and Restart work without any steps in the VM. On Alpine, the setup first
enables the community repository and installs the packages Guest Tools need. If Guest Tools
haven't reported after a few minutes, for example without internet, see
/var/log/virtualprog-guest-tools-install.log in the VM; the setup tries again at the next
start.
Once the setup is done, the password's hash is left out of the setup disk: cloud-init has applied it, and the VM keeps it. It's put back only when the VM is set up again.
vpvm wait web1 waits until the VM is ready and prints its IP address. vpvm ssh web1 signs in
as the VM's user and checks the SSH host keys Guest Tools reported, so ssh doesn't ask whether
to trust the host. See Command Line.
When Setup Fails
Click Setup failed in the VM list for the Setup Logs, which Guest Tools collect when the setup fails and keep with the VM after it stops. A notification says so too, with the likeliest reason; click it, or Show Logs, to open them. It follows Notifications in Settings. The Setup Logs show, most telling first:
- cloud-init's errors
- the schema check of the user data (
cloud-init schema --system): a misspelled key or a value of the wrong type - this boot's warnings and errors from
/var/log/cloud-init.log - the end of this boot's output from
/var/log/cloud-init-output.log, where failed package installs andruncmdoutput end up cloud-init status --long, and the slowest steps fromcloud-init analyze blame
Collect Again asks the running VM for the current logs, for example after fixing something by
hand; Copy All copies them as text. The logs are also under Setup Logs… in the VM's
right-click menu in the Control Center and in the Virtual Machine menu
(also in the VM's window), under Setup Logs in its
Cloud-Init settings, in the VM details of the web dashboard and the mobile
apps, and in vpvm cloud-init logs web1. Quanta reads them too when you ask why a setup failed.
If Guest Tools never reported, there are no logs to collect; see
/var/log/virtualprog-guest-tools-install.log in the VM, as described above.
Change the Account Later
The Cloud-Init tab in the VM's configuration changes the user, password, SSH keys and hostname. Changes apply at the next start, when cloud-init sets the VM up again; files and SSH host keys stay as they are. Set up again at next start reruns the setup without other changes. A plain restart never sets the VM up again; see When Changes Apply. Turn Enable off to stop attaching the setup disk; the VM keeps the account it has.
Clones, linked clones, templates and VMs made from snapshots set themselves up as new machines on their first start: a new hostname, machine ID, SSH host keys and IP address.
Your Own Setup (User Data)
User Data in Quick Create and in the Cloud-Init tab adds your own cloud-init setup: packages to install, commands to run, files to write. It runs once, on the first start, after VirtualProg has set up the account, network and Guest Tools:
#cloud-config
package_update: true
packages:
- docker.io
- git
runcmd:
- systemctl enable --now docker
- usermod -aG docker admin
Start with #cloud-config for cloud-init settings, or with #!/bin/sh (or another interpreter)
for a script. Most user data written for other clouds works as it is. VirtualProg checks it as you
type, with line numbers, and Preview shows the whole file on the setup disk. See
User Data.
Reusable Setups (Templates)
To make many VMs with the same account, SSH keys and user data, set one VM up and save it as a template. Each VM made from the template sets itself up as a new machine on its first start: its own hostname (from the new VM name), machine ID, SSH host keys and IP address. On APFS the copy shares the template's disk space until the VM changes it.
- Create a VM from a cloud image with the account, SSH keys and user data you want.
- Choose when to save the template:
- Before the first start: every VM runs the whole setup, including your user data, from a fresh image. Each first start takes as long as a new VM's.
- After the setup is done: packages and files from your user data are already in the template, so VMs are ready sooner. Shut the VM down first.
- Right-click the VM in the Control Center and choose Create Template.
- In the Templates window, right-click the template and choose Create Virtual Machine.
A template saved after the setup runs your user data again in each new VM, because each one is a
new setup. Write it so it can run twice: installing packages that are already there is quick,
but a runcmd that appends to a file appends again. To change the account or user data for all
future VMs, edit the template's Cloud-Init settings in its Configuration; to
change one VM, use that VM's Cloud-Init tab.
A k3s Cluster
k3s is a small Kubernetes. Three VMs make a cluster of one server and two agents, all on the Mac's shared network:
-
Make the server with an SSH key, then start it and note its IP address:
vpvm create k3s-server --image ubuntu-cloud --memory 2048 --user-data server.yaml vpvm start k3s-server && vpvm wait k3s-serverserver.yamlinstalls k3s with a token you choose: -
Make the agents with
--count, giving them the server's IP address from step 1 (192.168.64.10 here) and the same token inagent.yaml: -
Once the agents' setup is done, check the nodes on the server:
To use kubectl on the Mac, copy /etc/rancher/k3s/k3s.yaml from the server and replace
127.0.0.1 in it with the server's IP address. The token is in the user data, which stays on the
VMs' setup disks: use a token only for this cluster.
💡 If the server's IP address changes, the agents lose it. Put the new address in
K3S_URLin/etc/systemd/system/k3s-agent.service.envon each agent, then runsudo systemctl restart k3s-agent.
Coding Agents
A cloud image VM is a good place to run an AI coding agent without permission prompts, away from your Mac's files and keys. See Coding Agents in a VM.
Command Line, Web and Mobile
The web dashboard, the mobile apps and their command lines create cloud image VMs the
same way, and show the setup's stage and setup logs; their command lines have wait and
cloud-init logs. With vpvm:
vpvm create web1 --image ubuntu-cloud
vpvm create db1 --image debian-cloud --user admin --ssh-key ~/.ssh/id_ed25519.pub --disk 40
vpvm config cloud-init web1 --password-stdin < password.txt
vpvm config cloud-init web1 --rerun
vpvm create dev1 --image ubuntu-cloud --user-data setup.yaml
vpvm create web --image ubuntu-cloud --count 3
vpvm config cloud-init dev1 --user-data setup.yaml
vpvm cloud-init logs dev1
Without --password or --ssh-key, vpvm create authorises your default key in ~/.ssh, or
asks for a password. The image is downloaded first when it isn't yet. The
MCP server creates them with vm_manage (count for several), edits them in the cloud_init
section (user_data included), waits for them with vm_query's ready action and reads the
setup logs with its cloud_init_logs action. Asked for a cloud image VM, Quanta opens Quick Create on the image, so the
password never goes through the chat.
