You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
5 years ago | |
|---|---|---|
| .. | ||
| templates | 5 years ago | |
| README.md | 5 years ago | |
| centos.tf | 5 years ago | |
| main.tf | 5 years ago | |
| patch.xslt | 5 years ago | |
| provider.tf | 5 years ago | |
| variables.tf | 5 years ago | |
README.md
Lab of Centos Machines
Fetch the latest CentOS Stream 8 cloud image.
sudo curl -Lo /var/lib/libvirt/images/centos-stream-8.qcow2 http://cloud.centos.org/centos/8-stream/x86_64/images/CentOS-Stream-GenericCloud-8-20201217.0.x86_64.qcow2
Define a new network with VLANs.
<network>
<name>lab</name>
<forward mode="bridge" />
<bridge name="lab" />
<virtualport type='openvswitch'>
</virtualport>
<portgroup name='lab7' default='yes'>
</portgroup>
<portgroup name='lab8'>
<vlan>
<tag id='8'/>
</vlan>
</portgroup>
<portgroup name='lab16'>
<vlan>
<tag id='16'/>
</vlan>
</portgroup>
</network>
Then, deploy the lab.
export LIBVIRT_DEFAULT_URI=qemu:///system
terraform init
terraform apply
Destroy the lab.
terraform destroy
Edit patch.xml and change the target portgroup to "lab8".
terraform apply -var centos_mac_format=02:01:08:00:08:%02x