User Tools

Site Tools


linux:virtualbox_headless

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:virtualbox_headless [2014/11/13 15:12]
ww created
linux:virtualbox_headless [2022/03/16 09:39] (current)
Line 3: Line 3:
 ===== Nový virtuální stroj ===== ===== Nový virtuální stroj =====
  
-Seznam typů OS+=== Seznam typů OS ===
   VBoxManage list ostypes   VBoxManage list ostypes
      
-Založení nového VS+=== Založení nového VS ===
   VBoxManage createvm --name "winxp" --ostype WindowsXP --register   VBoxManage createvm --name "winxp" --ostype WindowsXP --register
      
-Nastavení parametrů VS \\+=== Nastavení parametrů VS ===
 VRDE = RDP připojení k VS VRDE = RDP připojení k VS
   VBoxManage modifyvm "winxp" --memory 256 --acpi on --ioapic on --boot1 dvd \   VBoxManage modifyvm "winxp" --memory 256 --acpi on --ioapic on --boot1 dvd \
-  --nic1 bridged --bridgeadapter1 eth0 --vrdeport 50100 --vrdemulticon on +  --nic1 bridged --bridgeadapter1 eth0 --vrde on --vrdeport 50100 --vrdemulticon on
-  VboxManage modifyvm "Windows XP" --vrdeport 50102 --vrdemulticon on+
      
-Vytvoření disku (v aktuálním adresáři) \\+=== Vytvoření disku (v aktuálním adresáři) ===
 Velikost uvedena v MB Velikost uvedena v MB
   $ VBoxManage createhd --filename "winxp.vdi" --size 10000   $ VBoxManage createhd --filename "winxp.vdi" --size 10000
  
-Vytvoření řadiče a připojení disku a obrazů ISO+=== Vytvoření řadiče a připojení disku a obrazů ISO ===
   VBoxManage storagectl "winxp" --name "ide0" --add ide --controller PIIX4   VBoxManage storagectl "winxp" --name "ide0" --add ide --controller PIIX4
 +  
   VBoxManage storageattach "winxp" --storagectl "ide0" --port 0 --device 0 \   VBoxManage storageattach "winxp" --storagectl "ide0" --port 0 --device 0 \
   --type hdd --medium "winxp.vdi"   --type hdd --medium "winxp.vdi"
   VBoxManage storageattach "winxp" --storagectl "ide0" --port 0 --device 1 \   VBoxManage storageattach "winxp" --storagectl "ide0" --port 0 --device 1 \
-  --type dvddrive --medium /full/path/to/iso.iso+  --type dvddrive --medium /usr/share/virtualbox/VBoxGuestAdditions.iso
   VBoxManage storageattach "winxp" --storagectl "ide0" --port 0 --device 1 \   VBoxManage storageattach "winxp" --storagectl "ide0" --port 0 --device 1 \
   --type dvddrive --medium emptydrive   --type dvddrive --medium emptydrive
  
-Ruční nastavení rozlišení+== Alternativně SATA == 
 +  VBoxManage storagectl "winxp" --name "sata0" --add sata --controller IntelAHCI 
 +   
 +  vboxmanage storageattach "winxp" --storagectl sata0 --port 1 --device 0 \ 
 +  --type dvddrive --medium /usr/share/virtualbox/VBoxGuestAdditions.iso 
 +   
 +Poznámka: 
 +  - IDE = dva porty, na každém max. dvě zařízení (stejně jako PATA). 
 +  - SATA = max. 20 portů, na každém jedno zařízení (stejně jako SATA). 
 + 
 +=== Ruční nastavení rozlišení ===
   VBoxManage setextradata "winxp" CustomVideoMode1 1440x900x32   VBoxManage setextradata "winxp" CustomVideoMode1 1440x900x32
  
 ===== Další příkazy ===== ===== Další příkazy =====
  
-Spuštění VS+=== Spuštění VS ===
   VBoxHeadless --startvm "winxp"   VBoxHeadless --startvm "winxp"
  
-Připojení Shared Folder+=== Připojení Shared Folder ===
   VBoxManage sharedfolder add "winxp" --name shared_folder --hostpath /full/path/to/folder --automount   VBoxManage sharedfolder add "winxp" --name shared_folder --hostpath /full/path/to/folder --automount
  
-Snapshots+=== Snapshots ===
   VBoxManage snapshot "winxp" take "Clean install"   VBoxManage snapshot "winxp" take "Clean install"
   VBoxManage snapshot "winxp" restore "Clean install"   VBoxManage snapshot "winxp" restore "Clean install"
   VBoxManage snapshot "winxp" delete "Clean install" (nebo UUID)   VBoxManage snapshot "winxp" delete "Clean install" (nebo UUID)
 +
 +=== Konverze VHDX na VHD ===
 +  VBoxManage clonehd puvodni.vhdx --format VHD novy.vhd
linux/virtualbox_headless.1415887970.txt.gz · Last modified: 2022/03/16 09:38 (external edit)