Beispiel #1
0
?>
 /><br />
							<span class="vexpl"><?php 
echo gettext("IPv6 addresses");
?>
</span><br />
			      </td>
			    </tr>
			    <?php 
html_separator();
?>
					<?php 
html_titleline(gettext("Time"));
?>
					<?php 
html_timezonecombobox("timezone", gettext("Time zone"), $pconfig['timezone'], gettext("Select the location closest to you."), false);
?>
			    <tr>
						<td width="22%" valign="top" class="vncell"><?php 
echo gettext("System time");
?>
</td>
						<td width="78%" class="vtable">
							<input id="systime" size="20" maxlength="20" name="systime" type="text" value="" />
							<img src="cal.gif" onclick="showChooser(this, 'systime', 'chooserSpan', 1950, 2020, Date.patterns.Default, true);" alt="" />
							<div id="chooserSpan" class="dateChooser select-free" style="display: none; visibility: hidden; width: 160px;"></div><br />
							<span class="vexpl"><?php 
echo gettext("Enter desired system time directly (format mm/dd/yyyy hh:mm) or use icon to select it.");
?>
</span>
						</td>
}
html_combobox("cpucount", "CPU", $pconfig['cpucount'], $cpucount, "Specify the number of cpu cores to give to the guest", true, false);
?>
					<?php 
html_inputbox("vmmemory", gettext("Memory"), $pconfig['vmmemory'], "specify the amount of ram to give to the guest. This can be followed by M or G.", true, 4, false);
?>
					<?php 
html_combobox("vmhostbridge", "Hostbridge", $pconfig['vmhostbridge'], array("standard", "amd", "none"), "Allows you to specify the type of hostbridge to use for the guest hardware. This can usually be left as default. The additional options are 'amd', for a hostbridge that advertises itself as AMD hardware and 'none' for no hostbridge. \n\t\t\t\t\t<br /><b>Note</b>: there is no requirement to use the 'amd' hostbridge if you host has an AMD processor", false, false);
?>
					<?php 
html_combobox("vmcomports", "Com ports for VM", $pconfig['vmcomports'], array("com1", "com2", "com1 com2", "com2 com1"), "This allows you to define the com ports which should be available.\nBy default only com1 is connected, and can be accessed using the 'vm console' command. If more than one com port is specified, you can choose the port \nto connect to by running <i>vm console guest com1|com2</i>. When using the <i>vm console</i> command, if no com port is specified, you are connected to the first port listed in this string.", false, false);
?>
					

					<?php 
html_timezonecombobox("utctime", gettext("utc time"), $pconfig['utctime'], gettext("Set to any value if you want the guest clock to use UTC time."), false, 16, false);
?>
					<?php 
html_checkbox("vmdebug", "Debug", $pconfig['vmdebug'], "Set  to run vm-bhyve in debug mode.", "In this mode, all output from the bhyve process is written to\nvm_dir/{guest}/bhyve.log. This is useful if the guest is crashing or exiting abnormally as the log will contain any output from bhyve.", false, "");
?>
					<?php 
html_combobox("vmdisk0_type", "Disk0 type", $pconfig['vmdisk0_type'], array("virtio-blk", "ahci-hd"), "This specifies the emulation type for disk0. Please note that each disk requires at least a type and name.", true, false);
?>
					<?php 
html_combobox("vmdisk0_dev", "Disk0 device", $pconfig['vmdisk0_dev'], array("file", "zvol", "sparse-zvol", "custom"), "The type of device used as the backing store for this disk. The default is <i>file</i>, which means a sparse file is used. This file is stored in the guest's directory.\n\t\t\t\t\tFor the zvol options, the zvol must be directly under the guest dataset.\n\t\t\t\t\tThere is also a <i>custom</i> option, in which case the disk name should be the full path to the file or device you want to use.", true, false);
?>
					<?php 
html_filechooser('vmdisk0_name', "Disk0 name", $pconfig['vmdisk0_name'], "The name of the file or zvol for this disk. If the device type is 'custom', it should be the full path to whichever device or file you want to use. This value is translated to a path as follows, based on disk0_dev<br />\n\t\t\t\t\t<table border='3'><tr><td><b>DEVICE TYPE</b></td><td><b> DISK NAME </b></td><td><b> BHYVE PATH USED </b></td></tr>\n\t\t\t\t\t<tr><td>file</td><td>'disk0.img'</td> <td>'vm_dir/name/disk0.img'</td></tr>\n\t\t\t\t\t<tr><td>zvol|sparse-zvol</td><td>'disk0'</td><td>'/dev/zvol/pool/dataset/path/guest/disk0'</td></tr>\n\t\t\t\t\t<tr><td>custom</td><td>'/dev/da10'</td><td>'/dev/da10'</td></tr></table>", "/", false, "67", false, "");
?>
					<?php 
//html_optionsbox("disk0_opts", "Disk0 options", $pconfig['disk0_opts'], array("direct","nocache","ro","sectorsize=logical","sectorsize=physical"), false, false) ;