ubuntu-vm-builder can't create VM with unclear reporting
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vm-builder (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Trying to create virtual machine via ubuntu-vm-builder (as on https:/
and application crashes without any specific errors.
1. Ubuntu release:
$ lsb_release -rd
Description: Ubuntu 16.04.2 LTS
Release: 16.04
2. Package version:
ubuntu-vm-builder:
Installed: 0.12.4+
Candidate: 0.12.4+
Version table:
*** 0.12.4+
500 http://
500 http://
100 /var/lib/
3. expect that virtual machine should be created
4. LANG=C sudo ubuntu-vm-builder kvm xenial --mem=1024 --cpus=2 --libvirt qemu:///system
[sudo] password for ctac:
2017-07-12 13:38:01,571 INFO : logging to file: /tmp/tmpaK1jaj
2017-07-12 13:38:01,597 INFO : Calling hook: preflight_check
2017-07-12 13:38:01,599 INFO : Calling hook: set_defaults
2017-07-12 13:38:01,600 INFO : Calling hook: bootstrap
2017-07-12 13:39:47,482 INFO : Calling hook: configure_os
2017-07-12 13:39:56,372 INFO :
2017-07-12 13:39:56,372 INFO : Current default time zone: 'Etc/UTC'
2017-07-12 13:39:56,374 INFO : Local time is now: Wed Jul 12 11:39:56 UTC 2017.
2017-07-12 13:39:56,374 INFO : Universal Time is now: Wed Jul 12 11:39:56 UTC 2017.
2017-07-12 13:39:56,374 INFO :
2017-07-12 13:39:57,235 INFO : Generating locales (this might take a while)...
2017-07-12 13:39:57,246 INFO : Generation complete.
Extracting templates from packages: 100%
2017-07-12 13:40:30,024 INFO : W: --force-yes is deprecated, use one of the options starting with --allow instead.
2017-07-12 13:40:30,024 INFO : E: Sub-process /usr/bin/dpkg returned an error code (1)
2017-07-12 13:40:30,025 INFO : Cleaning up
2017-07-12 13:40:31,085 ERROR : Process (['chroot', '/tmp/tmpCkueJi', 'apt-get', '-y', '--force-yes', 'dist-upgrade']) returned 100. stdout: Reading package lists...
Building dependency tree...
Calculating upgrade...
The following packages will be upgraded:
apt apt-utils base-files bash bsdutils console-setup console-setup-linux
coreutils dh-python distro-info-data dpkg eject gcc-5-base gnupg gpgv grep
ifupdown init init-system-helpers initramfs-tools initramfs-tools-bin
initramfs-
keyboard-
libapt-pkg5.0 libblkid1 libc-bin libc6 libdns-export162 libexpat1 libfdisk1
libgcrypt20 libgnutls-openssl27 libgnutls30 libhogweed4 libidn11
libisc-export160 libklibc libmount1 libnettle6 libp11-kit0 libprocps4
libpython3.
libstdc++6 libsystemd0 libtasn1-6 libudev1 libuuid1 locales login logrotate
lsb-base lsb-release makedev mount multiarch-support passwd procps python3.5
python3.5-minimal resolvconf sudo systemd systemd-sysv tar tzdata udev
util-linux vim-common vim-tiny zlib1g
81 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 33.9 MB of archives.
After this operation, 217 kB of additional disk space will be used.
Get:1 http://
[...]
Preconfiguring packages ...
Fetched 33.9 MB in 15s (2195 kB/s)
(Reading database ... 10446 files and directories currently installed.)
Preparing to unpack .../base-
Unpacking base-files (9.4ubuntu4.4) over (9.4ubuntu4) ...
Setting up base-files (9.4ubuntu4.4) ...
[...]
Configuration file '/etc/sudoers'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** sudoers (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package sudo (--configure):
end of file on stdin at conffile prompt
[...]
Processing triggers for resolvconf (1.78ubuntu4) ...
Errors were encountered while processing:
sudo
Extracting templates from packages: 100%
W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: Sub-process /usr/bin/dpkg returned an error code (1)
Traceback (most recent call last):
File "/usr/bin/
uvb.main()
File "/usr/lib/
distro.
File "/usr/lib/
self.
File "/usr/lib/
call_
File "/usr/lib/
getattr(
File "/usr/lib/
self.
File "/usr/lib/
env={ 'DEBIAN_FRONTEND' : 'noninteractive' })
File "/usr/lib/
return self.context.
File "/usr/lib/
return util.run_
File "/usr/lib/
raise VMBuilderException, "Process (%s) returned %d. stdout: %s, stderr: %s" % (args.__repr__(), status, mystdout.buf, mystderr.buf)
VMBuilder.
Building dependency tree...
Calculating upgrade...
The following packages will be upgraded:
apt apt-utils base-files bash bsdutils console-setup console-setup-linux
coreutils dh-python distro-info-data dpkg eject gcc-5-base gnupg gpgv grep
ifupdown init init-system-helpers initramfs-tools initramfs-tools-bin
initramfs-
keyboard-
libapt-pkg5.0 libblkid1 libc-bin libc6 libdns-export162 libexpat1 libfdisk1
libgcrypt20 libgnutls-openssl27 libgnutls30 libhogweed4 libidn11
libisc-export160 libklibc libmount1 libnettle6 libp11-kit0 libprocps4
libpython3.
libstdc++6 libsystemd0 libtasn1-6 libudev1 libuuid1 locales login logrotate
lsb-base lsb-release makedev mount multiarch-support passwd procps python3.5
python3.5-minimal resolvconf sudo systemd systemd-sysv tar tzdata udev
util-linux vim-common vim-tiny zlib1g
81 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 33.9 MB of archives.
After this operation, 217 kB of additional disk space will be used.
Get:1 http://
[...]
Preconfiguring packages ...
Fetched 33.9 MB in 15s (2195 kB/s)
(Reading database ... 10446 files and directories currently installed.)
Preparing to unpack .../base-
[...]
Setting up sudo (1.8.16-0ubuntu1.4) ...
Configuration file '/etc/sudoers'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** sudoers (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package sudo (--configure):
end of file on stdin at conffile prompt
Setting up vim-common (2:7.4.
[...]
Processing triggers for resolvconf (1.78ubuntu4) ...
Errors were encountered while processing:
sudo
Extracting templates from packages: 100%
W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: Sub-process /usr/bin/dpkg returned an error code (1)
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: ubuntu-vm-builder 0.12.4+
ProcVersionSign
Uname: Linux 4.8.0-58-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.9
Architecture: amd64
Date: Wed Jul 12 13:14:02 2017
InstallationDate: Installed on 2017-07-06 (5 days ago)
InstallationMedia: Ubuntu 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215.2)
PackageArchitec
SourcePackage: vm-builder
UpgradeStatus: No upgrade log present (probably fresh install)
Hi CTAC,
thanks for your report.
As in the other bug 1703822 you reported I'd ask you for now if you think you could work with uvtool-libvirt to get done what you need.
I've taken the task (https:/ /trello. com/c/9F9wHGXp) to consider and decide the future of vmbuilder, but that will take a while (plus some PTO soon that is in the way).
OTOH this is a community project so if there are changes to vm-builder I'm willing to review and sponsor. But IMHO we need one (1) solution to spawn VMs and maintain that and currently uvtool is more like that.