EnableTunTap function

feature/node-rewrite
Sven Slootweg 13 years ago
parent eb45a26926
commit a427994a90

@ -136,6 +136,12 @@ class Container extends CPHPDatabaseRecordClass
throw new ContainerStartException($result->stderr, $result->returncode, $this->sInternalId);
}
}
public function EnableTunTap()
{
// TODO: Finish EnableTunTap function, check whether tun module is available on host
$command = "vzctl set {$this->sInternalId} --devnodes net/tun:rw --save";
}
}
?>

@ -2,27 +2,12 @@
$_CVM = true;
require("includes/include.base.php");
/*$ssh = new SshConnector();
$ssh->host = "cvm-vz.cryto.net";
$ssh->key = "/etc/cvm/key";
$ssh->pubkey = "/etc/cvm/key.pub";
var_dump($ssh->RunCommand("df -h", true));*/
$settings['master_privkey'] = "/etc/cvm/key";
$settings['master_pubkey'] = "/etc/cvm/key.pub";
/*$sNode = new Node(1);
var_dump($sNode->sDiskFree, $sNode->sDiskUsed, $sNode->sRealHostname);*/
$sContainer = new Container(1);
// $sContainer->Deploy();
// returncode 127 = failed (CT ID missing?)
$sContainer->Start();
echo("Done!");
//pretty_dump($sContainer);
?>

Loading…
Cancel
Save