public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* network source redirection after kvm start
@ 2009-03-11 13:57 Oliver Rath
  2009-03-15 13:14 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Oliver Rath @ 2009-03-11 13:57 UTC (permalink / raw)
  To: kvm; +Cc: Jürgen Brunk

Hi,

Im new to this group, so let me know if i do something wrong.

Im testing kvm here (runs almost fine), but there is a strange effect if
I start kvm with tun/tap-devices

I.e. a cups-server runs on localhost and accepts only localhost
administration. If I make an request, tcpdump shows something like this:

--------------------- snip --------------------------------
# tcpdump -i lo -n
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on lo, link-type EN10MB (Ethernet), capture size 68 bytes      
14:52:40.811315 IP 127.0.0.1.55006 > 127.0.0.1.631: S
3637547705:3637547705(0) win 32792 <mss 16396,sackOK,timestamp
273730[|tcp]>                                                                                           

14:52:40.811522 IP 127.0.0.1.631 > 127.0.0.1.55006: S
3651636684:3651636684(0) ack 3637547706 win 32768 <mss
16396,sackOK,timestamp 273730[|tcp]>  
--------------------- snap --------------------------------

But after starting kvm like:

kvm \
  -hda
/home/oliver/Desktop/FreeNAS_0.69RC2_ESX_VM/FreeNAS_0.69RC2/FreeNAS_0.69RC2-flat.vmdk
\
  -hdb /home/oliver/nas.image \
  -boot c \
  -m 512 \
  -localtime \
  -soundhw es1370 \
  -smb /home/oliver \
  -net tap,vlan=0,ifname=win0,script=/etc/kvm/kvm-start \
  -net nic,vlan=0

the source of all runnig X-Programs is redirected to my (wlan)-Adress:

--------------------- snip --------------------------------
# tcpdump -i lo -n
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on lo, link-type EN10MB (Ethernet), capture size 68 bytes      
14:55:19.678993 IP 193.196.118.76.55009 > 127.0.0.1.631: S
1826022862:1826022862(0) win 32792 <mss 16396,sackOK,timestamp
321390[|tcp]>                                                                                      

14:55:19.679114 IP 127.0.0.1.631 > 127.0.0.1.55009: S
1839671451:1839671451(0) ack 1826022863 win 32768 <mss
16396,sackOK,timestamp 321390[|tcp]>     
--------------------- snip --------------------------------

In this way, cups forbids administration after starting kvm. Whats wrong
here? What can I do here?

TfH,

Oliver


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: network source redirection after kvm start
  2009-03-11 13:57 network source redirection after kvm start Oliver Rath
@ 2009-03-15 13:14 ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2009-03-15 13:14 UTC (permalink / raw)
  To: Oliver Rath; +Cc: kvm, Jürgen Brunk

Oliver Rath wrote:
> Hi,
>
> Im new to this group, so let me know if i do something wrong.
>
> Im testing kvm here (runs almost fine), but there is a strange effect if
> I start kvm with tun/tap-devices
>
> I.e. a cups-server runs on localhost and accepts only localhost
> administration. If I make an request, tcpdump shows something like this:
>
> --------------------- snip --------------------------------
> # tcpdump -i lo -n
> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
> listening on lo, link-type EN10MB (Ethernet), capture size 68 bytes      
> 14:52:40.811315 IP 127.0.0.1.55006 > 127.0.0.1.631: S
> 3637547705:3637547705(0) win 32792 <mss 16396,sackOK,timestamp
> 273730[|tcp]>                                                                                           
>
> 14:52:40.811522 IP 127.0.0.1.631 > 127.0.0.1.55006: S
> 3651636684:3651636684(0) ack 3637547706 win 32768 <mss
> 16396,sackOK,timestamp 273730[|tcp]>  
> --------------------- snap --------------------------------
>
> But after starting kvm like:
>
> kvm \
>   -hda
> /home/oliver/Desktop/FreeNAS_0.69RC2_ESX_VM/FreeNAS_0.69RC2/FreeNAS_0.69RC2-flat.vmdk
> \
>   -hdb /home/oliver/nas.image \
>   -boot c \
>   -m 512 \
>   -localtime \
>   -soundhw es1370 \
>   -smb /home/oliver \
>   -net tap,vlan=0,ifname=win0,script=/etc/kvm/kvm-start \
>   -net nic,vlan=0
>
> the source of all runnig X-Programs is redirected to my (wlan)-Adress:
>
> --------------------- snip --------------------------------
> # tcpdump -i lo -n
> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
> listening on lo, link-type EN10MB (Ethernet), capture size 68 bytes      
> 14:55:19.678993 IP 193.196.118.76.55009 > 127.0.0.1.631: S
> 1826022862:1826022862(0) win 32792 <mss 16396,sackOK,timestamp
> 321390[|tcp]>                                                                                      
>
> 14:55:19.679114 IP 127.0.0.1.631 > 127.0.0.1.55009: S
> 1839671451:1839671451(0) ack 1826022863 win 32768 <mss
> 16396,sackOK,timestamp 321390[|tcp]>     
> --------------------- snip --------------------------------
>
> In this way, cups forbids administration after starting kvm. Whats wrong
> here? What can I do here?

Are you running your browser on the host or guest?

What's the output of 'ifconfig' on the guest?



-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-15 13:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-11 13:57 network source redirection after kvm start Oliver Rath
2009-03-15 13:14 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox