VirtualBox Operations: Difference between revisions
No edit summary |
|||
Line 22: | Line 22: | ||
<font color=red>When doing this, update [[Linux Logical Volume Management Concepts]] with details.</font> | <font color=red>When doing this, update [[Linux Logical Volume Management Concepts]] with details.</font> | ||
=Resizing an Existing Virtual Disk= | |||
Select the VM in the VirtualBox Manager and stop It. | |||
Go to the host directory where VirtualBox maintains the file: | |||
<pre> | |||
cd /Users/ovidiu/VirtualBox VMs/Windows/Windows10 | |||
</pre> | |||
Copy the .vdi file as a precaution: | |||
<pre> | |||
cp Windows10.vdi Windows10.vdi.backup | |||
</pre> | |||
Resize it (the space is specified in MB). The following command resizes the disk to 100 GB. | |||
<pre> | |||
VBoxManage modifyhd Windows10.vdi --resize 102400 | |||
</pre> | |||
The size does not get modified right away, but the disk will grow as needed. | |||
=Getting Information about a Guest= | =Getting Information about a Guest= |
Revision as of 07:08, 21 July 2016
Internal
Virtual Machine Deletion
Power down.
Right click -> Remove.
Delete all files. This removes everything under ~/VirtualBox VMs/<machine-name>.
Creating and Installing a new Virtual Disk
Select the VM in the VirtualBox Manager and stop It.
Settings -> Storage -> Controller: SATA -> HD Icon + -> Create new disk -> VDI -> Size Dynamically Allocated.
Detected by the O/S as /dev/sdb.
This device then can be added to an existing Volume Group (see Linux Logical Volume Management Concepts), or it can be initialized with a different Volume Groups, etc.
When doing this, update Linux Logical Volume Management Concepts with details.
Resizing an Existing Virtual Disk
Select the VM in the VirtualBox Manager and stop It.
Go to the host directory where VirtualBox maintains the file:
cd /Users/ovidiu/VirtualBox VMs/Windows/Windows10
Copy the .vdi file as a precaution:
cp Windows10.vdi Windows10.vdi.backup
Resize it (the space is specified in MB). The following command resizes the disk to 100 GB.
VBoxManage modifyhd Windows10.vdi --resize 102400
The size does not get modified right away, but the disk will grow as needed.
Getting Information about a Guest
Guest window -> Machine -> Session Information.