Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th May 2012, 00:43
scottrill2 scottrill2 is offline
HowtoForge Supporter
 
Join Date: Dec 2009
Posts: 93
Thanks: 21
Thanked 2 Times in 1 Post
Default OpenVZ issues with ISPConfig 3

Hello All,


I used the tutorial here at: http://www.howtoforge.com/installing...g-3-debian-6.0

When I try to create a vm through ISPConfig 3 it returns the following:

Container private area /vz/private/101 does not exist
Container private area /vz/private/101 does not exist

Now I can go in through VZCTL and create one just fine, however that one then does not show up in ISPConfig 3

I created container 102 manually and one thing I noticed is it creates a "102" folder in both of these locations:

/var/lib/vz/private/102
/var/lib/vz/root/102

These folders are full of the debian 6 OS.

Now the "/var/lib/vz/private/101" folder has the debian 6 folders but the "/var/lib/vz/root/101" is an empty folder.

I copied and pasted the tutorial so I do not believe that it is a typo.

I didn't know how to diagnose this aside from running "vzlist -a" lol which shows the manually created vm and not the ISPConfig 3 created one.

I appreciate all the help as always folks,

Scott
Reply With Quote
Sponsored Links
  #2  
Old 15th May 2012, 15:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Did you create this symlink?
Code:
ln -s /var/lib/vz /vz
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 16th May 2012, 04:07
scottrill2 scottrill2 is offline
HowtoForge Supporter
 
Join Date: Dec 2009
Posts: 93
Thanks: 21
Thanked 2 Times in 1 Post
Default

Hello Falko,

Yes I had that already. I always copy and paste your and Till's tutorials so that I don't have a fat fingers mistake lol

If I put command in again I get the following:

ln: creating symbolic link `/vz/vz': File exists


Any other steps to try and trouble shoot?

Thanks as always,

Scott
Reply With Quote
  #4  
Old 16th May 2012, 11:57
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Why does it say "/vz/vz"?

Can you post the output of
Code:
ls -la /
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 16th May 2012, 12:39
scottrill2 scottrill2 is offline
HowtoForge Supporter
 
Join Date: Dec 2009
Posts: 93
Thanks: 21
Thanked 2 Times in 1 Post
Default

Sure thing Falko,

ls -la /
total 100
drwxr-xr-x 23 root root 4096 May 14 15:33 .
drwxr-xr-x 23 root root 4096 May 14 15:33 ..
drwxr-xr-x 3 root root 4096 May 14 15:03 backup
drwxr-xr-x 2 root root 4096 May 14 15:45 bin
drwxr-xr-x 3 root root 4096 May 14 15:33 boot
drwxr-xr-x 17 root root 3400 May 14 16:07 dev
drwxr-xr-x 76 root root 4096 May 14 16:06 etc
drwxr-xr-x 3 root root 4096 May 14 15:10 home
lrwxrwxrwx 1 root root 37 May 14 15:33 initrd.img -> boot/initrd.img-2.6.32-5-openvz-amd64
lrwxrwxrwx 1 root root 30 May 14 15:07 initrd.img.old -> boot/initrd.img-2.6.32-5-amd64
drwxr-xr-x 11 root root 12288 May 14 15:45 lib
lrwxrwxrwx 1 root root 4 May 14 15:06 lib64 -> /lib
drwx------ 2 root root 16384 May 14 15:03 lost+found
drwxr-xr-x 3 root root 4096 May 14 15:04 media
drwxr-xr-x 2 root root 4096 Jan 12 11:44 mnt
drwxr-xr-x 2 root root 4096 May 14 15:06 opt
dr-xr-xr-x 181 root root 0 May 14 16:06 proc
drwx------ 3 root root 4096 May 14 16:56 root
drwxr-xr-x 2 root root 4096 May 14 15:55 sbin
drwxr-xr-x 2 root root 4096 Jul 21 2010 selinux
drwxr-xr-x 2 root root 4096 May 14 15:06 srv
drwxr-xr-x 13 root root 0 May 14 16:06 sys
drwxrwxrwt 2 root root 4096 May 16 04:30 tmp
drwxr-xr-x 10 root root 4096 May 14 15:06 usr
drwxr-xr-x 16 root root 4096 May 15 00:30 var
lrwxrwxrwx 1 root root 34 May 14 15:33 vmlinuz -> boot/vmlinuz-2.6.32-5-openvz-amd64
lrwxrwxrwx 1 root root 27 May 14 15:07 vmlinuz.old -> boot/vmlinuz-2.6.32-5-amd64
drwxr-xr-x 3 root root 4096 May 14 15:34 vz

There isnt a /vz/vz location I can see through my sftp client. Now there is in /vz a shortcut looking file called vz, but I figured that was the symbolic link we create towards the beginning of the tutorial. Clicking on that shortcut through sftp takes me to "/var/lib/vz".

Thanks as always Falko,

Scott
Reply With Quote
  #6  
Old 16th May 2012, 12:59
scottrill2 scottrill2 is offline
HowtoForge Supporter
 
Join Date: Dec 2009
Posts: 93
Thanks: 21
Thanked 2 Times in 1 Post
Default

You know,

I didn't think it was important when I first posted, but maybe it is what with the /vz/vz issue.

The tutorial I followed I think assumes you have a plain jane version of Debian Squeeze installed.

I do have squeeze 64 bit minimal installed, but one thing I did do was:

1. Used LVM per Falko's beginner guide and I do have a logical volume called "vz-space" mounted to "/vz"

I liked the way LVM sounded in your tutorial Falko so I have like "Var" and "Home" etc in their own logical volumes. I am poor at estimating proper size for each partition and I read that having everything under / is not secure as possible so I figured I could shrink and expand the mount points as they grew etc.

Could the /vz/vz issue be because the folder /vz is also mount point /vz?

Thanks as always,

Scott
Reply With Quote
  #7  
Old 16th May 2012, 13:14
scottrill2 scottrill2 is offline
HowtoForge Supporter
 
Join Date: Dec 2009
Posts: 93
Thanks: 21
Thanked 2 Times in 1 Post
Default

Wow it looks like that mount point is the issue, lol here I thought I was slick making /vz its own partition / mount point for security lol

I umounted that and all seems well and perfect.


I am going to play with it for a bit and make sure.

Thanks as always Falko!

Scott
Reply With Quote
  #8  
Old 17th May 2012, 03:33
scottrill2 scottrill2 is offline
HowtoForge Supporter
 
Join Date: Dec 2009
Posts: 93
Thanks: 21
Thanked 2 Times in 1 Post
Default

Ok,

To touch base the issue of the VZ container not being created by ISPConfig has been solved by unmounting and removing that vz partition lol

However OpenVZ still hates me lol I create 101 in ISPConfig and 102 manually with basic config. The 101 instantly shuts down, boots me from ssh and even causes ISPConfig to shut down on me.

I have checked VZCTL and ISPCron logs to try and see whats going on.

vctl.log

2012-05-16T18:32:40-0600 vzctl : CT 101 : Starting container ...
2012-05-16T18:32:40-0600 vzctl : CT 101 : Container is mounted
2012-05-16T18:32:40-0600 vzctl : CT 101 : Warning: NUMIPTENT 0:0 is less than minimally allowable value, set to 16:16
2012-05-16T18:32:40-0600 vzctl : CT 101 : Unable to apply network parameters: container is not running
2012-05-16T18:32:40-0600 vzctl : CT 101 : Container start failed
2012-05-16T18:32:40-0600 vzctl : CT 101 : Container is unmounted
2012-05-16T18:40:14-0600 vzctl : CT 101 : Starting container ...
2012-05-16T18:40:14-0600 vzctl : CT 101 : Container is mounted
2012-05-16T18:40:14-0600 vzctl : CT 101 : Warning: NUMIPTENT 0:0 is less than minimally allowable value, set to 16:16
2012-05-17T00:40:14+0000 vzctl : CT 101 : Unable to fork: Cannot allocate memory
2012-05-16T18:40:14-0600 vzctl : CT 101 : Unable to apply network parameters: container is not running
2012-05-16T18:40:14-0600 vzctl : CT 101 : Container start failed
2012-05-16T18:40:14-0600 vzctl : CT 101 : Container is unmounted
2012-05-16T18:41:43-0600 vzctl : CT 101 : Restarting container
2012-05-16T18:41:43-0600 vzctl : CT 101 : Starting container ...
2012-05-16T18:41:43-0600 vzctl : CT 101 : Container is mounted
2012-05-16T18:41:43-0600 vzctl : CT 101 : Warning: NUMIPTENT 0:0 is less than minimally allowable value, set to 16:16
2012-05-16T18:46:04-0600 vzctl : CT 101 : Removing stale lock file /var/lib/vz/lock/101.lck
2012-05-16T18:46:04-0600 vzctl : CT 101 : Saved parameters for CT 101
2012-05-16T18:46:37-0600 vzctl : CT 101 : Restarting container
2012-05-16T18:46:37-0600 vzctl : CT 101 : Starting container ...
2012-05-16T18:46:37-0600 vzctl : CT 101 : Container is unmounted
2012-05-16T18:46:37-0600 vzctl : CT 101 : Container is mounted
2012-05-16T18:49:04-0600 vzctl : CT 101 : Removing stale lock file /var/lib/vz/lock/101.lck
2012-05-16T18:49:04-0600 vzctl : CT 101 : Starting container ...
2012-05-16T18:49:04-0600 vzctl : CT 101 : Container is unmounted
2012-05-16T18:49:04-0600 vzctl : CT 101 : Container is mounted
2012-05-17T00:49:04+0000 vzctl : CT 101 : Unable to fork: Cannot allocate memory
2012-05-16T18:49:04-0600 vzctl : CT 101 : Unable to apply network parameters: container is not running
2012-05-16T18:49:04-0600 vzctl : CT 101 : Container start failed
2012-05-16T18:49:04-0600 vzctl : CT 101 : Container is unmounted
2012-05-16T18:49:49-0600 vzctl : CT 101 : Container is not running


ISPCron.log

sh: repquota: command not found
sh: repquota: command not found
sh: repquota: command not found
sh: repquota: command not found
sh: repquota: command not found
sh: repquota: command not found
vzquota : (warning) quota usage is invalid for id 101, recalculating disk usage...
Warning: NUMIPTENT 0:0 is less than minimally allowable value, set to 16:16
Unable to fork/usr/local/ispconfig/server/server.sh: line 8: 3074 Killed /usr/bin/php -q /usr/local/ispconfig/server/server.php
Warning: NUMIPTENT 0:0 is less than minimally allowable value, set to 16:16
Unable to fork: Cannot allocate memory
Unable to apply network parameters: container is not running
Container start failed
Warning: NUMIPTENT 0:0 is less than minimally allowable value, set to 16:16
Unable to fork: Cannot allocate memory
Unable to apply network parameters: container is not running
Container start failed
Private area already exists in /vz/private/101
Creation of container private area failed
Warning: NUMIPTENT 0:0 is less than minimally allowable value, set to 16:16
Unable to fork/usr/local/ispconfig/server/server.sh: line 8: 2259 Killed /usr/bin/php -q /usr/local/ispconfig/server/server.php


I got rid of those "sh: repquota:" issues by using a trick Falko mentioned in another post so no worries there.

A few questions? Is the "small" vm template the same as using "--config basic" when manually creating a vm?

Also if I do the cat /proc/user/beancounter command it tells me I have 36 fails on "oomguarpages" I read this deals with memory, this server has 16GB so I don't understand that but anyway lol

Another step I took is to manually change the NUMIPTENT setting to the 16 it recommends. But no joy.

As always thanks for the help folks,

Scott
Reply With Quote
  #9  
Old 17th May 2012, 12:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Quote:
Unable to fork: Cannot allocate memory
Unable to apply network parameters: container is not running
Please allocate more memory to the VM.

Quote:
A few questions? Is the "small" vm template the same as using "--config basic" when manually creating a vm?
I'm not sure if they are identical - you can see the settings for small in the ISPConfig interface (OpenVZ VMTemplate or something like this); I can't say right now if it uses the same defaults as basic.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 26th May 2012, 02:07
scottrill2 scottrill2 is offline
HowtoForge Supporter
 
Join Date: Dec 2009
Posts: 93
Thanks: 21
Thanked 2 Times in 1 Post
 
Default

After going bald from pulling my hair out lol.........


I already gave the VM a gig of guaranteed memory and said it could burst to 10 gig.

But I decided to add more anyway, this caused the whole server to crash rofl. I ran memtest and the corsair memory was running a muck. Slapped some replacement memory in and now all errors go away. Virtual machines start and stop etc.

Thanks as always for the help Falko.


Now for more hair pulling lol

New problem is that the VM's cannot access internet? And this means I can't even install Vim-nox. Holy cow, I read in Falko's perfect server tutorials that debians built in vi editor was buggy but man lol

Quick break down of my network.

gateway is 10.1.10.1

So when I was setting up host I used ip of:

10.1.10.11

In Ispconfig 3 I used the following ip for VM:

10.1.10.20

no internet access.

I open the network interfaces and see venet connections instead of the usual eth0's etc.

I read on openvz wiki this link: http://wiki.openvz.org/VEs_and_HNs_in_same_subnets

Now I do remember when I set up virtualbox the tutorial had me bridge stuff in networking. Do I need to do that here? That link doesn't appear to be for Debian, how could I make those same changes in Debian?


Thanks as always for the help folks,

Scott
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
No dns zone files created? sjau Installation/Configuration 7 13th March 2012 13:15
DNS issues when setting up ISPConfig 3 for Intranet use mick02 Installation/Configuration 10 11th February 2011 13:56
Hosting multiple websites and webmail dmwcool Installation/Configuration 8 30th March 2010 03:15
ISPConfig 3.0.1 released till General 36 29th March 2009 14:30
FC4 Setup DNS and ISPCONFIG issues The General Installation/Configuration 7 15th May 2006 09:45


All times are GMT +2. The time now is 14:38.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.