Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
$ apt install virt-manager ssh-askpass-gnome

 

Connect to the remote KVM host

  1. Start Virtual Machine Manager, and click File -> Add Connection... 
  2. Select:
    1. Hypervisor = QEMU/KVM
    2. Connect to remote host
    3. Method = SSH
    4. Username = <your username at the remote host>
    5. Hostname = <kvmhost.domain.net>
    6. Autoconnect
  3. You will be prompted for you password at the remote host. Enter it, and hit OK.
  4. You should now see something like this, and you're all set to create virtual machines!

Creating a virtual machine

  1. Select the remote server, and click the Create a new virtual machine button
    Image Added
  2. Ensure that the remote server is selected in the Connection dropdown, and select Network Boot (PXE)
    Image Added
  3. Select the correct OS type and version. In most cases, this should be Linux and Ubuntu 16.04
    Image Added
  4. Choose the RAM and CPU settings you need
    Image Added
  5. Select Enable storage for this virtual machine and Select or create custom storage and click Manage..
    Image Added
  6. Select vmvg in the left menu, and click the green button with a plus sign
    Image Added
  7. Give the disk a name, preferably the same name as your new virtual machine, enter a sufficient disk size, and click Finish
    Image Added
  8. Ensure that the newly created volume are selected, and click Choose volume
    Image Added
  9. Give the virtual machine a name, and check Customize configuration before install. Also, select the network your virtual machine should connect to. In most cases, you should select one of the options starting with Virtual network.
    Image Added
  10. In the customization menu, select Boot Options and ensure that Start virtual machine on host boot up are selected, and that both the NIC and Disk are selected under Boot device order. The NIC should be first. Click Apply, and then Begin Installation. 
    Image Added
  11. Your new virtual machine is now ready to go, and is set up for PXE booting. It's now probably smart to take a note of the MAC adress on the virtual NIC.