- Timestamp:
- 08/01/2014 03:12:32 PM (10 years ago)
- Branches:
- systemd-11177
- Children:
- 51dc8424
- Parents:
- 11bd86d
- Location:
- postlfs/virtualization
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
postlfs/virtualization/qemu-systemd.xml
r11bd86d r0342fde 122 122 your system processor is required.</para> 123 123 124 <para>For networking, check that <xref linkend= 'bridgeutils'/> is installed124 <para>For networking, check that <xref linkend="bridgeutils"/> is installed 125 125 and the following options in the kernel configuration are enabled:</para> 126 126 127 <screen><literal> Networking support --->128 Networking options - -->127 <screen><literal><!--Networking support - - -> 128 Networking options - - -> 129 129 802.1d Ethernet Bridging: Y or M 130 Device Drivers --->130 -->Device Drivers ---> 131 131 Network device support ---> 132 132 Universal TUN/TAP device driver support: Y or M</literal></screen> … … 265 265 <itemizedlist spacing="compact"> 266 266 <listitem> 267 <para>Set up bridging with <xref linkend='bridgeutils'/>.</para>267 <para>Set up bridging using <xref linkend="network-bridge"/>.</para> 268 268 </listitem> 269 269 … … 274 274 275 275 <para>To make this permanent, add the command to 276 <filename>/etc/sys sysctl.conf:</filename></para>277 278 <screen role="root"><userinput>cat >> /etc/sysctl. conf << EOF276 <filename>/etc/sysctl.d/60-net-forward.conf:</filename></para> 277 278 <screen role="root"><userinput>cat >> /etc/sysctl.d/60-net-forward.conf << "EOF" 279 279 net.ipv4.ip_forward=1 280 280 EOF</userinput></screen> … … 286 286 device, usually visible as tap0, to the host bridge.</para> 287 287 288 <screen role="root"><userinput>cat > /etc/qemu-ifup << EOF288 <screen role="root"><userinput>cat > /etc/qemu-ifup << "EOF" 289 289 #!/bin/bash 290 290 291 291 switch=br0 292 292 293 if [ -n " \$1" ]; then293 if [ -n "$1" ]; then 294 294 # Add new tap0 interface to bridge 295 /sbin/ip link set \$1 up 296 sleep 0.5s 297 /usr/sbin/brctl addif \$switch \$1 295 /usr/sbin/brctl addif $switch $1 298 296 else 299 297 echo "Error: no interface specified" … … 306 304 chmod +x /etc/qemu-ifup</userinput></screen> 307 305 308 <screen role="root"><userinput>cat > /etc/qemu-ifdown << EOF306 <screen role="root"><userinput>cat > /etc/qemu-ifdown << "EOF" 309 307 #!/bin/bash 310 308 311 309 switch=br0 312 310 313 if [ -n " \$1" ]; then311 if [ -n "$1" ]; then 314 312 # Remove tap0 interface from bridge 315 /usr/sbin/brctl delif \$switch \$1313 /usr/sbin/brctl delif $switch $1 316 314 else 317 315 echo "Error: no interface specified" … … 327 325 </itemizedlist> 328 326 329 < note><para>The backslashes in the above script are for convenience327 <!-- <note><para>The backslashes in the above script are for convenience 330 328 for cut/paste operations. The backslashes should <emphasis>not</emphasis> 331 appear in the final scripts.</para></note> 329 appear in the final scripts.</para></note> --> 332 330 333 331 <itemizedlist spacing="compact"> -
postlfs/virtualization/virtualization.xml
r11bd86d r0342fde 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.