Advertisement
Guest User

Untitled

a guest
Feb 11th, 2019
841
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.16 KB | None | 0 0
  1. <?php
  2. /**
  3. * phpVirtualBox example configuration.
  4. * @version $Id: config.php-example 585 2015-04-04 11:39:31Z imoore76 $
  5. *
  6. * rename to config.php and edit as needed.
  7. *
  8. */
  9. class phpVBoxConfig {
  10.  
  11. /* Username / Password for system user that runs VirtualBox */
  12. var $username = '*******';
  13. var $password = '******';
  14.  
  15. /* SOAP URL of vboxwebsrv (not phpVirtualBox's URL) */
  16. var $location = 'http://127.0.0.1:18083/';
  17.  
  18. /* Default language. See languages folder for more language options.
  19. * Can also be changed in File -> Preferences -> Language in
  20. * phpVirtualBox.
  21. */
  22. var $language = 'en';
  23.  
  24. /* Set the standard VRDE Port Number / Range, e.g. 1010-1020 or 1027 */
  25. var $vrdeports = '9000-9100';
  26. /* Set the default VRDE address, e.g. 192.168.1.1 */
  27. var $vrdeaddress = '172.21.70.161';
  28.  
  29. /*
  30. *
  31. * Not-so-common options / tweaking
  32. *
  33. */
  34.  
  35. // Multiple servers example config. Uncomment (remove /* and */) to use.
  36. // Add ALL the servers you want to use. Even if you have the server set
  37. // above. The default server will be the first one in the list.
  38. /*
  39. var $servers = array(
  40. array(
  41. 'name' => 'London',
  42. 'username' => 'user',
  43. 'password' => 'pass',
  44. 'location' => 'http://192.168.1.1:18083/',
  45. 'authMaster' => true // Use this server for authentication
  46. ),
  47. array(
  48. 'name' => 'New York',
  49. 'username' => 'user2',
  50. 'password' => 'pass2',
  51. 'location' => 'http://192.168.1.2:18083/'
  52. ),
  53. );
  54. */
  55.  
  56. // Disable authentication
  57. #var $noAuth = true;
  58.  
  59. // Host / ip to use for console connections
  60. var $consoleHost = '172.21.70.161';
  61.  
  62. // Disable "preview" box
  63. #var $noPreview = true;
  64.  
  65. // Default preview box update interval in seconds
  66. #var $previewUpdateInterval = 30;
  67.  
  68. // Preview box pixel width
  69. #var $previewWidth = 180;
  70.  
  71. // Max number of progress operations to keep in list
  72. var $maxProgressList = 5;
  73.  
  74. // Change default preview aspect ratio to 1.
  75. // http://www.wikipedia.org/wiki/Aspect_ratio_%28image%29#Previous_and_presently_used_aspect_ratios
  76. #var $previewAspectRatio = 1.6;
  77.  
  78. // Enable custom VM icons
  79. #var $enableCustomIcons = true;
  80.  
  81. /*
  82. Exclusively use phpVirtualBox's groups configuration rather than VirtualBox groups.
  83. This has the following effects:
  84.  
  85. *) Group changes made in phpVirtualBox will not be reflected in VirtualBox programs such as
  86. VirtualBox and VBoxManage
  87. *) Group changes will not affect which folder a VM is placed in
  88. *) You can rename groups that contain running VMs and move / copy running VMs to groups
  89. */
  90. #var $phpVboxGroups = true;
  91.  
  92.  
  93. /*
  94. Allow to prompt deletion hard disk files on removal from Virtual Media Manager.
  95. If this is not set, files are always kept. If this is set, you will be PROMPTED
  96. to decide whether or not you would like to delete the hard disk file(s) when you
  97. remove a hard disk from virtual media manager. You may still choose not to delete
  98. the file when prompted.
  99. */
  100. var $deleteOnRemove = true;
  101.  
  102. /*
  103. * File / Folder browser settings
  104. */
  105.  
  106. // Restrict file types
  107. var $browserRestrictFiles = array('.iso','.vdi','.vmdk','.img','.bin','.vhd','.hdd','.ovf','.ova','.xml','.vbox','.cdr','.dmg','.ima','.dsk','.vfd');
  108.  
  109. // Restrict locations / folders
  110. #var $browserRestrictFolders = array('D:\\','C:\\Users\\Ian'); // Or something like array('/home/vbox','/var/ISOs')
  111.  
  112. // Force use of local, web server based file browser instead of going through vboxwebsrv
  113. #var $browserLocal = true;
  114.  
  115. // Disable file / folder browser.
  116. #var $browserDisable = true;
  117.  
  118. // Disable Windows drive detection
  119. #var $noWindowsDriveList = true;
  120.  
  121. // Just list all drives from C:\ - Z:\ without checking if they exist or not.
  122. // This may be required on older Windows systems with more than one drive.
  123. #var $forceWindowsAllDriveList = true;
  124.  
  125. /*
  126. * Misc
  127. */
  128.  
  129. /*
  130. * Auto-refresh interval in seconds for VirtualBox host memory usage information.
  131. * Any value below 3 will be ignored.
  132. */
  133. var $hostMemInfoRefreshInterval = 5;
  134.  
  135. /* Show % of free host memory instead of % used */
  136. #var $hostMemInfoShowFreePct = true;
  137.  
  138. /*
  139. * VM Memory warnings.
  140. *
  141. * If $vmMemoryStartLimitWarn is enabled, each time a VM is started through
  142. * phpVirtualBox, it will check that the available host memory is greater than
  143. * the base and video memory of the VM + 50MB (a little bit of overhead). If it
  144. * is not, a confirmation dialog will be presented to confirm that you want to
  145. * start the VM.
  146. *
  147. * If $vmMemoryOffset is set (and $vmMemoryStartLimitWarn), $vmMemoryOffset
  148. * megabytes is subtracted from the available host memory before the check is
  149. * performed by $vmMemoryStartLimitWarn logic. For instance it may be a good
  150. * idea to always have VM memory requirements + 100MB free. 100 is the default.
  151. */
  152. #var $vmMemoryStartLimitWarn = true;
  153. #var $vmMemoryOffset = 100;
  154.  
  155.  
  156. /*
  157. * Display guest additions version of a running VM on its Details tab
  158. */
  159. #var $enableGuestAdditionsVersionDisplay = true;
  160.  
  161. /* Disable any of phpVirtualBox's main tabs */
  162. #var $disableTabVMSnapshots = true; // Snapshots tab
  163. #var $disableTabVMConsole = true; // Console tab
  164.  
  165. /* Screen resolutions for console tab */
  166. var $consoleResolutions = array('640x480','800x600','1024x768','1280x720','1440x900');
  167.  
  168. /* Console tab keyboard layout. Currently Oracle's RDP client only supports EN and DE. */
  169. var $consoleKeyboardLayout = 'EN';
  170.  
  171. /* Max number of network cards per VM. Do not set above VirtualBox's limit (typically 8) or below 1 */
  172. var $nicMax = 4;
  173.  
  174. /* Enable advanced configuration items (normally hidden in the VirtualBox GUI)
  175. * Note that some of these items may not be translated to languages other than English.
  176. */
  177. var $enableAdvancedConfig = true;
  178.  
  179. /* Enable startup / shutdown configuration.
  180. * This only works in linux and you must add the vboxinit file to
  181. * your startup scripts list.
  182. */
  183. #var $startStopConfig = true;
  184.  
  185. // Authentication library.
  186. // var $authLib = 'Builtin';
  187.  
  188. // VM ownership
  189. #var $enforceVMOwnership = true;
  190.  
  191. // Per-user VM quota
  192. #var $vmQuotaPerUser = 2;
  193.  
  194.  
  195. // Allow VDE network configuration. This must be supported by the underlying VirtualBox installation!
  196. // If you do not know what VDE networking is - you do not need it, it is probably not supported by your
  197. // VirtualBox installation and will cause errors if enabled.
  198. #var $enableVDE = true;
  199.  
  200. // Disable setting SATA controllers port count to the max port number found when saving VMs.
  201. #var $disableSataPortCount = true;
  202.  
  203. /* Enable Parallel Port configuration - EXPERIMENTAL
  204. LPT support may or may not work for you.
  205. !!! VirtualBox LPT support only works in Linux. !!!
  206. */
  207. #var $enableLPTConfig = true;
  208.  
  209. /* Enable HardDisk IgnoreFlush configuration. This controls the "ExtraData" setting
  210. * in "VBoxInternal/Devices/[controller type]/0/LUN#[x]/Config/IgnoreFlush". See
  211. * Responding to guest IDE/SATA flush requests at:
  212. * http://www.virtualbox.org/manual/ch12.html#idp12757424
  213. */
  214. #var $enableHDFlushConfig = true;
  215.  
  216. /*
  217. * Event listener timeout in seconds. This is an advanced option that most people will
  218. * probably not need to change.
  219. */
  220. #var $eventListenerTimeout = 20;
  221.  
  222. /* END SETTINGS */
  223.  
  224.  
  225. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement