# How to disable hard disk

**URL:** <https://discuss.hashicorp.com/t/how-to-disable-hard-disk/14122>\
**Category:** Vagrant\
**Created:** [September 13, 2020, 9:04am UTC](https://discuss.hashicorp.com/t/how-to-disable-hard-disk/14122 "2020-09-13T09:04:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rgevaert](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/rgevaert/32/8908_2.png) [@rgevaert](https://discuss.hashicorp.com/u/rgevaert)\
**Post date:** [September 13, 2020, 9:04am UTC](https://discuss.hashicorp.com/t/how-to-disable-hard-disk/14122/1 "2020-09-13T09:04:50Z")

</div>

Hi,

How do you disable the hard disk creation for a Vagrant VM?

I could not find any option to disable it.

I am setting up a multi vm environment thin client setup where the second vm boots from the network and gets its image over the network. This all works fine! But when doing the vagrant up the command it unnecessarily creates a hard disk. And I need to also define a basebox which gets initialized.

Thank you in advance,

Rudy

---

<div class="post-metadata">

**Author:** ![soapy1](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/soapy1/32/5509_2.png) [@soapy1](https://discuss.hashicorp.com/u/soapy1)\
**Post date:** [September 16, 2020, 4:02pm UTC](https://discuss.hashicorp.com/t/how-to-disable-hard-disk/14122/2 "2020-09-16T16:02:19Z")

</div>

Heya Rudy,  
Vagrant just recently added support for [managing disks](https://www.vagrantup.com/docs/disks). This is an experimental feature, so is turned off by default. However, sometimes vagrant boxes will have disks associated with them. Would you be able to share your Vagrantfile so I may understand the issue a little better?

Thanks,  
sophia

---

<div class="post-metadata">

**Author:** ![rgevaert](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/rgevaert/32/8908_2.png) [@rgevaert](https://discuss.hashicorp.com/u/rgevaert)\
**Post date:** [September 17, 2020, 9:34am UTC](https://discuss.hashicorp.com/t/how-to-disable-hard-disk/14122/3 "2020-09-17T09:34:11Z")

</div>

Hi Sophia, yes here it is:

```
Vagrant.configure("2") do |config|

  config.vm.box = "chenhan/ubuntu-mate-desktop-20.04"

  config.hostmanager.enabled = true
  config.hostmanager.manage_host = true
  config.hostmanager.manage_guest = true
  config.hostmanager.ignore_private_ip = false
  config.hostmanager.include_offline = true

  config.vm.box_check_update = false

  config.vm.define "ltspserver" do |ltspserver|
    ltspserver.vm.hostname = 'ltspserver'
    ltspserver.vm.network :private_network, ip: "192.168.67.2",
      virtualbox__intnet: "ltsp"
    ltspserver.vm.provider "virtualbox" do |vb|
      vb.memory = "2048"
      vb.cpus = 4
    end

    config.vm.provision "ansible" do |ansible|
      ansible.playbook = "ltsp.yml"
      ansible.become = true
      ansible.groups = {
        "servers" => ["ltspserver"],
      }
    end
  end

  config.vm.define "fatclient" do |fatclient|
    fatclient.ssh.insert_key = false

    fatclient.vm.box = "minimal/trusty64"
    fatclient.vm.hostname = 'fatclient'
    fatclient.vm.network :private_network, type: "dhcp",
      virtualbox__intnet: "ltsp", adapter: 1
    fatclient.vm.provider "virtualbox" do |vb|
      vb.gui = true
      vb.memory = "1024"
      vb.cpus = 2
      vb.customize [
        'modifyvm', :id,
        '--boot1', 'net',
        '--boot2', 'none',
        '--boot3', 'none',
        '--boot4', 'none'
      ]
      vb.customize ["modifyvm", :id, "--vram", 32]
    end
  end
end

```

Indeed, using a vagrantbox without a hard disk is the idea. (Which seems a contraction!)  
I want to remove the harddisk from ‘fatclient’.

---

<div class="post-metadata">

**Author:** ![soapy1](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/soapy1/32/5509_2.png) [@soapy1](https://discuss.hashicorp.com/u/soapy1)\
**Post date:** [September 17, 2020, 8:24pm UTC](https://discuss.hashicorp.com/t/how-to-disable-hard-disk/14122/4 "2020-09-17T20:24:19Z")

</div>

Heya Rudy,  
so inspecting the virtual box `.ovf` in the `minimal/trusty64` box reveals that it has a disk that it attaches. You might want to package your own box that doesn’t have a hard disk in this case. The process should be pretty straight forward if [done manually](https://www.vagrantup.com/docs/providers/virtualbox/boxes), or using [packer](https://www.packer.io/docs/builders/vagrant).

---

<div class="post-metadata">

**Author:** ![frantzgoncalvesson81](https://avatars.discourse-cdn.com/v4/letter/f/c0e974/32.png) [@frantzgoncalvesson81](https://discuss.hashicorp.com/u/frantzgoncalvesson81)\
**Post date:** [October 4, 2023, 3:24pm UTC](https://discuss.hashicorp.com/t/how-to-disable-hard-disk/14122/5 "2023-10-04T15:24:16Z")

</div>

To disable a hard disk, you’ll need to access your computer’s Device Manager. Go to the Control Panel, then click on “Hardware and Sound” followed by “Device Manager.” Locate the “Disk drives” section, right-click on the hard disk you want to disable To disable a hard disk, you’ll need to access your computer’s Device Manager. Go to the Control Panel, then click on “Hardware and Sound” followed by “Device Manager.” Locate the “Disk drives” section, right-click on the hard disk you want to disable, and select “Disable.” Confirm any prompts that appear. Remember to proceed with caution as disabling [Burn review](https://bodyxd.com/capsiplex-burn-review/) a hard disk can result in data loss or system instability. and select “Disable.” Confirm any prompts that appear. Remember to proceed with caution as disabling a hard disk can result in data loss or system instability.
