mirror-env/qemu/README.md

55 lines
1.2 KiB
Markdown
Raw Normal View History

2021-10-03 17:28:34 -04:00
# Installation
Install the following:
- ansible
- qemu
- genisoimage
- ovmf (find the location of `OVMF\_CODE.fd`, it is system dependent)
2021-10-05 23:20:58 -04:00
Before doing anything else, edit the vars in `hosts` to your system's needs.
For qemu installation specifically, you need to provide the location of your
`OVMF_CODE.fd` file.
2021-10-03 17:28:34 -04:00
2021-10-05 23:20:58 -04:00
To begin the setup process, in this folder, run:
2021-10-03 17:28:34 -04:00
```
2021-10-05 23:20:58 -04:00
$ ansible-playbook -K install.yml
2021-10-03 17:28:34 -04:00
```
To view the vm, you also need a vnc viewer.
[TigerVNC](https://github.com/TigerVNC/tigervnc) is a good choice.
Simply run
```
$ vncviewer :5900
```
Currently, this is a bug with the installation process that causes the vm to
not terminate after completing the base install, causing the ansible task to
hang. You can manually terminate ansible once the vm shows:
![installation complete](images/installation_complete.png)
Once the base installation is complete, we need to configure the system in a
postinstall step, start by running the vm with:
```
2021-10-05 23:20:58 -04:00
$ ansible-playbook run.yml
2021-10-03 17:28:34 -04:00
```
And then run the postinstall playbook:
```
2021-10-05 23:20:58 -04:00
$ ansible-playbook postinstall.yml
2021-10-03 17:28:34 -04:00
```
2021-10-03 20:06:42 -04:00
The mirror dev environment is now ready to use. All future vm startups can be
done with:
```
2021-10-05 23:20:58 -04:00
$ ansible-playbook run.yml
2021-10-03 20:06:42 -04:00
```
2021-10-03 17:28:34 -04:00
The default login user has
```
2021-10-03 20:06:42 -04:00
username: local
password: password
2021-10-03 17:28:34 -04:00
```