[one-users] Create VM in Opennebula for OpenVZ failed
Catalina Quinde
catalinaquinde at gmail.com
Thu Dec 12 22:52:46 PST 2013
Hi friends,
1.I created a VM in Opennebula for OpenVZ but this is failed, this is your
log:
oneadmin at ubuntuOpNeb:~$ cat /var/log/one/1.log
Fri Dec 13 01:45:56 2013 [DiM][I]: New VM state is ACTIVE.
Fri Dec 13 01:45:56 2013 [LCM][I]: New VM state is PROLOG.
Fri Dec 13 01:46:15 2013 [LCM][I]: New VM state is BOOT
Fri Dec 13 01:46:15 2013 [VMM][I]: Generating deployment file:
/var/lib/one/vms/1/deployment.0
Fri Dec 13 01:46:16 2013 [VMM][I]: ExitCode: 0
Fri Dec 13 01:46:16 2013 [VMM][I]: Successfully execute network driver
operation: pre.
Fri Dec 13 01:46:21 2013 [VMM][I]: Command execution fail: cat << EOT |
/vz/one/scripts/vmm/ovz/deploy '/vz/one/datastores/0/1/deployment.0'
'ubuntu' 1 ubuntu
Fri Dec 13 01:46:21 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo mv
"/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz"
"/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz.1386917185" 2>
/dev/null; true".
Fri Dec 13 01:46:21 2013 [VMM][I]: deploy: Executed "/usr/bin/sudo ln -sf
"/vz/one/datastores/0/1/disk.0"
"/var/lib/vz/template/cache/debian-7.0-x86_64.tar.gz"".
Fri Dec 13 01:46:21 2013 [VMM][E]: deploy: Command "/usr/bin/sudo
/usr/sbin/vzctl create 1001 --layout ploop --ostemplate "debian-7.0-x86_64"
--private "/vz/one/datastores/0/1/private" --root
"/vz/one/datastores/0/1/root"" failed.
Fri Dec 13 01:46:21 2013 [VMM][E]: deploy: Can't create directory
/vz/one/datastores/0/1/private.tmp: Permission denied
Fri Dec 13 01:46:21 2013 [VMM][I]: Unable to create directory
/vz/one/datastores/0/1/private.tmp: Permission denied
Fri Dec 13 01:46:21 2013 [VMM][I]: Creation of container private area failed
Fri Dec 13 01:46:21 2013 [VMM][E]: Can't create directory
/vz/one/datastores/0/1/private.tmp: Permission denied
Fri Dec 13 01:46:21 2013 [VMM][E]: Unable to create directory
/vz/one/datastores/0/1/private.tmp: Permission denied
Fri Dec 13 01:46:21 2013 [VMM][E]: Creation of container private area failed
Fri Dec 13 01:46:21 2013 [VMM][E]:
Fri Dec 13 01:46:21 2013 [VMM][I]: ExitCode: 48
Fri Dec 13 01:46:21 2013 [VMM][I]: Failed to execute virtualization driver
operation: deploy.
Fri Dec 13 01:46:21 2013 [VMM][E]: Error deploying virtual machine: Can't
create directory /vz/one/datastores/0/1/private.tmp: Permission denied
Fri Dec 13 01:46:21 2013 [DiM][I]: New VM state is FAILED
2. My template file contains:
NIC=[NETWORK_ID="0"]
OSTEMPLATE="debian-7.0-x86_64"
DISK=[IMAGE_ID="0"]
DISK=[SIZE="512",TYPE="swap"]
CPU="0.01"
VE_LAYOUT="ploop"
RCLOCAL="rc.local"
OS=[ARCH="x86_64"]
CLUSTER_100="100"
VCPU="1"
REQUIREMENTS="CLUSTER_ID=\"100\""
MEMORY="512"
CONTEXT=[SSH_PUBLIC_KEY="$USER[SSH_PUBLIC_KEY]",NETWORK="YES"]
3. My datastores list contains:
oneadmin at ubuntuOpNeb:~$ onedatastore list
ID NAME SIZE AVAIL CLUSTER IMAGES TYPE DS
TM
0 system - - - 0 sys - ssh
1 default 15.6G 62% ovz_x64 1 img fs ssh
2 files 15.6G 62% - 0 fil fs ssh
Please help me solve this, is very important
Thanks, Caty.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131213/41b2af63/attachment.htm>
More information about the Users
mailing list