[libvirt-users] simulate "network cable unplugged"

Hi All, Using the virt-manager/libvirtd/qemu-kvm stack (centos 6), is it possible to leave a NIC "installed" but cause it to simulate that the network cable is unplugged? Preferably this could be "hot" plugged/unplugged but otherwise doing it cold. Guest os is also centos 6, in case it matters (shouldn't). Any pointers? Thanks, David Mansfield Cobite, INC.

On 03/26/2012 11:30 AM, David Mansfield wrote:
Hi All,
Using the virt-manager/libvirtd/qemu-kvm stack (centos 6), is it possible to leave a NIC "installed" but cause it to simulate that the network cable is unplugged? Preferably this could be "hot" plugged/unplugged but otherwise doing it cold.
Libvirt 0.9.5 added the ability to do <link state='down'/> for various networks; I'm not sure if this has been backported to your version of CentOS, or if you'll have to upgrade to something newer. For more details on the addition: https://www.redhat.com/archives/libvir-list/2011-September/msg00294.html -- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
participants (2)
-
David Mansfield
-
Eric Blake