Filesystems output from running "vmbuilder xen ubuntu..." are named confusingly

Bug #688213 reported by Kieran Evans
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
VMBuilder
Fix Committed
Undecided
Unassigned

Bug Description

When creating a xen based ubuntu VM using vmbuilder, the filesystems copied to the ubuntu-xen folder are named in a confusing and not very helpful way, namely, "tmp" followed by a random string. This isn't too helpful if you're trying to use vmbuilder programmatically, e.g. from a script.

I've attached a simple patch that allows you to specify a fourth option in a part file added through the --part switch which specifies a name of the output file.

E.G.
Using this part file:

$ cat part
root 1024 a1 root
/mnt 1 b mnt

will result in the following output:

$ ls -Alh ubuntu-xen
total 498M
-rw-r--r-- 1 keyz keyz 1.0M 2010-12-09 19:42 mnt
-rw-r--r-- 1 keyz keyz 1.0G 2010-12-09 19:42 root
-rw-r--r-- 1 keyz keyz 420 2010-12-09 19:42 xen.conf

and from xen.conf:

$ cat ubuntu-xen/xen.conf
...
disk = [
'tap:aio:/home/keyz/vm/ubuntu-xen/root,xvda1,w',
'tap:aio:/home/keyz/vm/ubuntu-xen/mnt,xvda2,w'
]
...

I'm not sure if this is the best place for this, if not, apologies, can someone point me where to go.

Related branches

Revision history for this message
Kieran Evans (keyz182) wrote :
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks very much for taking the time to report this bug and post a mergeable solution.

I've merged the branch and updated the packaging branch. This fix should be available soon in version 0.12.4+bzr463-0ubuntu1.

Changed in vmbuilder:
status: New → Fix Committed
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.