===== Virtual Machines ===== ==== VirtualBox ==== === handle VMs on the shell === VBoxManage list vms VBoxManage list runningvms Get details abaut a running VM (including most of the settings) VBoxManage list -l runningvms == shutdown a VM == VBoxManage controlvm $NAMEofVM acpipowerbutton VBoxManage controlvm $NAMEofVM poweroff === resize Disk-Image === 1. Create new Disk-Image with given size (--remember does not always work, don't know why): VBoxManage createhd –-filename NewDisk.vmdk --size 30000 --remember 2. Clone old Disk-Image in the new one: VBoxManage clonehd OldDisk.vmdk NewDisk.vmdk --existing 3. Replace the old image with the new one: VBoxManage modifyvm "My Virtual Machine" --hda none VBoxManage modifyvm "My Virtual Machine" --hda NewDisk.vmdk (has never worked, use GUI instead)