OpenVZ Forum


Home » General » Support » *SUCCESS* Centos 5--64 host - my experience with openvz so far
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
 
Read Message
Read Message
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: Wed Sep 11 15:23:55 GMT 2024

Total time taken to generate the page: 0.07714 seconds