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

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

 



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".

Any help would be greatly appreciated.

Best regards,
Matthias Dahl

= XML File for one of the machines ===========================================

<domain type='kvm'>
  <name>charon</name>
  <uuid>08a3af0e-f145-54c6-30a2-efdab5478523</uuid>
  <memory>2097152</memory>
  <currentMemory>524288</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch='x86_64' machine='pc'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
  </features>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/bin/kvm</emulator>
    <disk type='file' device='disk'>
      <source file='/dev/diskspace/kvm_charon'/>
      <target dev='vda' bus='virtio'/>
    </disk>
    <interface type='ethernet'>
      <mac address='52:54:00:25:6f:3f'/>
      <script path='/bin/true'/>
      <target dev='charon_pvnet1'/>
      <model type='virtio'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/1'/>
      <target port='0'/>
    </serial>
    <console type='pty' tty='/dev/pts/1'>
      <source path='/dev/pts/1'/>
      <target port='0'/>
    </console>
  </devices>
</domain>

--
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]