Problem on running "nova boot myserver"

Pádraig Brady P at draigBrady.com
Wed Aug 1 09:45:47 UTC 2012


On 08/01/2012 10:20 AM, Stephen Liu wrote:
> Hi,
> 
> $ nova boot myserver --flavor 2 --key_name mykey \
>> --image $(glance index | sed -n '/f16-jeos/{s/ .*//p;q}')
> 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.
> 
> Still the same.

Well that's different, but probably because I messed up the command.
Could you send the output from `glance index`
In any case you should be able to manually cut&paste
the uuid you require from that output.

> Started "Launch an Instance" again.
> 
> $ sudo modprobe nbd
> [sudo] password for satimis: 
> No complaint.
> 
> 
> $ nova keypair-add mykey > oskey.priv
> ERROR: You must provide a username via either --os_username or env[OS_USERNAME]
> 
> It complained.
> 
> Any suggestion?  TIA

There is a step you may have done in another shell

  . ./keystonerc

That needs to be done before running most commands
(once per shell session).

cheers,
Pádraig.


More information about the cloud mailing list