Last active
September 5, 2025 00:03
-
-
Save dmi3mis/ffbc7cc229ab61d72a5a5d487328aa8f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| REM https://docs.oracle.com/en/virtualization/virtualbox/6.0/user/vboxmanage.html | |
| REM https://andreafortuna.org/2019/10/24/how-to-create-a-virtualbox-vm-from-command-line/ | |
| set vboxmanage="c:\Program Files\Oracle\VirtualBox\VBoxManage.exe" | |
| %vboxmanage% natnetwork list|findstr /E /C:"NatNetwork" >nul & if errorlevel 1 (%vboxmanage% natnetwork add --netname NatNetwork --network 10.0.2.0/24 --enable --dhcp on ) | |
| %vboxmanage% natnetwork list | |
| %vboxmanage% list hostonlyifs |findstr /E /C:"VBoxNetworkName: HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter">nul & if errorlevel 1 (%vboxmanage% hostonlyif create) | |
| %vboxmanage% hostonlyif ipconfig "VirtualBox Host-Only Ethernet Adapter" --ip 192.168.101.254 --netmask 255.255.255.0 | |
| %vboxmanage% list hostonlyifs |findstr /E /C:"VBoxNetworkName: HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter #2">nul & if errorlevel 1 (%vboxmanage% hostonlyif create) | |
| %vboxmanage% hostonlyif ipconfig "VirtualBox Host-Only Ethernet Adapter #2" --ip 10.11.0.254 --netmask 255.255.255.0 | |
| %vboxmanage% list hostonlyifs | |
| REM %vboxmanage% import AP2301-gate_ALSE176_ALDPro24.ova --vsys 0 --vmname gate.ald.test --cpus 2 --memory 1024 --group "/AP2301" | |
| %vboxmanage% modifyvm %vmname% --memory 2048 --vram 64 --accelerate3d off | |
| %vboxmanage% import alse-gui-1.7.6.uu2-max-virtualbox-mg15.3.1-amd64.ova --vsys 0 --cpus 4 --memory 5120 --group "/AP2301" --vmname dc01.ald.test | |
| %vboxmanage% import alse-gui-1.7.6.uu2-max-virtualbox-mg15.3.1-amd64.ova --vsys 0 --cpus 4 --memory 5120 --group "/AP2301" --vmname dc02.ald.test | |
| %vboxmanage% import alse-gui-1.7.6.uu2-max-virtualbox-mg15.3.1-amd64.ova --vsys 0 --cpus 4 --memory 5120 --group "/AP2301" --vmname dc03.ald.test | |
| %vboxmanage% import alse-gui-1.7.6.uu2-max-virtualbox-mg15.3.1-amd64.ova --vsys 0 --cpus 1 --memory 2048 --group "/AP2301" --vmname client1.ald.test | |
| %vboxmanage% import alse-gui-1.7.6.uu2-max-virtualbox-mg15.3.1-amd64.ova --vsys 0 --cpus 1 --memory 2048 --group "/AP2301" --vmname dhcp.ald.test | |
| %vboxmanage% import alse-gui-1.7.6.uu2-max-virtualbox-mg15.3.1-amd64.ova --vsys 0 --cpus 1 --memory 2048 --group "/AP2301" --vmname ps.ald.test | |
| %vboxmanage% import alse-gui-1.7.6.uu2-max-virtualbox-mg15.3.1-amd64.ova --vsys 0 --cpus 1 --memory 2048 --group "/AP2301" --vmname monitor.ald.test | |
| %vboxmanage% import alse-gui-1.7.6.uu2-max-virtualbox-mg15.3.1-amd64.ova --vsys 0 --cpus 1 --memory 2048 --group "/AP2301" --vmname log.ald.test | |
| %vboxmanage% import alse-gui-1.7.6.uu2-max-virtualbox-mg15.3.1-amd64.ova --vsys 0 --cpus 1 --memory 2048 --group "/AP2301" --vmname fs.ald.test | |
| %vboxmanage% import alse-gui-1.7.6.uu2-max-virtualbox-mg15.3.1-amd64.ova --vsys 0 --cpus 1 --memory 2048 --group "/AP2301" --vmname client2.ald.test | |
| %vboxmanage% import alse-gui-1.7.6.uu2-max-virtualbox-mg15.3.1-amd64.ova --vsys 0 --cpus 1 --memory 2048 --group "/AP2301" --vmname repo.ald.test | |
| %vboxmanage% import alse-gui-1.7.6.uu2-max-virtualbox-mg15.3.1-amd64.ova --vsys 0 --cpus 1 --memory 2048 --group "/AP2301" --vmname os.ald.test | |
| REM RDP to physical host will crash/abort just one of multiple VM's | |
| REM https://forums.virtualbox.org/viewtopic.php?t=110659 | |
| REM I've tried the following: | |
| REM * Disable audio on the RDP connection (remote audio set to "Do not play"). Issue/crash no longer occurs. | |
| REM * Changed the VM audio control from "Intel HD Audio" to "ICH AC97". Issue/crash no longer occurs. | |
| %vboxmanage% modifyvm dc01.ald.test --audiocontroller ac97 --accelerate3d off --nic1 hostonly --host-only-adapter1="VirtualBox Host-Only Ethernet Adapter" | |
| %vboxmanage% modifyvm dc02.ald.test --audiocontroller ac97 --accelerate3d off --nic1 hostonly --host-only-adapter1="VirtualBox Host-Only Ethernet Adapter" | |
| %vboxmanage% modifyvm dc03.ald.test --audiocontroller ac97 --accelerate3d off --nic1 hostonly --host-only-adapter1="VirtualBox Host-Only Ethernet Adapter #2" | |
| %vboxmanage% modifyvm client1.ald.test --audiocontroller ac97 --accelerate3d off --nic1 hostonly --host-only-adapter1="VirtualBox Host-Only Ethernet Adapter" | |
| %vboxmanage% modifyvm dhcp.ald.test --audiocontroller ac97 --accelerate3d off --nic1 hostonly --host-only-adapter1="VirtualBox Host-Only Ethernet Adapter #2" | |
| %vboxmanage% modifyvm ps.ald.test --audiocontroller ac97 --accelerate3d off --nic1 hostonly --host-only-adapter1="VirtualBox Host-Only Ethernet Adapter" | |
| %vboxmanage% modifyvm monitor.ald.test --audiocontroller ac97 --accelerate3d off --nic1 hostonly --host-only-adapter1="VirtualBox Host-Only Ethernet Adapter" | |
| %vboxmanage% modifyvm log.ald.test --audiocontroller ac97 --accelerate3d off --nic1 hostonly --host-only-adapter1="VirtualBox Host-Only Ethernet Adapter" | |
| %vboxmanage% modifyvm fs.ald.test --audiocontroller ac97 --accelerate3d off --nic1 hostonly --host-only-adapter1="VirtualBox Host-Only Ethernet Adapter" | |
| %vboxmanage% modifyvm client2.ald.test --audiocontroller ac97 --accelerate3d off --nic1 hostonly --host-only-adapter1="VirtualBox Host-Only Ethernet Adapter #2" | |
| %vboxmanage% modifyvm os.ald.test --audiocontroller ac97 --accelerate3d off --nic1 hostonly --host-only-adapter1="VirtualBox Host-Only Ethernet Adapter #2" | |
| %vboxmanage% import ws1.msad.test.ova --vsys 0 --cpus 1 --memory 4096 --group "/AP2301" --vmname ws1.msad.test | |
| %vboxmanage% modifyvm ws1.msad.test --nic1 hostonly --host-only-adapter1="VirtualBox Host-Only Ethernet Adapter" | |
| %vboxmanage% import w10.msad.test.ova --vsys 0 --cpus 1 --memory 4096 --group "/AP2301" --vmname w10.msad.test | |
| %vboxmanage% modifyvm w10.msad.test --nic1 hostonly --host-only-adapter1="VirtualBox Host-Only Ethernet Adapter" | |
| set vmname=comp-bios.ald.test | |
| %vboxmanage% createvm --ostype=Debian10_64 --name %vmname% --groups="/AP2301" --register | |
| %vboxmanage% modifyvm %vmname% --ioapic on | |
| %vboxmanage% modifyvm %vmname% --memory 2048 --vram 64 | |
| %vboxmanage% modifyvm %vmname% --graphicscontroller=vmsvga --accelerate3d off | |
| %vboxmanage% modifyvm %vmname% --nic1 hostonly --host-only-adapter1="VirtualBox Host-Only Ethernet Adapter #2" | |
| set diskpath=%~dp0/AP2301/%vmname%/%vmname%.vmdk | |
| %vboxmanage% createmedium disk --filename=%diskpath% --size 80000 --format=VMDK --variant=Standard | |
| %vboxmanage% storagectl %vmname% --name "SATA Controller" --add sata --controller IntelAhci | |
| %vboxmanage% storageattach %vmname% --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium=%diskpath% | |
| %vboxmanage% storagectl %vmname% --name "IDE Controller" --add ide --controller PIIX4 | |
| %vboxmanage% storageattach %vmname% --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium=emptydrive | |
| %vboxmanage% modifyvm %vmname% --boot1 disk --boot2 dvd --boot3 none --boot4 none | |
| set vmname=comp-efi.ald.test | |
| %vboxmanage% createvm --ostype=Debian10_64 --name %vmname% --groups="/AP2301" --register | |
| %vboxmanage% modifyvm %vmname% --ioapic on | |
| %vboxmanage% modifyvm %vmname% --memory 2048 --vram 64 | |
| %vboxmanage% modifyvm %vmname% --graphicscontroller=vmsvga --accelerate3d off | |
| %vboxmanage% modifyvm %vmname% --firmware EFI | |
| %vboxmanage% modifyvm %vmname% --nic1 hostonly --nic1 hostonly --nictype1 82543GC --host-only-adapter1="VirtualBox Host-Only Ethernet Adapter #2" | |
| set diskpath=%~dp0/AP2301/%vmname%/%vmname%.vmdk | |
| %vboxmanage% createmedium disk --filename=%diskpath% --size 80000 --format=VMDK --variant=Standard | |
| %vboxmanage% storagectl %vmname% --name "SATA Controller" --add sata --controller IntelAhci | |
| %vboxmanage% storageattach %vmname% --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium=%diskpath% | |
| %vboxmanage% storagectl %vmname% --name "IDE Controller" --add ide --controller PIIX4 | |
| %vboxmanage% storageattach %vmname% --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium=emptydrive | |
| %vboxmanage% modifyvm %vmname% --boot1 disk --boot2 dvd --boot3 none --boot4 none |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment