vagrant no space left on device

前端 未结 2 1848
星月不相逢
星月不相逢 2020-12-09 03:52

Today I started getting errors on simple operations, like creating small files in vim, the bash completion started to complain as well.

Here is the resu

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-09 04:43

    You can increase space in your box, without losing data or creating new partitions.

    1. Halt your VM;

    2. Go to /home_dir/VirtualBox VMs

    3. Change file format from .vmdk to .vdi. Then use command from the answer above to increase space.

    4. Change the file extension back and change the file name.

    5. Attach an extended disk to your VM.

      VBoxManage storageattach  --storagectl "IDE Controller" --
      port 0 --device 0 --type hdd --medium new_extended_file.vmdk
      
    6. In your VirtualBox application go to Your_VM -> Settings -> Storage. Click on the controller and choose 'add new disk' below. Choose from existing disks the one you have just expanded.

    Here's a step by step instruction how to expand the space in your vagrant box or virtual machine.

提交回复
热议问题