[one-users] Non clonable readonly shared OS image?

Roger Pau Monné roger.pau at entel.upc.edu
Wed Sep 7 00:30:14 PDT 2011


I don't think it's possible to launch an OS from a single image
multiple times, what you could do is create an OS image very small,
only with the base system and then attach a shared disk (formatted
with GFS or some other distributed filesystem) with all the data, so
the only copied data would be the OS image.

2011/9/6 Ismael Farfán <sulfurfff at gmail.com>:
> Hello list
>
> I have a single OS image that I want to launch multiple times, since
> it's in a global directory I configured it with tm_nfs only and declared
> the disk like this:
>
> DISK = [
>    source = "/shared/squeeze.img",
>    target = "hda",
>    driver = "qcow2",
>    readonly = "no",
>    clone = "no" ]
>
> The idea of course is that the image doesn't get copied again and
> again every time I launch another instance, thereof saving time and
> resources...
>
> If I declare it with readonly=no the VM will start ok, but starting it
> multiple times corrupts the filesystem, and if I set it as readonly=yes,
> the VM will not start at all.
>
> I pretty much have the minimal environment after following the
> quick start guide and the tutorial from FutureGrid.
>
> Is there something I can do to get the desired behavior?
>
> Regards
>
>
> Tue Sep  6 12:25:43 2011 [DiM][I]: New VM state is ACTIVE.
> Tue Sep  6 12:25:43 2011 [LCM][I]: New VM state is PROLOG.
> Tue Sep  6 12:25:43 2011 [VM][I]: Virtual Machine has no context
> Tue Sep  6 12:25:43 2011 [TM][I]: tm_ln.sh: Creating directory
> /var/lib/one//36/images
> Tue Sep  6 12:25:43 2011 [TM][I]: tm_ln.sh: Executed "mkdir -p
> /var/lib/one//36/images".
> Tue Sep  6 12:25:43 2011 [TM][I]: tm_ln.sh: Executed "chmod a+w
> /var/lib/one//36/images".
> Tue Sep  6 12:25:43 2011 [TM][I]: tm_ln.sh: Link /shared/squeeze.img
> Tue Sep  6 12:25:43 2011 [TM][I]: tm_ln.sh: Executed "ln -s
> /shared/squeeze.img /var/lib/one//36/images/disk.0".
> Tue Sep  6 12:25:43 2011 [LCM][I]: New VM state is BOOT
> Tue Sep  6 12:25:43 2011 [VMM][I]: Generating deployment file:
> /var/lib/one/36/deployment.0
> Tue Sep  6 12:25:45 2011 [VMM][I]: Command execution fail: 'if [ -x
> "/var/tmp/one/vmm/kvm/deploy" ]; then /var/tmp/one/vmm/kvm/deploy
> /var/lib/one//36/images/deployment.0; else
>  exit 42; fi'
> Tue Sep  6 12:25:45 2011 [VMM][I]: STDERR follows.
> Tue Sep  6 12:25:45 2011 [VMM][I]: error: Failed to create domain from
> /var/lib/one//36/images/deployment.0
> Tue Sep  6 12:25:45 2011 [VMM][I]: error: operation failed: failed to
> retrieve chardev info in qemu with 'info chardev'
> Tue Sep  6 12:25:45 2011 [VMM][I]: ExitCode: 255
> Tue Sep  6 12:25:45 2011 [VMM][E]: Error deploying virtual machine:
> error: Failed to create domain from
> /var/lib/one//36/images/deployment.0
> Tue Sep  6 12:25:46 2011 [DiM][I]: New VM state is FAILED
> Tue Sep  6 12:25:46 2011 [TM][W]: Ignored: LOG - 36 tm_delete.sh:
> Deleting /var/lib/one//36/images
> Tue Sep  6 12:25:46 2011 [TM][W]: Ignored: LOG - 36 tm_delete.sh:
> Executed "rm -rf /var/lib/one//36/images".
> Tue Sep  6 12:25:46 2011 [TM][W]: Ignored: TRANSFER SUCCESS 36 -
> Tue Sep  6 12:26:29 2011 [DiM][I]: New VM state is DONE.
> Tue Sep  6 12:26:29 2011 [HKM][I]: Hook image successfully executed.
>
>
> --
> [============================]
> How do you create an operating system on Linux Ubuntu 9.10?
> Y luego que por qué no me gusta usar Ubuntu...
> [============================]
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



More information about the Users mailing list