Add x86_64 kernel bring-up with build-selected platform adapters
This commit is contained in:
1 parent
e8e4061564
commit
6a1eb5e2ac
69 files changed
+4981
-1502
No files matched your search
+21
-5
@@ -10,7 +10,10 @@ You need a local git-ignored localenv.json file with the following content:
|
||||
param (
|
||||
[Parameter(Mandatory=$true)]
|
||||
[ValidateSet('up', 'down')]
|
||||
[String]$Command
|
||||
[String]$Command,
|
||||
# Optional modes for bounded, script-driven boot validation (Aaron Hance).
|
||||
[switch]$Headless,
|
||||
[switch]$NoMonitor
|
||||
)
|
||||
|
||||
$Config = Get-Content .\localenv.json | ConvertFrom-Json
|
||||
@@ -24,10 +27,23 @@ if ($Command -eq 'up') {
|
||||
Clear-Content $LogLocation
|
||||
}
|
||||
|
||||
$MonitorJob = Start-Job -ArgumentList $MachineName -ScriptBlock {
|
||||
param($MachineName)
|
||||
if ($NoMonitor) {
|
||||
if ($Headless) {
|
||||
VBoxManage.exe startvm $MachineName --type headless
|
||||
} else {
|
||||
VBoxManage.exe startvm $MachineName
|
||||
}
|
||||
exit $LASTEXITCODE
|
||||
}
|
||||
|
||||
$MonitorJob = Start-Job -ArgumentList $MachineName, $Headless.IsPresent -ScriptBlock {
|
||||
param($MachineName, $Headless)
|
||||
Write-Output "Starting $MachineName"
|
||||
VBoxManage.exe startvm $MachineName
|
||||
if ($Headless) {
|
||||
VBoxManage.exe startvm $MachineName --type headless
|
||||
} else {
|
||||
VBoxManage.exe startvm $MachineName
|
||||
}
|
||||
$running=$true
|
||||
while($running) {
|
||||
$status=(VBoxManage.exe list runningvms)
|
||||
@@ -56,4 +72,4 @@ if ($Command -eq 'up') {
|
||||
} elseif ($Command -eq 'down') {
|
||||
Write-Output "Stopping $MachineName"
|
||||
VBoxManage.exe controlvm $MachineName poweroff
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user