選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

config.php-example 6.9KB

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