Changes

Jump to: navigation, search

Funtoo Compute Initiative

1,723 bytes added, 4 years ago
Kernel Setup Steps
Then go through the normal process of {{c|grub-install}} and {{c|boot-update}} as detailed in the installation instructions.
 
==== Initial Ebuilds and Network ====
 
You will need to ensure that OpenVZ's userspace tools are installed, and enabled at startup:
 
{{console|body=
chroot # ##i##emerge -av vzctl
chroot # rc-update add vz default
}}
 
Now, to configure the network. As described in our summary above, we are going to create two bridges -- one for outgoing Internet traffic, and one for internal traffic. In this example, we are going to assign a routeable and private IP address to each bridge, respectively. This will allow you to also directly reach the OpenVZ host via the Internet as well as via a private IP when connecting to the LAN.
 
In the example configuration below, {{c|net.brwan}} is going to be our WAN, or "Internet-connected" bridge. We will use the physical interface {{c|eth0}} as our WAN interface, which will get plugged into a WAN router. Set the bridge up as follows:
 
{{console|body=
chroot # ##i##cd /etc/init.d
chroot # ##i##ln -s netif.tmpl net.brwan
chroot # ##i##ln -s netif.eth0 net.eth0
chroot # ##i##rc-update add net.brwan default
}}
 
In {{f|/etc/conf.d/net.eth0}}, put the following:
 
{{file|name=/etc/conf.d/net.eth0|body=
template=interface-noip
}}
 
In {{f|/etc/conf.d/net.brwan}}, put the following, using your own IPv4 address, of course:
 
{{file|name=/etc/conf.d/net.brwan|body=
template=bridge
ipaddr="1.2.3.4/24"
gateway="1.2.3.1"
nameservers="8.8.8.8 8.8.4.4"
domain="mydomain.com"
slaves=net.eth0
}}
 
Follow the same steps to set up {{c|netif.brlan}}, except use {{c|eth1}} as your physical link, and specify a non-routeable IPv4 address in {{c|/etc/conf.d/netif.brlan}}, and do not specify a {{c|gateway}} at all. And of course, plug your physical {{c|eth1}} interface into a private LAN switch.
=== Recommended Ebuilds ===
Bureaucrats, Administrators, wiki-admins, wiki-staff
6,336
edits

Navigation menu