Skip to content

Disks and Resizing

Alex Genovese edited this page Feb 5, 2025 · 11 revisions

Ideally the Virtual Machine should have been allocated a generous size from the outset. But things aren't always that way ...

Select the VM in the normal way and open the Utils menu [u]

From the settings file:

SHARED or SECOND DRIVES

  • The Shared drive is a useful when in SDL mode & available to all VMs while a Second drive is a quick way to expand an individual VM's storage. Use Gparted, 'Disks' or similar, inside a VM, to set a file table, format and mount.

Give SharedDrive full location here eg. ="$Default_VM_Folder/SharedDrive/shared.qcow2"
SET SharedDrive_Conf as ="no-shared" IN THE .CONF FILE to individually stop the Shared Drive from loading SharedDrive=""

  • For WINDOWS, the drive should be set as GPT & formatted as NTFS.

  • Set up NTFS drives using a Linux OS and gparted but optimize (defrag) the disk using Windows

  • See resize notes for mounting workarounds

  • MAC OS older than and including 10.13 Mojave 2018 might need a flag IN THE .CONF FILE to stop possible drive conflicts.

Quickemu code has the following note: "VirtIO Block Media doesn't work in High Sierra (at all) or the Mojave (Recovery Image)" Development tests with Mojave show both a Shared NTFS and a Second APFS to be working. SET MacLegacyDrive as ="true" to load Second Drive (& not Shared) as 'ide-hd' instead of 'virtio-blk-pci' SharedDrive always loads as 'virtio-blk-pci' See https://en.wikipedia.org/wiki/MacOS_version_history

  • qqX adds SecondDrives to the .CONF FILE, eg as ="Windows-11/storage.qcow2"

ACCESS

qqX version 1.11 adds the ability to mount and view qcow2 drives within the host's file manager

If your drives only have root access, the following commands can help give general user permissions:

sudo chown $USER:$USER "mounted-drive-name"

chmod 775 "mounted-drive-name"

Gnome Disks has a neat 'take ownership' option:

second-disk-take-ownership-1280

RESIZING

Use the [disk] option to resize.

  • Second drives should be followed up by adjustments using Gparted from inside the Linux VM.

Gparted will auto-detect the change in envelope size and auto offer to 'fix' things. KDE partition manager may not do this and will need the partition deleting in order to reach the new envelope size. This software is not always installed and may need to be added.

  • A workaround for KDE distros can be to copy the disks to a Gnome based distro VM folder, then mount them as Gnome second drives. Even a simple Live ISO is sufficient, as long as the .conf has the Drive added to it.

  • This workaround should function with main drives too, including Windows.

  • Or not. Sometimes only Windows will fix NTFS, even if Gparted has already done the main lifting. Windows has 'Check and repair' plus 'Defrag' and Trim functions that can fix things sometimes where others can't.

shared-ntfs-checked-defragged-windows

BOOTING from ISO's

  • An in-menu ISO boot is now possible from version 1.9.03

  • And a space saving shared Boot ISO option is now possible from 1.11.05 onwards

  • See the [iso] utility from the main menu.

By pressing the 'esc' key during initial boot, you can access the Tiano boot manager and boot from any 'live boot' ISO, such as the one from https://gparted.org/download.php

Other Tools

Release 1.1.05 added an extra layer of qemu-img disk health checks to the disk info function.

disk error alert crop

Release 1.11.02 added a utility to mount qcow2 disks in the host filemanager

qqX-qcow2-mount-in-filemanager