allow for vmbuilder to change VM name and directory with the --hostname option

Bug #316538 reported by Jule Slootbeek
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
vm-builder (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

user@host:~/vm$ apt-cache policy
Display all 35203 possibilities? (y or n)
user@host:~/vm$ apt-cache policy ubuntu-vm-builder
ubuntu-vm-builder:
  Installed: (none)
  Candidate: 0.9-0ubuntu5
  Version table:
     0.9-0ubuntu5 0
        500 http://us.archive.ubuntu.com jaunty/universe Packages

Creating multiple virtual machines for the same hypervisor and OS is not allowed.
When creating a VM with "vmbuilder kvm ubuntu [options]" the VM will be placed in ubuntu-kvm directory. When a second VM is created with the same options, the following error is displayed

user@host:~$ sudo vmbuilder kvm ubuntu
2009-01-12 16:16:02,746 INFO Cleaning up
ubuntu-kvm already exists

the same error is thrown when the --hostname is provided

user@host:~$ sudo vmbuilder kvm ubuntu --hostname test
2009-01-12 16:16:02,746 INFO Cleaning up
ubuntu-kvm already exists

the only way to create a new VM is to run the vmbuilder command from a separate directory.
"vmbuilder kvm ubuntu --hostname test" should create the VM in directory "test-kvm" rather than checking for "ubuntu-kvm"

"vmbuilder kvm ubuntu --help" also mentions that the --hostname option will use the provided name as the VM name.

-hostname=HOSTNAME
                        Set NAME as the hostname of the guest. Default:
                        ubuntu. Also uses this name as the VM name.

Unless this is fixed in a developer trunk, I will be able to provide a patch in the near future.

Revision history for this message
Jarl (jarl-dk) wrote :

If you want to create several VMs from same working dir, you can use the --dest option, this allows you to specify target dir, however I agree that if not specifying --dest, vmbuilder should use the value of --hostname (if that is default), but this is more a wish than a bug.

Jarl

Revision history for this message
Chuck Short (zulcss) wrote :

Thanks for the bug report. I think this will be considered for the future.

Regards
chuck

Changed in vm-builder (Ubuntu):
assignee: nobody → Chuck Short (zulcss)
importance: Undecided → Wishlist
status: New → Triaged
Chuck Short (zulcss)
Changed in vm-builder (Ubuntu):
assignee: Chuck Short (zulcss) → nobody
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.