Public bug reported:

I would expect installing libvirt-bin to make the host ready to run
virtual machines, however it seems the maintainer scripts don't create
the "default" storage pool. Here's a transcript that shows the pool is
not defined on a clean install, and how 3 commands define and start it.
This was run on a fresh Ubuntu Cloud Image precise release 20120424
virtual machine.


[0 tv@dreamer ~]$ ssh ubuntu@192.168.122.221
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-virtual x86_64)

 * Documentation:  https://help.ubuntu.com/

  System information as of Thu Jun 28 17:52:26 UTC 2012

  System load:  0.09             Processes:           66
  Usage of /:   6.6% of 9.85GB   Users logged in:     1
  Memory usage: 9%               IP address for eth0: 192.168.122.221
  Swap usage:   0%

  Graph this data and manage this system at
https://landscape.canonical.com/

0 packages can be updated.
0 updates are security updates.

Get cloud support with Ubuntu Advantage Cloud Guest
  http://www.ubuntu.com/business/services/cloud
Last login: Thu Jun 28 17:51:32 2012
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

ubuntu@tv-bug:~$ dpkg -l libvirt
No packages found matching libvirt.
ubuntu@tv-bug:~$ sudo apt-get install libvirt-bin
sudo: unable to resolve host tv-bug
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  bridge-utils cgroup-lite dnsmasq-base ebtables gawk libapparmor1 
libavahi-client3 libavahi-common-data libavahi-common3
  libnetfilter-conntrack3 libnuma1 libsigsegv2 libvirt0 libxenstore3.0 
libxml2-utils libyajl1
Suggested packages:
  policykit-1 qemu-kvm qemu radvd lvm2
The following NEW packages will be installed:
  bridge-utils cgroup-lite dnsmasq-base ebtables gawk libapparmor1 
libavahi-client3 libavahi-common-data libavahi-common3
  libnetfilter-conntrack3 libnuma1 libsigsegv2 libvirt-bin libvirt0 
libxenstore3.0 libxml2-utils libyajl1
0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,144 kB of archives.
After this operation, 10.6 MB of additional disk space will be used.
Do you want to continue [Y/n]? 
Get:1 http://archive.ubuntu.com/ubuntu/ precise/main bridge-utils amd64 
1.5-2ubuntu6 [31.4 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ precise/main libsigsegv2 amd64 
2.9-4ubuntu2 [14.6 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ precise/main gawk amd64 
1:3.1.8+dfsg-0.1ubuntu1 [465 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ precise/main libavahi-common-data amd64 
0.6.30-5ubuntu2 [22.2 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ precise/main libavahi-common3 amd64 
0.6.30-5ubuntu2 [25.5 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ precise/main libavahi-client3 amd64 
0.6.30-5ubuntu2 [30.3 kB]
Get:7 http://archive.ubuntu.com/ubuntu/ precise/main libyajl1 amd64 1.0.12-2 
[17.5 kB]
Get:8 http://archive.ubuntu.com/ubuntu/ precise/main libnetfilter-conntrack3 
amd64 0.9.1-1ubuntu1 [34.4 kB]
Get:9 http://archive.ubuntu.com/ubuntu/ precise/main dnsmasq-base amd64 2.59-4 
[212 kB]
Get:10 http://archive.ubuntu.com/ubuntu/ precise/main ebtables amd64 
2.0.9.2-2ubuntu2 [89.3 kB]
Get:11 http://archive.ubuntu.com/ubuntu/ precise/main libapparmor1 amd64 
2.7.102-0ubuntu3 [38.1 kB]
Get:12 http://archive.ubuntu.com/ubuntu/ precise/main libnuma1 amd64 
2.0.8~rc3-1 [23.1 kB]
Get:13 http://archive.ubuntu.com/ubuntu/ precise/main libxenstore3.0 amd64 
4.1.2-2ubuntu2 [18.4 kB]
Get:14 http://archive.ubuntu.com/ubuntu/ precise/main libvirt0 amd64 
0.9.8-2ubuntu17 [871 kB]
Get:15 http://archive.ubuntu.com/ubuntu/ precise/main cgroup-lite all 1.1 
[3,490 B]
Get:16 http://archive.ubuntu.com/ubuntu/ precise/main libvirt-bin amd64 
0.9.8-2ubuntu17 [1,207 kB]
Get:17 http://archive.ubuntu.com/ubuntu/ precise/main libxml2-utils amd64 
2.7.8.dfsg-5.1ubuntu4 [39.9 kB]                          
Fetched 3,144 kB in 6s (492 kB/s)                                               
                                                   
Selecting previously unselected package bridge-utils.
(Reading database ... 25367 files and directories currently installed.)
Unpacking bridge-utils (from .../bridge-utils_1.5-2ubuntu6_amd64.deb) ...
Selecting previously unselected package libsigsegv2.
Unpacking libsigsegv2 (from .../libsigsegv2_2.9-4ubuntu2_amd64.deb) ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-23-virtual
Processing triggers for man-db ...
Setting up libsigsegv2 (2.9-4ubuntu2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Selecting previously unselected package gawk.
(Reading database ... 25400 files and directories currently installed.)
Unpacking gawk (from .../gawk_1%3a3.1.8+dfsg-0.1ubuntu1_amd64.deb) ...
Selecting previously unselected package libavahi-common-data.
Unpacking libavahi-common-data (from 
.../libavahi-common-data_0.6.30-5ubuntu2_amd64.deb) ...
Selecting previously unselected package libavahi-common3.
Unpacking libavahi-common3 (from 
.../libavahi-common3_0.6.30-5ubuntu2_amd64.deb) ...
Selecting previously unselected package libavahi-client3.
Unpacking libavahi-client3 (from 
.../libavahi-client3_0.6.30-5ubuntu2_amd64.deb) ...
Selecting previously unselected package libyajl1.
Unpacking libyajl1 (from .../libyajl1_1.0.12-2_amd64.deb) ...
Selecting previously unselected package libnetfilter-conntrack3.
Unpacking libnetfilter-conntrack3 (from 
.../libnetfilter-conntrack3_0.9.1-1ubuntu1_amd64.deb) ...
Selecting previously unselected package dnsmasq-base.
Unpacking dnsmasq-base (from .../dnsmasq-base_2.59-4_amd64.deb) ...
Selecting previously unselected package ebtables.
Unpacking ebtables (from .../ebtables_2.0.9.2-2ubuntu2_amd64.deb) ...
Selecting previously unselected package libapparmor1.
Unpacking libapparmor1 (from .../libapparmor1_2.7.102-0ubuntu3_amd64.deb) ...
Selecting previously unselected package libnuma1.
Unpacking libnuma1 (from .../libnuma1_2.0.8~rc3-1_amd64.deb) ...
Selecting previously unselected package libxenstore3.0.
Unpacking libxenstore3.0 (from .../libxenstore3.0_4.1.2-2ubuntu2_amd64.deb) ...
Selecting previously unselected package libvirt0.
Unpacking libvirt0 (from .../libvirt0_0.9.8-2ubuntu17_amd64.deb) ...
Selecting previously unselected package cgroup-lite.
Unpacking cgroup-lite (from .../cgroup-lite_1.1_all.deb) ...
Selecting previously unselected package libvirt-bin.
Unpacking libvirt-bin (from .../libvirt-bin_0.9.8-2ubuntu17_amd64.deb) ...
Selecting previously unselected package libxml2-utils.
Unpacking libxml2-utils (from 
.../libxml2-utils_2.7.8.dfsg-5.1ubuntu4_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up bridge-utils (1.5-2ubuntu6) ...
Setting up gawk (1:3.1.8+dfsg-0.1ubuntu1) ...
Setting up libavahi-common-data (0.6.30-5ubuntu2) ...
Setting up libavahi-common3 (0.6.30-5ubuntu2) ...
Setting up libavahi-client3 (0.6.30-5ubuntu2) ...
Setting up libyajl1 (1.0.12-2) ...
Setting up libnetfilter-conntrack3 (0.9.1-1ubuntu1) ...
Setting up dnsmasq-base (2.59-4) ...
Setting up ebtables (2.0.9.2-2ubuntu2) ...
Setting up libapparmor1 (2.7.102-0ubuntu3) ...
Setting up libnuma1 (2.0.8~rc3-1) ...
Setting up libxenstore3.0 (4.1.2-2ubuntu2) ...
Setting up libvirt0 (0.9.8-2ubuntu17) ...
Setting up cgroup-lite (1.1) ...
cgroup-lite start/running
Setting up libvirt-bin (0.9.8-2ubuntu17) ...
Adding group `libvirtd' (GID 112) ...
Done.
libvirt-bin start/running, process 4605
Setting up libxml2-utils (2.7.8.dfsg-5.1ubuntu4) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
ubuntu@tv-bug:~$ dpkg -l libvirt-bin
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                        Version                     Description
+++-===========================-===========================-======================================================================
ii  libvirt-bin                 0.9.8-2ubuntu17             programs for the 
libvirt library
ubuntu@tv-bug:~$ # get the group membership
ubuntu@tv-bug:~$ logout
[0 tv@dreamer ~]$ ssh ubuntu@192.168.122.221
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-virtual x86_64)

 * Documentation:  https://help.ubuntu.com/

  System information as of Thu Jun 28 17:53:12 UTC 2012

  System load:  0.35             Processes:           65
  Usage of /:   6.7% of 9.85GB   Users logged in:     1
  Memory usage: 21%              IP address for eth0: 192.168.122.221
  Swap usage:   0%

  Graph this data and manage this system at
https://landscape.canonical.com/

Get cloud support with Ubuntu Advantage Cloud Guest
  http://www.ubuntu.com/business/services/cloud
Last login: Thu Jun 28 17:52:26 2012 from 192.168.122.1
ubuntu@tv-bug:~$ virsh uri
qemu:///system

ubuntu@tv-bug:~$ virsh pool-list --all
Name                 State      Autostart 
-----------------------------------------

ubuntu@tv-bug:~$ virsh pool-define-as --name default dir --target 
/var/lib/libvirt/images
Pool default defined

ubuntu@tv-bug:~$ virsh pool-autostart default
Pool default marked as autostarted

ubuntu@tv-bug:~$ virsh pool-start default
Pool default started

ubuntu@tv-bug:~$ virsh pool-list --all
Name                 State      Autostart 
-----------------------------------------
default              active     yes       

ubuntu@tv-bug:~$ logout
[0 tv@dreamer ~]$

** Affects: libvirt (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1018956

Title:
  libvirt does not set up default storage pool automatically

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to