• Set up and install KVM

    1. Install the qemu-kvm package with the following command:

      sudo apt install qemu-kvm

    2. Run the kvm-ok command to check KVM status and your hardware:

      Kvm-ok

      The message should say:

      INFO: /dev/kvm exists KVM acceleration can be used
    3. You can now launch a virtual machine with KVM, using the following command:

      kvm -smp 2 -m 1500 -netdev user,id=mynet0,hostfwd=tcp::8022-:22,hostfwd=tcp::8090-:80 -device virtio-net-pci,netdev=mynet0 -vga qxl -drive file=ubuntu-core-16-amd64.img,format=raw
      Note:

      This command sets up port redirections:

      • localhost:8022 is redirecting to port 22 of the virtual machine for accessing it through SSH
      • localhost:8090 is redirecting to its port 3000
    4. You should now see a window, with your Appliance virtual machine booting inside it

    5. The system will boot then become ready to configure. The device will display the prompt "Press enter to configure"

    6. Press Enter then select "Start" to begin configuring your network and an administrator account. Follow the instructions on the screen, you will be asked to configure your network and enter your Ubuntu SSO credentials

    7. At the end of the process, you will see your credentials to access your Ubuntu Core machine:

      • This device is registered to <Ubuntu SSO email address>
      • Remote access was enabled via authentication with the SSO user <Ubuntu SSO user name>
      • Public SSH keys were added to the device for remote access

      Your user name is your Ubuntu SSO user name.