zoukankan      html  css  js  c++  java
  • KVM之virsh管理虚拟机网卡配置

    虚拟机网卡管理

    virsh attach-interface 添加网卡:

    [root@ubuntu ~]# virsh domiflist CentOS-V6.5.23-server01 
    Interface  Type       Source     Model       MAC
    -------------------------------------------------------
    vnet0      network    default    rtl8139     52:54:00:90:0a:7a
    
    [root@ubuntu ~]# virsh attach-interface CentOS-V6.5.23-server01 --type network --source default --model rtl8139  --live --config
    Interface attached successfully
    
    [root@ubuntu ~]# virsh domiflist  CentOS-V6.5.23-server01                                                       
    Interface  Type       Source     Model       MAC
    -------------------------------------------------------
    vnet0      network    default    rtl8139     52:54:00:90:0a:7a
    vnet1      network    default    rtl8139     52:54:00:ae:84:d0
    

    virsh detach-interface 删除网卡:

    [root@ubuntu ~]# virsh detach-interface CentOS-V6.5.23-server01 --type  network --mac  52:54:00:00:34:55  --live --config
    Interface detached successfully
    
    [root@ubuntu ~]# virsh domiflist CentOS-V6.5.23-server01                                                  
    Interface  Type       Source     Model       MAC
    -------------------------------------------------------
    vnet0      network    default    rtl8139     52:54:00:90:0a:7a
    
  • 相关阅读:
    ICON 收集
    vs2015with_update_3
    文件大全,以后就从这些格式入手fuzz
    诗词
    tools URL 收集
    (四)ORBSLAM运动估计
    (三)ORB特征匹配
    (二)ORB描述子提取源码思路与实现
    (一)ORB描述子提取
    双目立体匹配——归一化互相关(NCC)
  • 原文地址:https://www.cnblogs.com/wshenjin/p/11060636.html
Copyright © 2011-2022 走看看