Erstellen einer VirtualBox-VM
Version vom 29. März 2022, 07:16 Uhr von Thomas.will (Diskussion | Beiträge)
Grundkonfiguration erstellen
- VBoxManage createvm --name $GUEST --ostype Ubuntu_20 --register
Speicher und Netzwerk konfigurieren
- VBoxManage modifyvm $GUEST --ioapic on
- VBoxManage modifyvm $GUEST --memory 2048 --vram 128
- VBoxManage modifyvm $GUEST --nic1 nat
SATA Controller erstellen
- VBoxManage storagectl $GUEST --name "SATA Controller" --add sata --controller IntelAhci
Harddisk anbringen
- cd ~/"VirtualBox VMs/"
- VBoxManage clonemedium disk $ORIGINAL/$ORIGINAL.vdi $GUEST/$GUEST.vdi
- VBoxManage storageattach $GUEST --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium $GUEST/$GUEST.vdi"
Boot Einstellungen
- VBoxManage modifyvm $GUEST --boot1 disk --boot2 none --boot3 none --boot4 none
RDP Server anschalten
- VBoxManage modifyvm $GUEST --vrde on
- VBoxManage modifyvm $GUEST --vrdemulticon on --vrdeport 10001
Maschine starten
- VBoxHeadless --startvm $GUEST