OpenVZ Forum


Home » General » Support » *SUCCESS* Centos 5--64 host - my experience with openvz so far
*SUCCESS* Centos 5--64 host - my experience with openvz so far [message #13415] Sat, 26 May 2007 05:14 Go to next message
kingneutron is currently offline  kingneutron
Messages: 30
Registered: May 2007
Location: NE IL, USA
Member
--I liked the livecd, but it was 32-bit; so I...

o Cloned existing Centos 5--64 installation from sdb1 to hdd5, updated Grub, rebooted into it

+ Added openvz repo from http://download.openvz.org/openvz.repo
to /etc/yum.repos.d

' yum install vzctl vzctl-lib '

+ Set /boot kernel to: /boot/vmlinuz-2.6.18-8.el5.028stab031.1

! To redo nvidia, had to install pkg ovzkernel-devel

' yum install ovzkernel-devel '

+ Reinstalled Nvidia binary driver.

' yum install vztmpl-centos-4 ' # ERROR:
[[
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for vztmpl-centos-4 to pack into transaction set.
vztmpl-centos-4-2.0-2.i38 100% |=========================| 5.4 kB    00:00
---> Package vztmpl-centos-4.i386 0:2.0-2 set to be updated
--> Running transaction check
--> Processing Dependency: vzrpm43 for package: vztmpl-centos-4
--> Processing Dependency: vzpkg >= 2.7.0-18 for package: vztmpl-centos-4
--> Processing Dependency: vzrpm43-python for package: vztmpl-centos-4   
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for vzpkg to pack into transaction set.
vzpkg-2.7.0-18.noarch.rpm 100% |=========================| 4.2 kB    00:00
---> Package vzpkg.noarch 0:2.7.0-18 set to be updated
---> Downloading header for vzrpm43 to pack into transaction set.
vzrpm43-4.3.3-7_nonptl.6. 100% |=========================|  13 kB    00:00
---> Package vzrpm43.i386 0:4.3.3-7_nonptl.6 set to be updated
---> Downloading header for vzrpm43-python to pack into transaction set.
vzrpm43-python-4.3.3-7_no 100% |=========================| 4.4 kB    00:00
---> Package vzrpm43-python.i386 0:4.3.3-7_nonptl.6 set to be updated
--> Running transaction check
--> Processing Dependency: vzyum >= 2.4.0-5 for package: vzpkg
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for vzyum to pack into transaction set.
vzyum-2.4.0-11.noarch.rpm 100% |=========================|  18 kB    00:00
---> Package vzyum.noarch 0:2.4.0-11 set to be updated
--> Running transaction check
--> Processing Dependency: cElementTree.so for package: vzyum
--> Finished Dependency Resolution
Error: Missing Dependency: cElementTree.so is needed by package vzyum
]]

' yum whatprovides cElementTree.so '
[[
python-celementtree.x86_64               1.0.5-1.2.el5.rf       rpmforge
Matched from:
/usr/lib64/python2.4/site-packages/cElementTree.so
cElementTree.so()(64bit)

python-celementtree.x86_64               1.0.5-1.2.el5.rf       rpmforge
Matched from:
/usr/lib64/python2.4/site-packages/cElementTree.so
cElementTree.so()(64bit)

python-elementtree.x86_64                1.2.6-5                base
Matched from:
/usr/lib64/python2.4/site-packages/cElementTree.so
cElementTree.so()(64bit)

python-elementtree.x86_64                1.2.6-5                base
Matched from:
/usr/lib64/python2.4/site-packages/cElementTree.so
cElementTree.so()(64bit)

python-elementtree.x86_64                1.2.6-5                installed
Matched from:
/usr/lib64/python2.4/site-packages/cElementTree.so
cElementTree.so()(64bit)
]]

' yum install vztmpl-centos-4 python-elementtree '
[[
--> Populating transaction set with selected packages. Please wait.
---> Package vztmpl-centos-4.i386 0:2.0-2 set to be updated
--> Running transaction check
--> Processing Dependency: vzrpm43 for package: vztmpl-centos-4
--> Processing Dependency: vzpkg >= 2.7.0-18 for package: vztmpl-centos-4
--> Processing Dependency: vzrpm43-python for package: vztmpl-centos-4
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package vzpkg.noarch 0:2.7.0-18 set to be updated
---> Package vzrpm43.i386 0:4.3.3-7_nonptl.6 set to be updated
---> Package vzrpm43-python.i386 0:4.3.3-7_nonptl.6 set to be updated
--> Running transaction check
--> Processing Dependency: vzyum >= 2.4.0-5 for package: vzpkg
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package vzyum.noarch 0:2.4.0-11 set to be updated
--> Running transaction check
--> Processing Dependency: cElementTree.so for package: vzyum
--> Finished Dependency Resolution
Error: Missing Dependency: cElementTree.so is needed by package vzyum
]]

--Any ideas?

[Updated on: Sat, 26 May 2007 12:43] by Moderator

Report message to a moderator

Re: Centos 5--64 host - my experience with openvz so far [message #13416 is a reply to message #13415] Sat, 26 May 2007 05:59 Go to previous message
kingneutron is currently offline  kingneutron
Messages: 30
Registered: May 2007
Location: NE IL, USA
Member
--I got around it. Installed a template manually into /vz/template/cache and went from there.

+ Added " echo 1 > /proc/sys/net/ipv4/ip_forward " to boot.local

+ /vz/template/cache is where downloaded stuff goes...

+ Copied downloaded templates so they can be insalled: /vz/template/cache # cp /mnt/cdtemp/openvz/* .

REFERENCE:
http://wiki.openvz.org/Basic_operations_in_OpenVZ

+ Created new VM:
' vzctl create 101 --ostemplate debian-4.0-i386-minimal '
( root disk will be in /vz/private/101 )

' vzlist -a '

' vzctl start 101 '
vzctl exec 101 ' ps ax '

' vzctl set 101 --ipadd 10.0.100.226 --save '
' vzctl set 101 --ipadd 192.168.2.227 --save ' # My local DHCPnet

(( in-guest:
goebbels:/# ftp_proxy=http://10.0.0.4:3128/
goebbels:/# http_proxy=http://10.0.0.4:3128/

goebbels:/# apt-get update
0% [Connecting to ftp.se.debian.org] [Connecting to security.debian.org]

# No I/O
goebbels:/# ping kernel.org

goebbels:/# cat /etc/resolv.conf
nameserver 192.168.0.4

goebbels:/# echo 'nameserver 10.0.0.4' >/etc/resolv.conf
goebbels:/# ping kernel.org
ping: unknown host kernel.org

goebbels:/# echo 'nameserver 192.168.2.1' >/etc/resolv.conf
goebbels:/# ping kernel.org
PING kernel.org (204.152.191.37) 56(84) bytes of data.
64 bytes from pub2.kernel.org (204.152.191.37): icmp_seq=1 ttl=43 time=60.2 ms

' cat /proc/user_beancounters  '

Version: 2.5
       uid  resource                held              maxheld              barrier                limit
      101:  kmemsize              677273              1154357              5242880              5592405
            lockedpages                0                    0                   32                   32
            privvmpages             1102                 3070                35000                38181
            shmpages                   0                    0                 8192                 8192

))

--Adjusted beancounters shmpages:
' vzctl set 101 --shmpages $((8192*8)):$((8192*8)) --save '

((
' apt-get install joe mc screen '

echo 'openvz-debian4' >/etc/hostname
goebbels:/# hostname --file /etc/hostname

# logout/login; hostname OK
))

' vzlist -a '
[[
VEID NPROC STATUS IP_ADDR HOSTNAME
101 6 running 10.0.100.226 -
]] # Note that the 2nd IP addr is not listed...

--Looks like adjusting shmpages is only useful on the livecd.
- Readjusted shmpages back down to 16384 Justincase.

===========

--Note that I was able to skip the NAT step. (I have cable broadband Internet and a DHCP/NAT router.)

--Now all I need to do is set up the guest to do something $useful/spiffy like Web serving, and test performance results. Smile
Previous Topic: Notice : Undefined property: reversedns_b::$enableflag in /usr/local/lxlabs/hypervm/httpdocs/htmll
Next Topic: create a private network.
Goto Forum:
  


Current Time: Sun Nov 17 17:39:32 GMT 2024

Total time taken to generate the page: 0.02877 seconds