Fedora 26 KVM HTML5 Remote Access with Web-Console via Kimchi – Part 2

This is the second part of a two-part series.

Part 1  (Server Prep – Setting up the server)
>>> Part 2  (Kimchi Set-up – Getting things going) <<<

This part focuses on configuring Kimchi storage, network, and templates so you can get your first VM going.

Kimchi Set-up

After you have completed Part 1, you should be at the point where you can remotely access Kimchi via the https url.  All of the following steps are done remotely via your web browser.  I’ve found Firefox to give the best experience.

  1. Set up your storage:
    1. Click the Virtualization tab, then the Storage tab.
    2. Then click Add Storage.
      1. Storage Pool Name: DATA
      2. Storage Pool Type: DIR
      3. Storage Path: /DATA
      4. Click the Actions drop-down button and click Activate.
    3. Click Create.

  2. Set up your network:
    *Note*: This is just a demo, so I’m only using a single NIC on this host.

    1. Click the Network tab, then click the Add Network button.
      1. Network Name: vNIC1
      2. Network Type: Bridged
      3. Destination: eno1
    2. Click Create. (may take a minute)
    3. Click the Actions button next to the new network you just created, then click Start.

  3. Upload .iso to use in templates:
    1. In Virtualization, click the Storage tab.
    2. Click the drop-down arrow, then click the Actions drop-down and click Add Volume.
    3. Select Upload a file, browse to your .iso and then click the Add button.

  4. Create a template:
    *Note* There’s an issue with selecting the image you just uploaded, so select an existing built in one, such as Fedora 24. Then, when you create a VM, before turning it on, edit the cdrom/.iso path to the one you uploaded above. See the issue on GitHub for more info.

    1. In Virtualization, click the Templates tab, then click Add Template.
    2. Type a Template Name, select the Fedora24 image, then click the Create button.

  5. Configure above template:
    *Click the Actions drop-down, then click edit.

    1. In General tab:
      1. Change the Memory and Max Memory to your liking.
      2. Ignore the CDROM location, you will change it in your VM settings before you turn it on the first time.
      3. Change Graphics to SPICE. (VNC will not work; I haven’t figured out why yet)

    2. In Storage tab:
      1. Storage Pool: Change to DATA (or appropriate).
      2. Disk: Set to desired virtual disk size.
      3. Disk Format: Set to desired format.

    3. In Interface tab:
      1. Select appropriate Network.

    4. In Processor tab:
      1. Change Max CPU first, to desired number, then Current CPU Number if appropriate.

    5. Click Save.
  6. Create a VM (Guest):
    1. In Virtualization, Guests tab, click the Add Guest button.
    2. Type in a name, choose your template, then click Create.

  7. Configure VM (Guest):
    1. Here we need to change the cdrom / .iso location as noted in step 18.
    2. Click the Storage tab, then click the Replace button next to the hdc or .iso device, and change it to where your .iso is located; in /var/lib/kimchi/isos/yourisofile.iso
    3. Then click the Save button, and use the Cancel button to close the Edit Guest window.

  8. Go time!
    1. Click the Actions button next to your new VM, and click Start.
    2. It should now start without issue.
    3. Click the View Console link to view your VM from your browser. I’ve had the best results with Firefox. You should now be seeing the Welcome Fedora 26 Installation screen!

Check out the Host tab Dashboard to see your server’s resource utilization.

Final Result

Fresh VM, booted to OS install disk (step #8):

Installed Fedora 26 Server Edition inside the VM, then installed MATE Desktop to see what it looks like in the web-based console:

The performance is excellent.

Leave a Reply

Your email address will not be published.