I use an immutable drive here at the library I work at. I run all the
online catalogs off of one drive. I set the drive itself to immutable...

VBoxManage modifyhd <vdi name> settype immutable

...then attach all the machines to the same drive:

 VBoxManage storageattach "<VM name>" \
        --storagectl "IDE Controller" \
        --port 0 \
        --device 0 \
        --type hdd \
        --medium <vdi name (from above)>

Well, actually I make a copy of my master and then make the copy immutable.
I seem to remember having trouble trying to change an immutable drive even
if I set the type back to normal. Maybe that isn't a problem any more -
it's been a while since I set this up.

Hope this helps -

Library Mark




On Thu, Oct 11, 2012 at 10:31 AM, Marek Salwerowicz <[email protected]> wrote:

> Hi,
>
> I want to run serveral instances of VMs, all using the same VDI disk
> (stored at Read-Only NFS storage) at the same host.
>
> I am using the --mtype multiattach and --mtype immutable types of
> attaching the drive.
>
> However, after creating and running the first machine, I am unable to
> create the second:
>
> /usr/local/bin/VBoxManage -q storageattach Free2 --storagectl SATA
> --port 0 --device 0 --type hdd --medium /mnt/tmp/FreeBSD-9.1-RC2.vdi
> --mtype immutable
> VBoxManage: error: Medium '/mnt/tmp/FreeBSD-9.1-RC2.vdi' is locked for
> reading by another task
> VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE
> (0x80bb0007), component Medium, interface IMedium, callee nsISupports
> VBoxManage: error: Context: "COMSETTER(Type)(mediumType)" at line 660 of
> file VBoxManageStorageController.cpp
> VBoxManage: error: Failed to set the medium type
>
>
> But if I fristly create eg. 3 VMs, and them run them, everything is OK.
> And - of course, I am unable to add the 4th machine..
>
> Is it expected behaviour ?
>
> Regards,
>
> --
> Marek Salwerowicz
>
>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> _______________________________________________
> VBox-users-community mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/vbox-users-community
> _______________________________________________
> Unsubscribe:  mailto:[email protected]
> ?subject=unsubscribe
>
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
VBox-users-community mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vbox-users-community
_______________________________________________
Unsubscribe:  
mailto:[email protected]?subject=unsubscribe

Reply via email to