Giter VIP home page Giter VIP logo

Comments (11)

realyst2k avatar realyst2k commented on May 30, 2024

I am able to confirm with newest Vagrant and plugin version, that it fails to mount properly. It appears to load the plugin successfully, even echoing "Persistent Storage Volume exists, not creating ** " and "** Attaching persistent storage **", but the disk remains unmounted.

from vagrant-persistent-storage.

realyst2k avatar realyst2k commented on May 30, 2024

Config:

    config.persistent_storage.enabled = true
    config.persistent_storage.location = projectdisk
    config.persistent_storage.size = 10000
    config.persistent_storage.mountname = 'projects'
    config.persistent_storage.filesystem = 'ext3'
    config.persistent_storage.mountpoint = '/mnt/projdisk'
    config.persistent_storage.volgroupname = 'diskgrp'

OS of VM: CentOS 5
OS of Host: OSX El Capitain

from vagrant-persistent-storage.

realyst2k avatar realyst2k commented on May 30, 2024

Now I can't get my disk to mount even on a downgraded Vagrant.

from vagrant-persistent-storage.

realyst2k avatar realyst2k commented on May 30, 2024
==> Virtual_Dev: ** Attaching persistent storage **
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "592e0b5b-f2c6-4c3d-a0f1-f28f5929efe0", "--machinereadable"]
DEBUG subprocess: Command not in installer, not touching env vars.
 INFO subprocess: Command not in installer, restoring original environment...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stdout: name="VirtualDevEnvironment_Virtual_Dev_1493053977383_33473"
groups="/"
ostype="Red Hat (64-bit)"
UUID="592e0b5b-f2c6-4c3d-a0f1-f28f5929efe0"
CfgFile="/Users/realyst/VirtualBox VMs/VirtualDevEnvironment_Virtual_Dev_1493053977383_33473/VirtualDevEnvironment_Virtual_Dev_1493053977383_33473.vbox"
SnapFldr="/Users/realyst/VirtualBox VMs/VirtualDevEnvironment_Virtual_Dev_1493053977383_33473/Snapshots"
LogFldr="/Users/realyst/VirtualBox VMs/VirtualDevEnvironment_Virtual_Dev_1493053977383_33473/Logs"
hardwareuuid="592e0b5b-f2c6-4c3d-a0f1-f28f5929efe0"
memory=4096
pagefusion="off"
vram=12
cpuexecutioncap=75
hpet="off"
chipset="piix3"
firmware="BIOS"
cpus=4
pae="on"
longmode="on"
cpuid-portability-level=0
bootmenu="messageandmenu"
boot1="floppy"
boot2="dvd"
boot3="disk"
boot4="none"
acpi="on"
ioapic="on"
biossystemtimeoffset=0
rtcuseutc="on"
hwvirtex="on"
nestedpaging="on"
largepages="on"
vtxvpid="on"
vtxux="on"
paravirtprovider="legacy"
VMState="poweroff"
VMStateChangeTime="2017-04-24T18:00:24.383000000"
monitorcount=1
accelerate3d="off"
accelerate2dvideo="off"
teleporterenabled="off"
teleporterport=0
teleporteraddress=""
teleporterpassword=""
tracing-enabled="off"
tracing-allow-vm-access="off"
tracing-config=""
autostart-enabled="off"
autostart-delay=0
defaultfrontend=""
storagecontrollername0="IDE"
storagecontrollertype0="PIIX4"
storagecontrollerinstance0="0"
storagecontrollermaxportcount0="2"
storagecontrollerportcount0="2"
storagecontrollerbootable0="on"
storagecontrollername1="SATA"
storagecontrollertype1="IntelAhci"
storagecontrollerinstance1="0"
storagecontrollermaxportcount1="30"
storagecontrollerportcount1="5"
storagecontrollerbootable1="on"
"IDE-0-0"="none"
"IDE-0-1"="none"
"IDE-1-0"="emptydrive"
"IDE-IsEjected"="off"
"IDE-1-1"="none"
"SATA-0-0"="/Users/realyst/VirtualBox VMs/VirtualDevEnvironment_Virtual_Dev_1493053977383_33473/box-disk1.vmdk"
"SATA-ImageUUID-0-0"="ac1b19fb-9c5e-43dd-b966-5387566d1130"
"SATA-1-0"="none"
"SATA-2-0"="none"
"SATA-3-0"="none"
"SATA-4-0"="none"
natnet1="nat"
macaddress1="0800270B3C2B"
cableconnected1="on"
nic1="nat"
nictype1="82540EM"
nicspeed1="0"
mtu="0"
sockSnd="64"
sockRcv="64"
tcpWndSnd="64"
tcpWndRcv="64"
Forwarding(0)="tcp2223,tcp,,2223,,22"
hostonlyadapter2="vboxnet0"
macaddress2="080027C1621A"
cableconnected2="on"
nic2="hostonly"
nictype2="82540EM"
nicspeed2="0"
nic3="none"
nic4="none"
nic5="none"
nic6="none"
nic7="none"
nic8="none"
hidpointing="ps2mouse"
hidkeyboard="ps2kbd"
uart1="off"
uart2="off"
uart3="off"
uart4="off"
lpt1="off"
lpt2="off"
audio="coreaudio"
clipboard="bidirectional"
draganddrop="hosttoguest"
vrde="off"
usb="on"
ehci="off"
xhci="off"
SharedFolderNameMachineMapping1="home_Virtual_shared"
SharedFolderPathMachineMapping1="/Users/realyst/VirtualDevEnvironment/shared"
SharedFolderNameMachineMapping2="vagrant"
SharedFolderPathMachineMapping2="/Users/realyst/VirtualDevEnvironment"
vcpenabled="off"
vcpscreens=0
vcpfile="/Users/realyst/VirtualBox VMs/VirtualDevEnvironment_Virtual_Dev_1493053977383_33473/VirtualDevEnvironment_Virtual_Dev_1493053977383_33473.webm"
vcpwidth=1024
vcpheight=768
vcprate=512
vcpfps=25
GuestMemoryBalloon=0
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "showvminfo", "592e0b5b-f2c6-4c3d-a0f1-f28f5929efe0", "--machinereadable"]
DEBUG subprocess: Command not in installer, not touching env vars.
 INFO subprocess: Command not in installer, restoring original environment...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: stdout: name="VirtualDevEnvironment_Virtual_Dev_1493053977383_33473"
groups="/"
ostype="Red Hat (64-bit)"
UUID="592e0b5b-f2c6-4c3d-a0f1-f28f5929efe0"
CfgFile="/Users/realyst/VirtualBox VMs/VirtualDevEnvironment_Virtual_Dev_1493053977383_33473/VirtualDevEnvironment_Virtual_Dev_1493053977383_33473.vbox"
SnapFldr="/Users/realyst/VirtualBox VMs/VirtualDevEnvironment_Virtual_Dev_1493053977383_33473/Snapshots"
LogFldr="/Users/realyst/VirtualBox VMs/VirtualDevEnvironment_Virtual_Dev_1493053977383_33473/Logs"
hardwareuuid="592e0b5b-f2c6-4c3d-a0f1-f28f5929efe0"
memory=4096
pagefusion="off"
vram=12
cpuexecutioncap=75
hpet="off"
chipset="piix3"
firmware="BIOS"
cpus=4
pae="on"
longmode="on"
cpuid-portability-level=0
bootmenu="messageandmenu"
boot1="floppy"
boot2="dvd"
boot3="disk"
boot4="none"
acpi="on"
ioapic="on"
biossystemtimeoffset=0
rtcuseutc="on"
hwvirtex="on"
nestedpaging="on"
largepages="on"
vtxvpid="on"
vtxux="on"
paravirtprovider="legacy"
VMState="poweroff"
VMStateChangeTime="2017-04-24T18:00:24.383000000"
monitorcount=1
accelerate3d="off"
accelerate2dvideo="off"
teleporterenabled="off"
teleporterport=0
teleporteraddress=""
teleporterpassword=""
tracing-enabled="off"
tracing-allow-vm-access="off"
tracing-config=""
autostart-enabled="off"
autostart-delay=0
defaultfrontend=""
storagecontrollername0="IDE"
storagecontrollertype0="PIIX4"
storagecontrollerinstance0="0"
storagecontrollermaxportcount0="2"
storagecontrollerportcount0="2"
storagecontrollerbootable0="on"
storagecontrollername1="SATA"
storagecontrollertype1="IntelAhci"
storagecontrollerinstance1="0"
storagecontrollermaxportcount1="30"
storagecontrollerportcount1="5"
storagecontrollerbootable1="on"
"IDE-0-0"="none"
"IDE-0-1"="none"
"IDE-1-0"="emptydrive"
"IDE-IsEjected"="off"
"IDE-1-1"="none"
"SATA-0-0"="/Users/realyst/VirtualBox VMs/VirtualDevEnvironment_Virtual_Dev_1493053977383_33473/box-disk1.vmdk"
"SATA-ImageUUID-0-0"="ac1b19fb-9c5e-43dd-b966-5387566d1130"
"SATA-1-0"="none"
"SATA-2-0"="none"
"SATA-3-0"="none"
"SATA-4-0"="none"
natnet1="nat"
macaddress1="0800270B3C2B"
cableconnected1="on"
nic1="nat"
nictype1="82540EM"
nicspeed1="0"
mtu="0"
sockSnd="64"
sockRcv="64"
tcpWndSnd="64"
tcpWndRcv="64"
Forwarding(0)="tcp2223,tcp,,2223,,22"
hostonlyadapter2="vboxnet0"
macaddress2="080027C1621A"
cableconnected2="on"
nic2="hostonly"
nictype2="82540EM"
nicspeed2="0"
nic3="none"
nic4="none"
nic5="none"
nic6="none"
nic7="none"
nic8="none"
hidpointing="ps2mouse"
hidkeyboard="ps2kbd"
uart1="off"
uart2="off"
uart3="off"
uart4="off"
lpt1="off"
lpt2="off"
audio="coreaudio"
clipboard="bidirectional"
draganddrop="hosttoguest"
vrde="off"
usb="on"
ehci="off"
xhci="off"
SharedFolderNameMachineMapping1="home_Virtual_shared"
SharedFolderPathMachineMapping1="/Users/realyst/VirtualDevEnvironment/shared"
SharedFolderNameMachineMapping2="vagrant"
SharedFolderPathMachineMapping2="/Users/realyst/VirtualDevEnvironment"
vcpenabled="off"
vcpscreens=0
vcpfile="/Users/realyst/VirtualBox VMs/VirtualDevEnvironment_Virtual_Dev_1493053977383_33473/VirtualDevEnvironment_Virtual_Dev_1493053977383_33473.webm"
vcpwidth=1024
vcpheight=768
vcprate=512
vcpfps=25
GuestMemoryBalloon=0
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
 INFO subprocess: Starting process: ["/usr/local/bin/VBoxManage", "storageattach", "592e0b5b-f2c6-4c3d-a0f1-f28f5929efe0", "--storagectl", "SATA", "--port", "4", "--device", "0", "--type", "hdd", "--medium", "/Users/realyst/ss_dev_projects.vdi", "--hotpluggable", "on"]
DEBUG subprocess: Command not in installer, not touching env vars.
 INFO subprocess: Command not in installer, restoring original environment...
DEBUG subprocess: Selecting on IO
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
DEBUG subprocess: Exit status: 0
 INFO warden: Calling IN action: #<VagrantPlugins::ProviderVirtualBox::Action::Boot:0x00000101a14aa8>
 INFO interface: info: Booting VM...
 INFO interface: info: ==> Virtual_Dev: Booting VM...
==> Virtual_Dev: Booting VM...

from vagrant-persistent-storage.

realyst2k avatar realyst2k commented on May 30, 2024

Mounting it manually after boot appears to work:

sudo mount -t ext3 /dev/mapper/virtual--vg1-projects /mnt/projtest
[virtual@virtual ~]$ ls -la /mnt/projdisk/
total 32
drwxr-xr-x 7 root root 4096 Apr 24 13:31 .
drwxr-xr-x 5 root root 4096 Apr 24 13:39 ..
drwxr-xr-x 3 virtual virtual 4096 Apr 14 2015 content
drwxr-xr-x 3 root root 4096 Apr 24 13:31 cpan-sandbox
drwxr-xr-x 2 virtual virtual 4096 Apr 24 13:37 projects
drwx------ 2 virtual virtual 4096 Apr 24 13:31 ssh
drwxrwxrw- 2 virtual virtual 4096 Apr 24 13:31 subversion

But the plugin is failing to do this on boot for some reason.

from vagrant-persistent-storage.

realyst2k avatar realyst2k commented on May 30, 2024

Anyone else running into this?

I've verified this is still an issue with the newest plugin version, Vagrant version and VirtualBox version.

from vagrant-persistent-storage.

realyst2k avatar realyst2k commented on May 30, 2024

Seems like for whatever reason the fstab is not getting updated.

/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0

Though with no obvious errors. But what is '32' all about?

fdisk returned:  0
pvcreate returned:  0
vgcreate returned:  5
lvcreate returned:  5
vg activation returned:  5
ext3 creation return:  0
fstab update returned:  0
/mnt/projdisk mounting returned:  32
/home/virtual/disk_operation_log.txt (END)

from vagrant-persistent-storage.

nicolasbadia avatar nicolasbadia commented on May 30, 2024

Doesn't seem to works in vagrant 2.0.0 either.

from vagrant-persistent-storage.

yaskoo avatar yaskoo commented on May 30, 2024

For me with vagrant 2.0.1, vbox 5.2.6 r120293 and vagrant-persistent-storage 0.0.41
The config is copy/paste from the docs - the disk gets created and mounted, after that I just created a text file with some data in it.
Destroyed the vm and uped it again ..everything seems to be normal, but the file I created - it's there, but it's empty.

from vagrant-persistent-storage.

chucknelson avatar chucknelson commented on May 30, 2024

@kusnier - Since this plugin works fine with Vagrant 2.x for the past 3-ish years, could this issue be closed?

from vagrant-persistent-storage.

kusnier avatar kusnier commented on May 30, 2024

@kusnier - Since this plugin works fine with Vagrant 2.x for the past 3-ish years, could this issue be closed?

Thanks. I will close it

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.