# VPC security\_group\_ids

**URL:** <https://forum.opennebula.io/t/vpc-security-group-ids/1177>\
**Category:** Product Support\
**Created:** [September 4, 2015, 3:47pm UTC](https://forum.opennebula.io/t/vpc-security-group-ids/1177 "2015-09-04T15:47:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kcloud](https://avatars.discourse-cdn.com/v4/letter/k/838e76/32.png) [@kcloud](https://forum.opennebula.io/u/kcloud)\
**Post date:** [September 4, 2015, 3:47pm UTC](https://forum.opennebula.io/t/vpc-security-group-ids/1177/1 "2015-09-04T15:47:49Z")

</div>

When using EC2 VPCs, security group ids are expected, the below changes were necessary to make the template work:

```
oneadmin@/usr/lib/one/ruby#: diff ec2_driver.rb.orig ec2_driver.rb
124c124
< :opt => 'security_groups',
---
> :opt => 'security_group_ids',
```

Otherwise, VMs using subnet IDs will not launch in VPCs, they will fail with the below error:

```
The parameter groupName cannot be used with the parameter subnet
```

---

<div class="post-metadata">

**Author:** ![dmolina](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/dmolina/32/22_2.png) [@dmolina](https://forum.opennebula.io/u/dmolina)\
**Post date:** [September 10, 2015, 10:17am UTC](https://forum.opennebula.io/t/vpc-security-group-ids/1177/2 "2015-09-10T10:17:12Z")

</div>

Hi,

Thank you for reporting this. There is already a ticket for it and we will try to include it for the final release:  
[http://dev.opennebula.org/issues/3753](http://dev.opennebula.org/issues/3753)

Cheers

---

<div class="post-metadata">

**Author:** ![kcloud](https://avatars.discourse-cdn.com/v4/letter/k/838e76/32.png) [@kcloud](https://forum.opennebula.io/u/kcloud)\
**Post date:** [September 10, 2015, 1:22pm UTC](https://forum.opennebula.io/t/vpc-security-group-ids/1177/3 "2015-09-10T13:22:34Z")

</div>

Great! Thanks Daniel.

---

<div class="post-metadata">

**Author:** ![dmolina](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/dmolina/32/22_2.png) [@dmolina](https://forum.opennebula.io/u/dmolina)\
**Post date:** [September 15, 2015, 1:26pm UTC](https://forum.opennebula.io/t/vpc-security-group-ids/1177/4 "2015-09-15T13:26:43Z")

</div>

Hi,

It should be fixed in master. I have included an extra option for security\_group\_ids instead of replacing the existing security\_groups

[http://dev.opennebula.org/projects/opennebula/repository/revisions/de34c04d4f53e39f83acffce6570de660a3f7a94/diff/](http://dev.opennebula.org/projects/opennebula/repository/revisions/de34c04d4f53e39f83acffce6570de660a3f7a94/diff/)

Cheers

---

<div class="post-metadata">

**Author:** ![kcloud](https://avatars.discourse-cdn.com/v4/letter/k/838e76/32.png) [@kcloud](https://forum.opennebula.io/u/kcloud)\
**Post date:** [September 30, 2015, 3:54pm UTC](https://forum.opennebula.io/t/vpc-security-group-ids/1177/5 "2015-09-30T15:54:21Z")

</div>

Thanks Daniel!

Working as expected now. Would be worth updating the documentation with the new attribute: [http://docs.opennebula.org/4.14/advanced\_administration/cloud\_bursting/ec2g.html](http://docs.opennebula.org/4.14/advanced_administration/cloud_bursting/ec2g.html)

---

<div class="post-metadata">

**Author:** ![dmolina](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/dmolina/32/22_2.png) [@dmolina](https://forum.opennebula.io/u/dmolina)\
**Post date:** [October 1, 2015, 8:50am UTC](https://forum.opennebula.io/t/vpc-security-group-ids/1177/6 "2015-10-01T08:50:42Z")

</div>

Thank you for the feedback, I have just updated the docs in master.
