Korora Custom Partitioning - KVM
-
I am installing Korora on a small 120GB SSD drive.
It's a SFF PC, so adding another drive for data isn't an isn't an option... unless I use an external drive...
This system will be a KVM Host, so whats the best way to setup the partitioning?
50GBfor root seems like a lot... and doesn't leave much space for VM's etc.
Also, Where should I store the VM's? I know some people create /data, and store them there?
Disk /dev/sda: 111.8 GiB, 120034123776 bytes, 234441648 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xfc93f734 Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 2099199 2097152 1G 83 Linux /dev/sda2 2099200 234440703 232341504 110.8G 8e Linux LVM Disk /dev/mapper/korora-root: 50 GiB, 53687091200 bytes, 104857600 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mapper/korora-swap: 7.8 GiB, 8325693440 bytes, 16261120 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mapper/korora-home: 53 GiB, 56941871104 bytes, 111214592 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
-
I generally keep the drive images in
/var/lib/libvirt/images
as that's the default.If you're going without a gui (why would you want one with that little space anyway!). You can make the root partition tiny. I'd got for ~10GB, but 4GB is perfectly feasible for a minimal+KVM.
-
I'd not partition at all at that size. Keep everything in root.
-
@aaronstuder said in Korora Custom Partitioning - KVM:
I am installing Korora on a small 120GB SSD drive.
It's a SFF PC, so adding another drive for data isn't an isn't an option... unless I use an external drive...
This system will be a KVM Host, so whats the best way to setup the partitioning?
50GBfor root seems like a lot... and doesn't leave much space for VM's etc.
Also, Where should I store the VM's? I know some people create /data, and store them there?
Disk /dev/sda: 111.8 GiB, 120034123776 bytes, 234441648 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xfc93f734 Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 2099199 2097152 1G 83 Linux /dev/sda2 2099200 234440703 232341504 110.8G 8e Linux LVM Disk /dev/mapper/korora-root: 50 GiB, 53687091200 bytes, 104857600 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mapper/korora-swap: 7.8 GiB, 8325693440 bytes, 16261120 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mapper/korora-home: 53 GiB, 56941871104 bytes, 111214592 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
For a drive that small, shrink the root partition to 20 GiB or less, give the swap partition 4 GiB and the rest to home partition. Or just have root and swap partition only.
VM in user session, the default location is
/home/username/.local/share/libvirt/images
VM in system session, the default location is
/var/lib/libvirt/images