[Bug 1091579] [NEW] Networking when starting kvm in commandline

Serge Hallyn 1091579 at bugs.launchpad.net
Wed Dec 19 16:47:13 UTC 2012


Quoting Daniel Eiteneuer (nuesel at gruenbaer.net):

Sorry, a few more clarifications:

> Public bug reported:
> 
> Hello,
> I started a virtual machine on the command line in Ubuntu 12.10 64bit via:
> sudo qemu-system-x86_64 -m 2048 -enable-kvm -cpu core2duo -usb -device usb-tablet,id=input0 -vga std -vnc 0.0.0.0:10 -net nic -net tap -drive file=/vmachine.qcow2
> 
> Instead of starting the machine, I got an error:
> /etc/kvm/kvm-ifup: could not launch network script
> qemu-system-x86_64: -net tap: Device 'tap' could not be initialized

Right, as I've mentioned these are actually in /usr/bin/qemu-ifup and
/usr/bin/qemu-ifdown.  This is the bug I believe must be fixed.  But
they can be used as I showed before.

> I created a bridge as described in
> https://help.ubuntu.com/community/KVM/Networking
> Thus I installed libcap2-bin and bridge-utils and I changed my /etc/network/interfaces to
> 
> auto lo
> iface lo inet loopback
> auto eth0
> iface eth0 inet manual
> auto br0
> iface br0 inet static
>         address 192.168.115.15
>         network 192.168.115.0
>         netmask 255.255.255.0
>         broadcast 192.168.115.255
>         gateway 192.168.115.254
>         dns-nameservers 192.168.115.10
>         dns-search sirah.int
>         bridge_ports eth0
>         bridge_stp off
>         bridge_fd 0
>         bridge_maxwait 0

Note that when you do this, you are NO LONGER using the libvirt bridge as
you mentioned in another comment.

> I executed
> sudo setcap cap_net_admin=ei /usr/bin/qemu-system-x86_64
> and edited /etc/security/capability.conf.

This is fine, and documented, and will not be done by default by the
package.

So if I understand correctly fixing the default script locations will
be sufficient for this bug?

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to kvm in Ubuntu.
https://bugs.launchpad.net/bugs/1091579

Title:
  Networking when starting kvm in commandline

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kvm/+bug/1091579/+subscriptions



More information about the Ubuntu-server-bugs mailing list