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
Last revisionBoth sides next revision
virtualbox_general_notes [2018/01/10 09:55] juckinsvirtualbox_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:  [[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__\\
Line 10: Line 23:
   # VBoxManage modifyhd /path/to/file.vdi --resize 30000   # 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)]]:+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 clonehd "source.vmdk" "cloned.vdi" --format vdi
   # VBoxManage modifyhd "cloned.vdi" --resize 51200   # VBoxManage modifyhd "cloned.vdi" --resize 51200
-  # VBoxManage clonehd "cloned.vdi" "resized.vmdk" --format vmdk+  # mv source.vmdksource.vmdk.BAK  
 +  # VBoxManage clonehd "cloned.vdi" "source.vmdk" --format vmdk
  
   * Start VirtualBox manager   * Start VirtualBox manager
Line 23: Line 37:
   * Start Gparted LIVE   * Start Gparted LIVE
   * Follow the menus to resize the partition that you need to make larger   * 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   * When done, exit Gparted and unmount the CDROM
   * Boot the VM and verify your changes were implemented   * Boot the VM and verify your changes were implemented
Line 42: 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 65: 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.txt · Last modified: 2022/01/15 10:30 by juckins