Erstellen einer VirtualBox-VM: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
(2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
 +
=Variblen setzen=
 +
*GUEST=debian1
 +
*ORIGINAL=debian
  
 
=Grundkonfiguration erstellen=
 
=Grundkonfiguration erstellen=
Zeile 12: Zeile 15:
 
*cd ~/"VirtualBox VMs/"
 
*cd ~/"VirtualBox VMs/"
 
*VBoxManage clonemedium disk $ORIGINAL/$ORIGINAL.vdi $GUEST/$GUEST.vdi
 
*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"
+
*VBoxManage storageattach $GUEST --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium $GUEST/$GUEST.vdi
  
 
=Boot Einstellungen=
 
=Boot Einstellungen=

Aktuelle Version vom 29. März 2022, 07:21 Uhr

Variblen setzen

  • GUEST=debian1
  • ORIGINAL=debian

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