Re: KVM networking.

2011-11-17 Thread Chris Davies
Personally, I'd rather run up a bridge and use the libvirt tools to run my VM for me (avoids giving root rights to a user, but allows the guest to run with the necessary root network privs). Sthu Deus sthu.d...@gmail.com wrote: Libvirt is a new thing to me. Do You suggest the bin package or the

Re: KVM networking.

2011-11-17 Thread Sthu Deus
tap0 192.168.1.2 up; sudo /sbin/route add -host 192.168.1.10 dev tap0),script=no,downscript=no; /usr/sbin/tunctl -d tap0 Though they probably need to correct the KVM networking page. :) - Some many additional movements are necessary to make it working under nirmal user. :) Now, Internet access

Re: KVM networking.

2011-11-16 Thread Arno Schuring
Sthu Deus (sthu.d...@gmail.com on 2011-11-15 20:12 +0700): $ /usr/bin/kvm -localtime -m 256 -no-reboot -boot c -hda da -net nic,macaddr=$(printf 'DE:AD:BE:EF:%02X:%02X\n' $((RANDOM%256)) $((RANDOM%256))) -net tap kvm: -net tap: could not configure /dev/net/tun (tap%d): Operation not

Re: KVM networking.

2011-11-15 Thread Sthu Deus
Thank You for Your time and answer, Arno: Just remember to leave eth0 unconfigured... Then how do host's app.s will get to Internet? Through the bridge. I can't tell what's missing until you show us your bridge configuration, if you have any. I'll show my config for comparison: OK. Now

Re: KVM networking.

2011-11-15 Thread Sthu Deus
Thank You for Your time and answer, Chris: Personally, I'd rather run up a bridge and use the libvirt tools to run my VM for me (avoids giving root rights to a user, but allows the guest to run with the necessary root network privs). Libvirt is a new thing to me. Do You suggest the bin package

Re: KVM networking.

2011-11-14 Thread Chris Davies
Arno Schuring aelschur...@hotmail.com wrote: I don't think qemu gives you NAT for free... If you use -net user you get a NAT-based solution (you then need to punch inbound holes using the hostfwd parameter, as necessary). This solution also requires no root priviledge, so it's an easy win.

Re: KVM networking.

2011-11-14 Thread Sthu Deus
Thank You for Your time and answer, Arno: 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... I've got such a problem w/ NATing: /sbin/iptables -t nat -A

Re: KVM networking.

2011-11-12 Thread Arno Schuring
Sthu Deus (sthu.d...@gmail.com 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

Re: KVM networking.

2011-11-12 Thread Arno Schuring
Sthu Deus (sthu.d...@gmail.com on 2011-11-11 23:23 +0700): Sthu Deus (sthu.d...@gmail.com on 2011-11-08 14:44 +0700): 1. The bridges take the Internet connections for itself - thus leaving the host app.s w/o Internet access, probably routing needed here - but they do not make any

Re: KVM networking.

2011-11-12 Thread Sthu Deus
Thank You for Your time and answer, Arno: /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

Re: KVM networking.

2011-11-12 Thread Sthu Deus
Thank You for Your time and answer, Arno: 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 Ah I have found my mistake - wrong broadcast was set in the guest. Now tap interface and under user - works! Thank You, again. -- To

Re: KVM networking.

2011-11-11 Thread Sthu Deus
Thank You for Your time and answer, Arno: Sthu Deus (sthu.d...@gmail.com on 2011-11-08 14:44 +0700): /usr/bin/kvm -localtime -m 256 -no-reboot -cdrom ./debian-6.0.2.1-amd64-netinst/debian-6.0.2.1-amd64-netinst.iso -boot d -hda ./da -net nic -net tap,ifname=tap0,script=no kvm: -net

Re: KVM networking.

2011-11-11 Thread Sthu Deus
Thank You for Your time and answer, Arno: 3. W/ tap - You have seen already the problem - some unknown to me permission problem - do You know why is it so? I can make a guess: $ ls -l /dev/net/tun crw-rw 1 root kvm 10, 200 Nov 9 21:36 tun $ groups aschuring users kvm [..] $

Re: KVM networking.

2011-11-09 Thread Arno Schuring
Sthu Deus (sthu.d...@gmail.com on 2011-11-08 14:44 +0700): /usr/bin/kvm -localtime -m 256 -no-reboot -cdrom ./debian-6.0.2.1-amd64-netinst/debian-6.0.2.1-amd64-netinst.iso -boot d -hda ./da -net nic -net tap,ifname=tap0,script=no kvm: -net tap,ifname=tap0,script=no: could not

Re: KVM networking.

2011-11-07 Thread Sthu Deus
Christofer: I try to run KVM network without under normal user with the following result: and So, what's wrong with my setup? This, admittedly, doesn't make much sense, either, but without and with are the accepted expansions of w/o and w/. It is not a directory name. Oh, I made here a

Re: KVM networking.

2011-11-07 Thread Arno Schuring
Sthu Deus (sthu.d...@gmail.com on 2011-11-07 02:18 +0700): I try to run KVM network w/o under normal user w/ the following result: /usr/bin/kvm -localtime -m 256 -no-reboot -cdrom ./debian-6.0.2.1-amd64-netinst/debian-6.0.2.1-amd64-netinst.iso -boot d -hda ./da -net nic -net

Re: KVM networking.

2011-11-07 Thread Sthu Deus
Thank You for Your time and answer, Arno: /usr/bin/kvm -localtime -m 256 -no-reboot -cdrom ./debian-6.0.2.1-amd64-netinst/debian-6.0.2.1-amd64-netinst.iso -boot d -hda ./da -net nic -net tap,ifname=tap0,script=no kvm: -net tap,ifname=tap0,script=no: could not configure /dev/net/tun (tap0):

KVM networking.

2011-11-06 Thread Sthu Deus
Good time of the day. I try to run KVM network w/o under normal user w/ the following result: /usr/bin/kvm -localtime -m 256 -no-reboot -cdrom ./debian-6.0.2.1-amd64-netinst/debian-6.0.2.1-amd64-netinst.iso -boot d -hda ./da -net nic -net tap,ifname=tap0,script=no kvm: -net

Re: KVM networking.

2011-11-06 Thread Walter Hurry
On Mon, 07 Nov 2011 02:18:08 +0700, Sthu Deus wrote: Good time of the day. I try to run KVM network w/o under normal user w/ the following result: /usr/bin/kvm -localtime -m 256 -no-reboot -cdrom ./debian-6.0.2.1-amd64-netinst/debian-6.0.2.1-amd64-netinst.iso -boot d -hda ./da -net nic

Re: KVM networking.

2011-11-06 Thread Christofer C. Bell
On Sun, Nov 6, 2011 at 2:32 PM, Walter Hurry walterhu...@lavabit.com wrote: On Mon, 07 Nov 2011 02:18:08 +0700, Sthu Deus wrote: Good time of the day. I try to run KVM network w/o under normal user w/ the following result: So, what's wrong w/ my setup? $ cd w bash: cd: w: No such file

Re: KVM networking.

2011-11-06 Thread Walter Hurry
On Sun, 06 Nov 2011 16:46:46 -0600, Christofer C. Bell wrote: On Sun, Nov 6, 2011 at 2:32 PM, Walter Hurry walterhu...@lavabit.com wrote: On Mon, 07 Nov 2011 02:18:08 +0700, Sthu Deus wrote: Good time of the day. I try to run KVM network w/o under normal user w/ the following result:

Re: KVM-networking (under normal user).

2010-12-08 Thread Pascal Hambourg
Sthu Deus a écrit : Now, I have a lot of devices when bringing up br0 interface: eth0, br0, tap0. - I believe only one I need to make my KVM using the network, how I can stop auto bring them too besides br0 only, or eth0 only? Sorry but I don't understand what you mean and want to achieve. I

Re: KVM-networking (under normal user).

2010-12-08 Thread Sthu Deus
Thank You for Your time and answer, Pascal: Sorry but I don't understand what you mean and want to achieve. I guess that eth0 and tap0 are the interfaces which are supposed to be bridged in br0, and the virtual machine is supposed to use tap0 ? Well. I'll try to explain my best - as I do not

KVM-networking (under normal user).

2010-12-07 Thread Sthu Deus
Good day. Continuing these threads: http://lists.debian.org/debian-user/2009/07/msg00164.html http://lists.debian.org/debian-user/2010/01/msg00348.html Having this in /etc/network/interfaces: iface br0 inet static address 192.168.0.125 netmask 255.255.255.0 network

Re: KVM-networking (under normal user).

2010-12-07 Thread Pascal Hambourg
Hello, Sthu Deus a écrit : Having this in /etc/network/interfaces: iface br0 inet static address 192.168.0.125 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 pre-up /usr/sbin/tunctl -u vmachine -t tap0 pre-up ifconfig

Re: KVM-networking (under normal user).

2010-12-07 Thread Sthu Deus
Thank You for Your time and answer, Pascal: You need to add a 'bridge_ports' line to indicate that the interface is a bridge. Otherwise the system does not create it. See man bridge-utils-interfaces. It did the trick! Now, I have a lot of devices when bringing up br0 interface: eth0, br0,

Re: KVM networking

2010-01-08 Thread T o n g
On Thu, 07 Jan 2010 16:13:20 +, Jon Dowland wrote: I want all users in the kvm group can start kvm and have network access. Does this require different setting than your previous answer? I believe so, see below. . . Thanks a lot! -- Tong (remove underscore(s) to reply)

Re: KVM networking

2010-01-07 Thread Jon Dowland
On Tue, Jan 05, 2010 at 11:30:46PM +, T o n g wrote: I want all users in the kvm group can start kvm and have network access. Does this require different setting than your previous answer? I believe so, see below. If I config my box with static address before, say: snip what should my

Re: KVM networking

2010-01-05 Thread T o n g
questions on KVM networking for quite a while. Relating to this, my questions are: I want all users in the kvm group can start kvm and have network access. Does this require different setting than your previous answer? I have a public bridge setup on Debian for KVM VMs. I have network access