Remember directories

Bug #251076 reported by Richard Laager on 2008-07-23
4
Affects Status Importance Assigned to Milestone
virt-manager
Won't Fix
Low
virt-manager (Ubuntu)
Wishlist
Unassigned

Bug Description

For the ISO and Simple Disk paths, I'd like to see virt-manager remember previous entries. It would chop off the filename component to get a directory component. If the last element of that were the name of the virtual machine (being created), then that component would be replaced by some marker (%s or whatever) that could be replaced later. Then that directory would be saved. In the future, it would be used as the default in the appropriate field. The ISO and Simple Disk directories should be tracked separately.

For example, if I was created a virtual machine named "foo" and changed my disk path to /srv/virtualmachines/foo/foo.img, it would save /srv/virtualmachines/%s as the directory for next time. Then when I went to create bar, it would add bar.img (as it does now) to that saved path, replacing %s with the host name, yielding /srv/virtualmachines/bar/bar.img.

Richard Laager (rlaager) wrote :

Alternatively, a default directory structure would be fine. If you're creating a number of VMs, it's nice to have some consistency.

Dustin Kirkland  (kirkland) wrote :

Thanks for the bug report.

Agreed, most annoying!

:-Dustin

Changed in virt-manager:
importance: Undecided → Wishlist
status: New → Confirmed

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.4) Gecko/2008111318 Ubuntu/8.10 (intrepid) Firefox/3.0.4

For the ISO and Simple Disk paths, I'd like to see virt-manager remember previous entries. It would chop off the filename component to get a directory component. If the last element of that were the name of the virtual machine (being created), then that component would be replaced by some marker (%s or whatever) that could be replaced later. Then that directory would be saved. In the future, it would be used as the default in the appropriate field. The ISO and Simple Disk directories should be tracked separately.

For example, if I was created a virtual machine named "foo" and changed my disk path to /srv/virtualmachines/foo/foo.img, it would save /srv/virtualmachines/%s as the directory for next time. Then when I went to create bar, it would add bar.img (as it does now) to that saved path, replacing %s with the host name, yielding /srv/virtualmachines/bar/bar.img.

Reproducible: Always

Dan Bass (dbass) on 2008-12-11
Changed in virt-manager:
importance: Undecided → Unknown
status: New → Unknown
Changed in virt-manager:
status: Unknown → Confirmed
Marc Deslauriers (mdeslaur) wrote :

In recent virt-manager versions, such as the one currently in Lucid, you can now add storage pools, which solves the issue.

Changed in virt-manager (Ubuntu):
status: Confirmed → Fix Released

Actually I don't think we will implement this in virt-manager, I don't think it's common that people store disk images in multiple places so it really isn't something worth spending dev resources on facilitating.

If people want to easily use a non default storage path they should use some mechanism to tell virt-manager their preferred storage location (there are other bugs tracking that).

Changed in virt-manager:
importance: Unknown → Low
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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