virtualbox: add headless build (without Qt dependency) (#18026)
This commit is contained in:
committed by
Domen Kožar
parent
8a7afae58b
commit
78cd9f8ebc
@@ -314,6 +314,9 @@ let
|
||||
|
||||
test2.vmFlags = hostonlyVMFlags;
|
||||
test2.vmScript = dhcpScript;
|
||||
|
||||
headless.virtualisation.virtualbox.headless = true;
|
||||
headless.services.xserver.enable = false;
|
||||
};
|
||||
|
||||
mkVBoxTest = name: testScript: makeTest {
|
||||
@@ -402,6 +405,14 @@ in mapAttrs mkVBoxTest {
|
||||
shutdownVM_simple;
|
||||
'';
|
||||
|
||||
headless = ''
|
||||
createVM_headless;
|
||||
$machine->succeed(ru("VBoxHeadless --startvm headless & disown %1"));
|
||||
waitForStartup_headless;
|
||||
waitForVMBoot_headless;
|
||||
shutdownVM_headless;
|
||||
'';
|
||||
|
||||
host-usb-permissions = ''
|
||||
my $userUSB = removeUUIDs vbm("list usbhost");
|
||||
print STDERR $userUSB;
|
||||
|
||||
Reference in New Issue
Block a user