@@ -128,7 +128,7 @@ The number of detected cores is presented during kernel initialization.
128
128
129
129
## Network setup on ` ia32-generic-qemu `
130
130
131
- - Note: This guide was tested on ` Ubuntu 20 .04 LTS ` host OS.
131
+ - Note: This guide was tested on ` Ubuntu 24 .04 LTS ` host OS.
132
132
133
133
There are few steps to follow:
134
134
@@ -137,8 +137,9 @@ There are few steps to follow:
137
137
- Install the required package and ensure that ` libvirtd ` is running:
138
138
139
139
``` bash
140
- sudo apt-get update
141
- sudo apt-get install qemu-system-common
140
+ sudo apt update
141
+ sudo apt install qemu-system-common
142
+ sudo apt install libvirt-clients libvirt-daemon
142
143
systemctl enable libvirtd.service
143
144
systemctl start libvirtd.service
144
145
```
@@ -150,6 +151,55 @@ There are few steps to follow:
150
151
sudo virsh net-start --network default
151
152
` ` `
152
153
154
+ - If IPv6 is needed change the configuration of ` virbr0`
155
+
156
+ ` ` ` bash
157
+ sudo virsh net-destroy default
158
+ sudo virsh net-edit default
159
+ ` ` `
160
+
161
+ The commands above open the editor of the configuration file of ` virbr0` . There are two necessary changes:
162
+
163
+ - Add IPv6 address to the bridge interface:
164
+
165
+ ` ` ` XML
166
+ < ip family=' ipv6' address=' 2001:db8:dead:beef:fe::2' prefix=' 64' />
167
+ ` ` `
168
+
169
+ - Enable NAT for IPv6:
170
+
171
+ ` ` ` XML
172
+ < forward mode=' nat' >
173
+ < nat ipv6=' yes' />
174
+ < /forward>
175
+ ` ` `
176
+
177
+ The overall config should look something like this:
178
+
179
+ ` ` ` XML
180
+ < network>
181
+ < name> default< /name>
182
+ < uuid> a9e032b7-e32f-4f91-a273-e6c6f15b8904< /uuid>
183
+ < forward mode=' nat' >
184
+ < nat ipv6=' yes' />
185
+ < /forward>
186
+ < bridge name=' virbr0' stp=' on' delay=' 0' >
187
+ < mac address=' 52:54:00:99:4d:c3' />
188
+ < ip address=' 192.168.122.1' netmask=' 255.255.255.0' >
189
+ < dhcp>
190
+ < range start=' 192.168.122.2' end=' 192.168.122.254' />
191
+ < /dhcp>
192
+ < /ip>
193
+ < ip family=' ipv6' address=' 2001:db8:dead:beef:fe::2' prefix=' 64' />
194
+ < /network>
195
+ ` ` `
196
+
197
+ Save the config file and start the bridge by running:
198
+
199
+ ` ` ` bash
200
+ sudo virsh net-start default
201
+ ` ` `
202
+
153
203
- After that verify that the IP range ` 192.168.122.1/24` is reported by the ` vibr0` bridge:
154
204
155
205
` ` ` bash
0 commit comments