[one-users] Error when instantiating VM from persistent image
biro lehel
lehel.biro at yahoo.com
Wed Mar 28 01:20:29 PDT 2012
Hello,
I can create and run VM's whenever I leave the registered image-file non-persistent. However, whenever I want to register an image using the same image file (of course from different path), by making the image persistent, and using the very same template, results in a FAILED VM state, with the following log:
Wed Mar 28 10:49:54 2012 [DiM][I]: New VM state is ACTIVE.
Wed Mar 28 10:49:54 2012 [LCM][I]: New VM state is PROLOG.
Wed Mar 28 10:49:58 2012 [TM][I]: tm_mkimage.sh: Executed "mkdir -p /var/lib/one//25/images".
Wed Mar 28 10:49:58 2012 [TM][I]: tm_mkimage.sh: Executed "dd if=/dev/zero of=/var/lib/one//25/images/disk.0 bs=1 count=1 seek=4096M".
Wed Mar 28 10:49:58 2012 [TM][I]: tm_mkimage.sh: Executed "mkfs -t ext3 -F /var/lib/one//25/images/disk.0".
Wed Mar 28 10:49:58 2012 [TM][I]: tm_mkimage.sh: Executed "chmod a+rw /var/lib/one//25/images/disk.0".
Wed Mar 28 10:49:58 2012 [TM][I]: ExitCode: 0
Wed Mar 28 10:49:58 2012 [TM][D]: tm_mkswap.sh: Creating directory /var/lib/one//25/images
Wed Mar 28 10:49:58 2012 [TM][I]: tm_mkswap.sh: Executed "mkdir -p /var/lib/one//25/images".
Wed Mar 28 10:49:58 2012 [TM][I]: tm_mkswap.sh: Executed "chmod a+w /var/lib/one//25/images".
Wed Mar 28 10:49:58 2012 [TM][D]: tm_mkswap.sh: Creating 1024Mb image in /var/lib/one//25/images/disk.1
Wed Mar 28 10:49:58 2012 [TM][I]: tm_mkswap.sh: Executed "dd if=/dev/zero of=/var/lib/one//25/images/disk.1 bs=1 count=1 seek=1024M".
Wed Mar 28 10:49:58 2012 [TM][D]: tm_mkswap.sh: Initializing swap space
Wed Mar 28 10:49:58 2012 [TM][I]: tm_mkswap.sh: Executed "mkswap /var/lib/one//25/images/disk.1".
Wed Mar 28 10:49:58 2012 [TM][I]: tm_mkswap.sh: Executed "chmod a+w /var/lib/one//25/images/disk.1".
Wed Mar 28 10:49:58 2012 [TM][I]: ExitCode: 0
Wed Mar 28 10:49:58 2012 [TM][I]: tm_ln.sh: Creating directory /var/lib/one//25/images
Wed Mar 28 10:49:58 2012 [TM][I]: tm_ln.sh: Executed "mkdir -p /var/lib/one//25/images".
Wed Mar 28 10:49:58 2012 [TM][I]: tm_ln.sh: Executed "chmod a+w /var/lib/one//25/images".
Wed Mar 28 10:49:58 2012 [TM][I]: tm_ln.sh: Link /var/lib/one/images/0df5670f8e8c8cb5dd983e6eda502457
Wed Mar 28 10:49:58 2012 [TM][I]: tm_ln.sh: Executed "ln -s /var/lib/one/images/0df5670f8e8c8cb5dd983e6eda502457 /var/lib/one//25/images/disk.2".
Wed Mar 28 10:49:58 2012 [TM][I]: ExitCode: 0
Wed Mar 28 10:49:58 2012 [TM][I]: tm_context.sh: Executed "mkdir -p /var/lib/one//25/images/isofiles".
Wed Mar 28 10:49:58 2012 [TM][I]: tm_context.sh: Executed "cp -R /var/lib/one/25/context.sh /var/lib/one//25/images/isofiles".
Wed Mar 28 10:49:58 2012 [TM][I]: tm_context.sh: Executed "cp -R /var/tmp/init.sh /var/lib/one//25/images/isofiles".
Wed Mar 28 10:49:58 2012 [TM][I]: tm_context.sh: Executed "mkisofs -o /var/lib/one//25/images/disk.3 -J -R /var/lib/one//25/images/isofiles".
Wed Mar 28 10:49:58 2012 [TM][I]: tm_context.sh: Executed "rm -rf /var/lib/one//25/images/isofiles".
Wed Mar 28 10:49:58 2012 [TM][I]: ExitCode: 0
Wed Mar 28 10:49:59 2012 [LCM][I]: New VM state is BOOT
Wed Mar 28 10:49:59 2012 [VMM][I]: Generating deployment file: /var/lib/one/25/deployment.1
Wed Mar 28 10:49:59 2012 [VMM][I]: ExitCode: 0
Wed Mar 28 10:49:59 2012 [VMM][I]: Successfully execute network driver operation: pre.
Wed Mar 28 10:50:00 2012 [VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy /var/lib/one//25/images/deployment.1 pcls 25 pcls
Wed Mar 28 10:50:00 2012 [VMM][I]: WARNING: no socket to connect to
Wed Mar 28 10:50:00 2012 [VMM][I]: error: Failed to create domain from /var/lib/one//25/images/deployment.1
Wed Mar 28 10:50:00 2012 [VMM][I]: error: internal error process exited while connecting to monitor: qemu-kvm: -drive file=/var/lib/one//25/images/disk.2,if=none,id=drive-ide0-0-0,format=raw: could not open disk image /var/lib/one//25/images/disk.2: Permission denied
Wed Mar 28 10:50:00 2012 [VMM][I]:
Wed Mar 28 10:50:00 2012 [VMM][E]: Could not create domain from /var/lib/one//25/images/deployment.1
Wed Mar 28 10:50:00 2012 [VMM][I]: ExitCode: 255
Wed Mar 28 10:50:00 2012 [VMM][I]: Failed to execute virtualization driver operation: deploy.
Wed Mar 28 10:50:00 2012 [VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one//25/images/deployment.1
Wed Mar 28 10:50:00 2012 [DiM][I]: New VM state is FAILED
Wed Mar 28 10:51:11 2012 [DiM][I]: New VM state is DONE.
My template is the following:
CONTEXT=[
FILES=/var/tmp/init.sh,
HOSTNAME=$NAME,
SSH_KEY="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDCtKbr47tpZR8VqfEwOsvCYzZml20SqUpa819U97tJ+Opeo2mFQXKkqYzYf/t5/f90Ir6a+rrmxkOteyyjkIudiTHIcVzzdNhtBVNYweG8yIZEtWS/3uDKTh8y1DhJMSmQvzUhy0KZ1wvTvEV7ltIdxrpvgUqF56bVIrZt1vbdVvMHxPn3qAoCUdmRVDS3/fHHNRR39QCzPjWXhSVw7U1z+v89sID//mLG04i1k7tdnUOXYgL+gbJYlm5i9Fq09cXgfTKmLMmCEm8g4XialEltWS4jTt4vxf9KqTR+WVuwg+KJ+k3Bw0CR+kU1Z1CsELwbgLutOmmK+ariONJlS8x/ oneadmin at linux-4dsu",
USER_NAME=oneadmin ]
CPU=1
DISK=[
FORMAT=ext3,
READONLY=no,
SIZE=4096,
TARGET=sdg,
TYPE=fs ]
DISK=[
READONLY=no,
SIZE=1024,
TYPE=swap ]
DISK=[
BUS=ide,
IMAGE="CentOS 5.7 Cloudera [First_Persistent]",
IMAGE_UNAME=oneadmin ]
GRAPHICS=[
LISTEN=0.0.0.0,
TYPE=vnc ]
INPUT=[
BUS=usb,
TYPE=mouse ]
MEMORY=2048
NAME="Cloudera Hadoop 1.0 Persistent"
NIC=[
IP=10.12.45.5,
NETWORK="Small network",
NETWORK_UNAME=oneadmin ]
OS=[
ARCH=x86_64,
BOOT=hd ]
RAW=[
TYPE=kvm ]
TEMPLATE_ID=8
VCPU=1
The image type is a raw image.
What am I missing?
Cheers,
Lehel.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120328/09dcbcbb/attachment-0002.htm>
More information about the Users
mailing list