TESTCLOUD(1)
πΈ TESTCLOUD(1) β the testcloud manual page πΈ
okay bestie, sit down, hydrate, and let me tell you about testcloud π this is the man page for testcloud, and it's genuinely one of the most useful little helpers out there, no cap.
β¨ NAME β¨
testcloud β download qcow2 cloud images and boot them locally. π¦
β¨ SYNOPSIS β¨
testcloud [-h, --help] [COMMAND]... [OPTION]... [SUBCOMMAND]... [OPTION]...
β¨ DESCRIPTION β¨
so testcloud is this small helper script that downloads and boots cloud/coreos images right on your machine, locally, like it's nothing. π
and it supports a wide range of distributions, which is giving versatility:
- Fedora
- Fedora CoreOS
- CentOS
- CentOS Stream
- Red Hat Enterprise Linux
- Debian
- Ubuntu
iconic lineup honestly.
testcloud can run either in system mode or in constrained user session mode, which is useful for running it, e.g., in unprivileged containers. π«Ά
To run testcloud, you need to hand it the URL of a cloud image, or a string in distribution:version format β that's what it uses for booting.
If you don't have an image location of your own, no stress, you can use one of the images from the Fedora Cloud download pages at https://alt.fedoraproject.org/cloud/. π
Then here's the tea: testcloud will download the image and save it in /var/lib/testcloud/backingstores/. It will use this image to create a backing store for a newly created instance, which gets placed in /var/tmp/instances/. And the best part? When the same image has been previously downloaded, testcloud will NOT download it again β it just uses the current image to create the instance. obsessed. β¨
When the new instance is created, testcloud will show its IP address, which you can use to access the running instance via ssh. The login name is fedora and the password is passw0rd. (yes really, write that down π) The IP address of an instance is shown when you list the instance β see COMMANDS.
The instance can also be manipulated and controlled with virt-manager. π
β¨ CONFIGURATION β¨
The default configuration should work for many people. However, if you need to override the default settings, you can do it in the settings.py file. The example file in conf/settings-example.py shows the available configuration values which you can alter to suit your needs. π
The configuration file must be placed in one of the following locations in order to be recognized:
conf/settings.pyin the git checkout~/.config/testcloud/settings.py/etc/testcloud/settings.py
bestie, if it's not in one of those three spots, it simply does not exist to testcloud. it's giving invisible. π
β¨ COMMANDS β¨
imageβ control and manipulate the images (see OPTIONS) for more details.
β¨ OPTIONS β¨
-h,--helpβ shows the help message and exits. π-c CONNECTION,--connection CONNECTIONβ provide the URL of a remote libvirt instance to be used instead of the local one. This option can be used with theinstancecommand only.
β¨ SUBCOMMANDS β¨
createβ create a new instance. See the INSTANCE CREATE OPTIONS section for more details. πΈlistβ list available running instances and images. Use the--alloptions to list all instances.startβ start an existing instance.stopβ stop a running instance.rebootβ force the instance to reboot. π₯removeβ remove an instance or image. If an instance is running, it cannot be removed without the-foption.destroyβ remove an instance or image. Deprecated, do not use. β οΈcleanβ remove non-existing or unsynced libvirt VMs from testcloud.
β¨ INSTANCE CREATE OPTIONS β¨
URLβ specify the URL from wheretestcloudshould download the instance qcow2 image, or adistro:versionhandle. This option is compulsory. no skipping it, bestie, it's mandatory. π
Some examples of supported short urls:
fedora:rawhide(latest compose),fedora:33,fedora:latest(latest Fedora GA image)fedora-coreos:next,fedora-coreos:testing,fedora-coreos:stablefedora:qa-matrix(image from https://fedoraproject.org/wiki/Test_Results:Current_Cloud_Test )centos:XX(eg.centos:8,centos:latest)centos-stream:XX(eg.centos-stream:8,centos-stream:latest)ubuntu:release_name(eg.ubuntu:focal,ubuntu:latest)debian:release_name/release_number(eg.debian:11,debian:sid,debian:latest)
-n,--name NAMEβ set desired instance name. A nice and memorable name will be generated for you if not specified. π (the auto-names are cute, trust)--arch ARCHβ set the desired guest architecture. Host arch is the default, supported are:x86_64,aarch64,ppc64le, ands390x.--ram RAMβ set the amount of RAM that will be available to the instance's VM (in MiB).--vcpus VCPUSβ set the number of virtual CPU cores to be assinged to the VM.--disksize DISKSIZEβ set the disk size of the instance VM (in GiB).--vncβ open a VNC connection to the:1display of the instance VM. π--no-graphicβ turn off the instance VM's graphical display.--timeout TIMEOUTβ specify the time (in seconds) to wait for the instance boot to complete. To disable waiting time (default behaviour) set to0.--disk_numberβ to provide disk number you want--nic_numberβ to provide nic number you want--virtiofsβ to specify a local directory to mount and mount target like<host path>:<guest path>--iommuβ to provide virtual iommu device
π ADDITIONAL COREOS OPTIONS π
--bu_file BU_FILEβ to provide a bu_file you want to use--ign_file IGN_FILEβ to provide an ign_file you want to use--ssh_pathβ to provide a ssh pubkey path you want to use
β¨ EXAMPLES β¨
Create a new instance:
testcloud create <URL>
List all available instances:
testcloud list
Start an existing instance:
testcloud start <instance_name>
Stop an existing instance:
testcloud stop <instance_name>
Remove a running instance:
testcloud remove -f <instance_name>
β¨ SEE ALSO β¨
testcloud's help and the Project's README.md file π«Ά
β¨ BUGS β¨
No known bugs. If you have found a bug, please report it at https://bugzilla.redhat.com. π
β¨ AUTHOR β¨
Mike Ruckman (roshi@fedoraproject.org) π
and that's the whole thing bestie, you ate that π this was version 1.0, dated 11 Nov 2020 β go forth and boot some cloud images, you've got this πΈπ¦π
π¦ where this page comes from
- epel 10: testcloud 0.11.8-1.el10_1 Β· GPL-2.0-or-later
- epel 9: testcloud 0.12.0-1.el9 Β· GPL-2.0-or-later
- fedora 43: testcloud 0.11.8-3.fc43 Β· GPL-2.0-or-later
- fedora 43: testcloud 0.12.0-1.fc43 Β· GPL-2.0-or-later
- fedora 44: testcloud 0.11.8-5.fc44 Β· GPL-2.0-or-later
- fedora 44: testcloud 0.12.0-1.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms