On 08/01/2012 03:11 AM, Stephen Liu wrote:
Hi all,
I'm following;
Getting started with OpenStack on Fedora 17
http://fedoraproject.org/wiki/Getting_started_with_OpenStack_on_Fedora_17
learning OpenStack.
I'm stuck here:-
Launch an instance:
$ nova boot myserver --flavor 2 --key_name mykey \
> --image $(glance index | grep f16-jeos | awk '{print $1}')
usage: nova boot [--flavor <flavor>] [--image <image>] [--meta
<key=value>]
[--file <dst-path=src-path>] [--key_name <key_name>]
[--user_data <user-data>]
[--availability_zone <availability-zone>]
[--security_groups <security_groups>]
[--block_device_mapping <dev_name=mapping>]
[--hint <key=value>]
[--nic <net-id=net-uuid,v4-fixed-ip=ip-addr>]
[--config-drive <value>] [--poll]
<name>
error: argument --image: expected one argument
Try `nova help boot' for more information.
Looks like there are multiple images of that name in glance?
Perhaps you could delete one or just select the first
by using this instead:
nova boot myserver --flavor 2 --key_name mykey \
--image $(glance index | sed -n '/f16-jeos/{s/ .*//p;q}')
cheers,
Pádraig.