Проблемы с QEMU RVM, Libvirt?

Всем Привет!
Ситуация такая:

Есть выделенный сервер с СentOS 6.8
В ней виртуалка с Windows Server 2012R2 "wsvm"
Набор программ такой: Libvirt, QEMU, virt-manager.
Изначально задумывалось пробросить порты (80, 3389, 443) для WS2012R2 наружу



Но при настройке возникла проблема с сетью, при работе из-под Windows, через некоторое время пропадает сеть (No Access Internet)
Т.е DHCP (по умолчанию) по началу дал IP, и все работало.

P.S Извините за портянку такую

настройки таковы:

/etc/libvirt/qemu/wsvm.xml
spoiler

<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE 
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
  virsh edit wsvm
or other application using the libvirt API.
-->

<domain type='kvm'>
  <name>wsvm</name>
  <uuid>85201fb0-e9c1-fa93-2d23-1643b2d98e7b</uuid>
  <memory unit='KiB'>17408000</memory>
  <currentMemory unit='KiB'>17408000</currentMemory>
  <vcpu placement='static'>5</vcpu>
  <os>
    <type arch='x86_64' machine='rhel6.6.0'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/libexec/qemu-kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='none'/>
      <source file='/var/lib/libvirt/images/wsvm.img'/>
      <target dev='hda' bus='ide'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <disk type='block' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <target dev='hdc' bus='ide'/>
      <readonly/>
      <address type='drive' controller='0' bus='1' target='0' unit='0'/>
    </disk>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x2'/>
    </controller>
    <controller type='ide' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <interface type='network'>
      <mac address='52:54:00:64:44:60'/>
      <source network='default'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes'/>
    <sound model='ich6'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </sound>
    <video>
      <model type='cirrus' vram='9216' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </memballoon>
  </devices>
</domain>



/etc/libvirt/qemu/networks/default.xml

<network>
  <name>default</name>
  <uuid>d6cfd617-6366-4b46-a287-8182bf59366c</uuid>
  <bridge name="virbr0" />
  <mac address='52:54:00:34:FD:5B'/>
  <forward/>
  <ip address="192.168.122.1" netmask="255.255.255.0">
    <dhcp>
      <range start="192.168.122.2" end="192.168.122.254" />
    </dhcp>
  </ip>
</network>


# ifconfig
[root@CentOS-68-64-minimal ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 40:61:86:2B:91:3C
          inet addr:111.111.11.1  Bcast:111.111.11.1  Mask:255.255.255.255
          inet6 addr: f380::4261:8265ff:12b:911c/64 Scope:Link
          inet6 addr: 201:418:141:3212::2/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:132862 errors:0 dropped:0 overruns:0 frame:0
          TX packets:179851 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:31508577 (30.0 MiB)  TX bytes:229171258 (218.5 MiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:112475 errors:0 dropped:0 overruns:0 frame:0
          TX packets:112475 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:241597671 (230.4 MiB)  TX bytes:241597671 (230.4 MiB)

virbr0    Link encap:Ethernet  HWaddr 52:54:00:34:FD:5B
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9995 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15295 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:688195 (672.0 KiB)  TX bytes:21107976 (20.1 MiB)

vnet0     Link encap:Ethernet  HWaddr FE:54:00:64:44:60
          inet6 addr: fe80::fc54:ff:fe64:4460/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9995 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15376 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:828125 (808.7 KiB)  TX bytes:20685148 (19.7 MiB)
  • Вопрос задан
  • 419 просмотров
Пригласить эксперта
Ответы на вопрос 1
не знаю как в 6 centos, но в 7 я так настраивал тут 2 месяца полет нормальный
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы