5

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

user9517
  • 115,471
  • 20
  • 215
  • 297
Alex
  • 405
  • 1
  • 5
  • 14

2 Answers2

2

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

Franck Dernoncourt
  • 1,022
  • 2
  • 14
  • 32
0

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> ;