becomingahacker / cloud-cml-img

Build CML Image for Becoming a Hacker Lab on Google Cloud Platform
Apache License 2.0
0 stars 0 forks source link

Build is currently broken when using cml2_2.7.1-20_amd64-25.pkg #4

Closed cmm-cisco closed 1 month ago

cmm-cisco commented 1 month ago

cml2 dpkg install silently fails.

   [ no other weird messages ]
    googlecompute.cloud-cml-controller-amd64: Errors were encountered while processing:
    googlecompute.cloud-cml-controller-amd64:  cml2
==> googlecompute.cloud-cml-controller-amd64: E: Sub-process /usr/bin/dpkg returned an error code (1)
    googlecompute.cloud-cml-controller-amd64: Failed, sleeping...

It might have something to do with dnsmasq:

root@cml-compute-build:/var/log/virl2# cat setup/virl2-libvirt-netcreate.log
error: Failed to destroy network default
error: Requested operation is not valid: network 'default' is not active

Network default has been undefined

Network default defined from /var/local/virl2/default-network.xml

Network default marked as autostarted

error: Failed to start network default
error: internal error: Child process (VIR_BRIDGE_NAME=virbr0 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper) unexpected exit status 2:
dnsmasq: failed to create listening socket for 192.168.255.1: Address already in use
rschmied commented 1 month ago

apparently, something in your environment already uses the address block for the default libvirt network. this is baked into the debian package. and can not be changed externally / parameterized at the moment. you need to find out why this exists already, who / what owns it and if it can be changed to something else prior to installing the package.

cmm-cisco commented 1 month ago

It worked itself out and built properly. I'm not sure why it happened, it might have just been a transient Ubuntu package thing. Thanks @rschmied !

https://github.com/becomingahacker/cloud-cml-img/commits/main/