OpenVZ Forum


Home » General » Support » *SOLVED* VE does not start
*SOLVED* VE does not start [message #25576] Tue, 01 January 2008 19:20 Go to next message
herold is currently offline  herold
Messages: 3
Registered: January 2008
Location: Germany
Junior Member
Hi,

this are my first steps with OpenVZ and I can't figure out why my VE isn't started.

OpenVZ should be installed correct:

tk@spike:~$ uname -r
2.6.18-openvz-13-1etch5-686

tk@spike:~$ lsmod | grep vz
vznetdev               16384  1 
vzethdev               10152  0 
vzrst                 118964  0 
ip_nat                 17712  1 vzrst
vzcpt                  95620  0 
ip_conntrack           56224  3 vzrst,ip_nat,vzcpt
vzdquota               36212  1 [permanent]
vzmon                  40328  4 vznetdev,vzethdev,vzrst,vzcpt
vzdev                   3588  4 vznetdev,vzethdev,vzdquota,vzmon
ipv6                  235680  27 vzrst,vzcpt,vzmon


I created a test VE...

tk@spike:~$ sudo vzctl create 1001 --ostemplate ubuntu-7.10-i386-minimal
Creating VPS private area: /var/lib/vz/private/1001
Performing postcreate actions
VPS private area was created


...and started it...

tk@spike:~$ sudo vzctl --verbose start 1001
Unable to open /usr/lib/vzctl/modules/: No such file or directory
Starting VPS ...
Running: /usr/sbin/vzquota stat 1001 -f 
Running: /usr/sbin/vzquota off 1001 
VPS is unmounted
Running: /usr/sbin/vzquota show 1001 
Running: /usr/sbin/vzquota on 1001 -r 0 -b 1048676 -B 1153534 -i 200100 -I 220100 -e 0 -n 0 -s 0 
Mounting root: /var/lib/vz/root/1001 /var/lib/vz/private/1001
VPS is mounted
Adding IP address(es): 192.168.10.10
Running: /usr/lib/vzctl/scripts/vps-net_add 
Running VPS script: /etc/vz/dists/scripts/debian-add_ip.sh
Setting CPU units: 1000
Set hostname: openvztest
Running VPS script: /etc/vz/dists/scripts/debian-set_hostname.sh
Running VPS script: /etc/vz/dists/scripts/set_dns.sh
File resolv.conf was modified
Running: /usr/sbin/vzquota stat 1001 -f 
Running: vzquota setlimit 1001 -b 1048576 -B 1153434 -i 200000 -I 220000 -e 0 -n 0 
VPS start in progress...


...but nothing shows up

tk@spike:~$ sudo vzlist 
VPS not found


The only hint is the 'Unable to open /usr/lib/vzctl/modules/: No such file or directory' line when starting the VE but the rest of the output looks like the VE is starting nevertheless. The directory indeed doesn't exist. What should be in it. Do I have to install another package? Currently I just have vzctl and vzquota.

Any hints appreciated
-Tim

[Updated on: Wed, 02 January 2008 14:41] by Moderator

Report message to a moderator

Re: VE does not start [message #25577 is a reply to message #25576] Tue, 01 January 2008 20:00 Go to previous messageGo to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
have you tried running vzctl as root (w/o using sudo)?

Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Re: VE does not start [message #25581 is a reply to message #25577] Wed, 02 January 2008 08:11 Go to previous messageGo to next message
herold is currently offline  herold
Messages: 3
Registered: January 2008
Location: Germany
Junior Member
ugob wrote on Tue, 01 January 2008 21:00

have you tried running vzctl as root (w/o using sudo)?


Yes, that makes no difference. However, vzctl.log contains this for vzctl start ...:

2008-01-02T08:54:27+0100 vzctl : VPS 1001 : Starting VPS ...
2008-01-02T08:54:27+0100 vzctl : VPS 1001 : Running: /usr/sbin/vzquota show 1001 
2008-01-02T08:54:27+0100 vzctl : VPS 1001 : Running: /usr/sbin/vzquota on 1001 -r 0 -b 1048676 -B 1153534 -i 200100 -I 220100 -e 0 -n 0 -s 0 
2008-01-02T08:54:27+0100 vzctl : VPS 1001 : Mounting root: /var/lib/vz/root/1001 /var/lib/vz/private/1001
2008-01-02T08:54:27+0100 vzctl : VPS 1001 : VPS is mounted
2008-01-02T08:54:27+0100 vzctl : VPS 1001 : Adding IP address(es): 192.168.10.10
2008-01-02T08:54:27+0100 vzctl : VPS 1001 : Running: /usr/lib/vzctl/scripts/vps-net_add 
2008-01-02T08:54:28+0100 vzctl : VPS 1001 : Running VPS script: /etc/vz/dists/scripts/debian-add_ip.sh
2008-01-02T08:54:28+0100 vzctl : VPS 1001 : Setting CPU units: 1000
2008-01-02T08:54:28+0100 vzctl : VPS 1001 : Set hostname: openvztest
2008-01-02T08:54:28+0100 vzctl : VPS 1001 : Running VPS script: /etc/vz/dists/scripts/debian-set_hostname.sh
2008-01-02T08:54:28+0100 vzctl : VPS 1001 : Running VPS script: /etc/vz/dists/scripts/set_dns.sh
2008-01-02T08:54:28+0100 vzctl : VPS 1001 : File resolv.conf was modified
2008-01-02T08:54:28+0100 vzctl : VPS 1001 : Running: /usr/sbin/vzquota stat 1001 -f 
2008-01-02T08:54:28+0100 vzctl : VPS 1001 : Running: vzquota setlimit 1001 -b 1048576 -B 1153434 -i 200000 -I 220000 -e 0 -n 0 
2008-01-02T08:54:28+0100 vzctl : VPS 1001 : VPS start in progress...
2008-01-02T08:55:01+0100  venetclean : VPS 1001 : VPS died, clear ips: 192.168.10.10 


So there certainly is something wrong (note the last line of the log). Is there some way to increase the log verbosity or some other way to further debug this?

-Tim
Re: VE does not start [message #25582 is a reply to message #25581] Wed, 02 January 2008 09:07 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

Are you using vzctl from etch at debian.org, it's to old for a VE using ubunut-7.10 (-> http://wiki.openvz.org/Ubuntu_Gutsy_template_creation#vzctl )

Upgrade your vzctl to 3.0.22 and i suggest you to upgrade your kernel, too.



Re: VE does not start [message #25583 is a reply to message #25582] Wed, 02 January 2008 09:48 Go to previous message
herold is currently offline  herold
Messages: 3
Registered: January 2008
Location: Germany
Junior Member
It's working now.

I switched from the openvz to the systs.org repository (thanks for providing that Thorsten) and installed the kernel and vzctl from there.

Thanks for your replies Ugo and Thorsten
-Tim
Previous Topic: Still don't understand cpulimit / cpuunits
Next Topic: erro iptables modules: FATAL:
Goto Forum:
  


Current Time: Thu Aug 08 03:03:57 GMT 2024

Total time taken to generate the page: 0.02751 seconds