Skip to contentSkip to conversation

network source redirection after kvm start

DISCUSSION Oliver Rath 2 participants 2 messages Mar 11, 2009 – Mar 15, 2009 KVM

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 46 lines · Oliver Rath

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]>                                                                                      
Quoted 7 lines

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?

Signature · 1 line
error compiling committee.c: too many arguments to function