Open edricus opened 1 year ago
The issue you have is that you're trying to make disk smaller than the box disk is - none of the providers support that even without vagrant.
If my memory is correct, generic/debian11 disks are 128GB
@GameBurrow what's needs to be done it this case? Should we need to create custom box with different disk size?
@GameBurrow what's needs to be done it this case? Should we need to create custom with different disk size?
As far as I know, do make it smaller? You can't (at least not easily) unless you make your own base box.
config.vm.disk :disk, size: "600GB", primary: true
not work
[vagrant@centos7-01 ~]$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 128G 0 disk
├─sda1 8:1 0 1G 0 part /boot
└─sda2 8:2 0 127G 0 part
├─centos_centos7-root 253:0 0 125G 0 lvm /
└─centos_centos7-swap 253:1 0 2G 0 lvm [SWAP]
sr0 11:0 1 1024M 0 rom
config.vm.disk :disk, size: "600GB", primary: true
not work[vagrant@centos7-01 ~]$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 128G 0 disk ├─sda1 8:1 0 1G 0 part /boot └─sda2 8:2 0 127G 0 part ├─centos_centos7-root 253:0 0 125G 0 lvm / └─centos_centos7-swap 253:1 0 2G 0 lvm [SWAP] sr0 11:0 1 1024M 0 rom
As I mentioned earlier, you can't make the disk smaller. As you see default size is 128GB, you are trying to set it to 60GB which you cannot do
EDIT: nvm, I'm blind
@GameBurrow He is trying to set to 600GB not 60GB
I am also having the same issues.
I am unable to increase the default disk size parameters of the box. I'm forced to manually create the VM with the proper disk size for now as 80GB is not big enough for me on my W2022 server build.
Debug output
Expected behavior
Vagrant should be able to resize the primary disk on vmware like said in the documentation
Actual behavior
"Shrinking disks is not supported. Not shrinking disk vagrant_primary"
Reproduction information
Vagrant version
Vagrant 2.3.7
Host operating system
Debian 12
Guest operating system
Debian 11
Steps to reproduce
Vagrantfile