Ask Your Question
1

How to inject mutiple files with nova boot --file cli

asked 2014-04-11 04:59:21 -0600

gpanda gravatar image

I can boot a vm with cloud-init enabled image with some config data, including inject ONE file with --file <dest>=<src> format. Well, I wonder how to inject multiple personalized files, it is said at most 5 files supported(http://docs.openstack.org/grizzly/openstack-compute/admin/content/instance-data.html#inserting_files). nova --debug boot --config-drive=true --user-data ./cloud.cfg --key-name cloud_init_test --file <dest>=<src> --image ci_image_x --flavor 3 --nic net-id=<id>,v4-fixed-ip=<ip> vm_a

thanks!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-04-13 19:10:19 -0600

sgordon gravatar image

I do not know off the top of my head how you inject multiple files when running nova boot, other than suggesting providing multiple --file argument pairs.

However it may be of use to know that cloud-init supports the use of a MIME multipart archive to provide multiple content types in a single file. By concatenating your inputs into such a file you can provide them all for injection using only one --file argument.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-04-11 04:59:21 -0600

Seen: 1,514 times

Last updated: Apr 13 '14