Hi @Mariah_Cole, thanks for getting in touch. Resizing the VirtualBox machine takes a few steps, but fortunately there are a lot of additional resources online if you get stuck. I will outline the steps here:
1) On your host machine (e.g. your laptop, workstation, etc
Note, you need the VirtualBox command line tools installed and accessible, please consult the VirtualBox docs for help on how to do that on your system.
Run the following commands in a terminal:
# First figure out where your VM is located on disk, you can do that by opening the
# VirtualBox GUI, right clicking on your QIIME 2 machine, and then "Show in Finder"
# (Note, this will be slightly different on a Windows or Linux machine, please consult
# the VirtualBox docs for more info.
# For me, that path is: ~/VirtualBox VMs/QIIME 2 Core - 2.0.6 (1479486933)
$ cd "~/VirtualBox VMs/QIIME 2 Core - 2.0.6 (1479486933)"
# You need to convert the disk type from VMDK to VDI:
$ VBoxManage clonehd \
"QIIME 2 Core - 2.0.6 (1479486933)-disk1.vmdk" \
"QIIME 2 Core - 2.0.6 (1479486933)-disk1.vdi" \
--format vdi
# Then, resize the VDI file (I am resizing to 100000 MB - that is ~100 GB):
$ VBoxManage modifyhd \
"QIIME 2 Core - 2.0.6 (1479486933)-disk1.vdi" \
--resize 100000
2) Create a new VirtualBox machine, using the new VDI that we created above.
Please consult the VirtualBox docs for info on importing a VDI on your host system. Basically, you click on "New", and follow the prompts while taking care to select the new VDI we just created.
3) Launch the newly created VirtualBox machine
Once logged in, open up a terminal prompt and run the following:
$ sudo fdisk /dev/sda
You should see a screen that looks like this:
Note the green "Free space" line, that indicates 87.9 GB free! Next, use the arrow keys to select that free space line, hit enter on [ New ]
, hit enter on the size prompt (it should confirm the size, in my case, 87.9 GB). Next use the arrow key to highlight [ Write ]
, then hit enter, when prompted, type yes
and enter. Next, highlight [ Quit ]
, then you should be back at your command prompt. This should create a new partition, most likely /dev/sda3
(you can check by running sudo cfdisk /dev/sda
again, and reviewing the disk/partition list, then quitting).
# Next, we need to reboot the VM for the changes to take place:
$ sudo reboot
# Wait to reboot, then open a new terminal
# I am using /dev/sda3, but you might need to update based on what `cfdisk` tells you the partition name is
$ sudo pvcreate /dev/sda3
$ sudo vgextend qiime2core2-0-6-vg /dev/sda3
# I tried using 87.9G (from above), but that was a few blocks too big, so I rounded down
$ sudo lvextend -L +87.8G /dev/mapper/qiime2core2--0--6--vg-root
$ sudo resize2fs /dev/mapper/qiime2core2--0--6--vg-root
Now you can run:
$ df -kh
Which should print out a long list of partitions, disks, etc. The one labeled /dev/mapper/qiime2core2--0--6--vg-root
should now be much bigger (in my case, it is now 94 GB)! Once you have confirmed that this new VDI-based VM is good to go, you can delete your original QIIME 2 VM.
If you run into any problems, feel free to ping us for some guidance. Good luck!