Difference between revisions of "VirtualBox: Add HD"
Jump to navigation
Jump to search
Rafahsolis (talk | contribs) |
Rafahsolis (talk | contribs) |
||
| Line 23: | Line 23: | ||
/dev/sdb1 /path/to/mount ext4 defaults 1 2 | /dev/sdb1 /path/to/mount ext4 defaults 1 2 | ||
== Resize HD == | == Resize HD == | ||
| − | VBoxManage modifyhd "E:\VirtualBox VMs\Kali\Kali-disk001_1. | + | === vmdk === |
| + | VBoxManage clonehd "source.vmdk" "cloned.vdi" --format vdi | ||
| + | VBoxManage modifyhd "cloned.vdi" --resize 51200 | ||
| + | VBoxManage clonehd "cloned.vdi" "resized.vmdk" --format vmdk | ||
| + | === vdi === | ||
| + | VBoxManage modifyhd "E:\VirtualBox VMs\Kali\Kali-disk001_1.vdi" --resize 81920 | ||
Latest revision as of 09:49, 2 April 2018
- Add Drive
From the Oracle VM Virtual Box Manager window, select the Virtual Box and click on Settings.
Go to Storage, select hard drive and click on Add a hard disk.
Click on Create New Disk.
- List Partitions
fdisk -l
Iidentify which hard drive you need to partition
fdisk /dev/sdb
- Format the Partition
mkfs.ext4 /dev/sdb1
- Mount the partition
mount /dev/sdb1 /path/to/mount
- Add fstab entry
$ nano /etc/fstab
/dev/sdb1 /path/to/mount ext4 defaults 1 2
Resize HD[edit]
vmdk[edit]
VBoxManage clonehd "source.vmdk" "cloned.vdi" --format vdi VBoxManage modifyhd "cloned.vdi" --resize 51200 VBoxManage clonehd "cloned.vdi" "resized.vmdk" --format vmdk
vdi[edit]
VBoxManage modifyhd "E:\VirtualBox VMs\Kali\Kali-disk001_1.vdi" --resize 81920