Softaculous


Topic : I can't create KVM vm bigger than 2TB


Posted By: AnotherProvider on August 9, 2018, 1:56 pm
I'm testing virtulizor over proxmox with thin lvm and everything is working fine exact when I try to create a vm bigger than 2TB partition

root@node002:~# vgs
  VG    #PV #LV #SN Attr  VSize  VFree
  pve      1  2  0 wz--n- 199.75g 118.00g
  vmdata  1  2  0 wz--n-  4.60t 710.95g

LV            VG    Attr      LSize  Pool      Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root          pve    -wi-ao---- 49.75g
  swap          pve    -wi-ao---- 32.00g
thin-pool      vmdata twi-aotz--  3.91t                  15.24  8.04
  vm-1047-disk-1 vmdata Vwi-aotz--  3.91t thin-pool        15.24

The lv is created with the right size and inside the vm /dev/vda is also create with the right size

fdisk -l

Disk /dev/vda: 4295.0 GB, 4294967296000 bytes, 8388608000 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 label type: dos
Disk identifier: 0x000b136f

But the partition is not created with the full disk space:
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1      1.9T  1.2G  1.8T  1% /


I know the workaround would be to create a second partition with the remaining space but is not what I need

Any solution? I'm using virtualizor template centos-7.5-x86_64.img proxmox

Posted By: murmaider on August 23, 2018, 12:26 pm | Post: 1
The VM disk would need to be gpt labelled, but I am not sure if virtualizor (or your current version of libvirt / qemu supports this). Rather attach multiple vdisk to the VM.

Posted By: AnotherProvider on August 26, 2018, 8:25 pm | Post: 2
Quote From : murmaider August 23, 2018, 12:26 pm
The VM disk would need to be gpt labelled, but I am not sure if virtualizor (or your current version of libvirt / qemu supports this). Rather attach multiple vdisk to the VM.


Thanks, I  think the limitation is in the template but I haven't tried with my own iso yet

Posted By: kaushal on August 27, 2018, 5:30 am | Post: 3
Quote From : AnotherProvider August 9, 2018, 1:56 pm
I'm testing virtulizor over proxmox with thin lvm and everything is working fine exact when I try to create a vm bigger than 2TB partition

root@node002:~# vgs
  VG    #PV #LV #SN Attr  VSize  VFree
  pve      1  2  0 wz--n- 199.75g 118.00g
  vmdata  1  2  0 wz--n-  4.60t 710.95g

LV            VG    Attr      LSize  Pool      Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root          pve    -wi-ao---- 49.75g
  swap          pve    -wi-ao---- 32.00g
thin-pool      vmdata twi-aotz--  3.91t                  15.24  8.04
  vm-1047-disk-1 vmdata Vwi-aotz--  3.91t thin-pool        15.24

The lv is created with the right size and inside the vm /dev/vda is also create with the right size

fdisk -l

Disk /dev/vda: 4295.0 GB, 4294967296000 bytes, 8388608000 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 label type: dos
Disk identifier: 0x000b136f

But the partition is not created with the full disk space:
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1      1.9T  1.2G  1.8T  1% /


I know the workaround would be to create a second partition with the remaining space but is not what I need

Any solution? I'm using virtualizor template centos-7.5-x86_64.img proxmox


You need to use GPT labelled disk.

-----------------------
-----------------------
Regards,
Kaushal Vora
Virtualizor Team.
http://virtualizor.com/

Posted By: tashkas on November 3, 2018, 9:03 pm | Post: 4
try iso, they made all images in dos which dont work over 2tb

Posted By: tashkas on January 12, 2019, 9:13 am | Post: 5
so when you will make gpt partition for your images?

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.