<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mindattic.com/wiki/docs/index.php?action=history&amp;feed=atom&amp;title=Unity.Multiplayer%2Farticles%2Fhosting%2Foracle-oci</id>
	<title>Unity.Multiplayer/articles/hosting/oracle-oci - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mindattic.com/wiki/docs/index.php?action=history&amp;feed=atom&amp;title=Unity.Multiplayer%2Farticles%2Fhosting%2Foracle-oci"/>
	<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=Unity.Multiplayer/articles/hosting/oracle-oci&amp;action=history"/>
	<updated>2026-12-05T13:06:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.3</generator>
	<entry>
		<id>https://mindattic.com/wiki/docs/index.php?title=Unity.Multiplayer/articles/hosting/oracle-oci&amp;diff=925&amp;oldid=prev</id>
		<title>Docs Sync: md2wiki: sync from MindAttic.Docs</title>
		<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=Unity.Multiplayer/articles/hosting/oracle-oci&amp;diff=925&amp;oldid=prev"/>
		<updated>2026-11-29T20:37:00Z</updated>

		<summary type="html">&lt;p&gt;md2wiki: sync from MindAttic.Docs&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Hosting on Oracle Cloud Infrastructure (Oci) =&lt;br /&gt;
&lt;br /&gt;
A UM-T31 profile: Oracle&amp;#039;s &amp;lt;strong&amp;gt;Always Free&amp;lt;/strong&amp;gt; tier gives every tenancy either an Ampere A1 (ARM64) compute allowance (up to 4 OCPUs/24 GB total, split across up to 4 instances) or two AMD &amp;lt;code&amp;gt;VM.Standard.E2.1.Micro&amp;lt;/code&amp;gt; instances, forever, at no cost. &amp;lt;code&amp;gt;mp-host&amp;lt;/code&amp;gt; launches an instance running the same Docker image + rendezvous side-car compose stack as GenericVps, booted via cloud-init passed as base64 &amp;lt;code&amp;gt;user_data&amp;lt;/code&amp;gt; metadata, and widens the subnet&amp;#039;s existing security list to open the ports it needs instead of creating a new per-instance firewall resource.&lt;br /&gt;
&lt;br /&gt;
== Ampere A1 (ARM64) vs the AMD micro shape ==&lt;br /&gt;
&lt;br /&gt;
The ticket for this profile (UM-T31) asked for a Linux ARM64 dedicated-server build to be verified against Ampere A1, falling back to the AMD shape if Unity&amp;#039;s ARM64 server target isn&amp;#039;t usable. &amp;lt;strong&amp;gt;It currently isn&amp;#039;t:&amp;lt;/strong&amp;gt; Unity&amp;#039;s Linux Dedicated Server build goes through &amp;lt;code&amp;gt;UnityEditor.BuildTarget.StandaloneLinux64&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;DedicatedServerBuild.IsLinuxServerSupported()&amp;lt;/code&amp;gt; checks exactly that constant) -- as of this writing, Unity 6&amp;#039;s public &amp;lt;code&amp;gt;BuildTarget&amp;lt;/code&amp;gt; enum has no Linux ARM64 Standalone/Server entry at all, only &amp;lt;code&amp;gt;StandaloneLinux64&amp;lt;/code&amp;gt; (x86_64). There is nothing in the Unity Editor to point at an ARM64 image even if Oracle&amp;#039;s Ampere A1 shape is free and generous. Re-check this against a newer Unity release before assuming it still holds: search &amp;lt;code&amp;gt;UnityEditor.BuildTarget&amp;lt;/code&amp;gt; for a Linux ARM64/Arm64 member, and if one exists, a game can cross-compile (or Unity can build) a matching IL2CPP server and this profile&amp;#039;s &amp;lt;code&amp;gt;shape&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;ocpus&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;memoryInGBs&amp;lt;/code&amp;gt; options already accept &amp;lt;code&amp;gt;VM.Standard.A1.Flex&amp;lt;/code&amp;gt; with no other code change.&lt;br /&gt;
&lt;br /&gt;
Until then, &amp;lt;code&amp;gt;OciProvisioner.DefaultShape&amp;lt;/code&amp;gt; is &amp;lt;strong&amp;gt;&amp;lt;code&amp;gt;VM.Standard.E2.1.Micro&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt; (1/8 OCPU, 1 GB RAM, AMD, x86_64) -- the same architecture as every other mp-host profile&amp;#039;s Linux build, and free forever under the Always Free tier (up to two of them per tenancy). It is small; keep the player count per instance modest, same as any other 1-vCPU host in this hosting table.&lt;br /&gt;
&lt;br /&gt;
== What &amp;lt;code&amp;gt;mp-host deploy&amp;lt;/code&amp;gt; does here ==&lt;br /&gt;
&lt;br /&gt;
# Builds (or reads an already-built) &amp;lt;strong&amp;gt;GenericVps-profile&amp;lt;/strong&amp;gt; server package and image, pushes it to GHCR.&lt;br /&gt;
# Renders the compose file + bootstrap script into a cloud-config document (&amp;lt;code&amp;gt;CloudInitRenderer.RenderCloudConfig&amp;lt;/code&amp;gt;, the same shape AWS/Azure use) and calls &amp;lt;code&amp;gt;POST /20160918/instances&amp;lt;/code&amp;gt; with it as base64 &amp;lt;code&amp;gt;metadata.user_data&amp;lt;/code&amp;gt;, your chosen availability domain, shape and boot image.&lt;br /&gt;
# Reads the subnet&amp;#039;s existing security list (&amp;lt;code&amp;gt;GET /20160918/securityLists/{id}&amp;lt;/code&amp;gt;) and writes back a superset including SSH (22/tcp), the rendezvous port (8080/tcp) and your declared game port -- &amp;lt;strong&amp;gt;never&amp;lt;/strong&amp;gt; removing a rule it did not add, since a security list is shared by the whole subnet, not owned by one instance the way a GCE firewall rule or Azure NSG is.&lt;br /&gt;
# Resolves the instance&amp;#039;s public IP (OCI, unlike GCE/Azure, does not return it on the instance resource itself -- this profile lists the instance&amp;#039;s VNIC attachments, then reads the primary VNIC), then over SSH for &amp;lt;code&amp;gt;GET http&amp;amp;#58;//127.0.0.1:&amp;amp;lt;healthPort&amp;gt;/healthz&amp;lt;/code&amp;gt; once it&amp;#039;s up, exactly like GenericVps.&lt;br /&gt;
# Watches &amp;lt;code&amp;gt;docker compose logs game&amp;lt;/code&amp;gt; over SSH for the join-code line and prints it.&lt;br /&gt;
&lt;br /&gt;
== Before you deploy ==&lt;br /&gt;
&lt;br /&gt;
You need an OCI tenancy, an &amp;lt;strong&amp;gt;API signing key&amp;lt;/strong&amp;gt; (OCI&amp;#039;s own RSA-based request signing -- not a bearer token), and an already-existing VCN with a subnet (mp-host does not create a VCN):&lt;br /&gt;
&lt;br /&gt;
# In the OCI Console: &amp;lt;strong&amp;gt;Profile ▸ My Profile ▸ API Keys ▸ Add API Key&amp;lt;/strong&amp;gt;, generate a key pair, and note the &amp;lt;strong&amp;gt;fingerprint&amp;lt;/strong&amp;gt;, your &amp;lt;strong&amp;gt;user OCID&amp;lt;/strong&amp;gt; and your &amp;lt;strong&amp;gt;tenancy OCID&amp;lt;/strong&amp;gt; (both shown on the same page). Save the private key PEM file somewhere mp-host can read it.&lt;br /&gt;
# Note your &amp;lt;strong&amp;gt;compartment OCID&amp;lt;/strong&amp;gt; (the root compartment&amp;#039;s OCID works for a quick start), an &amp;lt;strong&amp;gt;availability domain&amp;lt;/strong&amp;gt; name (e.g. &amp;lt;code&amp;gt;Uocm:US-ASHBURN-AD-1&amp;lt;/code&amp;gt;), your subnet&amp;#039;s OCID, its &amp;lt;strong&amp;gt;security list&amp;lt;/strong&amp;gt; OCID (Networking ▸ Virtual Cloud Networks ▸ your VCN ▸ Subnet Details ▸ Security Lists), and a platform image OCID for Canonical Ubuntu in your region/shape (Compute ▸ Images, or &amp;lt;code&amp;gt;oci compute image list&amp;lt;/code&amp;gt; if you have the OCI CLI).&lt;br /&gt;
# Generate (or reuse) a local SSH key pair for mp-host&amp;#039;s own SSH access after boot.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;md-code&amp;quot;&amp;gt;mp-host credentials set-oci --tenancy ocid1.tenancy.oc1..aaaa... --user ocid1.user.oc1..aaaa... \&lt;br /&gt;
  --fingerprint aa:bb:cc:dd:ee:ff:... --key C:\Users\me\.oci\oci_api_key.pem \&lt;br /&gt;
  --region us-ashburn-1 --compartment ocid1.compartment.oc1..aaaa...&lt;br /&gt;
mp-host credentials set-ghcr --username &amp;amp;lt;github-username&amp;gt; --token &amp;amp;lt;PAT with write:packages&amp;gt;&lt;br /&gt;
mp-host credentials set-cloud-options --profile Oci --name home-oci \&lt;br /&gt;
  --opt availabilityDomain=Uocm:US-ASHBURN-AD-1 --opt subnetId=ocid1.subnet.oc1..aaaa... \&lt;br /&gt;
  --opt securityListId=ocid1.securitylist.oc1..aaaa... --opt imageId=ocid1.image.oc1..aaaa... \&lt;br /&gt;
  --opt sshUser=ubuntu --opt sshKeyPath=C:\Users\me\.ssh\id_ed25519 \&lt;br /&gt;
  --opt sshPublicKeyPath=C:\Users\me\.ssh\id_ed25519.pub&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The private key PEM must be unencrypted (no passphrase) -- &amp;lt;code&amp;gt;RSA.ImportFromPem&amp;lt;/code&amp;gt; only reads an unencrypted PKCS#1/PKCS#8 PEM. &amp;lt;code&amp;gt;shape&amp;lt;/code&amp;gt; (default &amp;lt;code&amp;gt;VM.Standard.E2.1.Micro&amp;lt;/code&amp;gt;), and &amp;lt;code&amp;gt;ocpus&amp;lt;/code&amp;gt;/&amp;lt;code&amp;gt;memoryInGBs&amp;lt;/code&amp;gt; (Flex shapes only, e.g. &amp;lt;code&amp;gt;VM.Standard.A1.Flex&amp;lt;/code&amp;gt;, default 1/6) are optional overrides -- see &amp;lt;code&amp;gt;OciProvisioner&amp;lt;/code&amp;gt;&amp;#039;s class doc for the full list.&lt;br /&gt;
&lt;br /&gt;
Then deploy:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;md-code&amp;quot;&amp;gt;mp-host deploy --profile Oci --name home-oci --package ./build/GenericVps \&lt;br /&gt;
  --image myorg/mygame --tag v1 --region us-ashburn-1 \&lt;br /&gt;
  --rendezvous-url https&amp;amp;#58;//rendezvous.example.com \&lt;br /&gt;
  --public-address home-oci&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(&amp;lt;code&amp;gt;--region&amp;lt;/code&amp;gt; is accepted for consistency with the other profiles but is not read by this one -- OCI&amp;#039;s region is fixed by the credential&amp;#039;s own &amp;lt;code&amp;gt;--region us-ashburn-1&amp;lt;/code&amp;gt;, since the signed request&amp;#039;s host already encodes it.) Add &amp;lt;code&amp;gt;--dry-run&amp;lt;/code&amp;gt; first to see every Core Services API call mp-host would make, without creating anything.&lt;br /&gt;
&lt;br /&gt;
== Open ports ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Port&lt;br /&gt;
! Protocol&lt;br /&gt;
! Purpose&lt;br /&gt;
|-&lt;br /&gt;
| your game port&lt;br /&gt;
| UDP (or TCP for WebSocket)&lt;br /&gt;
| Players connect here.&lt;br /&gt;
|-&lt;br /&gt;
| 8080&lt;br /&gt;
| TCP&lt;br /&gt;
| The rendezvous service.&lt;br /&gt;
|-&lt;br /&gt;
| 22&lt;br /&gt;
| TCP&lt;br /&gt;
| SSH -- the only way mp-host reaches the box after boot.&lt;br /&gt;
|-&lt;br /&gt;
| health port&lt;br /&gt;
| TCP, bound to 127.0.0.1&lt;br /&gt;
| Not reachable from the internet by design.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Updating and tearing down ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;mp-host update&amp;lt;/code&amp;gt; restarts the compose stack in place over SSH, same as the other cloud VM profiles. &amp;lt;code&amp;gt;mp-host destroy ... --yes&amp;lt;/code&amp;gt; stops the compose stack and terminates the instance, but &amp;lt;strong&amp;gt;leaves the security list&amp;#039;s rules in place&amp;lt;/strong&amp;gt; -- widening them was explicitly additive (see above), and another instance on the same subnet may depend on them; remove a rule yourself once nothing uses it.&lt;br /&gt;
&lt;br /&gt;
== Cost notes ==&lt;br /&gt;
&lt;br /&gt;
Both the AMD micro shape and an Ampere A1 allocation within the free limits are free forever under Oracle&amp;#039;s Always Free tier, including a documented amount of outbound data transfer per month (verify the current free-tier transfer allowance and overage pricing on Oracle&amp;#039;s own pricing page before relying on this for a public launch with heavy traffic) -- &amp;lt;code&amp;gt;mp-host destroy&amp;lt;/code&amp;gt; after each test run still costs nothing extra, but is good hygiene so a forgotten instance doesn&amp;#039;t count against your two-free- AMD-instance or Ampere A1 OCPU/memory limit when you want to spin up another one.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;md2wiki-crumb&amp;quot;&amp;gt;Part of [[Unity.Multiplayer]].&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;md2wiki-source&amp;quot;&amp;gt;From [https://github.com/mindattic/Unity.Multiplayer/blob/main/docs/articles/hosting/oracle-oci.md Unity.Multiplayer/docs/articles/hosting/oracle-oci.md] via MindAttic.Docs; synced automatically, so edit the repo, not this page.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Unity.Multiplayer]]&lt;/div&gt;</summary>
		<author><name>Docs Sync</name></author>
	</entry>
</feed>