I humbly require your assistance with a new error I encountered while instantiating one of my VMs. The error in cuestion is the following as it appears in the log:
Mon Apr 20 22:34:57 2015 [Z0][TM][D]: Message received: TRANSFER FAILURE 21 Could not create tmp dir to make context dev
A bit of context, I preapared my images for working with OpenNebula by installing the context package so they can be prepared for it, however when I instantiate the template I get the error above, the coniguration of the template which I’m most concerned about it is the following:
DISK = [ type = swap,
size = 1024 ]
CONTEXT = [
TOKEN = “YES”]
I don’t get any trouble with the images found in the marketplace but I did with the ones I installed the context .deb file. I used the one found in Basic Contextualization — OpenNebula 4.12.1 documentation was it okay? Should I do something else? For what I can tell the error tells me that it couldn’t make a directory in the host. I have checked and the owner of the directories is the oneadmin so I’m guessing is not just that. Any thoughts in how to tackle this new problem?
Thanks again in advance for your answer ASAP
Does the oneadmin user own the /var/lib/one/datastores directory
and have permissions to write it? That would be the first thing I would check.
If you make it so oneadmin user can write, that should be able to fix it.
I’m thinking is something else, I will create a new template without the swap disk as it seems it is the one responsible of the error while waiting for any other ideas to check. Thanks again for the reply
Well… I performed the sudo chown command in all of the different folders (both in host and in frontend) and restarted the frontend (to make sure all the configurations take place) and at last I succeded; probably a missing configuration?
So yeah, I tried to instantiate now and it seems just fine (I had to declare my template with CONTEXT = NETWORK = “YES” to get an actual network interface but besides that everything seems dandy). I have a question though… Does this means my images work correctly with OpenNebula or should I look for something else?
The problem you had could be an old directory with wrong permissions (/var/lib/one/datastores/.isofiles).
The test you’ve made means that the OpenNebula context part is working. Now you have to make sure that the contextualization packages are installed in the VM images so they are able to configure the network. You can get them here: