|
703.
|
|
|
Modifying the libvirt Template to use Bridging
|
|
|
|
Redigera libvirt-mallen till att använda bryggning
|
|
Translated by
Andreas Olsson
|
|
Reviewed by
Håkan Hagman
|
|
|
|
Located in
serverguide/C/virtualization.xml:677(title)
|
|
704.
|
|
|
Because our appliance will be likely to need to be accessed by remote hosts, we need to configure libvirt so that the appliance uses bridge networking. To do this we use vmbuilder template mechanism to modify the default one.
|
|
|
|
Eftersom vår tillämpning sannolikt behöver nås av en fjärrvärd, behöver vi konfigurera libvirt så att tillämpningen använder en nätverksbrygga. För att göra detta använder vi schemafunktionen i vmbuilder till att modifiera standardschemat.
|
|
Translated and reviewed by
Håkan Hagman
|
|
|
|
Located in
serverguide/C/virtualization.xml:679(para)
|
|
705.
|
|
|
In our working directory we create the template hierarchy and copy the default template:
|
|
|
|
I vår arbetskatalog skapar vi en mallhierarki och kopierar standardmallen:
|
|
Translated and reviewed by
Håkan Hagman
|
|
|
|
Located in
serverguide/C/virtualization.xml:684(para)
|
|
706.
|
|
|
mkdir -p VMBuilder/plugins/libvirt/templates
|
|
|
|
mkdir -p VMBuilder/plugins/libvirt/templates
|
|
Translated and reviewed by
Håkan Hagman
|
|
|
|
Located in
serverguide/C/virtualization.xml:689(command)
|
|
707.
|
|
|
cp /etc/vmbuilder/libvirt/* VMBuilder/plugins/libvirt/templates/
|
|
|
|
cp /etc/vmbuilder/libvirt/* VMBuilder/plugins/libvirt/templates/
|
|
Translated and reviewed by
Håkan Hagman
|
|
|
|
Located in
serverguide/C/virtualization.xml:690(command)
|
|
708.
|
|
|
We can then edit <filename>VMBuilder/plugins/libvirt/templates/libvirtxml.tmpl</filename> to change:
|
|
|
|
Vi kan sedan redigera <filename>VMBuilder/plugins/libvirt/templates/libvirtxml.tmpl</filename> till att ändra:
|
|
Translated and reviewed by
Håkan Hagman
|
|
|
|
Located in
serverguide/C/virtualization.xml:693(para)
|
|
709.
|
|
|
<interface type='network'>
<source network='default'/>
</interface>
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
<interface type='network'>
<source network='default'/>
</interface>
|
|
Translated and reviewed by
Håkan Hagman
|
|
|
|
Located in
serverguide/C/virtualization.xml:697(programlisting)
|
|
710.
|
|
|
To:
|
|
|
|
Till:
|
|
Translated and reviewed by
Håkan Hagman
|
|
|
|
Located in
serverguide/C/virtualization.xml:703(para)
|
|
711.
|
|
|
<interface type='bridge'>
<source bridge='br0'/>
</interface>
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
<interface type='bridge'>
<source bridge='br0'/>
</interface>
|
|
Translated and reviewed by
Håkan Hagman
|
|
|
|
Located in
serverguide/C/virtualization.xml:707(programlisting)
|
|
712.
|
|
|
Partitioning
|
|
|
|
Partitionering
|
|
Translated by
Håkan Hagman
|
|
|
|
Located in
serverguide/C/virtualization.xml:717(title) serverguide/C/installation.xml:459(title)
|