Re: [libvirt] How to stop libvirt from deleting tap device after shutdown

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

 



On Mon, Mar 02, 2009 at 03:15:17PM +0100, Matthias Dahl wrote:
> Hi.
> 
> I am currently setting up a new server machine which will host several kvm's 
> managed largely by libvirt. The network setup though is done prior to libvirtd 
> startup and shouldn't be touched by it.
> 
> So currently everything works just fine with 0.6.0 except that libvirt deletes 
> the tap device after I shut a kvm machine down which is something I naturally 
> don't want. I looked through all the documentation I could find but I could 
> not come up with a solution.
> 
> Forgot to mention: all kvm machine are connected through a tap device with no 
> bridge or whatsoever but 1:1 NAT. This done for performance reasons. As model 
> I use "virtio".

>     <interface type='ethernet'>
>       <mac address='52:54:00:25:6f:3f'/>
>       <script path='/bin/true'/>
>       <target dev='charon_pvnet1'/>
>       <model type='virtio'/>
>     </interface>

With type='ethernet'  libvirt doesn't have anything todo with TAP device
management, leaving it upto QEMU, and any script you configure. 
libvirt only creates/deletes TAP devices when using type=bridge or
type=network.  So I think it is probably QEMU itself that's killing off
your pre-created TAP device, rather than libvirt.

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]