LUKMANLAB

How to Add New Disk in Vagrant

AH
Ahmad Lukman Hakim

Dedicated Author of LUKMANLAB

publishedRabu, 30 September 2020
updatedSabtu, 16 Mei 2026
# vagrant

This article will explain you how to add new disk in virtual machine have provisioned with Vagrant. Follow the steps below:

add new disk in vagrant

Vagrant

1 - Export default Environment Variable

$ export VAGRANT_EXPERIMENTAL="disks"

2 - Edit Vagrantfile

Add this syntax to your vagrant configuration file:

    config.vm.define "dblab#{i}" do |node|
            ...
            node.vm.disk :disk, size: "50GB", name: "extra_storage"
        end

3 - Reload

$ vagrant reload

Latest posts

  • Cara Install Claude Code Plugin Superpowers untuk Vibe Coding & AI Agentic
  • Migrasi dari Wordpress ke Next.Js untuk LUKMANLAB Lebih Baik
  • Solve Kube Config K3d Expired
  • Solve Podman Compose CLI always Return Debug Mode
  • Contoh Command Mosquitto Client
  • Contoh Config SSH untuk Melakukan Jump Host
  • Cara Akses Cloud SQL dari GCP Project yang Berbeda
  • Backup Data VPS ke Layanan Object Storage IDCloudHost
  • Membuat AccessKey dan SecretKey MinIO Terbaru
  • Cara Menjalankan API Gateway di Shared Hosting
  • Konfigurasi .htaccess untuk React Router
  • Lengkap Penggunaan Command Screen untuk Menghindari Session Remote SSH Terputus
  • Setting Load Balancing 2 ISP Menggunakan PCC + Fail Over + Recursive Gateway Router MikroTik
  • Langkah-langkah Setup Web Server Nginx, PHP-FPM untuk Laravel di Ubuntu 22.04
  • Cara Import Database File .sql dengan Kapasitas Besar

© 2026 LUKMANLAB

A special thanks for the design inspiration from mas Nur Praditya

Terms & Conditions