Re: kvm -net nic -net tap makes no network.

2009-07-03 Thread Sthu Deus
Oh! Thank You, Gilles: > I forgot to show my network configuration, especialy my bridge I did not see the answer. Now seems it works. I can not test it now for my modem stops working when I bring up the br0 - I guess I have to tune up the route table. I will write latter if something will go wron

Re: kvm -net nic -net tap makes no network.

2009-07-03 Thread Sthu Deus
Thank You for Your time and answer, Gilles: > Here I got : > $ ip route ls > 10.0.0.0/24 dev br0 proto kernel scope link src 10.0.0.1 > default via 10.0.0.4 dev br0 > > Do you really have a network interace ? A default gateway ? No. And this makes me troubles. Now, using Your values of the $1

Re: kvm -net nic -net tap makes no network.

2009-07-02 Thread Gilles Mocellin
On Thu, Jul 02, 2009 at 09:40:21PM +0200, Gilles Mocellin wrote: > On Thu, Jul 02, 2009 at 07:31:57PM +0700, Sthu Deus wrote: > > Thank You for Your time and answer, Gilles: > > > > > switch=$(ip route ls | awk '/^default / { for(i=0;i > > == "dev") print $(i+1) }}'| head -n 1) > > > /sbin/ifconfi

Re: kvm -net nic -net tap makes no network.

2009-07-02 Thread Gilles Mocellin
On Thu, Jul 02, 2009 at 07:31:57PM +0700, Sthu Deus wrote: > Thank You for Your time and answer, Gilles: > > > switch=$(ip route ls | awk '/^default / { for(i=0;i > == "dev") print $(i+1) }}'| head -n 1) > > /sbin/ifconfig $1 0.0.0.0 up > > /usr/sbin/brctl addif ${switch} $1 > > exit 0 > > Could

Re: kvm -net nic -net tap makes no network.

2009-07-02 Thread Sthu Deus
Thank You for Your time and answer, Gilles: > switch=$(ip route ls | awk '/^default / { for(i=0;i == "dev") print $(i+1) }}'| head -n 1) > /sbin/ifconfig $1 0.0.0.0 up > /usr/sbin/brctl addif ${switch} $1 > exit 0 Could You please echo the variables: $switch and $1 at the moment of a kvm run star

Re: kvm -net nic -net tap makes no network.

2009-06-29 Thread Gilles Mocellin
On Mon, Jun 29, 2009 at 02:25:52PM +0700, Sthu Deus wrote: [...] > Could You please share Your command line, and the knowledge how You or a > script > bring/s up an interface? When I use it like that, my start command was : # kvm -k fr -localtime -m 384 -usb -net nic,macaddr=52:54:00:12:34:59 -n

Re: kvm -net nic -net tap makes no network.

2009-06-29 Thread Sthu Deus
Thank You for Your time and answer, Boyd: > Looks like kvm is using different network start scripts than qemu (none) and > they are broken or make certain assumptions that aren't true. Check > /etc/kvm for scripts that use brctl and fix them. Seems it has my OS just has no net-interfaces for

Re: kvm -net nic -net tap makes no network.

2009-06-26 Thread Boyd Stephen Smith Jr.
In <4a44e60f.05ae660a.7163.a...@mx.google.com>, Sthu Deus wrote: >sudo kvm -localtime -hda hda -m 128 -net nic -net tap > >Incorrect number of arguments for command >Usage: brctl addif add interface to bridge >/etc/kvm/kvm-ifdown: could not launch network script Looks like kvm is using di

kvm -net nic -net tap makes no network.

2009-06-26 Thread Sthu Deus
Good day. I try to use network w/ kvm - just like I did it using qemu: sudo kvm -localtime -hda hda -m 128 -net nic -net tap but it returns me: Incorrect number of arguments for command Usage: brctl addif add interface to bridge /etc/kvm/kvm-ifdown: could not launch network script I have