<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://linux-vserver.at/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://linux-vserver.at/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Davidt</id>
		<title>Linux-VServer - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://linux-vserver.at/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Davidt"/>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/Special:Contributions/Davidt"/>
		<updated>2026-04-09T15:55:46Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.20.2</generator>

	<entry>
		<id>http://linux-vserver.at/Installation_on_Redhat</id>
		<title>Installation on Redhat</title>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/Installation_on_Redhat"/>
				<updated>2010-05-15T00:13:59Z</updated>
		
		<summary type="html">&lt;p&gt;Davidt: Isolated Network installation on RHEL5.3 with Network Hostname and IP.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Isolated Network installation on RHEL5.3 with Network Hostname and IP.'''&lt;br /&gt;
&lt;br /&gt;
My installation was on RHEL5.3 in an isolated server environment. I downloaded the VServer rpm's from a public repo to a local directory /var/www/html/VServer&lt;br /&gt;
&lt;br /&gt;
#cd /etc/yum.repos.d/&lt;br /&gt;
#vi VServerlocal.repo&lt;br /&gt;
&lt;br /&gt;
[VServer]&lt;br /&gt;
name=VServer Mirror&lt;br /&gt;
baseurl=http://10.x.x.x/VServer &amp;lt;- Change IP ADDRESS to local IP&lt;br /&gt;
enabled=1&lt;br /&gt;
gpgcheck=0&lt;br /&gt;
&lt;br /&gt;
''Disabled any other *.repo files I had''&lt;br /&gt;
&lt;br /&gt;
#server httpd restart&lt;br /&gt;
#yum list&lt;br /&gt;
&lt;br /&gt;
''You should get a list of the new Repository created for VServer locally (I did this on my &amp;quot;host&amp;quot; root directory''&lt;br /&gt;
&lt;br /&gt;
#yum update yum&lt;br /&gt;
#yum install kernel&lt;br /&gt;
#vi /etc/sshd_config&lt;br /&gt;
&lt;br /&gt;
Add the line “ListenAddress &amp;lt;host IP address&amp;gt;”&lt;br /&gt;
&lt;br /&gt;
'''---REBOOT--'''&lt;br /&gt;
&lt;br /&gt;
#chkconfig –level 345 httpd on&lt;br /&gt;
#server httpd restart&lt;br /&gt;
#yum install util-vserver{,-core,-lib,-sysv,-build}&lt;br /&gt;
#/etc/init.d/vprocunhide start&lt;br /&gt;
#chkconfig vservers-default on&lt;br /&gt;
&lt;br /&gt;
'''Building Guest Systems'''&lt;br /&gt;
&lt;br /&gt;
#cd /etc/sysconfig/network-scripts&lt;br /&gt;
#cp ifcfg-eth0 ifcfg-eth0:1&lt;br /&gt;
&lt;br /&gt;
#vi ifcfg-eth0:1&lt;br /&gt;
&lt;br /&gt;
Example eth0:1:&lt;br /&gt;
# Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet&lt;br /&gt;
&lt;br /&gt;
DEVICE=eth0:1 &amp;lt;- CHANGE to add :1&lt;br /&gt;
&lt;br /&gt;
BOOTPROTO=none&lt;br /&gt;
&lt;br /&gt;
HWADDR=00:00:00:00:AA:BB&lt;br /&gt;
&lt;br /&gt;
IPADDR=10.x.x.x  &amp;lt;- CHANGE IP ADDRESS&lt;br /&gt;
&lt;br /&gt;
NETMASK=255.255.255.0&lt;br /&gt;
&lt;br /&gt;
ONBOOT=yes&lt;br /&gt;
&lt;br /&gt;
GATEWAY=10.192.168.1&lt;br /&gt;
&lt;br /&gt;
TYPE=Ethernet&lt;br /&gt;
&lt;br /&gt;
#service network restart&lt;br /&gt;
&lt;br /&gt;
''You should not get any errors on start up.''&lt;br /&gt;
&lt;br /&gt;
#cd /etc/vservers/.distributions/&lt;br /&gt;
#mkdir rhel5&lt;br /&gt;
#cd /usr/lib64/util-vserver/distributions/centos5/&lt;br /&gt;
#cp -r * /etc/vservers/.distributions/rhel5/&lt;br /&gt;
#cd /usr/lib64/util-vserver/distributions/&lt;br /&gt;
#cp -r redhat/ /etc/vservers/.distributions/&lt;br /&gt;
#cd /etc/vservers/.distributions/rhel5/yum.repos.d&lt;br /&gt;
Backup repo *.bak&lt;br /&gt;
#cp /etc/yum.repos.d/vserver.repo .&lt;br /&gt;
&lt;br /&gt;
'''Create new vserver – EACH VSERVER REQUIRES A UNIQUE CONTEXT NUMBER -- '''&lt;br /&gt;
&lt;br /&gt;
#vserver newhostname1 build -m yum --context 42 --hostname=newhostname1 --interface eth0:10.x.x.20/24 -- -d rhel5&lt;br /&gt;
&lt;br /&gt;
Change 10.x.x.20 to the new eth:0:1 IP address.&lt;br /&gt;
&lt;br /&gt;
'''Post-build customization'''&lt;br /&gt;
&lt;br /&gt;
#vserver newhostname1 start&lt;br /&gt;
#vyum hostname1 -- install filesystem.x86_64 0:2.4.0-2&lt;br /&gt;
#vyum hostname1 -- install yum&lt;br /&gt;
#vyum hostname1 -- install vim-minimal&lt;br /&gt;
&lt;br /&gt;
'''Now you are ready to login to your new Vserver.'''&lt;br /&gt;
&lt;br /&gt;
#vserver {hostname1} enter&lt;br /&gt;
&lt;br /&gt;
'''If you set up a Local RHEL5.3 Repo you can add all RPMs'''&lt;br /&gt;
&lt;br /&gt;
#cd /etc/yum.repo.d/&lt;br /&gt;
#vi vserver.repo&lt;br /&gt;
&lt;br /&gt;
example&lt;br /&gt;
[rh]&lt;br /&gt;
name=RH Mirror&lt;br /&gt;
baseurl=http://10.x.x.x/rh &amp;lt;- The IP Address of the Host server&lt;br /&gt;
enabled=1&lt;br /&gt;
gpgcheck=0&lt;br /&gt;
&lt;br /&gt;
#yum list&lt;br /&gt;
&lt;br /&gt;
''This should provide a large list of RPMs''&lt;br /&gt;
&lt;br /&gt;
#exit&lt;/div&gt;</summary>
		<author><name>Davidt</name></author>	</entry>

	</feed>