UncleNUC Wiki

Second chance for NUCs

User Tools

Site Tools


lab:ansible_virtualbox_autoboot_linux:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
lab:ansible_virtualbox_autoboot_linux:start [2024/01/17 03:35] – improved link userlab:ansible_virtualbox_autoboot_linux:start [2024/05/10 05:14] (current) – moved user
Line 17: Line 17:
   * NUC   * NUC
     * Recommend a more powerful NUC with 16GB RAM and 500GB disk space     * Recommend a more powerful NUC with 16GB RAM and 500GB disk space
 +      * Most mid-range NUCs have 4 physical CPUs for a total of 8 cores. Most Gen12 and Gen13 NUCs have more cores available.
 +    * Yes you can create an VM in VMware and run Oracle Virtualbox...
 +      * __IF__ you enable "Virtualize Intel VT-x/EPT or AMD-V/RVI" under Settings > Processors in VMware
 +      * __BUT__ However, I had issues the network connectivity on the Oracle guests, both bridging and NATting. Setting the promiscuous mode settings on the Virtualbox guest didn't solve the issue.
  
 References: References:
Line 23: Line 27:
  
 ====== Project Overview ====== ====== Project Overview ======
-Before starting the Lab, you might review [[:Lab:Preparing NUCs for Labs]]. The will help you prepare all the NUCs for use. +This Lab was refactored, improved, and moved to GitHub in 2024.
- +
-Make sure virtualization is enabled in BIOS. +
- +
-For example on a NUC: Advanced > Security > Security Features +
-  * Intel® Virtualization Technology +
-  * Intel® VT for Directed I/O +
- +
-===== Initial Set Up of Your Host System ===== +
-You will need to set up a large-ish Ubuntu system. This will be home to the Oracle VirtualBox virtual machines (VM's). I used a NUC but you can use any Ubuntu system. This system will also be the Ansible controller. +
- +
-// See [[https://ubuntu.com/tutorials/install-ubuntu-desktop#1-overview|Tutorial: Install Ubuntu Desktop]] // +
- +
-It's a good idea to use a minimal installation for this Lab. 16GB RAM and 500GB+ storage will allow you create a number of VMs. +
- +
-Follow best practice to upgrade software packages on the system. Open Terminal and enter the commands below. +
- +
-<code bash> +
-sudo apt update +
-sudo apt upgrade -y +
-</code> +
- +
-__Optionally__enable ssh so you can SSH to this system. Open Terminal and enter the commands below. +
- +
-<code bash> +
-sudo apt update +
-sudo apt install openssh-server -y +
-</code> +
- +
-// See [[https://linuxize.com/post/how-to-enable-ssh-on-ubuntu-20-04/|Tutorial: Enable SSH]] // +
- +
-===== Install Packages and Create Keys for Ansible Management ===== +
-  - Add repository for Ansible +
-    * ''sudo apt-add-repository ppa:ansible/ansible'' +
-  - Install required packages +
-    * ''sudo apt update && sudo apt upgrade -y'' +
-    * ''sudo apt install vim p7zip xorriso ansible -y'' +
-  - Create the user ''ansible'' and switch to the user (learn more at [[https://linuxize.com/post/how-to-create-users-in-linux-using-the-useradd-command/|this link]]) +
-    * ''sudo useradd -m -s /bin/bash ansible'' +
-    * ''sudo passwd ansible'' +
-    * ''su - ansible'' +
-  - Create the ssh key ansible will use to connect to your VMs +
-    * ''ssh-keygen -o'' +
-    * accept default settings and __do not__ enter a passphrase +
-  - Use ''cat ~/.ssh/id_rsa.pub'' to get your public key +
-    * Looks like "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDKwEYxgppj+um+/W8LLxRpwZ2887IJirfJjFBkE30UeCZ0D1JS2RTMn4QEK1EAphByGxnmCruTL36aLMTO0FNH4IW+017/7wNY4JjRzRssZSMqmdjH4nhYV22JDIWh428p93FLsgqM+ud0Mj06KgJfa4BQtSvnR/p/4AXYzFTwzE+kyussIiOi+uT20AXNEIxk4ps39xhLGc6XNFo1xhtGvTZ9+Jx7AanVht090HuRuxNmOTd260mbeBJUKRF57d9tzZ68YRQiokIunkNF2skfJOZEUaIOWUoGGIWPMlEUEC0RhyW+7Ljmp7RbIOZ45CV0MYZEpKx4KQ61/CoMY4wKBCM90SwxJQwM3CZCseqcVnpFYKpFd6dnn0v0XsmINCU+y1RXYLfsOHEhLTm5WK9ERi5yr/1OjKkId+xZrf7D/v2soQdHsc82d+otbTDXzHYPduc2DfstJg5QFCECNrsEPRishAh2Lm2GJ3h0Pj20loyYeKWlUJpbLjd5A5Mnk9E= ansible@labbox" +
-    * Save this, you will use it when you create the custom Ubuntu ISO +
- +
-===== Install Oracle VirtualBox using Ansible ===== +
-Follow steps here: [[Install Oracle VirtualBox using Ansible]] +
- +
-// Note: There are many references out there if you don't want to use Ansible to install VirtualBox (e.g., [[https://linuxconfig.org/install-virtualbox-on-ubuntu-22-04-jammy-jellyfish-linux]]) // +
- +
-===== Customize the user-data File for Unattended Installation ===== +
-Follow steps here: [[Customize user-data for Ubuntu Unattended Install]] +
- +
-===== Generate Custom Unattended Ubuntu Install ISO ===== +
-Follow steps here: [[Generate Custom Unattended Ubuntu Install ISO]] +
- +
-===== Deploy our first Ubuntu VM to Oracle VirtualBox using Ansible ===== +
-Follow steps here: [[Deploy Ubuntu unattended uninstall image to Oracle VirtualBox using Ansible]] +
- +
-===== Test our first Ubuntu VM ===== +
-  - Log in directly using Ansible +
-  - Update packages on the VM using Ansible playbook +
- +
-===== Delete our first Ubuntu VM ===== +
-===== Deploy our first fleet of VMs ===== +
-===== Deploy an application to our fleet of VMs =====+
  
 +https://github.com/doritoes/NUC-Labs/blob/main/VirtualBox_Linux/README.md
  
lab/ansible_virtualbox_autoboot_linux/start.1705462500.txt.gz · Last modified: 2024/01/17 03:35 by user