Changes between Version 2 and Version 3 of Tutorial/DeployingVMApplications
- Timestamp:
- Aug 16, 2011, 1:13:51 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tutorial/DeployingVMApplications
v2 v3 2 2 3 3 == Introduction == 4 Using virtual machine technology with the BOINC client presents an interesting challenge to projects. Projects not only have to follow the rules BOINC requires projects to follow but they also have to follow the rules that the virtual machine technology requires as well. With this document we hope to provide a general outline of how to utilize the VirtualBox virtual machine technology within a BOINC based project. 5 6 For the purposes of this document we are going to assume that a task instance only requires the use of a single CPU and no network communication is required during the execution of the task instance. 4 7 5 8 9 === Configuring Application Version === 10 Version.xml: 11 {{{ 12 <version> 13 <file> 14 <physical_name>vboxwrapper_6.20_windows_x86_64.exe</physical_name> 15 <copy_file/> 16 <main_program/> 17 </file> 18 <file> 19 <physical_name>vmimagex64_6_18.vdi</physical_name> 20 <logical_name>vm_image.vdi</logical_name> 21 <copy_file/> 22 <gzip/> 23 </file> 24 <file> 25 <physical_name>vbox_job_6_18_windows_x86_64.xml</physical_name> 26 <logical_name>vbox_job.xml</logical_name> 27 <copy_file/> 28 </file> 29 <file> 30 <physical_name>boinc_start_6_18_windows_x86_64.sh</physical_name> 31 <logical_name>shared/boinc_start.sh</logical_name> 32 <copy_file/> 33 </file> 34 <file> 35 <physical_name>uppercase_6.18_i686-pc-linux-gnu</physical_name> 36 <logical_name>shared/uppercase_6.18_i686-pc-linux-gnu</logical_name> 37 <copy_file/> 38 </file> 39 <dont_throttle/> 40 <file_prefix>shared</file_prefix> 41 </version> 42 }}} 6 43 44 === Configuring Virtual Machine Description === 45 vbox_job.xml: 46 {{{ 47 <vbox_job> 48 <os_name>Linux26_64</os_name> 49 <memory_size_mb>256</memory_size_mb> 50 <enable_shared_directory/> 51 </vbox_job> 52 }}} 7 53 54 === Configuring Startup Script === 55 boinc_start.sh: 56 {{{ 57 # 58 # Automatically executed by the vmimagex64 at startup. 59 # 60 ./uppercase_6.18_i686-pc-linux-gnu 61 62 # 63 # Shutdown when complete 64 # 65 shutdown -hP 0 66 }}} 8 67 9 68 == Appendix == 10 69 11 === Premade BOINC Wrapper ===70 === Premade BOINC VM Wrapper === 12 71 13 72 Configuration Options for vboxwrapper can be found [VboxApps here]. … … 30 89 Main advantages: 31 90 * Small install size 32 * Virtual box guest additions installed by default91 * VirtualBox guest additions installed by default 33 92 34 The Virtual box guest extensions are required in order to use the shared directory feature to communicate between the guest and host operating systems.93 The VirtualBox guest extensions are required in order to use the shared directory feature to communicate between the guest and host operating systems. 35 94 36 95 ==== Role Selection ==== 37 96 38 During install you'll be asked what role should this linux machine be configured for, make sure all roles are unselected before continuing.97 During install you'll be asked what role should this Linux machine be configured for, make sure all roles are unselected before continuing. 39 98 40 99 ==== Updating Grub ==== … … 52 111 ==== Updating Inittab ==== 53 112 54 To configure Linux for automa ic login you'll need to install a different terminal handler, mingetty seems to work pretty well for our purposes.113 To configure Linux for automatic login you'll need to install a different terminal handler, mingetty seems to work pretty well for our purposes. 55 114 56 115 You'll need to install mingetty: … … 78 137 }}} 79 138 80 The basic gist here is to give you rself time to break into a console session via CTRL-C to be able to make changes to the VM in the future. After executing any job you want the VM to accomplish you'll need to shutdown the VM. If you encounter an error shutdown the VM.139 The basic gist here is to give you time to break into a console session via CTRL-C to be able to make changes to the VM in the future. After executing any job you want the VM to accomplish you'll need to shutdown the VM. If you encounter an error shutdown the VM so that BOINC can error out the task instance and report the failure. 81 140 82 141 ==== Shared Directory Usage ====