parent
5164a49ba9
commit
611334046a
@ -0,0 +1,50 @@ |
||||
# Installation |
||||
|
||||
Install the following: |
||||
- ansible |
||||
- qemu |
||||
- genisoimage |
||||
- ovmf (find the location of `OVMF\_CODE.fd`, it is system dependent) |
||||
|
||||
Before doing anything else, edit the config files in `group_vars/` to your |
||||
system's needs. For qemu installation specifically, you need to provide the |
||||
location of your `OVMF_CODE.fd` file. |
||||
|
||||
To begin the setup process, in this repo's root, run: |
||||
``` |
||||
$ ansible-playbook -K qemu/main.yml |
||||
``` |
||||
|
||||
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: |
||||
|
||||
 |
||||
|
||||
Once the base installation is complete, we need to configure the system in a |
||||
postinstall step, start by running the vm with: |
||||
``` |
||||
$ ansible-playbook qemu/run.yml |
||||
``` |
||||
|
||||
And then run the postinstall playbook: |
||||
``` |
||||
$ ansible-playbook qemu/postinstall.yml |
||||
``` |
||||
|
||||
The mirror dev environment is now ready to use. |
||||
|
||||
The default login user has |
||||
``` |
||||
username: ubuntu |
||||
password: ubuntu |
||||
``` |
||||
|
After Width: | Height: | Size: 68 KiB |
@ -0,0 +1,10 @@ |
||||
--- |
||||
- hosts: vm |
||||
tasks: |
||||
- name: Basic system configuration |
||||
import_role: |
||||
name: ../roles/system |
||||
# - name: Setting up ssh |
||||
# import_role: |
||||
# name: ../roles/ssh |
||||
|
Loading…
Reference in new issue