I want to assign a security group to an existing instance. Is this possible?


Now you can:

In the Horizon web interface provided that you have a pretty recent version of Horizon, i.e. >= Grizzly: Change security group:

It's possible to change the security groups on the fly using Horizon, if you're using the latest release Grizzly. Click on the "More" button for the instance you want to update and you should see an "Edit Security Groups" option.

In the CLI, use nova help add-secgroup

The code for this was added a year ago so I believe this should be available in Folsom.

enter image description here


Create a new security group called new.

Get the id of your image (<image-id>)

select id from security_groups where name = 'new' ;
update security_group_instance_association set security_group_id=<security-group-id> where instance_id=<image-id> ;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.