Skip to main content

nova-bhyve

An OpenStack Nova compute driver that runs instances as bhyve virtual machines on FreeBSD.

Status

Features

  • Direct VM management through bhyve/bhyvectl
  • Instance root disks on ZFS
  • Ephemeral and swap disks as sparse zvols
  • Supports booting from qcow2 and raw Glance images
  • Glance images cached as zvols with zero copy root disk cloning
  • VNC console integration through nova-novncproxy
  • Config drive for instance metadata and user data
  • Cold attach of cinder volumes, as local zvols or remote over iSCSI (using os-brick-freebsd)
  • Boot from cinder volumes, local or over iSCSI
  • Cold attach of network interfaces
  • Instance snapshot and upload to Glance
  • Nova image cache manager support to prune cache when no longer needed
  • Resize on the same host, and cold migration between hosts using zfs send over ssh

Limitations

  • Live migration is not supported yet by bhyve, so is not implemented in this driver
  • Ephemeral and swap disks are attached unformatted, the guest has to create the filesystem or swap area
  • A volume extended while attached shows its new size to the guest after the next start

Host requirements

zfs allow delegation is needed for the dataset holding images and instances.

A devfs.rules entry is needed to grant the group running Nova read/write access to the zvol device nodes.

You must configure volmode=dev on the dataset so that the host does not publish guest partition tables into its own /dev.

To remote attach cinder volumes, the nova host needs iscsid running and the os-brick-freebsd package installed.

Set resume_guests_state_on_host_boot = true in nova.conf to start instances and log in to their iSCSI volumes again after a host reboot.

Configuration

Example configuration for Nova:

[DEFAULT]
compute_driver = bhyve.driver.BhyveDriver
allow_resize_to_same_host = True

[bhyve]
zfs_dataset = zroot/nova
# migration_ssh_config = /usr/local/etc/nova/ssh_config
# migration_staging_path = /var/db/nova-migrate/instances

Migration between hosts

To migrate between hosts, the nova user needs send added to its zfs allow delegation and an ssh key. See the migration_ssh_config configuration opt.

The user on the receiving host needs create,destroy,mount,receive delegated on the dataset and write access to migration_staging_path.

Additionally you can lock down this user to only execute the receive command, for example (in authorized_keys):

command="nova-bhyve-receive --config-file /path/to/nova.conf",restrict ssh-ed25519 AAAA...

Metadata

Release files for nova-bhyve 0.9.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nova-bhyve 0.9.5
File Size Uploaded Provenance Actions
nova_bhyve-0.9.5.tar.gz 34.0 kB Without provenance Details for nova_bhyve-0.9.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nova-bhyve 0.9.5
File Interpreter ABI Platform Actions
nova_bhyve-0.9.5-py3-none-any.whl Python 3 none any Details for nova_bhyve-0.9.5-py3-none-any.whl

Total release size: 74.5 kB

Release files / nova_bhyve-0.9.5.tar.gz

Download URL nova_bhyve-0.9.5.tar.gz
Size 34.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3eae74f04126e9307a1b43c652d81132d943191db0e44b039d4609f4b7500c58
BLAKE2b-256 checksum
How to use checksums
3eca8a9a771de4e5b8b38980a996747c9082e378b02c6f05cd9d7998dfe70222
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / nova_bhyve-0.9.5-py3-none-any.whl

Download URL nova_bhyve-0.9.5-py3-none-any.whl
Size 40.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
643cf465ed3a65b24c2405c2aeb85c71d587eab9107fec0aa618e3a0864438e8
BLAKE2b-256 checksum
How to use checksums
84d83415b7fd980bc8d499d671e5a04790ff0c3fe302651c9849a0f56e24395a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for nova-bhyve 0.9.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page