libvirt-bin broken for lxc in precise

Bug #903878 reported by Scott Moser
This bug report is a duplicate of:  Bug #903897: -virtual kernel missing modules. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libvirt (Ubuntu)
Invalid
Undecided
Unassigned
linux (Ubuntu)
Invalid
High
Unassigned

Bug Description

The following works fine on oneiric, but fails in precise with an error like:

  error: Failed to start domain cirros
  error: internal error Child process (ip link add veth0 type veth peer name veth1) status unexpected: exit status 2

=== Setup ===
# install libvirt-bin
sudo apt-get install cgroup-lite --assume-yes
sudo apt-get install libvirt-bin --assume-yes

# add self to libvirtd
groups | grep -q libvirtd || sudo adduser $USER libvirtd

# exit and log back in to get correct groups to take
exit

# get an lxc cirros image
wget http://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-i386-lxc.tar.gz
wget "http://smoser.brickies.net/git/?p=tildabin.git;a=blob_plain;f=lxc-libvirt-root;hb=HEAD" -O lxc-libvirt-root
chmod 755 lxc-libvirt-root

d=cirros
mkdir $d
sudo tar -C $d -Sxvzf - < cirros-0.3.0-i386-lxc.tar.gz

echo "IS_NOCLOUD=1" | sudo tee -a $d/var/lib/cloud/config.sh

./lxc-libvirt-root $d

# this should work, you should see cirros boot to an ascii art
# hit 'ctrl-]' to escape the console

virsh -c lxc:// destroy cirros

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: libvirt-bin 0.9.7-2ubuntu7
ProcVersionSignature: User Name 3.2.0-4.10-virtual 3.2.0-rc5
Uname: Linux 3.2.0-4-virtual x86_64
ApportVersion: 1.90-0ubuntu1
Architecture: amd64
Date: Tue Dec 13 19:06:22 2011
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: libvirt
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Scott Moser (smoser) wrote :
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

This is not a bug in libvirt-lxc - you do not have the veth kernel module, either built in or available as module.

Changed in libvirt (Ubuntu):
status: New → Invalid
Scott Moser (smoser)
tags: added: cloud-images ec2-images
Changed in linux (Ubuntu):
importance: Undecided → High
status: New → Confirmed
summary: - libvirt lxc broken on precise
+ -virtual kernel missing veth module
Revision history for this message
Scott Moser (smoser) wrote : Re: -virtual kernel missing veth module

killing the task on linux for this bug. I just opened bug 903897.

Changed in linux (Ubuntu):
status: Confirmed → Invalid
Scott Moser (smoser)
summary: - -virtual kernel missing veth module
+ libvirt-bin broken for lxc in precise
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.