Gigakubegigakube.ch →Menu ↓

Physical servers (bare metal)

A whole machine for you alone, behind the platform's firewall: you are root on it, we keep its management board.

What a physical server is

A physical server is a real machine, not a virtual one: its CPUs, its memory, its disks and, where it has one, its GPU are yours only. Nothing of ours runs on it: no agent, no key of ours, no monitoring inside. You have full root access and use it as you like (after a reinstall from the panel you log in as ubuntu with your SSH key and use sudo).

Two things stay with the platform:

You rent a physical server yourself from the catalog, and return it when you no longer need it (see Renting a server and Returning a server). From the moment it is yours it is charged by the hour, switched on or off, until you return it: the RTX 5090 server in Varese is CHF 0.80 an hour on the standard price list, VAT excluded (about CHF 584 for a month of 730 hours); your own price is shown in the catalog and in Billing → Your prices (see Billing).

Each project has a monthly limit for physical servers, set by its owner (see The monthly limit): without one, nothing can be rented.

What you can do yourself: rent and return a server, switch it on and off, restart it, hard-reset it, reinstall it, open or close its ports, and allow or block the connections it opens towards the Internet.

Where you find it

In the panel, Cloud → Physical servers. At the top are the servers of the project in the zone you are looking at; below, Rent a server shows the catalog of all the zones of the project and the monthly limit. The RTX 5090 server is in Varese (gk02): to see a server you rented there, choose that zone at the top of the Cloud page (after a rental the page offers to switch for you; with the API and the MCP, location: "gk02").

Each card shows the name, the model, the hardware (CPU, cores, RAM, GPU, disks), the power state and the public address. Click it to open the server.

The power state reads:

State What it means
On The server is running
Off The server is switched off
Starting / Stopping You asked for a change and the server is getting there (a stop can take up to three minutes, see below)
Getting ready The server is yours but its network or its first installation is not finished yet
Being returned You returned it: it is being switched off and its disks erased. It is no longer charged

A blue box says that a reinstall is running; a red one that the last reinstall failed, and why. A yellow box under the state is a message from the platform, for example that a rule cannot be applied (see Open ports).

Addresses

On the server page:

Good to know:

Start, stop, restart, hard reset

The four buttons on the server page:

Button What happens
Start The server is switched on
Stop The operating system is asked to shut down; if the server is still on after three minutes, it is switched off
Restart An orderly restart, as if you had typed reboot (forced if the board cannot do it gently). In the API: reboot
Hard reset A hard reset, at once: whatever is not written to disk is lost. For a server that no longer responds. On a server that is off, it switches it on. In the API: reset

Every button first shows the plan, Before it happens, and waits for Do it, as for virtual machines. You need Can edit or more.

Without credit on the account, Start, Restart and Hard reset are refused (they would switch a stopped server back on): the same rule as for virtual machines, see Billing. Stop always works.

Open ports

Everything from the Internet is closed until you open a port. A rule says protocol, port (or range) and from where; the firewall forwards that port from the public address to the server.

To open one, under Open ports:

  1. Protocol: tcp or udp;
  2. Port: from 1 to 65535;
  3. To (range): the last port, only for a range (for example 60000 to 61000); leave it empty for one port;
  4. From (address or network): an IPv4 address or network. For 80 and 443 you can leave it empty: that means everyone (the rule then shows anywhere);
  5. Open, then Do it.

The bin next to a rule closes it.

The rules are the same as for the firewall of virtual machines, with a few differences:

Physical server Virtual machine
Ports other than 80 and 443 Only with a source Only with a source
Source larger than a /8 (or the whole Internet) for those ports Can manage or owner Can manage or owner
Protocols tcp and udp tcp, udp, icmp
Sources IPv4 only: an IPv6 source is refused IPv4 and IPv6
Changing a rule in place No: close it and open a new one Yes
How many rules At most 32 —

The firewall in front of the server forwards IPv4 only, so a rule with an IPv6 source would look open without being so: the platform refuses it (CLOUD_INVALID_REQUEST, the source must be an IPv4 address or network).

Reinstalling

Reinstalling erases the system disk and installs a fresh Ubuntu Server from our images. The other disks of the server are not touched. There are no passwords: you log in as ubuntu with the SSH key you give, and become root with sudo.

On the server page:

  1. Reinstall (the button appears only if the server offers images);
  2. in Reinstall the server: choose the System (for example ubuntu-26.04) and the SSH key: one of your saved keys, or Paste a key below and paste a public key (ssh-ed25519 …);
  3. Continue: the plan says that the disk will be erased and that this cannot be undone. Type the server's name to confirm, then Do it.

It takes 10 to 30 minutes: the server boots our installer, writes the disk, switches off, and starts again from the new system by itself. Meanwhile the page says Reinstalling with …; you cannot start a second reinstall until it has finished. If it fails, the page says why: try again or write to us. A reinstall switches the server back on, so like starting it, it needs credit on the account (BILLING_NO_CREDIT otherwise). You need Can edit or more.

The open ports stay as they were: if you want to log in, port 22 must be open to your address (see below).

Renting a server

Under Rent a server every model of the zones of your project is shown with its hardware, the systems it can be installed with, how many are free now, and its price for your account, per hour and for a month of 730 hours.

  1. Rent on the model (the button needs a free server, a price on your account, the monthly limit set, and Can edit or more);
  2. give the server a Name (lowercase letters, digits and dashes, up to 40 characters), choose the System and the SSH key: one of your saved keys, or paste a public key (ssh-ed25519 …);
  3. Continue: the plan shows the machine, the image, the key and the price. Do it.

The server is installed with the system and your key in 10 to 30 minutes and then starts by itself; you log in as ubuntu with your key (there are no passwords). Until you open ports nothing reaches it from the Internet (see Open ports): open port 22 to your address to log in. It is charged by the hour from the moment it is yours, on or off, until you return it.

A rental is refused, and nothing is charged:

Why What you see
The account has no credit (prepaid) BILLING_NO_CREDIT, as for every new resource
The project has no monthly limit BAREMETAL_CAP_NOT_SET
This server until the end of the month would take the project over its limit BAREMETAL_CAP_EXCEEDED, with the numbers
The model has no price on your account's price list BAREMETAL_NOT_PRICED: write to us
No server of the model is free CLOUD_CONFLICT
The project already has as many physical servers as its quota allows CLOUD_QUOTA_EXCEEDED
The cloud is not switched on in that zone choose the zone at the top of the Cloud page and switch it on first

The monthly limit

Every project has its own monthly limit for physical servers, in CHF, set by the owner of the project in Cloud → Physical servers (Set the limit, Change the limit, Remove the limit). Only the owner sets it, and only from the panel: not an API key, not an AI agent, not a member with Can manage. Everyone in the project sees it, with what the physical servers have cost so far this month and where the month ends if the servers you have stay until then.

The limit counts the physical servers only; credit and the other resources follow the rules of Billing.

Returning a server

On the server page, Return the server: the plan says what happens, and you type the server's name to confirm, then Do it. You need Can edit or more. Charging stops when the return starts, and the server shows Being returned until it leaves your project.

Then, in this order: its network is cut off from the Internet in both directions; its public address and open ports are withdrawn; any installation disk is removed; it is switched off, and the server is released only once we have checked that it is really off. Then all its disks are erased: the server starts an eraser of ours (from its virtual CD, with no network), which erases every disk with the disk's own erase command where there is one, writes zeros where needed, and reads the disks back to verify they are empty. Only after a verified erase does the server go back to the catalog. If the erase cannot be verified the server is kept aside and our staff erases it by hand: it never goes to anyone else with your data on it.

Before you return a server, copy away what you need: nothing on its disks is kept, and a return cannot be undone.

Not available yet

For developers

What Method MCP tool Role
The catalog of every zone of the project, with prices, free servers and the monthly limit Cloud/getBareMetalCatalog (location? to see one zone only) cloud_get_baremetal_catalog viewer
Rent a server Cloud/rentBareMetal (name, model, image, ssh_key or ssh_key_uuid, hostname?, location: the zone of the model) cloud_rent_baremetal (name, model, image, ssh_key, hostname?, location) operator (credit, monthly limit)
Return a server (erases all its disks) Cloud/returnBareMetal (baremetal_id) cloud_return_baremetal operator
Set or remove the monthly limit Cloud/setBareMetalCap (monthly_chf: a number, or null to remove it) — (panel only) owner, from the panel only: not open to API keys
The physical servers of the project Cloud/getBareMetalList cloud_get_baremetal_list viewer
One server, with its open ports Cloud/getBareMetal (baremetal_id) cloud_get_baremetal viewer
Start, stop, reboot, reset Cloud/bareMetalAction (baremetal_id, action: start, stop, reboot, reset) cloud_baremetal_action operator
Reinstall (destroys the system disk) Cloud/reinstallBareMetal (baremetal_id, image, ssh_key or ssh_key_uuid of a saved key, hostname?) cloud_reinstall_baremetal (baremetal_id, image, ssh_key, hostname?) operator
Open a port Cloud/openBareMetalPort (baremetal_id, port, port_max?, protocol: tcp/udp, default tcp, source?) cloud_open_baremetal_port operator (admin for non-web ports to sources larger than /8)
Close a port Cloud/closeBareMetalPort (baremetal_id, rule_id) cloud_close_baremetal_port operator
Allow or block outgoing connections Cloud/setBareMetalEgress (baremetal_id, enabled) cloud_set_baremetal_egress operator

All the writes accept dry_run (the plan, without changing anything) and, with a key that requires approval, become a change request (Plans and change requests).

Each server in the list (items) has:

Field What
id The id to use as baremetal_id
name, model, display_name The server's name, its model and the model's name for people
hardware cpu, cores, memoryGiB, gpu, disks, architecture
status provisioning (not ready yet), active, returning (returned: being switched off and erased, no longer charged), error
power_state On or Off as read from the board; null when not known yet
wanted_power_state On or Off, what was last asked
public_address, private_address The public IPv4 address and the address on the server
egress true: the server can open connections to the Internet, from its public address; false: it only answers on its open ports (set with setBareMetalEgress)
images The images it can be reinstalled with; empty: reinstalling is not available for this server
reinstall The last reinstall, or null: status (running, done, failed), image, started_at, message
message What the platform has to say, or null
created_at When the server was rented or assigned to the project

Cloud/getBareMetal answers with server (the same fields) and rules, the open ports (id, protocol, port, port_max, source; source null means everyone). Cloud/bareMetalAction and Cloud/reinstallBareMetal answer with the updated server; opening and closing a port answer with server_id and the new rules.

A reinstall needs image among the server's images and a valid SSH public key; hostname (lowercase letters, digits and dashes) is the machine name, by default the server's name. While one is running another answers CLOUD_CONFLICT; a server without images answers CLOUD_NOT_SUPPORTED; without credit, BILLING_NO_CREDIT. The tool is marked as destroying: its plan (dry_run) carries confirm_text, the server's name, which the assistant and whoever approves a change request must type. A key that does not require approval reinstalls at once.

Cloud/getBareMetalCatalog answers with models (each: model, display_name, hardware, images, free, location and location_name, active: whether the cloud of the project is switched on in that zone, price_chf_hour and price_chf_month for your account; a price of zero means it cannot be rented) and cap: monthly_chf (null without a limit), spent_chf this month, hourly_chf of the servers the project has now, projected_chf at the end of the month, can_set (you are the owner, from the panel), month. Cloud/rentBareMetal answers with server, status provisioning; Cloud/returnBareMetal with server, status returning. Cloud/setBareMetalCap answers with the new cap; anyone but the owner gets BAREMETAL_CAP_OWNER_ONLY, an amount below 0 or above 1,000,000 BAREMETAL_CAP_INVALID. The return tool is marked as destroying: its plan carries confirm_text, the server's name.

The order is taken at once and the platform carries it out on the board and on the firewall shortly after: the answer does not wait for it, and there is no job to follow. Read the server again to see power_state follow wanted_power_state.

Cloud/openBareMetalPort refuses a protocol other than tcp or udp, a source that is not IPv4, a 33rd rule (all CLOUD_INVALID_REQUEST) and, without the admin role, a source larger than a /8 for ports other than 80 and 443 (CLOUD_FORBIDDEN). Cloud/setBareMetalEgress takes enabled: true allows the connections the server opens towards the Internet, false blocks them; private and reserved destinations and port 25 stay closed either way. All these methods take location (the zone of the server, for example gk02).

Example, SSH from one address:

curl -s https://gigakube.ch/api/rpc \
  -H "Authorization: Bearer $GIGAKUBE_API_KEY" -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"Cloud/openBareMetalPort","params":{"call_data":{"baremetal_id":"<id>","port":22,"protocol":"tcp","source":"203.0.113.7/32"}}}'

A hard reset, plan first:

curl -s https://gigakube.ch/api/rpc \
  -H "Authorization: Bearer $GIGAKUBE_API_KEY" -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"Cloud/bareMetalAction","params":{"call_data":{"baremetal_id":"<id>","action":"reset","dry_run":true}}}'