June 4, 201511 yr I have two VMs for testing at the mo, one Windows and one Ubuntu. Both are online and can ping the internet and every host in my LAN. However, my LAN hosts cannot ping them. Weird. Why?
June 4, 201511 yr I have two VMs for testing at the mo, one Windows and one Ubuntu. Both are online and can ping the internet and every host in my LAN. However, my LAN hosts cannot ping them. Weird. Why? How have you got the networking set up? If you are using the default virtbr0 then that would be expected behaviour as that is a NAT bridge allowing outbound connections only. If you want VM's to be visible on the LAN then you need to set a bridge up under Settings->Network (I use the name br0 on my system), and then se the VM to use that for its network.
June 4, 201511 yr Author I have two VMs for testing at the mo, one Windows and one Ubuntu. Both are online and can ping the internet and every host in my LAN. However, my LAN hosts cannot ping them. Weird. Why? How have you got the networking set up? If you are using the default virtbr0 then that would be expected behaviour as that is a NAT bridge allowing outbound connections only. If you want VM's to be visible on the LAN then you need to set a bridge up under Settings->Network (I use the name br0 on my system), and then se the VM to use that for its network. Sorry yes I should have said that... Originally I had an IP of 192.168.122.x but aftr setting up the bridge properly (I remembered this from my Xen days) I got the expected IP from my router of 192.168.1.4
June 7, 201511 yr Author Nope. That's the weird thing. I only posted after setting up the bridge as that was when I was out of ideas!
June 7, 201511 yr Nope. That's the weird thing. I only posted after setting up the bridge as that was when I was out of ideas! Can you share both your diagnostics and the XML for your VM?
June 8, 201511 yr Author Diagnostics: - Changed to br0 from virbr0. Now get the correct IP from router. - Can ping other LAN hosts and the internet but they can't ping me. - Tried Ubuntu and Windows (different VMs, the XML below is for Windows). XML: <domain type='kvm' id='2'> <name>Windows</name> <uuid>cd80f8f1-8290-4c6c-abca-480dd066f6d1</uuid> <metadata> <vmtemplate name="Custom" icon="windows.png" os="windows"/> </metadata> <memory unit='KiB'>2097152</memory> <currentMemory unit='KiB'>2097152</currentMemory> <memoryBacking> <nosharepages/> <locked/> </memoryBacking> <vcpu placement='static'>6</vcpu> <cputune> <vcpupin vcpu='0' cpuset='0'/> <vcpupin vcpu='1' cpuset='1'/> <vcpupin vcpu='2' cpuset='2'/> <vcpupin vcpu='3' cpuset='3'/> <vcpupin vcpu='4' cpuset='4'/> <vcpupin vcpu='5' cpuset='5'/> </cputune> <resource> <partition>/machine</partition> </resource> <os> <type arch='x86_64' machine='pc-i440fx-2.3'>hvm</type> </os> <features> <acpi/> <apic/> <hyperv> <relaxed state='on'/> <vapic state='on'/> <spinlocks state='on' retries='8191'/> </hyperv> </features> <cpu mode='host-passthrough'> <topology sockets='1' cores='6' threads='1'/> </cpu> <clock offset='localtime'> <timer name='hypervclock' present='yes'/> <timer name='hpet' present='no'/> </clock> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <emulator>/usr/bin/qemu-system-x86_64</emulator> <disk type='file' device='disk'> <driver name='qemu' type='raw' cache='none' io='native'/> <source file='/mnt/cache/VMs/windows.img'/> <backingStore/> <target dev='hdc' bus='virtio'/> <boot order='1'/> <alias name='virtio-disk2'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </disk> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/mnt/user/ISOs/Windows8/Prx8.1/SW_DVD9_Win_Pro_8.1_64BIT_English_-2_MLF_X19-49879.ISO'/> <backingStore/> <target dev='hda' bus='ide'/> <readonly/> <boot order='2'/> <alias name='ide0-0-0'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/mnt/user/ISOs/virtio-win.iso'/> <backingStore/> <target dev='hdb' bus='ide'/> <readonly/> <alias name='ide0-0-1'/> <address type='drive' controller='0' bus='0' target='0' unit='1'/> </disk> <controller type='usb' index='0'> <alias name='usb0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> </controller> <controller type='pci' index='0' model='pci-root'> <alias name='pci.0'/> </controller> <controller type='ide' index='0'> <alias name='ide0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> </controller> <controller type='virtio-serial' index='0'> <alias name='virtio-serial0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </controller> <interface type='bridge'> <mac address='52:54:00:66:e6:72'/> <source bridge='br0'/> <target dev='vnet0'/> <model type='virtio'/> <alias name='net0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> <serial type='pty'> <source path='/dev/pts/0'/> <target port='0'/> <alias name='serial0'/> </serial> <console type='pty' tty='/dev/pts/0'> <source path='/dev/pts/0'/> <target type='serial' port='0'/> <alias name='serial0'/> </console> <channel type='unix'> <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/Windows.org.qemu.guest_agent.0'/> <target type='virtio' name='org.qemu.guest_agent.0' state='disconnected'/> <alias name='channel0'/> <address type='virtio-serial' controller='0' bus='0' port='1'/> </channel> <input type='tablet' bus='usb'> <alias name='input0'/> </input> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> <graphics type='vnc' port='5900' autoport='yes' websocket='5700' listen='0.0.0.0' keymap='en-gb'> <listen type='address' address='0.0.0.0'/> </graphics> <video> <model type='vmvga' vram='16384' heads='1'/> <alias name='video0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </video> <memballoon model='virtio'> <alias name='balloon0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </memballoon> </devices> </domain>
June 9, 201511 yr Been thinking on this. I'm a little lost only because I can't reproduce. Can you goto tools-> diagnostics, click collect, and share contents?
June 25, 201511 yr OP any luck with this? i seem to be having the same issue. after turning on my br0 bridge, my vm can ping everything, but i can't ping my vm. <domain type='kvm' id='6'> <name>Win10</name> <uuid>0edfc2b4-4374-1cd0-29db-f77bcbda51f0</uuid> <memory unit='KiB'>2097152</memory> <currentMemory unit='KiB'>2097152</currentMemory> <memoryBacking> <nosharepages/> <locked/> </memoryBacking> <vcpu placement='static'>2</vcpu> <cputune> <vcpupin vcpu='0' cpuset='0'/> <vcpupin vcpu='1' cpuset='1'/> </cputune> <resource> <partition>/machine</partition> </resource> <os> <type arch='x86_64' machine='pc-i440fx-2.2'>hvm</type> </os> <features> <acpi/> <apic/> <hyperv> <relaxed state='on'/> <vapic state='on'/> <spinlocks state='on' retries='8191'/> </hyperv> </features> <cpu mode='host-passthrough'> <topology sockets='1' cores='2' threads='1'/> </cpu> <clock offset='localtime'> <timer name='hypervclock' present='yes'/> <timer name='hpet' present='no'/> </clock> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <emulator>/usr/bin/qemu-system-x86_64</emulator> <disk type='file' device='disk'> <driver name='qemu' type='raw' cache='none' io='native'/> <source file='/mnt/cache/.apps/vm/VM-Win10/vdisk1.img'/> <backingStore/> <target dev='hdc' bus='virtio'/> <boot order='1'/> <alias name='virtio-disk2'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </disk> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/mnt/user/APPZ/Microsoft.Windows.8.Enterprise.x64-iNDiSO/Windows10_InsiderPreview_x64_EN-US_10074.iso'/> <backingStore/> <target dev='hda' bus='ide'/> <readonly/> <boot order='2'/> <alias name='ide0-0-0'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/mnt/cache/.apps/vm/virtio-win-0.1.96.iso'/> <backingStore/> <target dev='hdb' bus='ide'/> <readonly/> <alias name='ide0-0-1'/> <address type='drive' controller='0' bus='0' target='0' unit='1'/> </disk> <controller type='usb' index='0'> <alias name='usb0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> </controller> <controller type='pci' index='0' model='pci-root'> <alias name='pci.0'/> </controller> <controller type='ide' index='0'> <alias name='ide0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/> </controller> <interface type='bridge'> <mac address='52:54:00:bc:06:dd'/> <source bridge='br0'/> <target dev='vnet0'/> <model type='virtio'/> <alias name='net0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> <serial type='pty'> <source path='/dev/pts/0'/> <target port='0'/> <alias name='serial0'/> </serial> <console type='pty' tty='/dev/pts/0'> <source path='/dev/pts/0'/> <target type='serial' port='0'/> <alias name='serial0'/> </console> <input type='tablet' bus='usb'> <alias name='input0'/> </input> <input type='mouse' bus='ps2'/> <input type='keyboard' bus='ps2'/> <graphics type='vnc' port='5900' autoport='yes' websocket='5700' listen='0.0.0.0'> <listen type='address' address='0.0.0.0'/> </graphics> <video> <model type='vmvga' vram='16384' heads='1'/> <alias name='video0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </video> <memballoon model='virtio'> <alias name='balloon0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </memballoon> </devices> </domain>
June 25, 201511 yr found the issue. looks like windows 10 firewall blocks icmp requests by default. after enabling, everything works as it should.
June 25, 201511 yr found the issue. looks like windows 10 firewall blocks icmp requests by default. after enabling, everything works as it should. dang you beat me to it, just fixed it for myself.
July 2, 201511 yr Author found the issue. looks like windows 10 firewall blocks icmp requests by default. after enabling, everything works as it should. Wasn't using Win 10. I have the same issue on both Ubuntu and Win 7 / 8.1
October 22, 201510 yr windows 10 firewall blocks icmp requests by default. after enabling, it should work.
October 24, 201510 yr windows 10 firewall blocks icmp requests by default. after enabling, it should work. Yes, I had this same issue with Windows 10. The VM could reach the internet and was even seen on the network by my router, but was unable to accept incoming pings. I made modifications to the incoming settings under the windows firewall and was able to accept incoming Remote Desktops as well as pings from other users. Again, this was specifically for Windows 10, but could be a resolution under other Windows OSes
Archived
This topic is now archived and is closed to further replies.