Thread 'how to deploy vboxwrapper?'

Message boards : API : how to deploy vboxwrapper?
Message board moderation

To post messages, you must log in.

1 · 2 · Next

AuthorMessage
fazel

Send message
Joined: 14 Feb 13
Posts: 50
Malaysia
Message 48691 - Posted: 19 Apr 2013, 14:27:22 UTC

Hi everybody,
I want to know how Vboxwrapper can deploy. Actually I want to know steps for implementing Vboxwrapper.

Thanks and Regards.
ID: 48691 · Report as offensive
ProfileJord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15560
Netherlands
Message 48697 - Posted: 19 Apr 2013, 17:23:10 UTC - in response to Message 48691.  

ID: 48697 · Report as offensive
fazel

Send message
Joined: 14 Feb 13
Posts: 50
Malaysia
Message 48710 - Posted: 20 Apr 2013, 6:17:09 UTC - in response to Message 48697.  

yes but this one is not complete, I want to know how to write the version file how to configure vboxwrapper and virtual box and so on.

Regards.
ID: 48710 · Report as offensive
ProfileJord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15560
Netherlands
Message 48712 - Posted: 20 Apr 2013, 9:34:59 UTC - in response to Message 48710.  

In that case, best write to the BOINC projects email list. Its address can be found in the "if no answer within 24 hours" stick thread.
ID: 48712 · Report as offensive
fazel

Send message
Joined: 14 Feb 13
Posts: 50
Malaysia
Message 48713 - Posted: 20 Apr 2013, 12:34:46 UTC - in response to Message 48712.  

thanks
ID: 48713 · Report as offensive
ChristianB
Volunteer developer
Volunteer tester

Send message
Joined: 4 Jul 12
Posts: 321
Germany
Message 48715 - Posted: 20 Apr 2013, 13:50:30 UTC

Everything about the vboxwrapper is shown in the page Ageless posted earlier. The vbox_job.xml is describes in detail and also what files should be put inside the app directory. The version.xml for the App is described on AppVersionNew. I'll see if I can include a link to this page from VboxApps directly.

VboxWrapper is configures through the vbox_job.xml file and VirtualBox needs to be installed on the system and as far as I know no special configuration required.
ID: 48715 · Report as offensive
fazel

Send message
Joined: 14 Feb 13
Posts: 50
Malaysia
Message 48716 - Posted: 20 Apr 2013, 14:32:14 UTC - in response to Message 48715.  
Last modified: 20 Apr 2013, 14:36:47 UTC

Thanks for your information, actually I know all of them but for example how does boinc client work with vboxwrapper? I mean what should we do to enable vboxwrapper and virtualization?

and also where should I put the vboxwrapper and other files?

Regards.
ID: 48716 · Report as offensive
ChristianB
Volunteer developer
Volunteer tester

Send message
Joined: 4 Jul 12
Posts: 321
Germany
Message 48741 - Posted: 21 Apr 2013, 8:03:47 UTC

The BOINC client starts the wrapper as any other application. The wrapper will then start the VM and load the executable and input files (through a shared directory). The VM then executes the executable and the wrapper polls from time to time to see if the computation is complete (all through the shared directory). The wrapper also can suspend the VM and/or checkpoint the whole VM. After completion the wrapper will tell the client to upload the result files (which it takes from the shared directory).

For the client this is just a typical application, so the wrapper is part of an application version and all the files must be bundled into one. See the "Creating app versions" sections of VboxApps. If you don't know what an application version is you may reread the AppVersion and AppVersionNew wiki pages.

Basically you put all the files described in the "Creating app versions" section into your PROJECT_ROOT/apps/app_name/version_num/platform__vbox64/ directory. Of course you must create a proper version.xml that contains the correct logical names (e.g. executable starting with shared/) for your files. But this is listed in the "Creating app versions" section. To distinguish between logical and physical names is important read PhysicalFileManagement and BoincFiles if you are not sure what it means in BOINC[/quote]
ID: 48741 · Report as offensive
fazel

Send message
Joined: 14 Feb 13
Posts: 50
Malaysia
Message 48745 - Posted: 21 Apr 2013, 9:46:08 UTC - in response to Message 48741.  
Last modified: 21 Apr 2013, 9:53:34 UTC

Really thanks for your help, this is very helpful. So as I understand we should not create shared directory this is just logical name?

How does VBOX_USER_HOME set? I read some where that we have to change this one to the vbox directory under the slot directory.

Thanks.
ID: 48745 · Report as offensive
ChristianB
Volunteer developer
Volunteer tester

Send message
Joined: 4 Jul 12
Posts: 321
Germany
Message 48746 - Posted: 21 Apr 2013, 11:31:10 UTC - in response to Message 48745.  

Really thanks for your help, this is very helpful. So as I understand we should not create shared directory this is just logical name?

That is correct. You should have no subdirectories inside the application version directory. If you need to ship several files in directories to the client please put them in a zip and handle them at the client side (this may be buggy at the moment).

How does VBOX_USER_HOME set? I read some where that we have to change this one to the vbox directory under the slot directory.

The only projects I know of using this feature is CAS@home and Test4Theory but the latter is using it in an unusual way. They had some problems that were fixed in the vboxwrapper if I remember correctly. So the vboxwrapper handles all the VirtualBox stuff for you. If not this should be fixed in the code rather than the client side.
ID: 48746 · Report as offensive
fazel

Send message
Joined: 14 Feb 13
Posts: 50
Malaysia
Message 48775 - Posted: 23 Apr 2013, 5:50:14 UTC - in response to Message 48746.  

ok Thanks,

what about workunits? how should we create them?
ID: 48775 · Report as offensive
ChristianB
Volunteer developer
Volunteer tester

Send message
Joined: 4 Jul 12
Posts: 321
Germany
Message 48776 - Posted: 23 Apr 2013, 6:35:34 UTC

There is nothing different from "standard" workunits. See this section of the docs. Bascally you have to make sure:
Input files have logical names starting with shared/ and have the copy_file attribute. That should be it.
ID: 48776 · Report as offensive
fazel

Send message
Joined: 14 Feb 13
Posts: 50
Malaysia
Message 48778 - Posted: 23 Apr 2013, 8:34:12 UTC - in response to Message 48776.  

Bascally you have to make sure:
Input files have logical names starting with shared/ and have the copy_file attribute. That should be it.


So we have to define input file in the version file?

I have done every things that needed but when I run the boinc I face with this error:
Temporary failed download of vm_image86.vdi:http error


Thanks.



ID: 48778 · Report as offensive
fazel

Send message
Joined: 14 Feb 13
Posts: 50
Malaysia
Message 48779 - Posted: 23 Apr 2013, 8:56:03 UTC - in response to Message 48778.  

[quote]

I have done every things that needed but when I run the boinc I face with this error:
Temporary failed download of vm_image86.vdi:http error


I solved this error:user rights!


ID: 48779 · Report as offensive
fazel

Send message
Joined: 14 Feb 13
Posts: 50
Malaysia
Message 48780 - Posted: 23 Apr 2013, 9:08:12 UTC - in response to Message 48776.  

but after downloading all of the files,noting was happened. why?



ID: 48780 · Report as offensive
fazel

Send message
Joined: 14 Feb 13
Posts: 50
Malaysia
Message 48781 - Posted: 23 Apr 2013, 10:49:53 UTC - in response to Message 48776.  

this is my version.xml content:

<version>
<file>
<physical_name>vboxwrapper_26012_i686-pc-linux-gnu</physical_name>
<main_program/>
<copy_file/>
</file>

<file>
<physical_name>uppercase</physical_name>
<logical_name>shared/UP</logical_name>
</file>
<file>
<physical_name>vm_image86.vdi</physical_name>
<copy_file/>

<logical_name>vm_image.vdi</logical_name>
</file>
<file>
<physical_name>vbox_job_3.0.xml</physical_name>
<logical_name>vbox_job.xml</logical_name>
</file>

<file>
<physical_name>input.txt</physical_name>
<copy_file/>
<logical_name>shared/IN</logical_name>
</file>

<file>
<physical_name>output.txt</physical_name>
<copy_file/>
<logical_name>shared/OUT</logical_name>
</file>

<file_prefix>shared</file_prefix>
</version>
ID: 48781 · Report as offensive
ChristianB
Volunteer developer
Volunteer tester

Send message
Joined: 4 Jul 12
Posts: 321
Germany
Message 48783 - Posted: 23 Apr 2013, 11:06:14 UTC
Last modified: 23 Apr 2013, 15:25:38 UTC

The input and output files don't go into version.xml. This file specifies the files that are needed by the application version in order to run on the client (without input/output). The input and output files are specified in the template files as they change with each workunit but the files in version.xml stay the same. If you are using file_prefix you should ommit prepending shared/ to your files in your templates.
ID: 48783 · Report as offensive
fazel

Send message
Joined: 14 Feb 13
Posts: 50
Malaysia
Message 48800 - Posted: 24 Apr 2013, 10:36:28 UTC - in response to Message 48783.  
Last modified: 24 Apr 2013, 10:40:21 UTC

The input and output files don't go into version.xml.


So how I mention logical name to input file?
"Creating jobs for VM apps

The input and output files of a VM app must

Have logical names starting with shared/.
Have the copy_file attribute.
This causes the BOINC client to copy them to and from the slot/x/shared/ directory."
ID: 48800 · Report as offensive
fazel

Send message
Joined: 14 Feb 13
Posts: 50
Malaysia
Message 48801 - Posted: 24 Apr 2013, 11:36:42 UTC - in response to Message 48800.  
Last modified: 24 Apr 2013, 11:48:59 UTC

when I run the boinc I face with these problems:

Wed 24 Apr 2013 07:32:31 PM MYT uppercase Starting VVV_0
Wed 24 Apr 2013 07:32:31 PM MYT uppercase [error] Can't create link file slots/0/shared/uppercase
Wed 24 Apr 2013 07:33:06 PM MYT uppercase Computation for task VVV_0 finished
Wed 24 Apr 2013 07:33:06 PM MYT uppercase Output file VVV_0_0 for task VVV_0 absent

I already tried to set up the access permissions for the slot and other folders, but that still doesn't work.


why am I getting these error?
ID: 48801 · Report as offensive
ChristianB
Volunteer developer
Volunteer tester

Send message
Joined: 4 Jul 12
Posts: 321
Germany
Message 48805 - Posted: 24 Apr 2013, 14:20:10 UTC - in response to Message 48800.  

The input and output files don't go into version.xml.


So how I mention logical name to input file?
"Creating jobs for VM apps

The input and output files of a VM app must

Have logical names starting with shared/.
Have the copy_file attribute.
This causes the BOINC client to copy them to and from the slot/x/shared/ directory."

The logical name of the input file is set in the input template file (see JobTemplates, it's called open_name !). You don't have to prefix with "shared/" as you already have this covered in your version.xml (file_prefix). You should also add the copy_file attribute to the uppercase executable you specified in your version.xml that should fix the error you see.
ID: 48805 · Report as offensive
1 · 2 · Next

Message boards : API : how to deploy vboxwrapper?

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.