Automate setup and delivery for virtual machines in the cloud
======
Get a cloud image ready in minutes by using Testcloud to automate the
setup process and deliver a VM ready to run.
![Looking at a map][1]
If you're a developer or hobbyist using a Fedora[qcow2 image][2] for the cloud, you always have to do a bunch of initial configuration before an image is ready to use. I know this all too well, and I was eager to find a way to make the setup process simpler. As it happens, the entire Fedora quality assurance team feels the same way, so we developed [Testcloud][3].
Testcloud is a tool that makes it easy to get a cloud image ready for testing in minutes. It automates the setup process and delivers a virtual machine (VM) ready to run on the cloud with just a few commands.
Testcloud:
1. Downloads the qcow2 image
2. Creates the instance with the name of your choice
3. Creates a user named `fedora` with the password of `passw0rd`
4. Assigns an IP, which you can later use to secure shell (SSH) into the cloud
5. Starts, stops, removes, and lists an instance
### Install Testcloud
To start your journey, you first must install the Testcloud package. You can install it from a terminal or through the software application. In both cases, the package name is `testcloud`. Install with:
```
`$ sudo dnf install testcloud -y`
```
Once the installation is complete, add your desired user to the `testcloud` group, which helps Testcloud automate the rest of the process. Execute these two commands to add your user to the `testcloud` group and restart the session with the updated group privileges:
```
$ sudo usermod -a -G testcloud $USER
$ su - $USER
```
![Add user to testcloud group][4]
(Sumantro Mukherjee, [CC BY-SA 4.0][5])
### Spin cloud images like a pro
Once your user has the required group permissions, create an instance:
You can log in as the default user `fedora` with the password `passw0rd` (note the zero). You can get to the VM with `ssh`, `virt-manager`, or any other method that supports connecting to libvirt machines.
[1]: https://opensource.com/sites/default/files/styles/image-full-size/public/lead-images/tips_map_guide_ebook_help_troubleshooting_lightbulb_520.png?itok=L0BQHgjr (Looking at a map)
[2]: https://en.wikipedia.org/wiki/Qcow
[3]: https://pagure.io/testcloud
[4]: https://opensource.com/sites/default/files/uploads/adduser.png (Add user to testcloud group)