osvm

command
v0.182.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2026 License: BSD-3-Clause Imports: 56 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command osvm inspects an OpenStack project and boots a small test VM on its private network, from a clouds.yaml entry. It never prints a credential: the entry is read by gophercloud's clientconfig and only the project name and resource names reach the output.

osvm --cloud NAME inventory
osvm --cloud NAME create --name N --network NET --pubkey-file F.pub [--image-match debian-13] [--ssh-from CIDR]

create refuses a world-open CIDR and never opens Kerberos (88) or SMB (445): the only rule it adds is TCP 22 from --ssh-from.

osvm --cloud NAME allow --group G --from H/32 --port P... [--create-group] [--allow-shared]
osvm --cloud NAME attach --group G --server NAME
osvm --cloud NAME revoke --group G --from H/32 --port P...
osvm --cloud NAME rules --group G

create works on a shared public network as on a private one (the network is found by name; no floating IP is needed). --sg-name names its dedicated group and --volume-gb creates and attaches a data volume. allow takes its sources from one --from /32, or from --from-json-url/--json-key (for GitHub webhooks: https://api.github.com/meta and hooks), refusing a world-open prefix.

osvm --cloud NAME delete --id ID --name N [--with-volumes] [--with-group] [--confirm]

delete removes one server designated by its id AND its exact name (a mismatch, a wildcard or an absent flag is refused); without --confirm it prints the plan and deletes nothing.

allow refuses a group that more than one server carries unless --allow-shared is given: a rule there opens every one of them.

References (read 2026-11-22):

https://pkg.go.dev/github.com/gophercloud/utils/v2/openstack/clientconfig  clouds.yaml loading
https://docs.openstack.org/api-ref/compute/                                 servers, flavors, keypairs
https://docs.openstack.org/api-ref/network/v2/                              networks, security groups, floating IPs

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL