sr/sbin/tunctl -b -u $(whoami);
sudo /sbin/ifconfig 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 wor
>>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 wrote:
> Libvirt is a new thing to me. Do You suggest the bin package or the
> GUI for la
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
> pe
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
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
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 -
Arno Schuring 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.
Personally, I'd rather
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
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
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
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/ro
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 [..]
>$
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
>>
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: cou
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
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 tap,ifn
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 ma
On Sun, 06 Nov 2011 16:46:46 -0600, Christofer C. Bell wrote:
> On Sun, Nov 6, 2011 at 2:32 PM, Walter Hurry
> 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:
>>>
>>
On Sun, Nov 6, 2011 at 2:32 PM, Walter Hurry 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 or direc
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 -
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 tap,ifname=tap0,scri
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 no
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
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,
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
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 19
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)
http
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
to Debian.
This is really an excellent post. I have 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
29 matches
Mail list logo