Requirements:
- Virtual box
- Virtual box extentions
- vagrant
Usage
- Create storage base box
- Start vagrant in storage-base dir by invoking
vagrant up - Package provisioned VM via
vagrant package --out storage-base.box - Remove previous version of the box:
vagrant box remove storage-base
- Start vagrant in storage-base dir by invoking
- Start iscsi targets by invoking commands in the storage dir
vagrant up --no-provisionstarts VMsvagrant up --provision-with cluster-setupconfigures corosync and dlm servicesvagrant up --provision-with clvm-setupconfigures CLVM daemonvagrant up --provision-with iscsi-setupconfigures iSCSI targets
- Start iscsi initiator by invoking
vagrant upin initiator dir - Use
vagrant sshfrom any of these dirs to get ssh to specific machine - Have fun