You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-4Lines changed: 16 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,12 @@ To create a qcow2 template that is modified to contain certain programs. This is
12
12
13
13
## Usage
14
14
15
-
The following command will create a qcow2 image at 'output-archlinux/golden-arch.qcow2' and create a template with VM ID 9000.
15
+
This repo uses the [playbook.yml](https://github.com/Naman1997/arch-cloud-image/blob/main/playbook.yml) file in the root directory to create the golden image. In case you want to install any additional tools or make any changes, make sure to modify that file. The playbook installs a list of packages that are present in the [pkglist.txt](https://github.com/Naman1997/arch-cloud-image/blob/version/http/pkglist.txt) file that you can modify as well.
16
+
17
+
The following command will create a qcow2 image at `output-archlinux/golden-arch.qcow2` and create a template with ID `9000`.
16
18
This command assumes that you'll be using the same public key to ssh into the proxmox node as well as the VMs created by the template to keep things simple.
17
19
18
-
WARNING: If a VM/Template has ID 9000, then these commands will destroy and replace it with the golden image template for proxmox.
20
+
WARNING: If a VM/Template has ID `9000`, then these commands will destroy and replace it with the golden image template for proxmox.
19
21
20
22
```
21
23
make -s template \
@@ -25,15 +27,25 @@ make -s template \
25
27
PATH_TO_PUB_KEY=<your_path_to_pub_key>
26
28
```
27
29
```
28
-
#Example
30
+
#Example [Make sure you're able to ssh in the proxmox node using the key provided here]
29
31
make -s template \
30
32
CLOUD_USER=arch \
31
33
PROXMOX_USERNAME=root \
32
34
PROXMOX_IP=192.168.0.100 \
33
35
PATH_TO_PUB_KEY=~/.ssh/id_rsa.pub
34
36
```
35
37
36
-
To use the created template [ID 9000], create a clone using it and attempt to ssh into the VM using user as CLOUD_USER.
38
+
To use the created template ID `9000`, create a clone using it and attempt to ssh into the VM using user as CLOUD_USER.
39
+
40
+

41
+
42
+
You will be able to see the IP address of the VM once it boots up as long as you didn't remove the installation of `qemu-guest-agent` from the ansible playbook.
43
+
44
+

45
+
46
+
Once the node is up and running, you can use the SSH key you provided to log in the node.
0 commit comments