![]() ![]() Note: replace the ssh_authorized_keys content with the content of your public SSH key. This network configuration will set a static IP address of 192.168.0.137 for the server. I’m using match.name: en* to prevent having to know the ethernet interface name in advance. The network section matches the Netplan configuration. The network block is a little wonky and the duplicate network is intentional and required due to a bug. Within the user-data, we’reĬreating the dustin user that may only login via SSH. I’m using this to prevent having to set a password for a default user. The user-data key allows us to use cloud-init configuration. The Autoinstallation documentation describes other available configuration options. add a public SSH key to later SSH in as dustin.prevent logging in as dustin with a password.set the server’s hostname to ubuntu-server.This will improve performance but may take up unnecessary space.Ĭlick Next to continue and view a summary of your machine setting.#cloud-config autoinstall : version : 1 user-data : hostname : ubuntu-server users : - name : dustin lock_passwd : true ssh_authorized_keys : - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC9bAo+yzhzI/+FaeBj0i+HNy7O5BQ/mCMEHghvuAtH8XMJxGjikTPiC0t3YZ28XCyP+laRTVY6kdaWMCB5j40FE+UGco6YgXjW+dI0P/b0Idq+V9xTEJnPG元M1uurQQuBClPs3Ns8aYUiNKxniQqFf4XrmGzqmNxtbtgrjXhrpApqx2u196iPf6/ZJtvZ0+VdwyEO5hNgHUbsDBSN7zicFfzCcbrDFCZ4d2N圜7gD76dh3/cmRSTYPS23UNfZi9eBj85bzG7CM0+eeHa4NbWWZR2iJcfgQ/EKb5TtYIHf4d6G7uGZ9dLbn3fyaxsTUA9LsMEOhjePV4IRrltsfXIXrR5+oQAJsUHxo0bOUQTP4h3sm55BRoZHJqfMmKQ42jAYK1ESuQi036hyocf+brTnkSTgo03XzHc3hGFtwNANa7pSBT/KMALzdJn6OBurrexB5tbLplb88R2R5INFuvzYEjiZ42YkfR3JJMWgU/YRbSTo+WBJeyI1eIpeTOGciis= sudo : ALL=(ALL) NOPASSWD:ALL ssh : install-server : true network : network : version : 2 ethernets : enwild : match : name : en* addresses : - 192.168.0.137 /24 dhcp4 : false gateway4 : 192.168.0.1 nameservers : addresses : - 192.168.0.1 If you want to pre-allocate the full amount, check the ‘Pre-allocate Full Size’ check box. By default the hard disk will scale dynamically as more memory is required up to the defined limit. For Ubuntu we recommend around 25 GB as a minimum. Then we need to specify the size of the hard disc for the virtual machine. Try to remain in the green areas of each slider to prevent issues with your machine running both the VM and the host OS. For good performance it’s recommended to provide your VM with around 8GB of RAM (althought 4GB will still be usable) and 4 CPUs. In the next section we can specifiy how much of our host machine’s memory and processors the virtual machine can use. Once your machine has been created you will be able to create a username and password by proceeding through the standard Ubuntu Desktop installation flow on first boot. Note: If you choose not to use unattended install then this step will be skipped and you will go straight to the following screen. Guest additions enables a number of quality of life features such as changing resolution and dynamic screen resizing so it is highly recommended! ![]() ![]() It is also recommended to check the Guest Additions box to install the default Guest Additions ISO that is downloaded as part of VirtualBox. It is important to change these values since the defaults will create a user without sudo access.Įnsure your Hostname has no spaces to proceed! To enable the automatic install we need to prepopulate our username and password here in addition to our machine name so that it can be configured automatically during first boot. We want to install Ubuntu unattendedly so we can leave the checkbox to skip unchecked. ISO Image: Here you need to add a link to the ISO you downloaded from the Ubuntu website.Machine Folder: This is where your virtual machines will be stored so you can resume working on them whenever you like.Name: If you include the word Ubuntu in your name the Type and Version will auto-update.Create a new virtual machineĬlick New to create a new virtual machine. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |