reset password

Headless VirtualBox Commands

VBoxManage list ostypes
VBoxManage createvm -name WinVista -ostype WindowsVista -register
VBoxManage modifyvm WinVista --memory 1024 --acpi on --boot1 dvd --nic1 bridged --bridgeadapter1 eth0
VBoxManage storagectl WinVista --name IDE0 --add ide
VBoxManage createvdi -filename ~/VirtualDisks/WinVista.vdi -size 80000
VBoxManage storageattach WinVista --storagectl IDE0 --port 0 --device 0 --type hdd --medium ~/VirtualDisks/WinVista.vdi
VBoxManage storageattach WinVista --storagectl IDE0 --port 1 --device 0 --type dvddrive --medium /mnt/data1/backup/Software/Windows\ Vista\ Business\ SP2\ \(x86\).iso
VBoxManage storageattach WinVista --storagectl IDE0 --port 1 --device 0 --type dvddrive --medium /usr/share/virtualbox/VBoxGuestAdditions.iso
VBoxManage sharedfolder add WinVista --name VBoxShare --hostpath ~/VirtualDisks/share/

This page has been viewed 1335 times.