Hi,
I have just finished a fresh install of owp (2.1) on Scientific Linux (6.3) and basically all is working fine.
However the cloning of a container (e.g. 100 -> 101) fails with these error messages:
Internal error: Command 'vzctl set 101 --userpasswd root:XXX' execution failed with code 6
Output: Starting container...
stat(/vz/root/101): No such file or directory
stat(/vz/root/101): No such file or directory
realpath(/vz/root/101) failed: No such file or directory
Can't umount /vz/root/101: No such file or directory
stat(/vz/root/101): No such file or directory
unable to change dir to /vz/root/101: No such file or directory
Not enough resources to start environment
Container start failed (try to check kernel messages, e.g. "dmesg | tail")
Error: Unable to apply new quota values: quota not running
stat(/vz/root/101): No such file or directory
stat(/vz/root/101): No such file or directory
realpath(/vz/root/101) failed: No such file or directory
Can't umount /vz/root/101: No such file or directory
The reason for this seems to be that the mountpoint /vz/root/101 is missing.
I checked the hwdaemon.log and there is the command sequence to clone the
container, but no commands for creating the mount point /vz/root/101
[...]
2012-11-20 16:21:17] DEBUG Exec command: cp -a /vz/private/100 /vz/private/101 ; code: 0; output:
[2012-11-20 16:21:17] DEBUG HwDaemonApiHandler is invoked.
[2012-11-20 16:21:17] DEBUG Execute method: hwDaemon.exec
[2012-11-20 16:21:17] DEBUG Exec command: vzctl chkpnt 100 --resume; code: 0; output:
Resuming...
[2012-11-20 16:21:17] DEBUG HwDaemonApiHandler is invoked.
[2012-11-20 16:21:17] DEBUG Execute method: hwDaemon.exec
[2012-11-20 16:21:17] DEBUG Exec command: vzctl set 101 --userpasswd root:XXX; code: 1536; output:
Starting container...
stat(/vz/root/101): No such file or directory
[...]
adding an experimental
'hardware_server.rpc_client.exec("mkdir /vz/root/#{shellescape(identity.to_s)}")'
to ./app/models/virtual_server.rb solves the problem.
However since this is such an obvious error and I did not find any complaints and error reports on this, I doubt the missing
mkdir is the problem, but a mere workaround for a more fundamental setup problem on my side :-D
In both cases comments would be appreciated :-D
regards