User Tools

Site Tools


linux:virtualbox_headless

This is an old revision of the document!


VirtualBox (headless)

Nový virtuální stroj

Seznam typů OS

VBoxManage list ostypes

Založení nového VS

VBoxManage createvm --name "winxp" --ostype WindowsXP --register

Nastavení parametrů VS
VRDE = RDP připojení k VS

VBoxManage modifyvm "winxp" --memory 256 --acpi on --ioapic on --boot1 dvd \
--nic1 bridged --bridgeadapter1 eth0 --vrdeport 50100 --vrdemulticon on

Vytvoření disku (v aktuálním adresáři)
Velikost uvedena v MB

$ VBoxManage createhd --filename "winxp.vdi" --size 10000

Vytvoření řadiče a připojení disku a obrazů ISO

VBoxManage storagectl "winxp" --name "ide0" --add ide --controller PIIX4
VBoxManage storageattach "winxp" --storagectl "ide0" --port 0 --device 0 \
--type hdd --medium "winxp.vdi"
VBoxManage storageattach "winxp" --storagectl "ide0" --port 0 --device 1 \
--type dvddrive --medium /full/path/to/iso.iso
VBoxManage storageattach "winxp" --storagectl "ide0" --port 0 --device 1 \
--type dvddrive --medium emptydrive

Ruční nastavení rozlišení

VBoxManage setextradata "winxp" CustomVideoMode1 1440x900x32

Další příkazy

Spuštění VS

VBoxHeadless --startvm "winxp"

Připojení Shared Folder

VBoxManage sharedfolder add "winxp" --name shared_folder --hostpath /full/path/to/folder --automount

Snapshots

VBoxManage snapshot "winxp" take "Clean install"
VBoxManage snapshot "winxp" restore "Clean install"
VBoxManage snapshot "winxp" delete "Clean install" (nebo UUID)
linux/virtualbox_headless.1415889140.txt.gz · Last modified: 2022/03/16 09:38 (external edit)