Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


virtualbox_general_notes

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
virtualbox_general_notes [2017/09/14 14:13] juckinsvirtualbox_general_notes [2022/01/15 10:30] (current) 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:  [[http://techgenix.com/start-virtualbox-service/]]
 +
 +  C:\Program Files\Oracle\VirtualBox>VBoxManage.exe clonehd --format VDI "C:\Users\Chris\VirtualBox VMs\centos7-vtatdb2-w\CENTOS7-vtatdb2-disk001.vmdk" "C:\Users\Chris\VirtualBox VMs\centos7-vtatdb2-w\CENTOS7-vtatdb2-disk001.vdi"
 +
 +__How to convert VMDK to VDI__\\
 +
 +See notes at https://www.bonusbits.com/wiki/HowTo:Convert_VMDK_to_VDI
  
 __How to resize a Virtual Drive__\\ __How to resize a Virtual Drive__\\
 +  * The following was tested with VBox 5.1.26
   * Shutdown the VM you want to resize   * Shutdown the VM you want to resize
   * Navigate to the .vdi file you want to resize   * Navigate to the .vdi file you want to resize
   * Make a backup copy of the .vdi file   * Make a backup copy of the .vdi file
 +  * Run a command like this (example for 30GB drive)
  
-  VBoxManage modifyhd <absolute path including the name and extension> --resize 20480+  VBoxManage modifyhd /path/to/file.vdi --resize 30000 
 +   
 +Note, if you have a vmdk file you need to follow this [[https://stackoverflow.com/questions/11659005/how-to-resize-a-virtualbox-vmdk-file|(see this link)]] and then update the UUID following [[https://stackoverflow.com/questions/17803331/how-to-change-uuid-in-virtual-box|this link]] or navigating to $HOME/.VirtualBox/VirtualBox.xml and updating the information there (make a backup first):
  
 +  # VBoxManage clonehd "source.vmdk" "cloned.vdi" --format vdi
 +  # VBoxManage modifyhd "cloned.vdi" --resize 51200
 +  # mv source.vmdksource.vmdk.BAK 
 +  # VBoxManage clonehd "cloned.vdi" "source.vmdk" --format vmdk
  
- +  * Start VirtualBox manager 
-https://forums.virtualbox.org/viewtopic.php?f=35&t=50661\\ +  * Highlight the VM whose disk you are resizing 
-http://derekmolloy.ie/resize-a-virtualbox-disk/\\+  * 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://forums.virtualbox.org/viewtopic.php?f=35&t=50661\\ 
 +  * Ref 2: http://derekmolloy.ie/resize-a-virtualbox-disk/\\
  
 __Possible mouse unresponsiveness issue in 5.1.18__ __Possible mouse unresponsiveness issue in 5.1.18__
Line 27: Line 57:
 # Power off VM\\ # Power off VM\\
 VBoxManage controlvm MyVM poweroff VBoxManage controlvm MyVM poweroff
 +
 +[[http://jez.me/article/how-start-virtualbox-vm-headless-windows-10|Run VirtualBox Headless at Startup in Windows 10]]
  
 **February 2015** **February 2015**
Line 32: Line 64:
 //Updated October 2016 for wodim issues// //Updated October 2016 for wodim issues//
  
-Installing Guest Additions in run-level 3 on CENTOS6 and CENTOS7:+Installing Guest Additions in run-level 3 on CentOS6, CentOS7, CentOS8 Stream:
   * https://linuxconfig.org/how-to-mount-cdrom-in-linux   * https://linuxconfig.org/how-to-mount-cdrom-in-linux
   * First, go to the VirtualBox window that is running the guest machine and choose Devices > Insert Guest Additions CD Image   * First, go to the VirtualBox window that is running the guest machine and choose Devices > Insert Guest Additions CD Image
Line 50: 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://www.if-not-true-then-false.com/2010/install-virtualbox-guest-additions-on-fedora-centos-red-hat-rhel/
virtualbox_general_notes.1505412837.txt.gz · Last modified: 2017/09/14 14:13 by juckins