openstack add interface
来源:互联网 发布:mongodb与mysql区别 编辑:程序博客网 时间:2024/05/21 00:52
Neutron和nova提供了api将一个Portattach到一台虚拟机上,主要是命令是:
Step1: neutron port-create net-id (net-id: 想要将虚拟机接入的网络名)
Step2: Nova interface-attach –port-id port-id-above server-id
(port-id-above:上面创建的Port的id server-id:虚拟机的主机ID)
这样就创建了一个Port并连接到了这台虚拟机上
机器系统为Ubuntu,由于Ubuntu只在开机时扫描硬件,开机后只扫描Pluggable的硬件如usb,所以要在重启后才能生效
机器系统为windows时,当执行命令后,vm会识别网卡,不需要重启就可以生效
如果想解除连接:
Nova interface-detach server_id port-id
这一步会解除连接,而且会删除该port
Addition:
在dashboard中,有create port 和attachto device的功能,但是经过实验发现这样做是没有效果的,虽然在networktopology页面中显示已经attach成功,但是在vm中仍然没有获取到这个Port
0 0
- openstack add interface
- OpenStack command-line interface cheat sheet
- OpenStack单节点安装配置文件范例:nova.conf && interface
- OpenStack Icehouse error: Virtual Interface creation failed解决方法
- OpenStack Icehouse error: Virtual Interface creation failed解决方法
- note : add COM interface To Shell Extension DLL
- 《iOS Human Interface Guidelines》——Contact Add Button
- OpenStack Cinder - Add more volume nodes Configure multiple backends
- Interface
- interface
- interface
- interface
- interface
- interface
- @interface
- Interface
- @interface
- Interface
- CF A. DZY Loves Hash
- 黑马程序员16.IO流
- iOS Debugging Magic
- 弱校ACM奋斗史
- 【Linux学习】Linux文件系统4—Linux文件硬链接与软连接
- openstack add interface
- JBoss 的端口设置修改
- 高贵
- Codeforces 446A —— DZY Loves Sequences(DP)
- 被遗忘的黑莓,你还活得好么?
- 黑马程序员 类的方法中参数的传递
- day day up--Java设计模式之单例模式
- Ubuntu Kylin 14.04 LTS使用体验
- Codeforces Round #255(Div. 2)