RE: virsh attach-interface auto up

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 
Hi Brent, you are right! This has been removed from centos7[1] pfff

I have managed to get this working by copying these two files from 
CentOS6

/etc/sysconfig/network-scripts/net.hotplug
/lib/udev/rules.d/60-net.rules 

And running 
udevadm control --reload-rules && udevadm trigger

https://access.redhat.com/solutions/429653


-----Original Message-----
To: libvirt-users@xxxxxxxxxx
Subject: Re: virsh attach-interface auto up

On 8/8/20 9:42 AM, Marc Roos wrote:
>  
> I am doing a virsh detach-interface and an attach-interface. Is it 
> possible to automatically bring the interface up after attaching it?
> 

By coincidence, I was just playing with this with the python API.

The interface being brought up automatically, if I understand your
question correctly, depends on the OS of the guest having hotplug
support for the NIC you have selected for it.

It takes a couple seconds, but I can generally detach and re-attach an
interface in CentOS Linux, for instance, with only about a 2-5 second
hiccup in network traffic.


-- 
brent saner
https://square-r00t.net/
GPG info: https://square-r00t.net/gpg-info






[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux