OpenVZ Forum


Home » Mailing lists » Users » error with centos 5 template in centos 5 host
error with centos 5 template in centos 5 host [message #22275] Wed, 24 October 2007 12:24 Go to next message
Roberto Pereyra is currently offline  Roberto Pereyra
Messages: 9
Registered: May 2006
Junior Member
Hello

I using the unofficial centos-5 template from openvz site in a centos
5 host and have this error when start my vps:

--------------------------------------------------------------------

[root@centos ~]# vzctl start 100
Starting VE ...
VE is mounted
Adding IP address(es): 192.168.0.1
 ERROR: Can't copy file /etc/sysconfig/network
bash: line 61:  7714 Segmentation fault      ${CP} ${file} ${file}.$$
Setting CPU units: 1000
Configure meminfo: 49152
File resolv.conf was modified
VE start in progress...


---------------------------------------------------------------------

I can ssh access to my vps but not have network.

roberto




-- 
Ing. Roberto Pereyra
ContenidosOnline
http://www.contenidosonline.com.ar

Get secure managed email for your own domain with Hushmail Business -
http://www.hushmail.com/business?l=503&a=3211
Re: error with centos 5 template in centos 5 host [message #22280 is a reply to message #22275] Wed, 24 October 2007 13:07 Go to previous messageGo to next message
gblond is currently offline  gblond
Messages: 64
Registered: May 2007
Member
On 24 October 2007 16:24:19 Roberto Pereyra wrote:
> Hello
>
> I using the unofficial centos-5 template from openvz site in a centos
> 5 host and have this error when start my vps:
>
> --------------------------------------------------------------------
>
> [root@centos ~]# vzctl start 100
> Starting VE ...
> VE is mounted
> Adding IP address(es): 192.168.0.1
>  ERROR: Can't copy file /etc/sysconfig/network
> bash: line 61:  7714 Segmentation fault      ${CP} ${file} ${file}.$$

1) Check disk space on HW.
2) What vzctl version do you use?
3) Which centos-5 template do you use, default of minimal?

> Setting CPU units: 1000
> Configure meminfo: 49152
> File resolv.conf was modified
> VE start in progress...
>
>
> ---------------------------------------------------------------------
>
> I can ssh access to my vps but not have network.
>
> roberto



-- 
Thank,
Vitaliy Gusev
Re: error with centos 5 template in centos 5 host [message #22286 is a reply to message #22280] Wed, 24 October 2007 14:01 Go to previous messageGo to next message
Roberto Pereyra is currently offline  Roberto Pereyra
Messages: 9
Registered: May 2006
Junior Member
Thanks Vilaliy, this issue was solved, I had wrong my sysctl settings.

I have other question:

I setting my vps following the openvz wiki and have a routing error,
all vps have like default routing "192.0.2.1", not the HN default
route or my default HN ethernet interface.

Then I can't have internet access from my vps.

I using vzctl version 3.0.18

This happen with all template that I use and too with  the "oficial"
centos4-minimal template.

Can anybody help me ? Excuse my english.

Roberto


-- 
Ing. Roberto Pereyra
ContenidosOnline
http://www.contenidosonline.com.ar

Get secure managed email for your own domain with Hushmail Business -
http://www.hushmail.com/business?l=503&a=3211
Re: error with centos 5 template in centos 5 host [message #22288 is a reply to message #22286] Wed, 24 October 2007 14:43 Go to previous messageGo to next message
Roberto Pereyra is currently offline  Roberto Pereyra
Messages: 9
Registered: May 2006
Junior Member
I running the ovzkernel-xen-2.6.18-8.1.14.el5.028stab045.1 kernel.

roberto


-- 
Ing. Roberto Pereyra
ContenidosOnline
http://www.contenidosonline.com.ar

Get secure managed email for your own domain with Hushmail Business -
http://www.hushmail.com/business?l=503&a=3211
Re: error with centos 5 template in centos 5 host [message #22292 is a reply to message #22286] Wed, 24 October 2007 14:52 Go to previous messageGo to next message
gblond is currently offline  gblond
Messages: 64
Registered: May 2007
Member
On 24 October 2007 18:01:20 Roberto Pereyra wrote:
> Thanks Vilaliy, this issue was solved, I had wrong my sysctl settings.
Please specify it sysctl settings.

>
> I have other question:
>
> I setting my vps following the openvz wiki and have a routing error,
> all vps have like default routing "192.0.2.1", not the HN default
> route or my default HN ethernet interface.

Can you give access to your HW?

>
> Then I can't have internet access from my vps.
>
> I using vzctl version 3.0.18
>
> This happen with all template that I use and too with  the "oficial"
> centos4-minimal template.
>
> Can anybody help me ? Excuse my english.
>
> Roberto



-- 
Thank,
Vitaliy Gusev
Re: error with centos 5 template in centos 5 host [message #22297 is a reply to message #22288] Wed, 24 October 2007 15:04 Go to previous messageGo to next message
gblond is currently offline  gblond
Messages: 64
Registered: May 2007
Member
On 24 October 2007 18:43:13 Roberto Pereyra wrote:
> I running the ovzkernel-xen-2.6.18-8.1.14.el5.028stab045.1 kernel.

Why do you use openvz+xen kernel?

>
> roberto



-- 
Thank,
Vitaliy Gusev
Re: error with centos 5 template in centos 5 host [message #22298 is a reply to message #22292] Wed, 24 October 2007 15:09 Go to previous messageGo to next message
Roberto Pereyra is currently offline  Roberto Pereyra
Messages: 9
Registered: May 2006
Junior Member
cat /etc/sysctl.conf
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled.  See sysctl(8) and
# sysctl.conf(5) for more details.

# Controls IP packet forwarding
net.ipv4.ip_forward = 1

# Controls source route verification
net.ipv4.conf.default.rp_filter = 1

# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0

# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 1

# Controls whether core dumps will append the PID to the core filename
# Useful for debugging multi-threaded applications
kernel.core_uses_pid = 1

# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1

# Controls the maximum size of a message, in bytes
kernel.msgmnb = 65536

# Controls the default maxmimum size of a mesage queue
kernel.msgmax = 65536

# Controls the maximum shared segment size, in bytes
kernel.shmmax = 4294967295

# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 268435456

net.ipv4.conf.default.proxy_arp = 0

net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0


> Can you give access to your HW?

yes I can ssh access from HN. to VN and from VN ping to HN but can't
ping to my gateway

roberto


-- 
Ing. Roberto Pereyra
ContenidosOnline
http://www.contenidosonline.com.ar

Get secure managed email for your own domain with Hushmail Business -
http://www.hushmail.com/business?l=503&a=3211
Re: error with centos 5 template in centos 5 host [message #22299 is a reply to message #22297] Wed, 24 October 2007 15:16 Go to previous messageGo to next message
Roberto Pereyra is currently offline  Roberto Pereyra
Messages: 9
Registered: May 2006
Junior Member
> Why do you use openvz+xen kernel?

Because I was testing xen in the same server before.

With this kernel can I have xen and openvz together ?

roberto



-- 
Ing. Roberto Pereyra
ContenidosOnline
http://www.contenidosonline.com.ar

Get secure managed email for your own domain with Hushmail Business -
http://www.hushmail.com/business?l=503&a=3211
Re: error with centos 5 template in centos 5 host [message #22300 is a reply to message #22299] Wed, 24 October 2007 15:27 Go to previous messageGo to next message
gblond is currently offline  gblond
Messages: 64
Registered: May 2007
Member
On 24 October 2007 19:16:30 Roberto Pereyra wrote:
> > Why do you use openvz+xen kernel?
>
> Because I was testing xen in the same server before.
>
> With this kernel can I have xen and openvz together ?

Yes, but it is in the testing state. 

>
> roberto



-- 
Thank,
Vitaliy Gusev
Re: error with centos 5 template in centos 5 host [message #22320 is a reply to message #22275] Thu, 25 October 2007 07:08 Go to previous message
gblond is currently offline  gblond
Messages: 64
Registered: May 2007
Member
Problem: when we do ping 192.168.0.2 (router) from VE100(192.168.0.1) then 
router answers don't reach the VE100.

I checked your HN and there are results:

Host 192.168.0.2 has permanent arp entry for ip 192.168.0.1:  00:16:3e:72:36:5
Although arp entry for ip 192.168.0.1 (VE100) must be 00:18:F3:50:72:AC ( the 
same as for HN ip 192.168.0.5)

------------
Decision: you must delete arp entry for the host 192.168.0.1 on the host 
192.168.0.2.

-- 
Thank,
Vitaliy Gusev
Previous Topic: OpenVZ kernel based Debian etch kernel-patch-openvz 028.18.1etch5 package
Next Topic: October 72% OFF
Goto Forum:
  


Current Time: Thu Nov 07 01:27:47 GMT 2024

Total time taken to generate the page: 0.03348 seconds