[fedora-virt] Routing only works in one direction
Philip Rhoades
phil at pricom.com.au
Fri Sep 23 16:13:57 UTC 2011
Rich,
On 2011-09-24 00:13, Richard W.M. Jones wrote:
> On Fri, Sep 23, 2011 at 12:43:12AM +1000, Philip Rhoades wrote:
>> People,
>>
>> I have been installing virtual machines for a while on a Fedora 14
>> x86_64 system (the most recent one was F16 Alpha i686) and I have
>> always
>> managed to be able to test what I wanted to but ssh-ing from the
>> host to
>> the virtual machines has never worked (it always works the other way
>> around). I get:
>>
>> ssh: connect to host 192.168.122.139 port 22: No route to host
>>
>> ifconfig shows:
>>
>> virbr0 Link encap:Ethernet HWaddr FE:54:00:9F:96:2F
>> inet addr:192.168.122.1 Bcast:192.168.122.255
>> Mask:255.255.255.0
>>
>> route shows:
>>
>> 192.168.122.0 * 255.255.255.0 U 0 0
>> 0 virbr0
>>
>> so why the error message?
>
> There's not enough information here to answer the question,
What other info is needed?
> but I
> would hazard a guess that the problem is because you've overwritten
> libvirtd's own firewall rules. A well-known way of overwriting them
> is to restart the firewall after libvirtd has started.
I do occasionally manually restart iptables - so I rebooted just in
case - I see processes:
1656 ? Sl 0:04 libvirtd --daemon
1725 ? S 0:00 /usr/sbin/dnsmasq --strict-order
--bind-interfaces --pid-file=/var/run/libvirt/network/default.pid
--conf-file= --listen-address 192.168.122.1 --except-interface lo
--dhcp-range 192.168.122.2,192.168.122.254 --dhcp-lease-max=253
3311 ? Sl 0:38 /usr/bin/qemu-kvm -S -M pc-0.13 -enable-kvm
-m 768 -smp 1,sockets=1,cores=1,threads=1 -name vf16_fresh -uuid
a7a33c9f-19c2-10e2-b656-2a0121cbfd22 -nodefconfig -nodefaults -chardev
socket,id=monitor,path=/var/lib/libvirt/qemu/vf16_fresh.monitor,server,nowait
-mon chardev=monitor,mode=readline -rtc base=utc -boot c -drive
file=/home/vf16_fresh.img,if=none,id=drive-ide0-0-0,boot=on,format=raw
-device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0
-drive if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw
-device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0
-device rtl8139,vlan=0,id=net0,mac=52:54:00:83:c5:2a,bus=pci.0,addr=0x3
-net tap,fd=39,vlan=0,name=hostnet0 -chardev pty,id=serial0 -device
isa-serial,chardev=serial0 -usb -vnc 127.0.0.1:0 -vga cirrus -device
AC97,id=sound0,bus=pci.0,addr=0x4 -device
virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
6932 pts/23 S+ 0:00 grep --color=auto libvirt
- but I still get the same error message ("No route to host") when
trying to ssh TO the virtual machine . .
Thanks,
Phil.
--
Philip Rhoades
GPO Box 3411
Sydney NSW 2001
Australia
E-mail: phil at pricom.com.au
More information about the virt
mailing list