memory parameter is not consistent with xen configuration files

Bug #1285052 reported by Jeroen van der Ham
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xen-tools (Ubuntu)
New
Undecided
Unassigned

Bug Description

I’m trying to use xen-create-image to create an installed Xen machine. If I do the following:

# sudo xen-create-image --hostname=foobar --memory=2048 --swap=1024M --size=10G --lvm=VolumeGroupXen --dist=wheezy --fs=ext3 --mirror=http://ftp.nl.debian.org/debian --genpass=1 --vcpus=2 --dhcp
ERROR: 'memory' argument takes a suffixed integer.

This does not work, because the memory argument is incorrect. So I adapt it:

# sudo xen-create-image --hostname=foobar --memory=2048M --swap=1024M --size=10G --lvm=VolumeGroupXen --dist=wheezy --fs=ext3 --mirror=http://ftp.nl.debian.org/debian --genpass=1 --vcpus=2 --dhcp

This installs the machine successfully. If I then continue:

# sudo xl create /etc/xen/foobar.cfg
Parsing config from /etc/xen/foobar.cfg
/etc/xen/foobar.cfg:13: warning: parameter `memory' is not a valid number

This means I have to edit the configuration file and remove the “M” from the memory number.
If however, I use "--memory=2048Mb" then xen-create-image accepts the parameter and correctly removes the suffix from the parameter before putting it in the configuration file.

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: xen-tools 4.3.1-1
ProcVersionSignature: Ubuntu 3.8.0-35.50-generic 3.8.13.13
Uname: Linux 3.8.0-35-generic i686
ApportVersion: 2.9.2-0ubuntu8.5
Architecture: i386
Date: Wed Feb 26 10:03:28 2014
MarkForUpload: True
PackageArchitecture: all
SourcePackage: xen-tools
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jeroen van der Ham (y-ubuntu-b) wrote :
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.