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