I like that the quick start page makes things look simple: http://singularity.lbl.gov/quickstartBut in reality is that all it takes to add an OS to a node? Are there any considerations specific to running with in a cluster like this? Do I just mount an image (.img) file of Ubuntu some where and it's that simple? Can I just rename the Ubuntu .iso to .img? I take it the best practice is not to put it in /tmp as it'll get lost on reboot? Pardon the newbie questions...
--
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity+unsubscribe@lbl.gov.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity...@lbl.gov.
--
Additionally to what Vanessa mentioned, you can't rename an .iso file to .img and expect it to work.
You have to create the image, bootstrap or import into it, and then you can use it.
Here is a more specific quick start to your use case:git clone -b development https://github.com/singularityware/singularity.gitcd singularity./autogen.sh./configure --prefix=/usr/localmakesudo make install# now the latest development code is installed, so you can use it:singularity create /tmp/ubuntu.imgsingularity import /tmp/ubuntu.img docker://ubuntu:latestsingularity shell /tmp/ubuntu.imgHope that helps!
I based my hypothesis on these guides:
1) https://askubuntu.com/a/388321
2) http://www.ehow.com/info_8075301_differences-between-iso-img-files.html
3) http://en.wikipedia.org/wiki/IMG_%28file_format%29#Comparison_to_ISO_images
"There is no difference in the structure of ISO and IMG formats if the IMG file is uncompressed. It is possible for an IMG format file to be renamed with the ISO file extension and then opened in software that only recognizes the ISO file format. This is an effective way of accessing disc information in programs that do not handle the IMG format.
You have to create the image, bootstrap or import into it, and then you can use it.What's the difference between bootstrap and import into it? Sorry bootstrap means a few things for me.
Here is a more specific quick start to your use case:git clone -b development https://github.com/singularityware/singularity.gitcd singularity./autogen.sh./configure --prefix=/usr/localmakesudo make install# now the latest development code is installed, so you can use it:singularity create /tmp/ubuntu.imgsingularity import /tmp/ubuntu.img docker://ubuntu:latestsingularity shell /tmp/ubuntu.imgHope that helps!This is great. I take it leaving the Ubuntu image on a DVD would probably be too slow?
--
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity+unsubscribe@lbl.gov.
Ah, understand the confusion! A singularity .img != a floppy disk style img. This is extension confusion on our part!
You have to create the image, bootstrap or import into it, and then you can use it.What's the difference between bootstrap and import into it? Sorry bootstrap means a few things for me.You can think of import as "here is my image, dump layers into it" and bootstrap as a more robust creation, which will also add environment, labels, and a runscript. Bootstrap comes by way of a specification file that you create, and import is a one line command-line thing.
git clone -b development https://github.com/singularityware/singularity.gitcd singularity./autogen.sh./configure --prefix=/usr/localmakesudo make install# now the latest development code is installed, so you can use it:singularity create /tmp/ubuntu.imgsingularity import /tmp/ubuntu.img docker://ubuntu:latestsingularity shell /tmp/ubuntu.imgHope that helps!
./singularity import /export/apps/ubuntu.simg docker://ubuntu:latest
Docker image path: index.docker.io/library/ubuntu:latest
Cache folder set to /root/.singularity/docker
Importing: base Singularity environment
ERROR : Session directory does not exist: /export/apps/var/singularity/mnt/session
I think it might be that simple? An iso file is not the same as a singularity image, so no you cannot just change the extensions and use simeotaneously. That said, I'm not actually familiar with iso format, and I'll take a look in free time with dinner! In case you are interested, the new quickstart (and all updated docs) are on docs/2.3 branch here:To answer your question, you would build an image however you like, and then just plop it on a cluster node, and shell / run / exec commands to it. You wouldn't mount it typically on your cluster, but you can bind your data paths to it with --bind/-B. And yes, don't put stuff in /tmp that you care about :)
--
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity+unsubscribe@lbl.gov.
On Jun 5, 2017, at 3:57 PM, vanessa s <vso...@gmail.com> wrote:Is singularity installed on the compute node with the same permissions and paths? For our cluster, we have it in a /share location, and then it's loaded via a module.
If you have code you'd like to share among the compute nodes, but your code isn't in an RPM (or in a roll), then this procedure describes how you can share it with NFS.
On the frontend, go to the directory /export/apps.
# cd /export/apps |
Then add the files you'd like to share within this directory.
All files will be available on the compute nodes under: /share/apps. For example:
# cd /export/apps # touch myapp # ssh compute-0-0 # cd /share/apps # ls myapp |
--
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity...@lbl.gov.
On Jun 5, 2017, at 4:08 PM, Rick Wagner <richard....@gmail.com> wrote:Robert,That’s an NFS export for the Rocks head node that may be mounted nosuid
On Jun 5, 2017, at 4:30 PM, Rick Wagner <richard....@gmail.com> wrote:On Jun 5, 2017, at 4:13 PM, Robert Kudyba <rku...@fordham.edu> wrote:On Jun 5, 2017, at 4:08 PM, Rick Wagner <richard....@gmail.com> wrote:Robert,That’s an NFS export for the Rocks head node that may be mounted nosuidRight in /etc/fstab for other applications we already have this:So what else needs to be done?UUID=xxxxx /export ext4 defaults 1 2One option is to build an RPM using the spec file in the Singularity repo and put that in contrib for your Rocks distro along with a package tag in extend compute. That’s my preference because I don’t like serving applications over NFS, especially ones with setuid.WARNING: the following will allow any executable with a setuid bit in that NFS file system to be run.You can try changing defaults to defaults,suid and remounting the file system on a compute node.
--
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity+unsubscribe@lbl.gov.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity...@lbl.gov.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity...@lbl.gov.
--
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity+unsubscribe@lbl.gov.
--
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity+unsubscribe@lbl.gov.
--
To unsubscribe from this group and stop receiving emails from it, send an email to singularity+unsubscribe@lbl.gov.
--
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity+unsubscribe@lbl.gov.
--
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity+unsubscribe@lbl.gov.
--
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity+unsubscribe@lbl.gov.
--
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity+unsubscribe@lbl.gov.
--
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity+unsubscribe@lbl.gov.
--
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity+unsubscribe@lbl.gov.
--
--
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity+unsubscribe@lbl.gov.
--
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity+unsubscribe@lbl.gov.
--
You received this message because you are subscribed to the Google Groups "singularity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to singularity+unsubscribe@lbl.gov.