| 167 | To make virtual machines directly accessible from the console, add these snippets: |
| 168 | |
| 169 | Information in this example is taken from: |
| 170 | {{{#!shell-session |
| 171 | root@node1-2:~# ip r |
| 172 | default via 10.19.0.1 dev enp134s0 proto dhcp src 10.19.1.2 metric 100 |
| 173 | 10.19.0.0/16 dev enp134s0 proto kernel scope link src 10.19.1.2 |
| 174 | 10.19.0.1 dev enp134s0 proto dhcp scope link src 10.19.1.2 metric 100 |
| 175 | 172.24.4.0/24 dev br-ex proto kernel scope link src 172.24.4.1 |
| 176 | 192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1 linkdown |
| 177 | root@node1-2:~# ip addr show enp134s0 |
| 178 | 2: enp134s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 |
| 179 | link/ether 68:05:ca:1e:e5:98 brd ff:ff:ff:ff:ff:ff |
| 180 | inet 10.19.1.2/16 brd 10.19.255.255 scope global dynamic enp134s0 |
| 181 | valid_lft 2297sec preferred_lft 2297sec |
| 182 | inet6 fe80::6a05:caff:fe1e:e598/64 scope link |
| 183 | valid_lft forever preferred_lft forever |
| 184 | }}} |
| 185 | |
| 186 | {{{#!shell |
| 187 | #set to control interface name |
| 188 | PUBLIC_INTERFACE=enp134s0 |
| 189 | #set to control interface IP |
| 190 | HOST_IP=10.19.1.2 |
| 191 | #Set to control interface subnet |
| 192 | FLOATING_RANGE=10.19.0.0/16 |
| 193 | #set to control interface gateway |
| 194 | PUBLIC_NETWORK_GATEWAY=10.19.0.1 |
| 195 | #choose range of IPs in control subnet to assign to VMs |
| 196 | Q_FLOATING_ALLOCATION_POOL=start=10.19.100.1,end=10.19.100.254 |
| 197 | }}} |
| 198 | [[CollapsibleEnd]] |