allow for vmbuilder to change VM name and directory with the --hostname option
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://
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
Unless this is fixed in a developer trunk, I will be able to provide a patch in the near future.
Changed in vm-builder (Ubuntu): | |
assignee: | Chuck Short (zulcss) → nobody |
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