virtualbox_general_notes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
virtualbox_general_notes [2017/07/07 15:05] – juckins | virtualbox_general_notes [2020/01/09 10:19] – juckins | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== VirtualBox General Notes ==== | ==== VirtualBox General Notes ==== | ||
+ | |||
+ | Check version of installed Guest Additions: | ||
+ | |||
+ | modinfo vboxguest | ||
+ | |||
+ | |||
+ | Running VirtualBox as a service on Windows: | ||
+ | |||
+ | C:\Program Files\Oracle\VirtualBox> | ||
+ | |||
+ | __How to convert VMDK to VDI__\\ | ||
+ | |||
+ | See notes at https:// | ||
__How to resize a Virtual Drive__\\ | __How to resize a Virtual Drive__\\ | ||
- | https:// | + | * The following was tested with VBox 5.1.26 |
- | http:// | + | * Shutdown the VM you want to resize |
- | Remember to do the VBoxManage command as root. | + | * Navigate to the .vdi file you want to resize |
+ | * Make a backup copy of the .vdi file | ||
+ | * Run a command like this (example for 30GB drive) | ||
+ | |||
+ | # VBoxManage modifyhd / | ||
+ | |||
+ | Note, if you have a vmdk file you need to follow this [[https:// | ||
+ | |||
+ | # VBoxManage clonehd " | ||
+ | # VBoxManage modifyhd " | ||
+ | # mv source.vmdksource.vmdk.BAK | ||
+ | # VBoxManage clonehd " | ||
+ | |||
+ | * Start VirtualBox manager | ||
+ | * Highlight the VM whose disk you are resizing | ||
+ | * Click Settings and then click storage | ||
+ | * Mount a virtual CDROM (gparted-live ISO that you downloaded to the host machine) | ||
+ | * Start the VM | ||
+ | * Start Gparted LIVE | ||
+ | * Follow the menus to resize the partition that you need to make larger | ||
+ | * Select the partition you want to edit/resize and manipulate accordingly | ||
+ | * When done, exit Gparted and unmount the CDROM | ||
+ | * Boot the VM and verify your changes were implemented | ||
+ | * Ref 1: https:// | ||
+ | * Ref 2: http:// | ||
- | Possible | + | __Possible |
+ | https:// | ||
__Running in Headless Mode__\\ | __Running in Headless Mode__\\ | ||
- | # List virtual machines | + | # List virtual machines\\ |
- | VBoxManage list vms | + | VBoxManage list vms\\ |
" | " | ||
- | # Start VM in headless mode | + | # Start VM in headless mode\\ |
VBoxManage startvm MyVM --type headless | VBoxManage startvm MyVM --type headless | ||
- | # Power off VM | + | # Power off VM\\ |
VBoxManage controlvm MyVM poweroff | VBoxManage controlvm MyVM poweroff | ||
+ | |||
+ | [[http:// | ||
**February 2015** | **February 2015** | ||
Line 42: | Line 82: | ||
* Ex: sh VBoxLinuxAdditions.run | * Ex: sh VBoxLinuxAdditions.run | ||
* When done, cd / and eject and reboot | * When done, cd / and eject and reboot | ||
- | + | __ | |
+ | Updated 18 March 2019__\\ | ||
+ | * https:// |
virtualbox_general_notes.txt · Last modified: 2022/01/15 10:30 by juckins