Red Hat企业版5 卸载virbr0

来源:互联网 发布:中文域名骗局中科瑞 编辑:程序博客网 时间:2024/05/20 18:19

   如果创建过虚拟机那么使用# yum groupremove "Virtualization"来卸载所有组件

输出为:

Loading "rhnplugin" pluginLoading "security" pluginSetting up Group Processrhel-x86_64-server-vt-5   100% |=========================| 1.4 kB    00:00rhn-tools-rhel-x86_64-ser 100% |=========================| 1.2 kB    00:00rhel-x86_64-server-5      100% |=========================| 1.4 kB    00:00No package matched to removeNo package matched to removeNo package matched to removeNo package matched to removeNo package matched to removeResolving Dependencies--> Running transaction check---> Package libvirt.x86_64 0:0.3.3-7.el5 set to be erased--> Processing Dependency: libvirt.so.0()(64bit) for package: libvirt-python--> Processing Dependency: libvirt = 0.3.3 for package: libvirt-python--> Running transaction check---> Package libvirt-python.x86_64 0:0.3.3-7.el5 set to be erased--> Processing Dependency: libvirt-python for package: rhn-virtualization-host--> Running transaction check---> Package rhn-virtualization-host.noarch 0:1.0.1-55 set to be erased--> Finished Dependency ResolutionDependencies Resolved============================================================================= Package                 Arch       Version          Repository        Size=============================================================================Removing: libvirt                 x86_64     0.3.3-7.el5      installed         3.4 MRemoving for dependencies: libvirt-python          x86_64     0.3.3-7.el5      installed         230 k rhn-virtualization-host  noarch     1.0.1-55         installed         155 kTransaction Summary=============================================================================Install      0 Package(s)Update       0 Package(s)Remove       3 Package(s)Is this ok [y/N]: yDownloading Packages:Running rpm_check_debugRunning Transaction TestFinished Transaction TestTransaction Test SucceededRunning Transaction  Erasing   : libvirt-python               ######################### [1/3]  Erasing   : rhn-virtualization-host      ######################### [2/3]Stopping crond: [  OK  ]Starting crond: [  OK  ]  Erasing   : libvirt                      ######################### [3/3]Removed: libvirt.x86_64 0:0.3.3-7.el5Dependency Removed: libvirt-python.x86_64 0:0.3.3-7.el5 rhn-virtualization-host.noarch 0:1.0.1-55Complete!


如果没有创建虚拟机,那么使用如下步骤来卸载虚拟网卡:

# yum remove rhn-virtualization-host# yum remove libvirt-python# yum remove libvirt# ifconfig