OpenStack
For operators whose GPUs are an OpenStack cloud: HIPS Provider runs in instances you launch yourself, as on any Linux server, with the data-center flag and an enrollment code. It covers HIPS Provider 0.1.31 and later. Everything on the [Data centers](/docs/providers/data-centers) guide holds inside the instance; this page adds what OpenStack changes.
- A virtual machine whose flavor passes a whole GPU through, by a PCI alias in its
pci_passthrough:aliasproperty, as Nova's PCI passthrough guide describes. - A bare-metal server from Ironic, with its GPUs as they are.
- HIPS needs no access to your OpenStack API, your project or your credentials: you launch the instance, and HIPS Provider inside it connects out to HIPS.
HIPS Provider works on whole GPUs: a GPU with MIG on takes no work (Troubleshooting, below).
| What | What it needs |
|---|---|
| Flavor | A whole GPU passed through, or a bare-metal flavor. The flavor's GPUs are the instance's GPUs |
| Guest CPU | The instructions on Requirements: aes, pclmulqdq, ssse3, avx, avx2, adx and bmi2 on x86_64 |
| Image | Ubuntu 24.04, or Ubuntu 22.04 with its HWE kernel, so the kernel has Landlock ABI 4 |
| Driver | NVIDIA's driver in the guest, with its compute libraries and nvidia-smi |
| Disk | Room for the model cache on the instance's disk, or a volume mounted at /var/lib/hips-provider/models |
| Network | No inbound rule; outbound TCP 443, DNS, and the metadata service; a route out through a router or NAT |
- What
- Flavor
- What it needs
- A whole GPU passed through, or a bare-metal flavor. The flavor's GPUs are the instance's GPUs
- What
- Guest CPU
- What it needs
- The instructions on Requirements:
aes,pclmulqdq,ssse3,avx,avx2,adxandbmi2on x86_64
- What
- Image
- What it needs
- Ubuntu 24.04, or Ubuntu 22.04 with its HWE kernel, so the kernel has Landlock ABI 4
- What
- Driver
- What it needs
- NVIDIA's driver in the guest, with its compute libraries and
nvidia-smi
- What
- Disk
- What it needs
- Room for the model cache on the instance's disk, or a volume mounted at
/var/lib/hips-provider/models
- What
- Network
- What it needs
- No inbound rule; outbound TCP 443, DNS, and the metadata service; a route out through a router or NAT
On KVM and QEMU, Nova's effective default is the host-model CPU mode (Nova's CPU models guide): the named CPU model closest to the host's, which carries these instructions on a host that has them. A cloud that sets cpu_mode to custom gives guests the models its cpu_models list names, and a model older than these instructions lacks them: such a cloud names a newer model, or adds the flags with cpu_model_extra_flags. Inside the guest, this lists the ones it sees, which should be all seven:
Shell
grep -o -w -E 'aes|pclmulqdq|ssse3|avx|avx2|adx|bmi2' /proc/cpuinfo | sort -uUse Ubuntu 24.04, whose kernel is Linux 6.8, or Ubuntu 22.04 with its HWE kernel (linux-generic-hwe-22.04, Linux 6.8 from 22.04.5) and one restart. HIPS Provider installs nothing for an NVIDIA GPU, so the guest needs NVIDIA's driver: an image that carries it, or Ubuntu's own packages. A cloud's Ubuntu image can lack the ubuntu-drivers tool (OVHcloud's does), so the cloud-init file below refreshes the package lists and installs ubuntu-drivers-common first, then the server driver with ubuntu-drivers install --gpgpu and nvidia-smi with Ubuntu's nvidia-utils package of the same version; ubuntu-drivers list --gpgpu shows the version for the GPU. The new driver loads after one restart, which the file makes. Inside the guest, the GPU, the kernel and the driver are checked with:
Shell
lspci -nn | grep -i nvidiauname -rnvidia-smiThe model cache holds the models HIPS plans for the instance, and models are large, so give the instance a root disk with room for them, or a Cinder volume mounted at /var/lib/hips-provider/models before HIPS Provider starts. On a server with the data-center flag the cache may by default use most of its drive's free space; cache_budget_bytes caps it (Settings reference).
- No inbound rule and no floating IP: HIPS Provider listens on no port for connections from outside. Add an SSH rule from your own network only if you log in over SSH.
- Outbound TCP 443 to the hosts the Network section lists, and DNS. HIPS Provider uses no HTTP proxy, and the connection to
providers.hips.comcannot pass TLS inspection. - Outbound TCP 80 to the metadata service,
169.254.169.254, from which cloud-init reads its user data, unless the instance takes it from a config drive; and to the distribution's package mirrors, where they are reached over HTTP. - A route out: the instance's network attached to a router with an external gateway, or another NAT.
HIPS Provider needs no inbound port, so where a cloud's default security group allows inbound traffic, close it with a security group or the guest's own firewall. A new security group allows all outbound traffic and nothing inbound; this one allows only what HIPS Provider and the first boot need:
Shell
openstack security group create hips-provider \ --description "HIPS Provider: nothing inbound, HTTPS and DNS outbound" # A new group allows all outbound traffic. To allow only what HIPS Provider# needs, delete those rules and add the ones below.for rule in $(openstack security group rule list hips-provider --egress -f value -c ID); do openstack security group rule delete "$rule"doneopenstack security group rule create hips-provider --egress --ethertype IPv4 --protocol tcp --dst-port 443openstack security group rule create hips-provider --egress --ethertype IPv4 --protocol udp --dst-port 53openstack security group rule create hips-provider --egress --ethertype IPv4 --protocol tcp --dst-port 53# HTTP: the metadata service (169.254.169.254), which hands cloud-init its# user data, and the distribution's package mirrors.openstack security group rule create hips-provider --egress --ethertype IPv4 --protocol tcp --dst-port 80On a network with IPv6, add the same outbound rules with --ethertype IPv6. Where the project cannot make its own security groups, the guest's firewall closes the instance instead: Ubuntu's ufw, turned on before anything else by these lines at the top of the cloud-init file, which allow SSH from your own address alone:
Firewall in the cloud-init file
bootcmd: - [ufw, default, deny, incoming] - [ufw, default, allow, outgoing] - [ufw, allow, from, "<your address>", to, any, port, "22", proto, tcp] - [ufw, --force, enable]Each instance links to your provider account with an enrollment code, with nobody approving it. Create one in the HIPS Console, on the provider side, under Connect many machines: it is shown once, and it can carry a label, an expiry and a maximum number of machines.
Note
User data is not secret: anything running inside the instance can read it from the metadata service. Keep the files that hold the code readable by you alone, give a code in user data a short expiry and a maximum of machines no higher than the instances you launch, and revoke it once they have linked. Revoking a code stops new machines from joining and leaves those it linked as they are.
Each machine a code links spends one of its uses. An instance whose disk is replaced, by a rebuild or by Ironic's cleaning, runs its user data again and spends another.
This user data installs NVIDIA's driver, writes the code to a file only root can read, gives HIPS Provider its stop time, and runs the one-line installer with the data-center flag and the code. It restarts the instance once where the new driver needs it. Save it as hips-provider.yaml and put your code in place of <your enrollment code>:
hips-provider.yaml
#cloud-config# HIPS Provider on an OpenStack GPU instance: NVIDIA's driver, then HIPS# Provider with the data-center flag, linked with an enrollment code.package_update: truepackages: - ubuntu-drivers-common write_files: - path: /root/hips-enrollment-code owner: root:root permissions: "0600" content: | <your enrollment code> # The time HIPS Provider has to stop: keep the image's os_shutdown_timeout # above it, so the guest finishes shutting down in time. - path: /etc/systemd/system/hips-provider.service.d/50-stop-timeout.conf owner: root:root permissions: "0644" content: | [Service] Environment=HIPS_STOP_TIMEOUT=130 TimeoutStopSec=130s runcmd: # NVIDIA's server driver and nvidia-smi from Ubuntu's own packages, in the # version ubuntu-drivers list --gpgpu offers for the GPU. Leave this line # out when the image carries the driver. - [sh, -c, 'ubuntu-drivers install --gpgpu nvidia:580-server && apt-get install -y nvidia-utils-580-server'] - [sh, -c, 'curl -fsSL https://hips.com/install.sh | HIPS_DATA_CENTER=1 HIPS_ENROLLMENT_CODE="$(cat /root/hips-enrollment-code)" sh'] # The new driver loads at the next boot: restart once where the system asks.power_state: mode: reboot condition: test -f /var/run/reboot-required- cloud-init runs the installer as root, so no
sudois needed. It installs the package, starts the service, declares the instance a data-center server and links it with the code, before the new driver loads; after the restart the GPU works and goes through HIPS's check. HIPS_STOP_TIMEOUTandTimeoutStopSecare the time HIPS Provider has when the instance shuts down. Keep the image's shutdown time above them (Graceful shutdown, below). 125 seconds or more lets a running job use the whole default drain window.- On an image that carries NVIDIA's driver, leave out the driver line,
packagesandpower_state. A cloud may offer such an image beside its plain one, as OVHcloud offersUbuntu 24.04 - NVIDIA - v580.
- 01
Create the security group, as above.
- 02
Create the server with the GPU flavor, the image, the network, the security group and the user data.
--key-nameis optional, for SSH. - 03
Follow it: the server's status, then its console log, where cloud-init writes its progress and the installer's lines.
- 04
Inside the instance, wait for cloud-init and read HIPS Provider's status. A new instance shows in My GPUs on the provider side of the HIPS Console, and its GPU goes through HIPS's check.
openstack server create hips-gpu-1 \ --flavor <GPU flavor> \ --image "Ubuntu 24.04" \ --network <network> \ --security-group hips-provider \ --key-name <key pair> \ --user-data hips-provider.yaml \ --waitThe commands inside the instance need a shell there: launch it with --key-name and allow SSH from your own network in a security group of its own, or use your cloud's console with a user the image allows to log in.
The same with the OpenStack provider for Terraform and OpenTofu, which reads your cloud's credentials from the OS_* variables, or from clouds.yaml with OS_CLOUD naming the cloud. The instance takes the security groups you name, the project's default unless you name others, such as the one made above:
terraform { required_providers { openstack = { source = "terraform-provider-openstack/openstack" } }} variable "flavor" { type = string }variable "network" { type = string }variable "image" { type = string default = "Ubuntu 24.04"}variable "key_pair" { type = string default = null}variable "security_groups" { type = list(string) default = ["default"]}variable "enrollment_code" { type = string sensitive = true}variable "stop_timeout" { type = number default = 130} resource "openstack_compute_instance_v2" "hips_provider" { name = "hips-gpu-1" image_name = var.image flavor_name = var.flavor key_pair = var.key_pair security_groups = var.security_groups network { name = var.network } user_data = <<-EOT #cloud-config package_update: true packages: - ubuntu-drivers-common write_files: - path: /root/hips-enrollment-code owner: root:root permissions: "0600" content: | ${var.enrollment_code} - path: /etc/systemd/system/hips-provider.service.d/50-stop-timeout.conf owner: root:root permissions: "0644" content: | [Service] Environment=HIPS_STOP_TIMEOUT=${var.stop_timeout} TimeoutStopSec=${var.stop_timeout}s runcmd: - [sh, -c, 'ubuntu-drivers install --gpgpu nvidia:580-server && apt-get install -y nvidia-utils-580-server'] - [sh, -c, 'curl -fsSL https://hips.com/install.sh | HIPS_DATA_CENTER=1 HIPS_ENROLLMENT_CODE="$(cat /root/hips-enrollment-code)" sh'] power_state: mode: reboot condition: test -f /var/run/reboot-required EOT}OpenTofu takes the same commands with tofu in place of terraform. terraform destroy deletes the instance: pause it first, as below.
- The flavor is a bare-metal flavor, and the server's own GPUs are the instance's: no PCI alias, and no guest CPU model, since the processor is the server's own.
- The image is a whole-disk image Ironic deploys, with the same kernel and driver as above, and the same cloud-init file, read from the metadata service or a config drive.
- Ironic cleans a node between deployments, by default erasing the previous tenant's data (Ironic's node cleaning guide), so a node deployed again is a new device to HIPS: it links again and spends a use of its code. The device it was before stays in My GPUs, offline, and can be removed there.
- Taking the node back is the same as for a virtual machine: pause with
--wait, then stop or delete the instance.
sudo hips-provider status shows the link, the data-center flag and each GPU. In the HIPS Console, My GPUs shows the new machine, and a new GPU goes through HIPS's check before it takes paid work. Every command of the Data centers guide runs inside the instance: hips-provider pause --wait before you need the GPU, and hips-provider resume after.
Pause HIPS Provider with --wait, so running work finishes and the GPU's memory is free, then stop or delete the instance:
Shell
ssh ubuntu@<instance> 'sudo hips-provider pause --wait --timeout 10m --reason "back to our cloud"'openstack server stop hips-gpu-1| Action | For HIPS |
|---|---|
openstack server stop, then start | The same device: the disk is kept. Nova asks the guest to shut down, and HIPS Provider stops within its stop time. A server's pause lasts through it, and hips-provider resume ends it |
openstack server reboot | The same device. A soft reboot asks the guest to shut down cleanly, and Nova reboots it hard if it has not within 120 seconds ([libvirt] wait_soft_reboot_seconds), less than the 130 seconds the cloud-init file gives HIPS Provider; --hard cuts it off like a power loss. Pause with --wait before either, so no job is cut |
openstack server rebuild | A new device: the disk is replaced from the image, the user data runs again and spends another use of the code. Remove the old device in My GPUs |
openstack server delete | The device stays in My GPUs, offline. Pause it with --wait first, then remove it in My GPUs, which revokes its certificates |
- Action
openstack server stop, thenstart- For HIPS
- The same device: the disk is kept. Nova asks the guest to shut down, and HIPS Provider stops within its stop time. A server's pause lasts through it, and
hips-provider resumeends it
- Action
openstack server reboot- For HIPS
- The same device. A soft reboot asks the guest to shut down cleanly, and Nova reboots it hard if it has not within 120 seconds (
[libvirt] wait_soft_reboot_seconds), less than the 130 seconds the cloud-init file gives HIPS Provider;--hardcuts it off like a power loss. Pause with--waitbefore either, so no job is cut
- Action
openstack server rebuild- For HIPS
- A new device: the disk is replaced from the image, the user data runs again and spends another use of the code. Remove the old device in My GPUs
- Action
openstack server delete- For HIPS
- The device stays in My GPUs, offline. Pause it with
--waitfirst, then remove it in My GPUs, which revokes its certificates
When Nova stops or rebuilds an instance it asks the guest to shut down and waits for its shutdown time before it turns it off: shutdown_timeout in Nova's configuration, 60 seconds by default, or the image's os_shutdown_timeout property. HIPS Provider's unit has 45 seconds by default, within Nova's 60, and a running job gets 40 of them. To give jobs longer, raise the drop-in's values as the cloud-init file does, and the image's shutdown time above them:
Shell
openstack image set --property os_shutdown_timeout=150 "<your image>"Nova copies the property to an instance when it launches or rebuilds it, so set it before launching: a running instance keeps the value it started with.
Whatever the timeouts, pause with --wait before you stop or delete an instance, so no job is cut.
HIPS Provider updates itself inside the instance, as on any server (Updates). A new instance from the same user data installs the newest release.
Never snapshot a linked instance (openstack server image create) to launch others from it: each instance from the snapshot starts with the same device key, HIPS revokes a certificate a second machine presents as compromised, and the device stops taking work. To bake HIPS Provider into an image, install it with HIPS_NO_LINK=1 and link each instance at its first boot with its user data, as Images and reimaged servers says.
| What you see | What to check |
|---|---|
No GPU in the guest: lspci lists no NVIDIA device | The flavor's pci_passthrough:alias, and that a host with a free GPU took the instance |
hips-provider status says "No usable GPU driver (CUDA and Vulkan unusable)", or nvidia-smi fails | NVIDIA's driver in the guest, and the restart after installing it. /var/log/cloud-init-output.log shows what the driver line did |
sandbox_unavailable | The kernel: uname -r shows 6.7 or later on a kernel with Landlock enabled. On Ubuntu 22.04, install linux-generic-hwe-22.04 and restart |
| HIPS Provider names a missing processor instruction | The guest CPU model: the cloud's cpu_mode and cpu_models, as above |
hips-provider status says "not connected: HIPS could not be reached; trying again" | Outbound TCP 443 and DNS in the security group and the guest's firewall, a route out, no proxy as the only way out, and no TLS inspection of providers.hips.com |
| cloud-init did not run the installer | /var/log/cloud-init-output.log, and outbound TCP 80 to 169.254.169.254 or a config drive |
| The installer says the code is not an enrollment code (exit 2), or HIPS refused it (exit 9) | The enrollment code: one line, hips_ec_ and 40 letters and digits; expired, revoked or used up. Create a new one and link the instance with sudo hips-provider connect --enrollment-code-file <file>, or rebuild it with new user data |
| MIG on the GPU | HIPS uses whole GPUs. Turn MIG off with nvidia-smi -mig 0. An A100 or A30 then needs a GPU reset, and where the guest cannot reset it, restart the instance; a Hopper or later GPU needs none |
- What you see
- No GPU in the guest:
lspcilists no NVIDIA device - What to check
- The flavor's
pci_passthrough:alias, and that a host with a free GPU took the instance
- What you see
hips-provider statussays "No usable GPU driver (CUDA and Vulkan unusable)", ornvidia-smifails- What to check
- NVIDIA's driver in the guest, and the restart after installing it.
/var/log/cloud-init-output.logshows what the driver line did
- What you see
sandbox_unavailable- What to check
- The kernel:
uname -rshows 6.7 or later on a kernel with Landlock enabled. On Ubuntu 22.04, installlinux-generic-hwe-22.04and restart
- What you see
- HIPS Provider names a missing processor instruction
- What to check
- The guest CPU model: the cloud's
cpu_modeandcpu_models, as above
- What you see
hips-provider statussays "not connected: HIPS could not be reached; trying again"- What to check
- Outbound TCP 443 and DNS in the security group and the guest's firewall, a route out, no proxy as the only way out, and no TLS inspection of
providers.hips.com
- What you see
- cloud-init did not run the installer
- What to check
/var/log/cloud-init-output.log, and outbound TCP 80 to169.254.169.254or a config drive
- What you see
- The installer says the code is not an enrollment code (exit 2), or HIPS refused it (exit 9)
- What to check
- The enrollment code: one line,
hips_ec_and 40 letters and digits; expired, revoked or used up. Create a new one and link the instance withsudo hips-provider connect --enrollment-code-file <file>, or rebuild it with new user data
- What you see
- MIG on the GPU
- What to check
- HIPS uses whole GPUs. Turn MIG off with
nvidia-smi -mig 0. An A100 or A30 then needs a GPU reset, and where the guest cannot reset it, restart the instance; a Hopper or later GPU needs none
Related sheets
- Sheet
- 15 of 21
- Detail
- H
- Updated
- 2026-11-21