Comments (7)
Looking at the storage controllers: if I go with the default then the persistent storage ends up on an IDE controller. If manually remove that controller and make a SATA one then the disk get's attached to that instead, but the box still doesn't boot.
from vagrant-persistent-storage.
Maybe related to this? https://www.virtualbox.org/ticket/6979
from vagrant-persistent-storage.
ubuntu/xenial64 has an IDE controller, but the two drives it has (cloudimg and cloudimg-configdrive) are attached to a SCSI controller. I manually attached a disk using this command:
vb.customize ['storageattach', :id, '--storagectl', 'SCSI Controller', '--port', 2, '--device', 0, '--type', 'hdd', '--medium', disk]
The storagecontroller output from vminfo on my vagrantmachine:
storagecontrollername0="IDE Controller"
storagecontrollertype0="PIIX4"
storagecontrollerinstance0="0"
storagecontrollermaxportcount0="2"
storagecontrollerportcount0="2"
storagecontrollerbootable0="on"
storagecontrollername1="SCSI Controller"
storagecontrollertype1="LsiLogic"
storagecontrollerinstance1="0"
storagecontrollermaxportcount1="16"
storagecontrollerportcount1="16"
storagecontrollerbootable1="on"
I've been looking at the code, but I am not sure how the patch should be. I suspect get_storage_controller should/could prefer "LsiLogic" over "(IntelAhci|PIIX4)", but attach_storage and detach_storage needs to figure out the port number somehow.
from vagrant-persistent-storage.
Sounds like there's currently a bit of magic that tries to guess where the image should be attached? If the magic can't cater for every situation then perhaps an easier answer would be to make it a configuration option from the Vagrantfile? So that we can just say "attach to controller 1" or whatever?
from vagrant-persistent-storage.
So in answer to:
attach_storage and detach_storage needs to figure out the port number somehow.
We could just tell it?
from vagrant-persistent-storage.
I agree, unless there's a simple way to query the next available port number.
from vagrant-persistent-storage.
Any updates to this? Looks like I've hit this issues as well with ubuntu/xenial64
.
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
- vagrant halt fails with hotplug error HOT 9
- 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.