Skip to content

Bucc resume (for virtualbox) #29

@rkoster

Description

@rkoster

It would be nice to be able to resume a bucc deployed virtualbox vm.
Currently the bosh jobs won't be able to start because they are missing their persistent disk: cloudfoundry/bosh-virtualbox-cpi-release#7

below some things I have tried so far to workaround the above issue, with mixed results:

df /var/vcap/data | grep /var/vcap/data # wait for agent to mount /var/vcap/data
disk=$(sort <(cat /etc/mtab | grep /dev/sd | cut -d ' ' -f1) <(fdisk -l | grep /dev/sd | grep -v : | grep -v swap | cut -d ' ' -f1) | uniq -u)
mount ${disk} /var/vcap/store
monit



vboxmanage startvm $(bosh int state/state.json --path /current_vm_cid) --type headless
bucc ssh
cd /dev/disk/by-id/ && ln -s ../../sdc 1ATA

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions