[Bug 573171] [NEW] vmbuilder sometimes ignores --raw option
Curt Sampson
cjs at cynic.net
Sat May 1 18:55:59 BST 2010
Public bug reported:
Using the following command:
{{{
vmbuilder kvm ubuntu -v --debug \
--overwrite \
--raw=/dev/mapper/xxx --part=priv.partition \
--user=xxx --name="xxx" --uid=1234 --gid=1234 \
--pass=xxx --ssh-user-key=/home/xxx/.ssh/authorized_keys \
--arch=amd64 --suite=lucid --flavour=virtual \
--mirror=http://192.168.1.1:9999/ubuntu/ \
--timezone=Asia/Tokyo \
--cpus=1 --mem=512 \
--hostname=xxx.example.com \
--bridge=br2 \
--ip=123.123.123.123. --mask=255.255.255.128 \
--gw=123.123.123.122 --dns=123.123.123.122 \
--libvirt=qemu:///system \
--addpkg=acpid --addpkg=openssh-server \
--addpkg=git-core --addpkg=etckeeper \
}}}
vmbuilder will ignore the --raw option and instead create a new ubuntu-kvm/tmpt5wDhN.qcow2 or similar file under the current directory. Removoing the --part option makes it use /dev/mapper/xxx, but it of course creates just a 5 MB root partition there. Also, the --rootsize and --swapsize options appear to have no effect.
Furthermore, the raw option appears to be ignored in the config file, at
least when in the [DEFAULT] section. It's not clear for any of the
options if there's a particular section in which they need to be placed
in order to be used.
I could go on, but I suggest you rewrite the options code to a) use all
the options given, however, specified, and b) for the sake of debugging,
print out very early on in the process exactly what it's going to do so
one doesn't have to wait for a full system build to find out that it's
ignoring options you specified.
This was all run under 10.04 amd64, by the way.
** Affects: vm-builder (Ubuntu)
Importance: Undecided
Status: New
--
vmbuilder sometimes ignores --raw option
https://bugs.launchpad.net/bugs/573171
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in ubuntu.
More information about the Ubuntu-server-bugs
mailing list