Re: network between host and guest

2010-05-13 Thread Thanasis
on 05/13/2010 10:48 PM dry...@sky-haven.net wrote the following:
 Ar 10.05.10 10:46, scríobh Thanasis:
 I have installed kvm (app-emulation/qemu-kvm-0.12.3-r1) on linux (a
 laptop with gentoo linux) and MS Windows 7 as guest.
 Here is what info I get about the network on each one:
 1) on linux (host):

 [snip]

 Hi there:

 The precise KVM command would be useful in determining what's going on.

 Since I'm guessing, I may as well presume you used -net
 nic,(options...) -net user.  If you did, the magick is in the qemu
 binary which is both providing a DHCP service to the guest and
 performing the necessary outbound source NAT.

 But as others have mentioned, more information on how you started KVM
 might be useful to determine what's going on.  The reason is that there
 are several ways to set up networking in KVM.

The command is (and running as a user, not root):

$ kvm win7kvm.img -m 1024 -boot c -usb -usbdevice tablet

$ which kvm
/usr/bin/kvm
$ ls -l /usr/bin/kvm
lrwxrwxrwx 1 root root 17 Apr 21 15:10 /usr/bin/kvm - /usr/bin/qemu-kvm
$ file /usr/bin/qemu-kvm
/usr/bin/qemu-kvm: POSIX shell script text executable
$ cat /usr/bin/qemu-kvm
#!/bin/sh
exec /usr/bin/qemu-system-x86_64 --enable-kvm $@
$ file /usr/bin/qemu-system-x86_64
/usr/bin/qemu-system-x86_64: ELF 64-bit LSB executable, x86-64, version
1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9,
stripped
$



--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: network between host and guest

2010-05-12 Thread Thanasis
on 05/10/2010 09:28 PM Thanasis wrote the following:
 Probably it's slirp.
 The url you provided doesn't help much though.
   
Anyone to provide some more help?
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: network between host and guest

2010-05-10 Thread Liang Guo
在 星期一 10 5月 2010 18:46:20,Thanasis 写道:

 
 Question: Where is my interface on linux with IP address of 10.0.2.2 ?
 The guest can actually access the internet (via the host), but where can
 I see that hidden routing that linux provides to it?
 

I think you are using user networking(slirp) , with user networking, etch tcp 
connection is mapped to a tcp connection in host's kvm process, and  there
is no host route to the guest.  Please visit 
http://wiki.qemu.org/Documentation/Networking
for detailed information. 

-- 
Liang Guo
http://bluestone.cublog.cn
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: network between host and guest

2010-05-10 Thread Thanasis
Probably it's slirp.
The url you provided doesn't help much though.
Thanks.
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html