Comments (9)
The detach have to processed. If the detach will be bypassed a destroy or manual delete will kill your attached drive and all data is gone.
Unfortunately i have currently no time to investigate this problem.
from vagrant-persistent-storage.
Still an issue with IDE too:
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["storageattach", "630f5d12-94a3-4b01-959d-280dc730ef40", "--storagectl", "IDE Controller", "--port", "1", "--device", "0", "--type", "hdd", "--medium", "none"]
Stderr: VBoxManage: error: Controller 'IDE Controller' does not support hotplugging
VBoxManage: error: Details: code VBOX_E_INVALID_VM_STATE (0x80bb0002), component SessionMachine, interface IMachine, callee nsISupports
VBoxManage: error: Context: "DetachDevice(Bstr(pszCtl).raw(), port, device)" at line 403 of file VBoxManageStorageController.cpp
vagrant version
Installed Version: 2.2.6
vagrant plugin list
vagrant-cachier (1.2.1, system)
vagrant-hostmanager (1.8.9, system)
vagrant-libvirt (0.0.45, system)
vagrant-lxc (1.4.3, global)
vagrant-lxd (0.4.3, global)
vagrant-persistent-storage (0.0.48, global)
vagrant-timezone (1.3.0, global)
vagrant-vbguest (0.22.1, global)
vboxmanage --version
6.1.4r136177
from vagrant-persistent-storage.
Related: #42 (but in this case it's with SCSI)
from vagrant-persistent-storage.
These are the options I am using (ubuntu/xenial64
box)
config.persistent_storage.enabled = true
config.persistent_storage.location = "~/home-vagrant/build.vdi"
config.persistent_storage.size = 20000
config.persistent_storage.mountname = 'build'
config.persistent_storage.filesystem = 'ext4'
config.persistent_storage.mountpoint = '/mnt/build'
config.persistent_storage.volgroupname = 'myvolgroup'
config.persistent_storage.mountoptions = ['uid=vagrant', 'gid=vagrant']
from vagrant-persistent-storage.
The options uid and gid in this version of ubunut are only suppor the number values of user and group. Howsoever this is not the problem. I have done some vagrant up and vagrant halt and it seems that i get the problem too.
But this seems as a problem from the guest system. After i enabled the gui of virtual box i can see that the boot up is hanging and so vagrant is not able to connect to the guest.
The startup is halt on Started Journal Service.
Maybe this could be a problem of this version of the linux image.
I have not time to investigate this in details but maybe you have some.
Best regards
Sebastian
from vagrant-persistent-storage.
But this seems as a problem from the guest system. After i enabled the gui of virtual box i can see that the boot up is hanging and so vagrant is not able to connect to the guest.
For me it boots without problems. I can also mount the disk and use it, it only gets stuck when tryiing to shutdown the VM.
from vagrant-persistent-storage.
OK, the uid/gid options seems to be a problem. I would had sworn it worked when I created the volume.
from vagrant-persistent-storage.
I gave up and resorted to create and mount the disk using ruby scripting directly on the Vagrant file.
from vagrant-persistent-storage.
I see this also. After a suspend and resume, the networking stack on my Virtualbox instance is unresponsive, so I need to do a vagrant halt -f && vagrant up
to bring it back. But vagrant halt -f
fails due to this plugin trying to detach the persistent storage, with the SCSI hotplug error quoted above.
I'm not sure why it's trying to detach on vagrant halt -f
. I just want the VM to come down hard. My workaround is to power off the VM with the Virtualbox UI, but I'd prefer it to work in script.
from vagrant-persistent-storage.
Related Issues (20)
- vagrant destroy leaves stale vbox media behind HOT 4
- can not setup persistent storage HOT 2
- Force delete vdi files on vagrant destroy
- Storage Mount Doesn't Work HOT 1
- VirtualBox Storage does not get removed from Virtual Media Manager
- conflicting dependencies childprocess (= 0.5.9) and childprocess (= 0.6.3) HOT 1
- Typo: volgroupname => part_type_code HOT 1
- use_lvm=true should default mount & format false HOT 1
- Encryption Support
- warning: constant ::Fixnum is deprecated HOT 2
- INFO: rcu_sched detected stalls on CPUs/tasks: HOT 2
- Injected script not created properly, and disk not mounted HOT 1
- Disk space doesn't expand past 6-ish MB HOT 4
- Allow multiple persistent storages HOT 1
- Compatibility with VirtualBox 6.0 HOT 4
- /tmp/ cannot execute. HOT 5
- Timed out waiting for devices dev-persistent-persistent.device HOT 1
- Support disks larger than 2TB
- If location is relative consider it under machine's root directory HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vagrant-persistent-storage.