My OMV installation does not seem to update the virtualbox installation. Shouldnt it get updated together with system updates?
CLI tells me that i am still on 4.3.34r104062
How can I update to version 5?
My OMV installation does not seem to update the virtualbox installation. Shouldnt it get updated together with system updates?
CLI tells me that i am still on 4.3.34r104062
How can I update to version 5?
on OMV 2.x, it uses the version of virtualbox in the omv-extras repos. Read this - Virtual Box error
I used your script to install the newer virtualbox version.
Now i get:
"An unknown PHP error occurred. This is most likely a syntax error in config.php in phpVirtualBox's folder. The most common errors are an unclosed quote or a missing semicolon in a configuration item that has been entered (e.g. location, username, or password)."
when trying to access phpvirtualbox
Doing
apt-get purge virtualbox-4.3 openmediavault-virtualbox phpvirtualbox
and rerunning the script did not help
What is the output of: cat /usr/share/phpvirtualbox/config.php
<?php
/**
* Copyright (C) 2010-2012 Ian Moore <imooreyahoo@gmail.com>
* Copyright (C) 2013-2015 OpenMediaVault Plugin Developers
*
* This file is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* This file is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this file. If not, see <http://www.gnu.org/licenses/>.
*/
use Exception;
use SplFileInfo as FileInfo;
class phpVBoxConfig
{
// Static config items.
public $location = "http://127.0.0.1:18083/";
public $language = "en";
public $startStopConfig = true;
public $username = "";
public $password = "";
public $enableAdvancedConfig = false;
// Automatic config items.
public function __construct()
{
$settings = $this->getSettings();
if (!$settings->enable) {
die("alert('phpVirtualBox disabled by OpenMediaVault configuration.');");
}
$this->enableAdvancedConfig = $settings->enable_advanced;
$this->username = $this->getVboxUserUsername();
$this->password = $this->getVboxUserPassword();
}
private function getSettings()
{
// Normally we should use OMVRpc::exec for this but since pulling
// it in caused issues in OMV we just call the RPC from the shell.
$data = shell_exec("/usr/sbin/omv-rpc VirtualBox getSettings");
if (!$data) {
throw new Exception("Failed to get OMV VirtualBox settings.");
}
return json_decode($data);
}
private function getVboxUserUsername()
{
return "vbox";
}
private function getVboxUserPassword()
{
$file = new FileInfo("/etc/default/openmediavault-virtualbox");
if (!$file->isReadable()) {
throw new Exception("Can't read /etc/defaults/openmediavault-virtualbox");
}
$file = $file->openFile();
$password = $file->fgets();
$file = null;
// Trim the password variable since it may contain a newline char.
return trim($password);
}
}
Alles anzeigen
Darn. The forum always reported an error when i hit "send" so i retried a few times.....
That looks right. Did you try clearing your browser cache and/or use a different browser?
Yeah it seems to work now. Although my old Win 10 guest system does not boot up anymore now.
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!