[one-users] New User: Problem with onevm creation
Tino Vazquez
tinova at opennebula.org
Fri Mar 18 02:44:16 PDT 2011
Hi,
Please try commenting out the VM_DIR section, restart the oned daemon
and launch again the VM.
VM_DIR is only needed if the mount point of the nfs share is different
between the front-end and the nodes.
Best regards.
-Tino
--
Constantino Vázquez Blanco, MSc
OpenNebula Major Contributor
www.OpenNebula.org | @tinova79
On Thu, Mar 17, 2011 at 7:59 PM, Ryan Aydelott <ryan.aydelott at vibes.com> wrote:
> Hello, first time opennebula user here and I am having an issue with onevm creation, files don't seem to link/write to the right server - perhaps I just need a hint? I'm certain that I am missing something fairly obvious:
>
> Environment:
> opennebula 2.1.80 on centos 5.5 rpm install
> xen hypervisor
> both share nfsmount /srv/cloud/
>
> Here are the relevant paths in oned.conf:
>
> VM_DIR=/srv/cloud/one/var
> SCRIPTS_REMOTE_DIR=/var/tmp/one
> IMAGE_REPOSITORY_PATH = /srv/cloud/var/images
>
>
> A quick sanity check:
>
> [oneadmin at binaryfinary 32]$ onehost list
> ID NAME CLUSTER RVM TCPU FCPU ACPU TMEM FMEM STAT
> 4 xen01 default 0 800 800 800 32G 30.7G on
>
> [oneadmin at binaryfinary 32]$ oneimage list
> ID USER NAME TYPE REGTIME PUB PER STAT #VMS
> 1 oneadmin gentoobase OS Mar 15, 2011 23:08 No Yes rdy 0
>
> I try to create the VM:
>
> [oneadmin at binaryfinary images]$ onevm create gentoobase.one
>
> I check, it fails:
>
> [oneadmin at binaryfinary images]$ onevm list
> ID USER NAME STAT CPU MEM HOSTNAME TIME
> 33 oneadmin gentooba fail 0 0K xen01 00 00:00:03
>
> Output from oned.log:
>
> Thu Mar 17 13:55:00 2011 [DiM][D]: Deploying VM 33
> Thu Mar 17 13:55:00 2011 [TM][D]: Message received: LOG - 33 tm_ln.sh: Creating directory /var/lib/one/33/images
> Thu Mar 17 13:55:00 2011 [TM][D]: Message received: LOG - 33 tm_ln.sh: Executed "mkdir -p /var/lib/one/33/images".
> Thu Mar 17 13:55:00 2011 [TM][D]: Message received: LOG - 33 tm_ln.sh: Executed "chmod a+w /var/lib/one/33/images".
> Thu Mar 17 13:55:00 2011 [TM][D]: Message received: LOG - 33 tm_ln.sh: Link /srv/cloud/var/images/64c39c5ba5e9aa60c93613f9bf9ab41714dfb1db
> Thu Mar 17 13:55:00 2011 [TM][D]: Message received: LOG - 33 tm_ln.sh: Executed "ln -s /srv/cloud/var/images/64c39c5ba5e9aa60c93613f9bf9ab41714dfb1db /var/lib/one/33/images/disk.0".
> Thu Mar 17 13:55:00 2011 [TM][D]: Message received: LOG - 33 tm_mkswap.sh: Creating directory /var/lib/one/33/images
> Thu Mar 17 13:55:00 2011 [TM][D]: Message received: LOG - 33 tm_mkswap.sh: Executed "mkdir -p /var/lib/one/33/images".
> Thu Mar 17 13:55:00 2011 [TM][D]: Message received: LOG - 33 tm_mkswap.sh: Executed "chmod a+w /var/lib/one/33/images".
> Thu Mar 17 13:55:00 2011 [TM][D]: Message received: LOG - 33 tm_mkswap.sh: Creating 4096Mb image in /var/lib/one/33/images/disk.1
> Thu Mar 17 13:55:00 2011 [TM][D]: Message received: LOG - 33 tm_mkswap.sh: Executed "/bin/dd if=/dev/zero of=/var/lib/one/33/images/disk.1 bs=1 count=1 seek=4096M".
> Thu Mar 17 13:55:00 2011 [TM][D]: Message received: LOG - 33 tm_mkswap.sh: Initializing swap space
> Thu Mar 17 13:55:00 2011 [TM][D]: Message received: LOG - 33 tm_mkswap.sh: Executed "/sbin/mkswap /var/lib/one/33/images/disk.1".
> Thu Mar 17 13:55:00 2011 [TM][D]: Message received: LOG - 33 tm_mkswap.sh: Executed "chmod a+w /var/lib/one/33/images/disk.1".
> Thu Mar 17 13:55:00 2011 [TM][D]: Message received: TRANSFER SUCCESS 33 -
> Thu Mar 17 13:55:02 2011 [VMM][D]: Message received: LOG - 33 Command execution fail: 'if [ -x "/var/tmp/one/vmm/xen/deploy" ]; then /var/tmp/one/vmm/xen/deploy /srv/cloud/one/var/33/images/deployment.0; else exit 42; fi'
> Thu Mar 17 13:55:02 2011 [VMM][D]: Message received: LOG - 33 STDERR follows.
> Thu Mar 17 13:55:02 2011 [VMM][D]: Message received: LOG - 33 Error: Device 768 (tap) could not be connected. /srv/cloud/one/var/33/images/disk.0 does not exist
> Thu Mar 17 13:55:02 2011 [VMM][D]: Message received: LOG - 33 ExitCode: 1
> Thu Mar 17 13:55:02 2011 [VMM][D]: Message received: DEPLOY FAILURE 33 Error: Device 768 (tap) could not be connected. /srv/cloud/one/var/33/images/disk.0 does not exist
> Thu Mar 17 13:55:02 2011 [VMM][D]: Message received: ExitCode: 1
> Thu Mar 17 13:55:02 2011 [TM][D]: Message received: LOG - 33 tm_delete.sh: Deleting /var/lib/one/33/images
> Thu Mar 17 13:55:02 2011 [TM][D]: Message received: LOG - 33 tm_delete.sh: Executed "rm -rf /var/lib/one/33/images".
> Thu Mar 17 13:55:02 2011 [TM][D]: Message received: TRANSFER SUCCESS 33 -
>
> In the VM Dir:
>
> [oneadmin at binaryfinary 33]$ pwd
> /var/lib/one/33
> [oneadmin at binaryfinary 33]$ ls
> deployment.0 transfer.0.delete transfer.0.prolog
>
> [oneadmin at binaryfinary 33]$ cat deployment.0
> name = 'one-33'
> #O CPU_CREDITS = 1024
> memory = '2048'
> kernel = '/srv/cloud/var/images/xen-domU'
> root = '/dev/hda rw'
> extra = 'ro console=hvc0 xencons=hvc0'
> disk = [
> 'tap:aio:/srv/cloud/one/var/33/images/disk.0,hda,w',
> 'tap:aio:/srv/cloud/one/var/33/images/disk.1,hdb,w',
> ]
> vif = [
> ' mac=02:00:ac:14:5a:96,ip=172.20.90.150,bridge=xenbr0',
> ]
>
> [oneadmin at binaryfinary 33]$ cat transfer.0.prolog
> LN binaryfinary.vibes.local:/srv/cloud/var/images/64c39c5ba5e9aa60c93613f9bf9ab41714dfb1db xen01:/srv/cloud/one/var/33/images/disk.0
> MKSWAP 4096 xen01:/srv/cloud/one/var/33/images/disk.1
>
> [oneadmin at binaryfinary 33]$ cat transfer.0.delete
> DELETE xen01:/srv/cloud/one/var/33/images
>
>
> So what am I missing?
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
More information about the Users
mailing list