[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



Thank You for Your time and answer, Gilles:

> switch=$(ip route ls | awk '/^default / { for(i=0;i<NF;i++) { if ($(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
start?

As mine

ip route ls

returns empty string. Also, have You compiled Yourself kvm-modules from
kvm-source in order to create the networking?


Reply to: