Menu="OtherSettings" Title="VM Manager" Icon="icon-virtualization" Tag="columns" --- "._('Your hardware does not have Intel VT-x or AMD-V capability').". "._('This is required to create VMs in KVM').". "._('Please disable the VM function').". "; echo " "._('Click here to see the Unraid Wiki for more information')."

"; } function scan($area, $text) { return strpos($area,$text)!==false; } function detect(&$syslinux, $key) { $size = count($syslinux); $menu = $i = 0; $value = ''; // find the default section while ($i < $size) { if (scan($syslinux[$i],'label ')) { $n = $i + 1; // find the current requested setting while (!scan($syslinux[$n],'label ') && $n < $size) { if (scan($syslinux[$n],'menu default')) $menu = 1; if (scan($syslinux[$n],'append')) foreach (explode(' ',$syslinux[$n]) as $cmd) if (scan($cmd,$key)) {$value = explode('=',$cmd)[1]; break;} $n++; } if ($menu) break; else $i = $n - 1; } $i++; } return $value; } $syslinux = file('/boot/syslinux/syslinux.cfg',FILE_IGNORE_NEW_LINES+FILE_SKIP_EMPTY_LINES); $arrValidNetworks = getValidNetworks(); $pcie_acs_override = detect($syslinux, 'pcie_acs_override'); $vfio_allow_unsafe = detect($syslinux, 'allow_unsafe_interrupts'); $bgcolor = strstr('white,azure',$display['theme']) ? '#f2f2f2' : '#1c1c1c'; $started = $var['fsState']=='Started'; $libvirt_up = $libvirt_running=='yes'; $libvirt_log = file_exists("/var/log/libvirt/libvirtd.log"); ?>
_(Enable VMs)_: : _(One or more paths do not exist)_ (_(view)_) :vms_enable_help: _(Disable Autostart/Start option for VMs)_: : :vms_disable_help:
get_connect_information()?> _(Libvirt version)_: : _(QEMU version)_: : _(Libvirt storage location)_: : :vms_libvirt_volume_help: _(Libvirt vdisk size)_: : _(GB)_ :vms_libvirt_vdisk_size_help: _(Libvirt storage location)_: : _(Modify with caution: unable to validate path until Array is Started)_ _(Path does not exist)_ :vms_libvirt_location_help: _(Default VM storage path)_: : _(Modify with caution: unable to validate path until Array is Started)_ _(Path does not exist)_ :vms_libvirt_storage_help: _(Default ISO storage path)_: : _(Modify with caution: unable to validate path until Array is Started)_ _(Path does not exist)_ :vms_libvirt_iso_storage_help:
_(Default Windows VirtIO driver ISO)_ (_(optional)_): : placeholder="_(Click to Select)_" pattern="^[^\\]*\.(iso|ISO)$">  _(Remove)_ _(Download)_ :vms_virtio_driver_help:
_(Default network source)_: : :vms_network_source_help: _(Upon host shutdown)_: : :vms_host_shutdown_help: _(VM shutdown time-out)_: : (int)$var['shutdownTimeout']):?> _(exceeds Disk Shutdown)_ s _(time-out)_ (_(edit)_) :vms_shutdown_timeout_help: _(Console Options)_: : :vms_console_help: _(Show VM Usage)_: : :vms_usage_help: _(VM Usage refresh timer(seconds))_: : :vms_usage_timer_help: _(PCIe ACS override)_: : *_(Setting disabled in **safe mode**)_* :vms_acs_override_help: _(VFIO allow unsafe interrupts)_: : *_(Setting disabled in **safe mode**)_* :vms_vfio_interupts_help:
    :
:vms_libvirt_log_help:
_(Libvirt volume info)_
_(btrfs filesystem show)_: : ".shell_exec("btrfs filesystem show /etc/libvirt").""?>
_(btrfs scrub status)_: : ".implode("\n", $scrub_status).""?>   : :vms_scrub_help:   : :vms_cancel_help: