In order to use the VM I created succesfully, I want to use NAT for this pc will become shortly the gateway/router for the entire home-network here, and then NAT is required for I get only one IPv4-address of my ISP :’( . I wasn’t able to figure it out right away, however, I found here a website describing it all.
Archive for the ‘Washington’ Category
Natting the VM’s
Monday, August 14th, 2006Apache + php4 + php5
Sunday, August 6th, 2006I recently asked my host whether they could enable php5. For I had made a php5 script, and php4 only is installed on their server. After several days I got a reply: “This is not possible without running two instances of apache”. Today I’m gonna try to install CentOS (which they run as well), php4 and php5.
First we have to create a machine with CentOS for I want to make a replica as good as possible.
debian:/vz/template/cache# w-get http://download.openvz.org/template/precreated/centos-4-i386-minimal.tar.gz
debian:/vz/template/cache# cp centos-4-i386-minimal.tar.gz /var/lib/vz/template/cache/
debian:/vz/template/cache# vzctl create 101 --ostemplate centos-4-i386-minimal --config vps.basic
Creating VPS private area: /var/lib/vz/private/101
Performing postcreate actions
VPS private area was created
debian:~# vzctl start 101
debian:~# vzctl set 101 --ipadd 192.168.127.1 --save
debian:~# vzctl exec 101 passwd
debian:~# vzctl exec 101 hostname VM101centos
Okay, so we’ve now got a machine running centos, the hostname is not nescesary, but I just added that one in order to keep a bit of structure between all our Virtual Machines. I’m used to work with Debian and APT, so I’m really interested in how centOS will suit my needs. I want to run apache 1.3 and PHP4 as a module first, and afterwards see how I can enable PHP5 using the cgi wrapper.
debian:~# ssh 192.168.127.1
debian:~# RPM -uvh apache
At this point I encountered a problem, there’s no internet connection available. Which means that I will have to do that first. I pick NAT (other possibilities were Routering and bridging), I’ll explain some other post why.
Packaging the linux kernel with openVZ support
Saturday, August 5th, 2006The past few days I tried to patch the openvz patch with the default linux kernel, then I tried to compile it, and afterwards, package it. And guess what, I succeeded
. My goal, run several (virtual) machines on one pysical machine using OpenVZ. I used the openvz kernel patch of Henk van de Kamer (www.hetlab.tk) and the default vanilla kernel.