Changes

Jump to: navigation, search

Xen

116 bytes removed, 4 years ago
Editing the make.conf
'''Assumptions'''
''We build a 64bit headless XEN hypervisor rockstable and rocket fast with a funtoo headless 64bit paravirt domU.''
We are '''not''' building Xen with pvgrub or hvm (which is kinda slow and overhead as long as you don't want to install WindozeWindows).
== Buiding Funtoo Xen Host Dom0 ==
<console>
###i## cd /etc/init.d/
###i## ln -s netif.tmpl netifnet.xenbr0###i## ln -s netif.tmpl netifnet.extbr0###i## ln -s netif.tmpl netifnet.eth0###i## ln -s netif.tmpl netifnet.eth1###i## rc-update add netifnet.xenbr0 sysinit###i## rc-update add netifnet.extbr0 sysinit
</console>
<console>
###i## rc-update del dhcpcd sysinit
###i## rc-update del netifnet.eth0 sysinit###i## rc-update del netifnet.eth1 sysinit
</console>
<console>
###i## cd /etc/conf.d/
###i## echo 'template="interface-noip"' > netifnet.eth0###i## echo 'template="interface-noip"' > netifnet.eth1
</console>
Now, we prepare the bridges:
<console>
###i## nano netifnet.xenbr0
</console>
here we set the internal Xen bridge by editing <ttcode>/etc/conf.d/netifnet.xenbr0</ttcode>:
<pre>
nameservers="10.0.1.1 10.0.1.2"
domain="funtoo.org"
slaves="netifnet.eth0"
</pre>
Then, we set up the external interface:
<console>
###i## nano netifnet.extbr0
</console>
{{Fancynote| This will look quite similar. Please watch out for the correct slave setting!}}
Now, edit <ttcode>/etc/conf.d/netifnet.extbr0</ttcode>: 
<pre>
nameservers="10.0.1.1 10.0.1.2"
domain="funtoo.org"
slaves="netifnet.eth1"
</pre>
<console>
###i## wget -cv http://ftp.heanet.ie/mirrors/funtoo/funtoo-stable/x86-64bit/core2_64/stage3-latest.tar.xz </console>
Unfortunately I can't find md5sums or similar which is really unpleasant.
=== Get latest portage tree from the snapshots firectory directory ===
<console>
###i## wget -cv http://ftp.heanet.ie/mirrors/funtoo/funtoo-stable/snapshots/portage-currentlatest.tar.xz </console> 
=== Extract the stage3 ===
<console>
<console>
###i## cd usr
###i## tar xf ../portage-currentlatest.tar.xz
</console>
== Preparing the chroot environment ==
=== Editing the make.conf ===
copy the <ttcode>/etc/portage/make.conf</ttcode> from dom0 and adjust it:
<console>
<console>
(domU-chroot) ###i## cd /etc/init.d/
(domU-chroot) ###i## ln -sf netif.tmpl netifnet.eth0(domU-chroot) ###i## rc-update add netifnet.eth0 * service netifnet.eth0 added to runlevel sysinit
</console>
Have fun!
[[Category:Virtualization]]
[[Category:Featured]]
wiki-staff
1,105
edits

Navigation menu