OpenVZ Forum


Home » General » Support » Unable to start VM (Unable to start VM.)
Unable to start VM [message #37035] Thu, 13 August 2009 16:34 Go to next message
whatever is currently offline  whatever
Messages: 142
Registered: September 2006
Senior Member
we tried restoring the vps from backup. All the files were restored without any problem but we getting error.


vzctl start 190
Starting container ...
Initializing quota ...
Container is mounted
Setting CPU limit: 400
Setting CPU units: 1000
Configure meminfo: 65536
Set hostname: localhost
Unable to start init, probably incorrect template
Container start failed
Stopping container ...
Container was stopped
Container is unmounted


Thanks
Re: Unable to start VM [message #37036 is a reply to message #37035] Thu, 13 August 2009 17:19 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

- Container sys architecure not supported, CT0 a i386; Container arch is amd64/x86_64
- Containter Template tree broken, init cannot be excute
- you doesnt provide any info how the backup's are created, maybe restore path not correct, should /vz/private/<CTID> and not /vz/private/<CTID>/<PATH>/

- provide info about:

# ls /vz/private/119/sbin/init
# file /sbin/init
# file /vz/private/119/sbin/init
# grep OSTEMPLATE /etc/vz/conf/119.conf

Bye,
Thorsten
Re: Unable to start VM [message #37037 is a reply to message #37035] Thu, 13 August 2009 17:32 Go to previous messageGo to next message
whatever is currently offline  whatever
Messages: 142
Registered: September 2006
Senior Member
/vz/private/190 and /etc/sysconfig/vz-scripts were backed and restored to the same location.
Backup/restore done on the same machine.
Below is the output


[root@localhost private]# ls /vz/private/190/sbin/init
/vz/private/190/sbin/init
[root@localhost private]# file /sbin/init
/sbin/init: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
[root@localhost private]# file /vz/private/190/sbin/init
/vz/private/190/sbin/init: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
[root@localhost private]# grep OSTEMPLATE /etc/vz/conf/190.conf
OSTEMPLATE="centos-5-i386-afull"
[root@localhost private]#


Thanks
Re: Unable to start VM [message #38816 is a reply to message #37037] Wed, 03 February 2010 19:32 Go to previous message
dajoker is currently offline  dajoker
Messages: 1
Registered: February 2010
Junior Member
Just to provide another alternative to this issue in case others come across it....

I requested a box, asked for x86_64, received x86_32 without realizing it. x86_32 VEs worked but x86_64 did not obviously. The error looked the same; after creation was complete the `vzctl start <VEID>` failed:

lab1:/srv/vz # vzctl start 104
Starting container ...
Container is mounted
Adding IP address(es): 123.45.67.89
Setting CPU units: 1000
Configure meminfo: 65536
Set hostname: vebox204
Unable to start init, probably incorrect template
Container start failed
Stopping container ...
Container was stopped
Container is unmounted
lab1:/srv/vz # echo $?
47
lab1:/srv/vz #

Hopefully this saves some confusion in the future.


-dajoker
Previous Topic: I guess I cannot set things like tcp_sack and tcp_window_scaling inside my OpenVz container?
Next Topic: Windows XP Delayed Write Failed
Goto Forum:
  


Current Time: Fri Nov 15 11:05:50 GMT 2024

Total time taken to generate the page: 0.03243 seconds