Create VM larger 2To

ClementS

New Member
Feb 7, 2024
1
0
1
Hello,

I have a PVE with a 14TB external disk formatted in GPT and mounted on /mnt/disk1.

I have added /mnt/disk1 as storage on my PVE.

I have created a VM with 4vCPU and 2GB RAM and a 13TB disk : https://share.cleanshot.com/QL1T5hbs

When I install Debian 12 and 11 or Ubuntu 22 (with the official ISOs) it doesn't boot and all encounter the same error with Grub : https://share.cleanshot.com/fFhT9wBD

> error: attempt to read or write outside of hd0

Yet I apply the guided formatting provided by default by the installation. In general, it's 1 partition of 1mo, 1 boot partition, 1 partition /, 1 partition of 1mo

Do you have an idea?
 
This fails since the legacy BIOS interrupt call to get the disk info that GRUB uses to get the disk size only properly supports disk sizes up to a certain limit.

This can be avoided by booting with UEFI -> change BIOS to OVMF(UEFI)
Another approach could be to place a separate boot partition at the start of the disk during installation.
 
Last edited:
I would advise you not to do it that way. Why don't you make, for example, a 20 GB disk for the operating system and then add several data disks as needed? For example, if you want to make a NAS, you could simply divide up the media types per virtual disk. Today you can easily enlarge the disc online pretty much anywhere.

Or what use case do you have for this VM?
 
  • Like
Reactions: alyarb and fschauer
This fails since the legacy BIOS interrupt call to get the disk info that GRUB uses to get the disk size only properly supports disk sizes up to a certain limit.

This can be avoided by booting with UEFI -> change BIOS to OVMF(UEFI)
Another approach could be to place a separate boot partition at the start of the disk during installation.
Experiencing the same issue. Created a VM with 6TB storage. Tried using different distros but it resulted with same error.

My server has 2x4TB hard drives in a software raid0. Since I can't change bios settings for root machine, what can i do?
 
Experiencing the same issue. Created a VM with 6TB storage. Tried using different distros but it resulted with same error.

My server has 2x4TB hard drives in a software raid0. Since I can't change bios settings for root machine, what can i do?
If you can't change the VM's bios to UEFI then just create another smaller (virtual) disk (20gb?) also attached to the VM, and install OS there. Then you'll still have both disks (6TB included) in the VM.
 
If you can't change the VM's bios to UEFI then just create another smaller (virtual) disk (20gb?) also attached to the VM, and install OS there. Then you'll still have both disks (6TB included) in the VM.
I solved the issue by creating vm with smaller disk and then resizing disk at partition table and increasing its size. Since proxmox backup server uses LVM there were documentations on web about this.
 
by creating vm with smaller disk and then resizing disk at partition table and increasing its size
I'm curious to see whether this will lead to subsequent problems. You haven't solved the problem, it still exists and may pop up again here and there.
 
I'm curious to see whether this will lead to subsequent problems. You haven't solved the problem, it still exists and may pop up again here and there.
I think you're right there. This does not solve the problem. If you get into any grub/update issues, this drive may stop booting!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!