Giter VIP home page Giter VIP logo

Comments (7)

 avatar commented on May 30, 2024

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.

 avatar commented on May 30, 2024

Maybe related to this? https://www.virtualbox.org/ticket/6979

from vagrant-persistent-storage.

torpeanders avatar torpeanders commented on May 30, 2024

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.

 avatar commented on May 30, 2024

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.

 avatar commented on May 30, 2024

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.

torpeanders avatar torpeanders commented on May 30, 2024

I agree, unless there's a simple way to query the next available port number.

from vagrant-persistent-storage.

tuminoid avatar tuminoid commented on May 30, 2024

Any updates to this? Looks like I've hit this issues as well with ubuntu/xenial64.

from vagrant-persistent-storage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.