http://www.linux-vserver.org/api.php?action=feedcontributions&user=Offset27&feedformat=atomLinux-VServer - User contributions [en]2024-03-19T09:56:39ZUser contributionsMediaWiki 1.20.2http://www.linux-vserver.org/Building_CentOS_6_ALT_GuestBuilding CentOS 6 ALT Guest2013-05-21T19:57:29Z<p>Offset27: </p>
<hr />
<div>Here is a quick guide to building a CentOS 6 ALT Guest. Cent OS 6 ALT has the latest versions of php (as of now 5.3.23), apache, mysql. It's good if you need a site to be PCI Compliant. (PCI Compliance nowadays requires a scan of your box for vulnerabilities and if it finds an older version of apache or php, the versions that come with the latest version of centOS, the scan will complain)<br />
<br />
<br />
<br />
I followed the instructions from http://www.paul.sladen.org/vserver/archives/201202/0085.html with some updates.<br />
<br />
<br />
<br />
copy /usr/lib64/util-vserver/distributions/sl6/ to<br />
/usr/lib64/util-vserver/distributions/centos6alt/<br />
<br />
<br />
<br />
add to/usr/lib64/util-vserver/distributions/centos6alt/pkgs/03 with the following list:<br />
<br />
<br />
mc<br><br />
passwd<br><br />
tar<br><br />
unzip<br><br />
zip<br><br />
bzip2<br><br />
gzip<br><br />
crontabs<br><br />
shadow-utils<br><br />
yum<br><br />
openssh-server<br><br />
rsyslog-mysql<br><br />
xinetd<br><br />
at<br><br />
wget<br><br />
yum-utils<br><br />
tmpwatch<br><br />
<br />
<br />
delete :/usr/lib64/util-vserver/distributions/centos6alt/yum.repos.d/sl.repo<br />
<br />
<br />
copy the CentOS-Base.repo from your main Centos 6 repository /etc/yum.repos.d/CentOS-Base.repo to /usr/lib64/util-vserver/distributions/centos6alt/yum.repos.d/CentOS-Base.repo<br />
<br />
<br />
<br />
edit your copied CentOS-Base.repo and remove the addons sections as that will not work.<br />
<br />
<br />
<br />
add centalt.repo file to your yum.repos.d you can find a copy here: http://lifeunix.blogspot.com/2012/04/centos-6-centalt-repo-vim-etcyum.html<br />
<br />
<br />
copy your epel.repo from /etc/yum.repos.d to /usr/lib64/util-vserver/distributions/centos6alt/yum.repos.d/<br />
<br />
<br />
if you do not have epel.repo add that repository to your box. (you can do without it if you remove mc from the pkgs/03 list)<br />
<br />
<br />
<br />
after this I install Vserver with:<br />
vserver cos62 build -m yum --hostname cos62.domain.at<br />
--interface eth0:x.x.x.x/24 -- -d centos6alt<br />
<br />
<br />
Bind ssh to ip in /vservers/cos6x/etc/ssh/sshd_config<br />
ListenAddress x.x.x.x<br />
<br />
<br />
del /vservers/cos62/etc/localtime<br />
cp /etc/localtime /vservers/cos62/etc/localtime<br />
<br />
<br />
you should have a working CentOS 6 ALT Guest</div>Offset27http://www.linux-vserver.org/DocumentationDocumentation2013-05-21T19:50:38Z<p>Offset27: /* Guides and Howtos */</p>
<hr />
<div><div style="margin: 2em auto 2em auto; padding: 10px; background-color: #F9ECCD; border: 1px solid #004433; text-align: center;"><br />
[[Image:Icon-Caution.png|left]]<br />
We are currently migrating to MediaWiki from our old system, but not all content has been migrated yet. Take a look at the [[Wiki Team]] page for instructions how to help or look at the [http://oldwiki.linux-vserver.org old wiki] to find the information not migrated yet.<br />
<br />
'''To ease migration we created a [[List of old Documentation pages]].'''<br />
</div><br />
<br />
== Introduction ==<br />
<br />
* [[Overview|Virtualization Overview]]<br />
* [[Usage Scenarios]]<br />
* [[Feature Matrix]]<br />
<br />
== Installation ==<br />
<br />
* [[Installation Considerations]]<br />
* [[Installation on Linux 2.6]]: from source, both the kernel and util-vserver<br />
* [[Installation on ArchLinux]]<br />
* [[Installation on CentOS]]<br />
* [[Installation on Debian]]<br />
* [[Installation on Fedora]]<br />
* [[Installation on Gentoo]]<br />
* [[Installation on Mandrake]]<br />
* [http://www.pld-linux.org/Docs/Vserver Installation on PLD-Linux]<br />
* [[Installation on Redhat]]<br />
* [[Installation on Slackware]]<br />
** [[Installation on Slackware 14]]<br />
* [[Installation on SuSE/OpenSUSE]]<br />
* [[Installation on Ubuntu]]<br />
<br />
== Configuration ==<br />
<br />
* [[Util-vserver:Documentation|util-vserver Documentation]]<br />
* [[vcd:Documentation|VServer Control Daemon Documentation]]<br />
* [[Share a directory among multiple guests]]<br />
* [[Standard_non-shared_quota]]<br />
<br />
== Guides and Howtos ==<br />
<br />
* [[Building Guest Systems]]<br />
* [[util-vserver:Howto virtualize an exisiting Linux server|Howto virtualize an existing Linux server]]<br />
* [[VCMD HowTo]]<br />
* [[Howto make bsd-style init sysv-compatible|Howto make Bsd-style init sysv-compatible (archlinux guest system)]]<br />
* [[Installing 32-bit Fedora on 64-bit Debian]]<br />
* [[Installing Ubuntu on Debian]]<br />
* [[Installing an openSUSE vserver guest]]<br />
* [[Networking vserver guests]]<br />
* [[Howto HostAuth]]<br />
* [[Fuse_GlusterFS| Fuse and GlusterFS]]<br />
* [[yum-patch|How to patch vyum]]<br />
* [[yum-upgrade-3.2.4|Upgrading existing installations to yum-3.2.4]]<br />
* [[Migrating from OpenVZ to Linux-Vserver]]<br />
* [[Getting_high_with_lenny]]<br />
* [[Installing_Ubuntu_8.04_Hardy_as_guest]]<br />
* [[Applying CPU Limits]]<br />
* [[Upgrading from Etch to Lenny]]<br />
* [[Upstart issues]]<br />
* [[Limit Networking on Multihomed hosts]]<br />
* [[Read-only_RootFS]]<br />
* [[Building_CentOS_6_Guest]]<br />
* [[Building_CentOS_6_ALT_Guest]]<br />
<br />
== Lists &amp; Theory ==<br />
<br />
* Basic configuration<br />
** [[Capabilities and Flags]]<br />
** [[CPU Scheduler]]<br />
** [[Disk Limits and Quota]]<br />
** [[Resource Limits]]<br />
*** [[Memory Limits]]<br />
*** [[Network Bandwidth Management]]<br />
** [[Virtual System Information]]<br />
** [[Unification]]<br />
<br />
* Security Considerations<br />
** [[Secure Capabilities]]<br />
** [[Secure chroot Barrier]]<br />
** [[Secure Device Nodes]]<br />
** [[Secure ProcFS Entries]]<br />
<br />
* Performance and Stability<br />
** [[Virtualization Overhead]]<br />
<br />
* Implementation Details<br />
** [[Context Accounting]]<br />
** [[Filesystem Attributes]]<br />
** [[Filesystem Tagging]]<br />
** [[Filesystem Namespaces]]<br />
** [[Kernel Userspace Helper]]<br />
** [[Mainline Kernel Virtualization]]<br />
** [[ProcFS]]<br />
** [[Syscall Command Switch]]<br />
<br />
== External Resources ==<br />
<br />
* [http://vserver.13thfloor.at/Remote-Reset/ Simple Remote reset] (remote reset/power your vserver box)<br />
* [http://vserver.13thfloor.at/Null-Modem/ NullModem cables] [http://www.loop-back.com/null-mod.html II] [http://www.tldp.org/HOWTO/Remote-Serial-Console-HOWTO/serial-pc-terminal.html III] (cable required for serial console)<br />
* [http://www.tldp.org/HOWTO/Remote-Serial-Console-HOWTO/index.html Serial Console HOWTO]<br />
<br />
[[Category:Documentation| ]]<br />
[[Category:Community]]</div>Offset27http://www.linux-vserver.org/Building_CentOS_6_ALT_GuestBuilding CentOS 6 ALT Guest2013-05-21T19:49:59Z<p>Offset27: Created page with "Here is a quick guide to building a CentOS 6 ALT Guest. Cent OS 6 ALT has all the latest versions of php (as of now 5.3.23), apache, mysql. It's good if you need a site to be ..."</p>
<hr />
<div>Here is a quick guide to building a CentOS 6 ALT Guest. Cent OS 6 ALT has all the latest versions of php (as of now 5.3.23), apache, mysql. It's good if you need a site to be PCI Compliant. (PCI Compliance nowadays requires a scan of your box for vulnerabilities and if it finds an older version of apache or php, the versions that come with the latest version of centOS, the scan will complain)<br />
<br />
<br />
<br />
I followed the instructions from http://www.paul.sladen.org/vserver/archives/201202/0085.html with some updates.<br />
<br />
<br />
<br />
copy /usr/lib64/util-vserver/distributions/sl6/ to<br />
/usr/lib64/util-vserver/distributions/centos6alt/<br />
<br />
<br />
<br />
add to/usr/lib64/util-vserver/distributions/centos6alt/pkgs/03 with the following list:<br />
<br />
<br />
mc<br><br />
passwd<br><br />
tar<br><br />
unzip<br><br />
zip<br><br />
bzip2<br><br />
gzip<br><br />
crontabs<br><br />
shadow-utils<br><br />
yum<br><br />
openssh-server<br><br />
rsyslog-mysql<br><br />
xinetd<br><br />
at<br><br />
wget<br><br />
yum-utils<br><br />
tmpwatch<br><br />
<br />
<br />
delete :/usr/lib64/util-vserver/distributions/centos6alt/yum.repos.d/sl.repo<br />
<br />
<br />
copy the CentOS-Base.repo from your main Centos 6 repository /etc/yum.repos.d/CentOS-Base.repo to /usr/lib64/util-vserver/distributions/centos6alt/yum.repos.d/CentOS-Base.repo<br />
<br />
<br />
<br />
edit your copied CentOS-Base.repo and remove the addons sections as that will not work.<br />
<br />
<br />
<br />
add centalt.repo file to your yum.repos.d you can find a copy here: http://lifeunix.blogspot.com/2012/04/centos-6-centalt-repo-vim-etcyum.html<br />
<br />
<br />
copy your epel.repo from /etc/yum.repos.d to /usr/lib64/util-vserver/distributions/centos6alt/yum.repos.d/<br />
<br />
<br />
if you do not have epel.repo add that repository to your box. (you can do without it if you remove mc from the pkgs/03 list)<br />
<br />
<br />
<br />
after this I install Vserver with:<br />
vserver cos62 build -m yum --hostname cos62.domain.at<br />
--interface eth0:x.x.x.x/24 -- -d centos6alt<br />
<br />
<br />
Bind ssh to ip in /vservers/cos6x/etc/ssh/sshd_config<br />
ListenAddress x.x.x.x<br />
<br />
<br />
del /vservers/cos62/etc/localtime<br />
cp /etc/localtime /vservers/cos62/etc/localtime<br />
<br />
<br />
you should have a working CentOS 6 ALT Guest</div>Offset27http://www.linux-vserver.org/DocumentationDocumentation2013-05-21T19:34:43Z<p>Offset27: /* Guides and Howtos */</p>
<hr />
<div><div style="margin: 2em auto 2em auto; padding: 10px; background-color: #F9ECCD; border: 1px solid #004433; text-align: center;"><br />
[[Image:Icon-Caution.png|left]]<br />
We are currently migrating to MediaWiki from our old system, but not all content has been migrated yet. Take a look at the [[Wiki Team]] page for instructions how to help or look at the [http://oldwiki.linux-vserver.org old wiki] to find the information not migrated yet.<br />
<br />
'''To ease migration we created a [[List of old Documentation pages]].'''<br />
</div><br />
<br />
== Introduction ==<br />
<br />
* [[Overview|Virtualization Overview]]<br />
* [[Usage Scenarios]]<br />
* [[Feature Matrix]]<br />
<br />
== Installation ==<br />
<br />
* [[Installation Considerations]]<br />
* [[Installation on Linux 2.6]]: from source, both the kernel and util-vserver<br />
* [[Installation on ArchLinux]]<br />
* [[Installation on CentOS]]<br />
* [[Installation on Debian]]<br />
* [[Installation on Fedora]]<br />
* [[Installation on Gentoo]]<br />
* [[Installation on Mandrake]]<br />
* [http://www.pld-linux.org/Docs/Vserver Installation on PLD-Linux]<br />
* [[Installation on Redhat]]<br />
* [[Installation on Slackware]]<br />
** [[Installation on Slackware 14]]<br />
* [[Installation on SuSE/OpenSUSE]]<br />
* [[Installation on Ubuntu]]<br />
<br />
== Configuration ==<br />
<br />
* [[Util-vserver:Documentation|util-vserver Documentation]]<br />
* [[vcd:Documentation|VServer Control Daemon Documentation]]<br />
* [[Share a directory among multiple guests]]<br />
* [[Standard_non-shared_quota]]<br />
<br />
== Guides and Howtos ==<br />
<br />
* [[Building Guest Systems]]<br />
* [[util-vserver:Howto virtualize an exisiting Linux server|Howto virtualize an existing Linux server]]<br />
* [[VCMD HowTo]]<br />
* [[Howto make bsd-style init sysv-compatible|Howto make Bsd-style init sysv-compatible (archlinux guest system)]]<br />
* [[Installing 32-bit Fedora on 64-bit Debian]]<br />
* [[Installing Ubuntu on Debian]]<br />
* [[Installing an openSUSE vserver guest]]<br />
* [[Networking vserver guests]]<br />
* [[Howto HostAuth]]<br />
* [[Fuse_GlusterFS| Fuse and GlusterFS]]<br />
* [[yum-patch|How to patch vyum]]<br />
* [[yum-upgrade-3.2.4|Upgrading existing installations to yum-3.2.4]]<br />
* [[Migrating from OpenVZ to Linux-Vserver]]<br />
* [[Getting_high_with_lenny]]<br />
* [[Installing_Ubuntu_8.04_Hardy_as_guest]]<br />
* [[Applying CPU Limits]]<br />
* [[Upgrading from Etch to Lenny]]<br />
* [[Upstart issues]]<br />
* [[Limit Networking on Multihomed hosts]]<br />
* [[Read-only_RootFS]]<br />
* [[Building_CentOS_6_Guest]]<br />
<br />
== Lists &amp; Theory ==<br />
<br />
* Basic configuration<br />
** [[Capabilities and Flags]]<br />
** [[CPU Scheduler]]<br />
** [[Disk Limits and Quota]]<br />
** [[Resource Limits]]<br />
*** [[Memory Limits]]<br />
*** [[Network Bandwidth Management]]<br />
** [[Virtual System Information]]<br />
** [[Unification]]<br />
<br />
* Security Considerations<br />
** [[Secure Capabilities]]<br />
** [[Secure chroot Barrier]]<br />
** [[Secure Device Nodes]]<br />
** [[Secure ProcFS Entries]]<br />
<br />
* Performance and Stability<br />
** [[Virtualization Overhead]]<br />
<br />
* Implementation Details<br />
** [[Context Accounting]]<br />
** [[Filesystem Attributes]]<br />
** [[Filesystem Tagging]]<br />
** [[Filesystem Namespaces]]<br />
** [[Kernel Userspace Helper]]<br />
** [[Mainline Kernel Virtualization]]<br />
** [[ProcFS]]<br />
** [[Syscall Command Switch]]<br />
<br />
== External Resources ==<br />
<br />
* [http://vserver.13thfloor.at/Remote-Reset/ Simple Remote reset] (remote reset/power your vserver box)<br />
* [http://vserver.13thfloor.at/Null-Modem/ NullModem cables] [http://www.loop-back.com/null-mod.html II] [http://www.tldp.org/HOWTO/Remote-Serial-Console-HOWTO/serial-pc-terminal.html III] (cable required for serial console)<br />
* [http://www.tldp.org/HOWTO/Remote-Serial-Console-HOWTO/index.html Serial Console HOWTO]<br />
<br />
[[Category:Documentation| ]]<br />
[[Category:Community]]</div>Offset27http://www.linux-vserver.org/Building_CentOS_6_GuestBuilding CentOS 6 Guest2013-05-21T19:33:55Z<p>Offset27: Building CentOS 6 Guest</p>
<hr />
<div>Here is a quick guide to building a CentOS 6 Guest. I didn't see instructions on here.<br />
<br />
I followed the instructions from http://www.paul.sladen.org/vserver/archives/201202/0085.html with some updates.<br />
<br />
copy /usr/lib64/util-vserver/distributions/sl6/ to<br />
/usr/lib64/util-vserver/distributions/centos6/<br />
<br />
add to/usr/lib64/util-vserver/distributions/centos6/pkgs/03 with the following list:<br />
<br />
<br />
mc<br><br />
passwd<br><br />
tar<br><br />
unzip<br><br />
zip<br><br />
bzip2<br><br />
gzip<br><br />
crontabs<br><br />
shadow-utils<br><br />
yum<br><br />
openssh-server<br><br />
rsyslog-mysql<br><br />
xinetd<br><br />
at<br><br />
wget<br><br />
yum-utils<br><br />
tmpwatch<br><br />
<br />
<br />
delete :/usr/lib64/util-vserver/distributions/centos6/yum.repos.d/sl.repo<br />
<br />
<br />
copy the CentOS-Base.repo from your main Centos 6 repository /etc/yum.repos.d/CentOS-Base.repo to /usr/lib64/util-vserver/distributions/centos6/yum.repos.d/CentOS-Base.repo<br />
<br />
<br />
edit your copied CentOS-Base.repo and remove the addons sections as that will not work.<br />
<br />
<br />
after this I install Vserver with:<br />
vserver cos62 build -m yum --hostname cos62.domain.at<br />
--interface eth0:x.x.x.x/24 -- -d centos6<br />
<br />
<br />
Bind ssh to ip in /vservers/cos6x/etc/ssh/sshd_config<br />
ListenAddress x.x.x.x<br />
<br />
<br />
del /vservers/cos62/etc/localtime<br />
cp /etc/localtime /vservers/cos62/etc/localtime<br />
<br />
<br />
you should have a working CentOS 6 Guest</div>Offset27