Re: KVM networking.
- From: Arno Schuring <aelschuring@xxxxxxxxxxx>
- Date: Sat, 12 Nov 2011 14:58:18 +0100
Sthu Deus (sthu.deus@xxxxxxxxx on 2011-11-11 23:41 +0700):
I have included more options to network script:
/usr/bin/kvm -localtime -m 256 -no-reboot -boot c -hda da
-net nic -net tap,ifname=$(sudo /usr/sbin/tunctl -b -u $(whoami);
sudo /sbin/ifconfig tap0 192.168.1.1 up; sudo /sbin/route add -host
192.168.1.1 dev tap0),script=no,downscript=no
You're adding a host route, whereas you need a network route. Try:
$ sudo ip route add 192.168.1.0/24 via 192.168.1.1
Or, with the older tools (a bit rusty):
$ sudo route add 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1 dev
tap0
I think this setup might need additional configuration on the outside,
because you need to add the same subnet route on your Internet
modem/router. I don't think qemu gives you NAT for free...
Regards,
Arno
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/20111112145818.63559a3a@xxxxxxxxxxxxxxxxxxxxxxx
- Follow-Ups:
- Re: KVM networking.
- From: Sthu Deus
- Re: KVM networking.
- From: Chris Davies
- Re: KVM networking.
- From: Sthu Deus
- Re: KVM networking.
- From: Sthu Deus
- Re: KVM networking.
- References:
- KVM networking.
- From: Sthu Deus
- Re: KVM networking.
- From: Arno Schuring
- Re: KVM networking.
- From: Sthu Deus
- Re: KVM networking.
- From: Arno Schuring
- Re: KVM networking.
- From: Sthu Deus
- KVM networking.
- Prev by Date: Re: Is GNOME 2 panel still in unstable?
- Next by Date: Re: Adobe flash is dead
- Previous by thread: Re: KVM networking.
- Next by thread: Re: KVM networking.
- Index(es):
Relevant Pages
|