- You will have to disable security groups on that port with :
# a- w9 t) O$ u" J/ }3 `+ N' F
Raw0 {+ J) ^* V5 {$ \) l q1 ^2 j" B
[stack@rh-director ~]$ neutron port-update --no-security-groups <port-id>
0 H" E- R+ D' F$ ~# ~, l1 a. x
Updated port: - C/ j$ } h9 T/ }3 T/ D$ P8 S
- As well as disable anti spoofing rules on the neutron port associated with the VM's interface.
1 P H; |$ R$ Z5 N8 b; Z) o; a& n
; ~7 T! n3 h, m% l1 |: ?
[stack@rh-director ~]$ neutron port-update port-id --port-security-enabled=False
! O$ v7 c e" e: _" }0 j. ?9 ^
Updated port:
. T1 T2 Z! x# t* u- may need to set port_security driver to be able to use this feature:2 H1 D4 a9 d& t5 q8 n, B$ l% m
/etc/neutron/plugins/ml2/ml2_conf.ini): For example:
' o9 Z( S# B7 V. U: m5 m+ c: e7 Y6 R
Raw
' k! N) U0 c: i, h9 }% L: [1 c[ml2]extension_drivers = port_security
- ~, ~; F, K* E* D3 C8 q5 s
1 I9 q- b" | z4 z. V9 P
- [+ M) A" `, |: V! O! j# c% |# v! _
/etc/nova/nova.conf [DEFAULT] force_config_drive = True flat_injected = True 说明: force_config_drive:会在虚拟机的xml文件中生成一个disk设备,并把元数据配置文件保存到此设备中: <devices> ...... <disk type='network' device='cdrom'> <driver name='qemu' type='raw' cache='writeback' discard='unmap'/> <source protocol='rbd' name='images/fc665b55-4fb9-416a-b1b0-8fee3d8b71bc_disk.config'> <host name='192.168.10.221' port='6789'/> <host name='192.168.10.222' port='6789'/> <host name='192.168.10.223' port='6789'/> </source> <target dev='hdd' bus='ide'/> <readonly/> <address type='drive' controller='0' bus='1' target='0' unit='1'/> </disk> ...... </devices> flat_injected:把网卡元数据配置文件保存到此设备中。
. L) l( e3 ^# g5 b& Q F0 k' e' G! U0 Q( l
|