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
+34-33
Original file line number
Diff line number
Diff line change
@@ -13,60 +13,61 @@ For this project, I used CentOS operating system on hardware and virtual machine
13
13
*[CentOS-7-x86_64-Minimal-1810](http://isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1810.iso) for bare metal
14
14
*[CentOS-7-x86_64-GenericCloud-1901](https://cloud.centos.org/centos/7/images/) for virtual machines
15
15
16
-
### Check CPU virtualization
16
+
### Check CPU virtualization
17
17
18
18
First check if your CPU supports hardware virtualization
19
19
20
-
```
20
+
```bash
21
21
cat /proc/cpuinfo | egrep "(vmx|svm)"
22
22
```
23
23
24
24
If the command does not return anything, virtualization is not supported on the server or it is disabled in the BIOS settings. KVM itself can be put on such a server, but when we try to enter the hypervisor management command, we will get the error "WARNING KVM acceleration not available, using 'qemu'".
25
25
26
26
### Install libvirt and virsh
27
27
28
-
```
28
+
```bash
29
29
yum install -y qemu-kvm libvirt virt-install
30
30
```
31
-
* qemu-kvm - hypervisor;
31
+
32
+
* qemu-kvm - hypervisor;
32
33
* libvirt - virtualization management library;
33
34
* virt-install - utility for managing virtual machines.
34
35
35
36
Allow autorun:
36
37
37
-
```
38
+
```bash
38
39
systemctl enable libvirtd
39
40
```
40
41
41
42
Launch KVM:
42
43
43
-
```
44
+
```bash
44
45
systemctl start libvirtd
45
46
```
46
47
47
48
### Network configuration
48
49
49
50
Install the package to work with bridge:
50
51
51
-
```
52
+
```bash
52
53
yum install -y bridge-utils
53
54
```
54
55
55
56
Сheck the real network interface with the configured IP address
This will create a terraform binary file on your working directory. Move this file to the directory/usr/local/bin
129
131
130
-
```
132
+
```bash
131
133
mv terraform /usr/local/bin/
132
134
```
133
135
134
136
Confirm the version installed
135
137
136
-
```
138
+
```bash
137
139
terraform -v
138
140
```
139
141
140
142
### Install Terraform KVM provider
141
143
142
144
Terraform has a number of officially [supported providers](https://www.terraform.io/docs/providers/) available for use. Unfortunately, KVM is not in the list. I will use the [Terraform KVM provider](https://github.com/dmacvicar/terraform-provider-libvirt)
0 commit comments