Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

config.php-example 6.8KB

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