11/29/2023 0 Comments Ubuntu iso virtualboxYou will be asked to confirm the connection to the VM (type yes) and, after a few seconds, to set the password for the user (twice).Īfter a few minutes (four on my laptop) of unattended operation you are presented with the tasksel dialog. Stay on the terminal from which you launched the script, and press return only when the Virtual Terminal shows the login screen. UbuntuMini.shĪfter less than one minute (30" on my Lenovo Legion Laptop) a Virtual Terminal appears showing the boot sequence on the VM. Check if the variables fit your case, next launch it with $. Launch VirtualBox, next create a directory and download the script. Preconditions: you have a Linux box with VirtualBox installed and at least an RSA public key available in $HOME/.ssh (if not, then it is time to generate it!). It perform a fix in the /etc/hosts file, asks for the password of the unique user (see the $VMusername variable), performs the localization, and updates the software packages, installing a bundle of packages excluded from cloud images and the tasksel tool, which is immediately launched How to use the script When the VM is up and running you hit return and the installation proceeds uploading the configuration script prepared in the very first step, and lauching it execution. This is extremely in-elegant: any suggestion is welcome. iso file (a virtual DVD) that is attached to the VM, and threfore available to cloud-init.Īt this point the script launches the VM, and waits for your prompt to start the successive steps. In the two files you find the name of the host, the name of the (unique) user, and its RSA public key for authentication. The following step creates the cloud-init configuration files ( user-data and meta-data): they will be used by the cloud-init support inside the VM (remember, it is created from a cloud image) to configure it from the inside. ova, create the VM, configure networking, and prepare the drives. Next the Virtual Machine is created: download the. The first part of the script creates a vm-config.sh file that will be later uploaded to the running VM and, there, executed to configure it. This one is mainly written for those that want to adapt it. If you do not touch at all you obtain a customizable running VM.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |