Compare commits
1 commit
a89d4cec65
...
05d73f5a66
| Author | SHA1 | Date | |
|---|---|---|---|
| 05d73f5a66 |
1 changed files with 10 additions and 22 deletions
|
|
@ -1,22 +1,18 @@
|
|||
---
|
||||
title: Create a new VM on Chaosknoten
|
||||
title: New Chaosknoten VM
|
||||
summary: How to Create a New VM on Chaosknoten
|
||||
---
|
||||
|
||||
!!! success "Goal"
|
||||
# New Chaosknoten VM
|
||||
|
||||
Create a new VM on our Chaosknoten Server with DNS Name, Firewalling and network config.
|
||||
This guide outlines the steps to take for creating a new VM (`myservice`) on Chaosknoten. It might also act as a useful reference for other environments however.
|
||||
|
||||
## 1. Reserve an IP Address
|
||||
## IP and DNS
|
||||
|
||||
Decide on what kind of network configuration the VM needs.
|
||||
In this guide we assume a public v6 and a non-public v4 in the v4-NAT network.
|
||||
If you have special requirements, refer to TODO for more information on the different kinds of networks available on Chaosknoten.
|
||||
Decide on what kind of network configuration the VM needs. In this guide we assume a public v6 and a non-public v4 in the v4-NAT network. If you have special requirements, refer to TODO for more information on the different kinds of networks available on Chaosknoten.
|
||||
|
||||
1. Allocate a fresh [v6 in NetBox in the v4-NAT v6-network](https://netbox.hamburg.ccc.de/ipam/prefixes/47/ip-addresses/).
|
||||
- The _hostname_ should be the full FQDN, like: `myservice.hosts.hamburg.ccc.de`
|
||||
|
||||
## 2. Configure DNS
|
||||
|
||||
2. Add a new `AAAA` record pointing to the chosen v6 to the [`hamburg.ccc.de` zone](https://git.hamburg.ccc.de/CCCHH/ansible-infra/src/branch/main/resources/chaosknoten/auth-dns/zones/hamburg.ccc.de.zone).
|
||||
It should look something like this:
|
||||
```
|
||||
|
|
@ -27,7 +23,7 @@ If you have special requirements, refer to TODO for more information on the diff
|
|||
ansible-playbook -i inventories/chaosknoten playbooks/deploy.yaml -l auth-dns -t knot
|
||||
```
|
||||
|
||||
## 3. Create A VM in Proxmox
|
||||
## VM Creation
|
||||
|
||||
Now that we have a v6, let's create a new VM on Chaosknoten.
|
||||
|
||||
|
|
@ -53,9 +49,6 @@ Now that we have a v6, let's create a new VM on Chaosknoten.
|
|||
```
|
||||
ssh -J chaos@router.hamburg.ccc.de chaos@myservice.hosts.hamburg.ccc.de
|
||||
```
|
||||
|
||||
## 4. Enter VM into NetBox
|
||||
|
||||
4. Finally add the VM to NetBox
|
||||
1. First [add the VM itself](https://netbox.hamburg.ccc.de/virtualization/virtual-machines/).
|
||||
- The _Name_ should be the hostname of the VM, so e.g. `myservice`.
|
||||
|
|
@ -70,7 +63,7 @@ Now that we have a v6, let's create a new VM on Chaosknoten.
|
|||
4. Finally assign the IP address created earlier in NetBox to the just created interface by going into the _Assignment_ section of the IP address configuration.
|
||||
- Also check _Make this the primary IP for the device/VM_ while doing so.
|
||||
|
||||
## 5. Enroll the VM in ansible
|
||||
## Ansible
|
||||
|
||||
Next up the VM should be added to the Ansible configuration management. While Ansible can and should be used to configure various services and configuration options, this section focuses on the basic setup to be done.
|
||||
|
||||
|
|
@ -95,7 +88,7 @@ Next up the VM should be added to the Ansible configuration management. While An
|
|||
|
||||
Feel free to commit at this point before continuing with further configuration.
|
||||
|
||||
## 6. Configure the VM further for your needs
|
||||
## Further Setup
|
||||
|
||||
With the basic configuration now done, the VM can be set up further. Here are some helpful pointers:
|
||||
|
||||
|
|
@ -103,9 +96,4 @@ With the basic configuration now done, the VM can be set up further. Here are so
|
|||
- Secrets should be stored using SOPS, see: [SOPS: Storing Secrets](./sops-storing-secrets.md)
|
||||
- Guidance on setting up a web service can be found in the [Web Service](./web-service.md) guide.
|
||||
|
||||
Afterward you should also take care of setting up monitoring for the newly configured service, see: [Monitor a new service with Gatus](./monitor-a-new-service-with-gatus.md).
|
||||
|
||||
## Closing Up
|
||||
|
||||
This section is optional but if there's any way for the reader to verify their goal has been achieved, you should mention it here.
|
||||
|
||||
Afterward you should also take care of setting up monitoring for the newly configured service, see: [Monitoring: Gatus](./monitoring-gatus.md)
|
||||
Loading…
Add table
Add a link
Reference in a new issue