Erstellen einer VirtualBox-VM: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 6: Zeile 6:
 
*VBoxManage modifyvm u20 --nic1 nat
 
*VBoxManage modifyvm u20 --nic1 nat
 
=SATA Controller erstellen=
 
=SATA Controller erstellen=
*VBoxManage storagectl u20 --name "SATA Controller" --add sata --controller IntelAhci      
+
*VBoxManage storhttps://xinux.net/index.php/Hauptseiteagectl u20 --name "SATA Controller" --add sata --controller IntelAhci  
*VBoxManage storageattach u20 --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium `pwd`/[MACHINE NAME]/[MACHINE NAME]_DISK.vdi              
+
=Harddisk anbringen=
 +
*cp ubuntu.vdi  ~/"VirtualBox VMs/u20/u20.vdi"     
 +
*VBoxManage storageattach u20 --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium ~/"VirtualBox VMs/u20/u20.vdi"                 
 
*VBoxManage modifyvm u20 --boot1 disk1 --boot2 none --boot3 none --boot4 none
 
*VBoxManage modifyvm u20 --boot1 disk1 --boot2 none --boot3 none --boot4 none
 +
 
=BlaBla=
 
=BlaBla=
 
*VBoxManage modifyvm [MACHINE NAME] --vrde on                   
 
*VBoxManage modifyvm [MACHINE NAME] --vrde on                   
 
*VBoxManage modifyvm [MACHINE NAME] --vrdemulticon on --vrdeport 10001
 
*VBoxManage modifyvm [MACHINE NAME] --vrdemulticon on --vrdeport 10001
 
*VBoxHeadless --startvm [MACHINE NAME]
 
*VBoxHeadless --startvm [MACHINE NAME]

Version vom 28. März 2022, 18:01 Uhr

Grundkonfiguration erstellen

  • VBoxManage createvm --name u20 --ostype Ubuntu_20 --register

Speicher und Netzwerk konfigurieren

  • VBoxManage modifyvm u20 --ioapic on
  • VBoxManage modifyvm u20 --memory 2048 --vram 128
  • VBoxManage modifyvm u20 --nic1 nat

SATA Controller erstellen

  • VBoxManage storhttps://xinux.net/index.php/Hauptseiteagectl u20 --name "SATA Controller" --add sata --controller IntelAhci

Harddisk anbringen

  • cp ubuntu.vdi ~/"VirtualBox VMs/u20/u20.vdi"
  • VBoxManage storageattach u20 --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium ~/"VirtualBox VMs/u20/u20.vdi"
  • VBoxManage modifyvm u20 --boot1 disk1 --boot2 none --boot3 none --boot4 none

BlaBla

  • VBoxManage modifyvm [MACHINE NAME] --vrde on
  • VBoxManage modifyvm [MACHINE NAME] --vrdemulticon on --vrdeport 10001
  • VBoxHeadless --startvm [MACHINE NAME]