[Bug 303882] [NEW] python-vm-builder --raw doesn't set size correctly
Tom
tommoyer at gmail.com
Mon Dec 1 06:12:44 UTC 2008
Public bug reported:
Binary package hint: python-vm-builder
When using the --raw option with an LVM volume as the target to create a
VM, the default size is 5G. This isn't a problem if rootsize + swapsize
+ optsize falls within 5GB, but if you exceed the 5GB default size,
vmbuilder throws an exception (shown below). To make this concrete here
is what I am trying to do. I create a logical volume with size 10GB,
and on this I would like to have an 8GB root and 2GB swap partition.
There should be enough space, but I'm being told otherwise. There
should be a way to specify the size of the raw device, or simply ignore
the size when raw is being used. I can work up a patch to add a size
option to the command line if it would help.
vmbuilder kvm ubuntu --debug --verbose -c vmbuilder.cfg --raw /dev/tungsten/tungsten-client0 --hostname tungsten-client0 --rootsize 7168 --swapsize 2048 --mem 3072 --overwrite
Traceback (most recent call last):
File "/usr/bin/vmbuilder", line 29, in <module>
VMBuilder.run()
File "/usr/lib/python2.5/site-packages/VMBuilder/__init__.py", line 66, in run
frontend.run()
File "/usr/lib/python2.5/site-packages/VMBuilder/plugins/cli/__init__.py", line 65, in run
self.set_disk_layout(vm)
File "/usr/lib/python2.5/site-packages/VMBuilder/plugins/cli/__init__.py", line 97, in set_disk_layout
disk.add_part(offset, vm.swapsize, 'swap', 'swap')
File "/usr/lib/python2.5/site-packages/VMBuilder/disk.py", line 163, in add_part
raise Exception('Partition is out of bounds. start=%d, end=%d, disksize=%d' % (begin,end,self.size))
Exception: Partition is out of bounds. start=7168, end=9215, disksize=5120
root at tungsten:~# vmbuilder kvm ubuntu --debug --verbose -c vmbuilder.cfg --raw /dev/tungsten/tungsten-client0 --hostname tungsten-client0 --rootsize 8192 --swapsize 2048 --mem 3072 --overwrite
Traceback (most recent call last):
File "/usr/bin/vmbuilder", line 29, in <module>
VMBuilder.run()
File "/usr/lib/python2.5/site-packages/VMBuilder/__init__.py", line 66, in run
frontend.run()
File "/usr/lib/python2.5/site-packages/VMBuilder/plugins/cli/__init__.py", line 65, in run
self.set_disk_layout(vm)
File "/usr/lib/python2.5/site-packages/VMBuilder/plugins/cli/__init__.py", line 97, in set_disk_layout
disk.add_part(offset, vm.swapsize, 'swap', 'swap')
File "/usr/lib/python2.5/site-packages/VMBuilder/disk.py", line 163, in add_part
raise Exception('Partition is out of bounds. start=%d, end=%d, disksize=%d' % (begin,end,self.size))
Exception: Partition is out of bounds. start=8192, end=10239, disksize=5120
Output of lsb_release -rd:
Description: Ubuntu 8.10
Release: 8.10
Output of apt-cache policy python-vm-builder:
apt-cache policy python-vm-builder
python-vm-builder:
Installed: 0.9-0ubuntu3.1
Candidate: 0.9-0ubuntu3.1
Version table:
*** 0.9-0ubuntu3.1 0
500 http://us.archive.ubuntu.com intrepid-updates/universe Packages
500 http://security.ubuntu.com intrepid-security/universe Packages
100 /var/lib/dpkg/status
0.9-0ubuntu3 0
500 http://us.archive.ubuntu.com intrepid/universe Packages
Expected outcome: VM successfully created on the LVM partition that was previously allocated.
Actual outcome: Exception thrown due to an incorrect assumption about the size of the raw device.
** Affects: vm-builder (Ubuntu)
Importance: Undecided
Status: New
--
python-vm-builder --raw doesn't set size correctly
https://bugs.launchpad.net/bugs/303882
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list