Changeset 032be17 for postlfs/virtualization
- Timestamp:
- 10/26/2014 01:39:58 PM (10 years ago)
- Branches:
- krejzi/svn
- Children:
- b71b5c8
- Parents:
- 8ddd9c79
- Location:
- postlfs/virtualization
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
postlfs/virtualization/qemu-systemd.xml
r8ddd9c79 r032be17 126 126 your system processor is required.</para> 127 127 128 <para>For networking, check that <xref linkend= 'bridgeutils'/> is installed128 <para>For networking, check that <xref linkend="bridgeutils"/> is installed 129 129 and the following options in the kernel configuration are enabled:</para> 130 130 131 <screen><literal>Networking support ---> 132 Networking options ---> 133 802.1d Ethernet Bridging: Y or M 134 Device Drivers ---> 131 <screen><literal>Device Drivers ---> 135 132 Network device support ---> 136 133 Universal TUN/TAP device driver support: Y or M</literal></screen> … … 261 258 <itemizedlist spacing="compact"> 262 259 <listitem> 263 <para>Set up bridging with <xref linkend='bridgeutils'/>.</para>260 <para>Set up bridging using <xref linkend="network-bridge"/>.</para> 264 261 </listitem> 265 262 … … 270 267 271 268 <para>To make this permanent, add the command to 272 <filename>/etc/sys sysctl.conf:</filename></para>273 274 <screen role="root"><userinput>cat >> /etc/sysctl. conf << EOF269 <filename>/etc/sysctl.d/60-net-forward.conf:</filename></para> 270 271 <screen role="root"><userinput>cat >> /etc/sysctl.d/60-net-forward.conf << "EOF" 275 272 net.ipv4.ip_forward=1 276 273 EOF</userinput></screen> … … 282 279 device, usually visible as tap0, to the host bridge.</para> 283 280 284 <screen role="root"><userinput>cat > /etc/qemu-ifup << EOF281 <screen role="root"><userinput>cat > /etc/qemu-ifup << "EOF" 285 282 #!/bin/bash 286 283 287 284 switch=br0 288 285 289 if [ -n " \$1" ]; then286 if [ -n "$1" ]; then 290 287 # Add new tap0 interface to bridge 291 /sbin/ip link set \$1 up 292 sleep 0.5s 293 /usr/sbin/brctl addif \$switch \$1 288 /usr/sbin/brctl addif $switch $1 294 289 else 295 290 echo "Error: no interface specified" … … 302 297 chmod +x /etc/qemu-ifup</userinput></screen> 303 298 304 <screen role="root"><userinput>cat > /etc/qemu-ifdown << EOF299 <screen role="root"><userinput>cat > /etc/qemu-ifdown << "EOF" 305 300 #!/bin/bash 306 301 307 302 switch=br0 308 303 309 if [ -n " \$1" ]; then304 if [ -n "$1" ]; then 310 305 # Remove tap0 interface from bridge 311 /usr/sbin/brctl delif \$switch \$1306 /usr/sbin/brctl delif $switch $1 312 307 else 313 308 echo "Error: no interface specified" … … 323 318 </itemizedlist> 324 319 325 < note><para>The backslashes in the above script are for convenience320 <!-- <note><para>The backslashes in the above script are for convenience 326 321 for cut/paste operations. The backslashes should <emphasis>not</emphasis> 327 appear in the final scripts.</para></note> 322 appear in the final scripts.</para></note> --> 328 323 329 324 <itemizedlist spacing="compact"> -
postlfs/virtualization/virtualization.xml
r8ddd9c79 r032be17 22 22 processor.</para> 23 23 24 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="qemu .xml"/>24 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="qemu-systemd.xml"/> 25 25 26 26 </chapter>
Note:
See TracChangeset
for help on using the changeset viewer.