Giter VIP home page Giter VIP logo

Comments (10)

simon3z avatar simon3z commented on August 27, 2024 36

You can try to define the pool with:

# virsh pool-define /dev/stdin <<EOF
<pool type='dir'>
  <name>default</name>
  <target>
    <path>/var/lib/libvirt/images</path>
  </target>
</pool>
EOF

virsh pool-start default
virsh pool-autostart default

from virt-deploy.

jscotka avatar jscotka commented on August 27, 2024 1

Hi,
I've met similar issue. I have minimal installation and I've installed virt-deploy and it seems that "default" pool is not defined.
It is caused also by missing dependency, what is not directly needed but this dependency create this pool.
it is package "virt-manager"
after installation of that package and reboot machine, pool is aviable.

So I'm not sure what is better solution, install dependendend virt-manager or create default pool + default network in own setup as workaround.
From this point of view I cannot decide what is better.
it is connected with another issue:
#10

So my point of view is, that it would be nice, to not use default pool and default network but be able to config own pool for disc and net.
Regards
Honza

from virt-deploy.

simon3z avatar simon3z commented on August 27, 2024

@screeley44 what version are you using? (virt-deploy --version)

Latest version on copr is 0.1.6.

Can you check that you have the default pool defined in libvirt:

# virsh pool-list
 Name                 State      Autostart 
-------------------------------------------
 default              active     yes     

Thanks

from virt-deploy.

screeley44 avatar screeley44 commented on August 27, 2024

that worked!! Thanks!!

Name State Autostart

default active yes

from virt-deploy.

simon3z avatar simon3z commented on August 27, 2024

Marking this as enhancement/help-wanted because adding the default storage pool when missing will improve user experience.

from virt-deploy.

jscotka avatar jscotka commented on August 27, 2024

My mentioned solution should also solve another issue:
I'm running virt-deploy under normal user ( not root) and I've added policy to
/etc/polkit-1/localauthority/50-local.d/50-org.example-libvirt-remote-access.pkla
to allow some group work with virsh qemu:///system
All virsh qemu:///system comands works then well, but qemu-img command does not have access to /var/lib/libvirt/images (default pool location), so in case virt-deploy under normal user create this pool in some other dir where user/group has access it will be better. (/var/lib/libvirt/images/_fedora-21-x86_64.qcow2: qemu-img exited with error status 1.)

from virt-deploy.

jscotka avatar jscotka commented on August 27, 2024

Hi,
otherwise I found, that this default pool is created after command virt-manager is called (probably virt-manager do some init of "default" pool)
installation of virt-manager is not enouht
Honza

from virt-deploy.

rrasouli avatar rrasouli commented on August 27, 2024

error: Failed to define pool default
error: operation failed: Storage source conflict with pool: 'images'
SOLVED:
virsh pool-list

Name State Autostart

images active yes

$ virsh pool-destroy images
Pool images destroyed

$ virsh pool-undefine images
Pool images has been undefined

Then restart the deployment

from virt-deploy.

huataihuang avatar huataihuang commented on August 27, 2024

a reference to vagrant-libvirt README

storage_pool_name - Libvirt storage pool name, where box image and instance snapshots will be stored.

My Solution

Example: install boxe centos/7

  • init Vagrant
vagrant init centos/7
  • edit Vagrantfile config, in provider secition add config like follow:
Vagrant.configure("2") do |config|
  ...
  config.vm.provider :libvirt do |libvirt|
    libvirt.storage_pool_name = "images"
  end
  ...
end
  • then, start install
vagrant up --provider libvirt
  • (Option) if you like, you can add follow environment config to /etc/profile to make libvirt as default provider, then you not need --provider libvirt as vagrant parameter.
export VAGRANT_DEFAULT_PROVIDER=libvirt

from virt-deploy.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.