Filesystems output from running "vmbuilder xen ubuntu..." are named confusingly
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:
'tap:aio:
]
...
I'm not sure if this is the best place for this, if not, apologies, can someone point me where to go.
Related branches
- Serge Hallyn: Approve
-
Diff: 64 lines (+15/-12)4 files modifiedVMBuilder/contrib/cli.py (+5/-2)
examples/ec2-amd64-part-file.txt (+1/-1)
examples/ec2-i386-part-file.txt (+2/-2)
vmbuilder.1 (+7/-7)
Changed in vmbuilder: | |
status: | New → Fix Committed |
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.