El constructor KVM vm falla

El constructor KVM vm falla

Tengo una instalación nueva de 16.04 y he instalado kvm. Estoy intentando crear una máquina virtual usando vmbuilder.

sudo vmbuilder kvm ubuntu --suite xenial --flavour virtual --arch i386 -o --libvirt qemu:///system --ip 10.0.0.80 --hostname sabsickvm --bridge br0

Cuando ejecuto virsh list después de no mostrar vms

Cuando todo "termina" veo

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)

Respuesta1

Configurar la opción dpkg para force-confnew también parece funcionar:

patch /usr/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/dapper.py<<EOT
@@ -72,7 +72,7 @@
             self.call_hook('fix_ownership', manifest)

     def update(self):
-        self.run_in_target('apt-get', '-y', '--force-yes', 'dist-upgrade',
+        self.run_in_target('apt-get', '-y', '--force-yes', '--option=Dpkg::Options::=--force-confnew', 'dist-upgrade',
                            env={ 'DEBIAN_FRONTEND' : 'noninteractive' })

     def install_authorized_keys(self):
EOT

Respuesta2

Ahora tengo el mismo problema con una configuración idéntica de hace 1 semana (28/9/16) cuando no hubo ningún error. Mi instalación es casi la misma que la operación, excepto que estoy usando amd64.

Ofrezco la solución que utilicé como curita hasta que se solucione el error subyacente.

SOLUCIÓN:

1. change the word 'dist-upgrade' to 'update' in
    /usr/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/dapper.py

 2. delete /usr/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/dapper.pyc

Ahora vuelva a ejecutar vmbuilder. Todavía recibo algunos errores/advertencias, pero funcionó bien.

Reconozca que esto no solucionó el problema subyacente, pero le permite usar por ahora: vmbuilder con 16.04.

información relacionada