Ask Your Question

Nova boot from volume

asked 2013-03-12 14:49:46 -0500

kallel-ameni gravatar image

Hello, I want to launch machine that boot from volume using curl. I read this document: ( . and i tried this command:

curl -u admin:passwd -H X-Auth-Token:8942df4e5f6b414b8b156a45aa3f76ff -H "Content-Type: application/json" -X POST -d '{"server": {"name":"yoshi", "imageRef":"d54cb1e0-6846-42ef-95c7-0892816e11a5", "flavorRef": "1", "volumes": {"id":"2", "mountpoint":"/dev/vda"}}}' (

the machine is created with success but no volume is attached to it . Can you help me to resolve this issue. thinks.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2013-03-20 09:19:59 -0500

johngarbutt gravatar image

Try using the nova cli first, and use the --debug option. It should let you know exactly what you need to send.

edit flag offensive delete link more

answered 2013-03-20 03:54:34 -0500

yashiang1986 gravatar image


curl -i ( -X POST -H "X-Auth-Project-Id: admin" -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: a169d59ec6194647a843acf7d8617fa7" -d '{"server": {"name": "testyy", "imageRef": "c9dc8ba4-d14d-4223-9795-fdbbcdc61817", "block_device_mapping": [{"volume_size": "", "volume_id": "5c50a138-4f44-4432-98b5-6701bf7e396d", "delete_on_termination": "1", "device_name": "vda"}], "flavorRef": "1", "max_count": 1, "min_count": 1}}'

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


Asked: 2013-03-12 14:49:46 -0500

Seen: 681 times

Last updated: Mar 20 '13