onedr0p / k3s-homeops-ansible

Bootstrap a k3s cluster on top of Ubuntu 20.04
54 stars 5 forks source link

Create vagrant task to remove old block devices #55

Closed onedr0p closed 4 years ago

onedr0p commented 4 years ago

Running into errors where vagrant thinks the block device exists

VBoxManage: error: Failed to create medium
VBoxManage: error: Could not create the medium storage unit '/Users/devin/Code/k3s-cluster-ansible/k8s-node-10-block.vdi'.
VBoxManage: error: VDI: cannot create image '/Users/devin/Code/k3s-cluster-ansible/k8s-node-10-block.vdi' (VERR_ALREADY_EXISTS)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component MediumWrap, interface IMedium
VBoxManage: error: Context: "RTEXITCODE handleCreateMedium(HandlerArg *)" at line 510 of file VBoxManageDisk.cpp

https://github.com/hashicorp/vagrant/issues/8107#issuecomment-465398466

Maybe we should add this in a task to run if shit gets fubared?

onedr0p commented 4 years ago

This is done in the task vagrant:destroy task