Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Modify the image, to make it cloud ready

  1. Make sure the ssh service is started and enabled
  2. Login to the virtual machine with root, and run apt update && apt upgrade. Reboot if necessary.
  3. Install cloud-init: apt install cloud-init
    1. Run dpkg-reconfigure cloud-init and for metadata services, select only Config Drive, EC2 and Openstack.
  4. Edit the file /etc/cloud/cloud.cfg and change the line disable_root: true to disable_root: false
  5. Run systemctl enable cloud-init
  6. Run systemctl enable cloud-final
  7. Edit the file /etc/default/grub, and make sure that the variable GRUB_CMDLINE_LINUX_DEFAULT contains console=ttyS0 console=tty0 (if there's other content in this variable that's fine. Just add this to the end of the string.
    NOTE: remove quiet
    1. Run update-grub
  8. Edit /etc/lsb_release to have the version number, not kali-rolling in DISTRIB_RELEASE
    1. If this is not done, virt-sysprep will fail

...