libvirt-bin broken for lxc in precise
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://
wget "http://
chmod 755 lxc-libvirt-root
d=cirros
mkdir $d
sudo tar -C $d -Sxvzf - < cirros-
echo "IS_NOCLOUD=1" | sudo tee -a $d/var/
./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
ProcVersionSign
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)
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 |
summary: |
- -virtual kernel missing veth module + libvirt-bin broken for lxc in precise |
This is not a bug in libvirt-lxc - you do not have the veth kernel module, either built in or available as module.