OpenVZ Forum


Home » General » Support » /* SOLVED */ My First VPS !
icon13.gif  /* SOLVED */ My First VPS ! [message #28805] Fri, 28 March 2008 16:02 Go to next message
wahb is currently offline  wahb
Messages: 4
Registered: March 2008
Location: TN
Junior Member
welcome
please help me in this

i started creating my 1st vps !

Ok here what i did exactly :

vzctl create 1 --ostemplate centos-4-i386-default
-----
vzctl start 1
-----
vzctl set 1 --onboot yes --save
-----
vzctl set 1 --ipadd 67.0.0.2 --hostname 1st.openvz.com --save
-----
vzctl set 1 --nameserver 4.2.2.1 --save
-----
vzctl set 1 --ipadd 67.0.0.3 --save
vzctl set 1 --ipadd 67.0.0.4 --save
vzctl set 1 --ipadd 67.0.0.5 --save
-----
vzyum 1 install yum wget perl nano
-----

at here all thing i thing Ok ?

so now the next step

----
vzctl enter 1

[root@server 1st]# wget http://layer1.cpanel.net/latest
--03:58:59-- http://layer1.cpanel.net/latest
=> `latest'
Resolving layer1.cpanel.net... failed: Temporary failure in name resolution.

---

[root@2ed /]# cat /etc/resolv.conf
nameserver 4.2.2.1

---

whats the problem ?
maybe is here ? vvv
------------------
[root@2ed /]# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:948 (948.0 b)

venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:67.0.0.6 P-t-P:67.0.0.2 Bcast:67.0.0.6 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1

venet0:1 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:67.0.0.7 P-t-P:67.0.0.3 Bcast:67.0.0.7 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1

venet0:2 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:67.0.0.8 P-t-P:67.0.0.4 Bcast:67.0.0.8 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1

venet0:3 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:67.0.0.9 P-t-P:67.0.0.5 Bcast:67.0.0.9 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
------------------

Please help me step by step Embarassed

[Updated on: Mon, 31 March 2008 04:43] by Moderator

Report message to a moderator

Re: My First VPS ! [message #28819 is a reply to message #28805] Sat, 29 March 2008 09:39 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Have you enabled IP forwarding on the host node, as per http://wiki.openvz.org/Quick_installation#sysctl ?

Note if you edit /etc/sysctl.conf and want to apply new settings, you need to run sysctl -p.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: My First VPS ! [message #28824 is a reply to message #28819] Sat, 29 March 2008 13:36 Go to previous messageGo to next message
wahb is currently offline  wahb
Messages: 4
Registered: March 2008
Location: TN
Junior Member
Thanks now all things are OK
** SOLVED **
Re: My First VPS ! [message #28827 is a reply to message #28824] Sat, 29 March 2008 14:55 Go to previous messageGo to next message
wahb is currently offline  wahb
Messages: 4
Registered: March 2008
Location: TN
Junior Member
Welcome guys

i have 2 swaps and 2 VE
/swap0 : 4GB
/swap1 : 4GB

i need to share /swap1 btw the 2 VE ( 2GB for each one )
and /swap0 will be for the node

how ?
thanks
Re: My First VPS ! [message #28834 is a reply to message #28827] Sat, 29 March 2008 20:22 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

No way. Swap is a common resource between hardware node and all VEs. You can limit swap usage indirectly by user beancounters, but there is no way to set swap per container or smth.

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: My First VPS ! [message #28850 is a reply to message #28805] Sun, 30 March 2008 23:36 Go to previous message
wahb is currently offline  wahb
Messages: 4
Registered: March 2008
Location: TN
Junior Member
Ok thanks
Please can u write the cmd line that i can can limit swap usage indirectly by user beancounters

Thanks
Previous Topic: ls: reading directory .: Input/output error
Next Topic: VPS ID like 0815-0815 possible or how to migrate same IDs to other HN?
Goto Forum:
  


Current Time: Tue Feb 27 15:07:23 GMT 2024

Total time taken to generate the page: 0.02696 seconds