Feature #1761

KVM - virtual machines

Added by Giacomo Sanchietti over 6 years ago. Updated over 4 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-webvirtmgr
Target version:v6.5
Resolution: NEEDINFO:No

Description

Support virtual machines using KVM and libvirt.

History

#1 Updated by Giacomo Sanchietti over 6 years ago

Tested, works great.

yum install  kvm libvirt python-virtinst qemu-kvm
service libvirtd start

Then, on desktop, launch virt-manager and connect to the server over
ssh with root user.

Be sure to place the iso image for the os you want to install in /var/lib/libvirt/images.
Use virt-manager wizard to create a new machine, it's straightforward.

Tip: use macvtap for ethernet configuration (no need to create a bridge).

#2 Updated by Giacomo Sanchietti over 6 years ago

Possibile ui:

#3 Updated by Giacomo Sanchietti over 6 years ago

To use virt-manager from a client:
  • yum install virt-manager xauth
  • enable ssh X forwarding
  • connect to the server with a ssh client with X forwarding
  • launch virt-manager

#4 Updated by Alessio Fattorini about 5 years ago

Add VM to standard NethServer backup

#5 Updated by Giacomo Sanchietti almost 5 years ago

Alessio Fattorini wrote:

Add VM to standard NethServer backup

No, every machine should do its own backup: this is not a a task for the host system.

#6 Updated by Giacomo Sanchietti almost 5 years ago

  • Status changed from NEW to TRIAGED
  • Target version changed from ~FUTURE to v6.5
  • % Done changed from 0 to 20

#7 Updated by Giacomo Sanchietti almost 5 years ago

  • Assignee set to Edoardo Spadoni

#8 Updated by Giacomo Sanchietti almost 5 years ago

  • Category set to nethserver-webvirtmgr

#9 Updated by Giacomo Sanchietti almost 5 years ago

  • Status changed from TRIAGED to ON_DEV
  • % Done changed from 20 to 30

#10 Updated by Edoardo Spadoni almost 5 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Edoardo Spadoni)
  • % Done changed from 30 to 60

Physical machine is required for correct testing

Test Case 1
Check if the application is correctly installed.
  • Check if in Dashboard->Applications there is Virtual machine manager.
  • Check if in Configuration->Virtual machine manager the default values of Virtual machine manager and noVNC services are set to disabled.
  • Check if in Configuration->Virtual machine manager username filed is set to admin and password is a alphanumerical text .
Test Case 2
After rpm installation the virtual machine manager service is disabled by default.
Try to login.
  • Set Virtual machine manager service to enable in Configuration->Virtual machine manager.
  • Click on Dashboard->Applications->Virtual machine manager->url and check if the web panel is showed.
  • Get credentials in Configuration->Virtual machine manager->Credentials and try to login.
Test Case 3
Create a new virtual machine.
  • Create new local socket. Click on Add Connections and select tab local socket.
  • Insert a name in lowercase.
  • Select Tab Storages and add a new storage pull. Type DIR.
  • Go in Instances tab and click New Instance.
  • Choose one on the list and specified a name and storage.
Test Case 4
Try to remote access into machine
  • Set noVNC service to enable in Configuration->Virtual machine manager.
  • Login into web virtual manager
  • Select connections
  • Select tab Instances
  • Select virtual machine on the list and press Start button.
  • When status is changed to running go to Access and click console.

#11 Updated by Giacomo Sanchietti almost 5 years ago

  • Assignee set to Giacomo Sanchietti

#12 Updated by Giacomo Sanchietti almost 5 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 60 to 70
Packages in nethserver-testing:
  • nethserver-webvirtmgr-0.0.1-1.1git0a63826.ns6.noarch.rpm
  • nethserver-webvirtmgr-0.0.1-1.2gitd985f36.ns6.noarch.rpm
  • nethserver-webvirtmgr-0.0.1-1.4git24e5e3c.ns6.noarch.rpm
  • nethserver-webvirtmgr-0.0.1-1.6git210e3b4.ns6.noarch.rpm
  • nethserver-libvirt-0.0.1-1.ns6.noarch.rpm
  • bash-completion-1.3-7.el6.noarch.rpm
  • python-gunicorn-18.0-1.el6.noarch.rpm
  • python-websockify-0.5.1-1.el6.noarch.rpm
  • python-django15-1.5.6-1.el6.noarch.rpm
  • python-lockfile-0.8-3.el6.noarch.rpm
  • webvirtmgr-4.8.8-1.el6.noarch.rpm
  • webvirtmgr-4.8.9-1.el6.noarch.rpm

#13 Updated by Filippo Carletti over 4 years ago

  • Status changed from ON_QA to VERIFIED
  • % Done changed from 70 to 90

I've installed the web interface with:

yum --enablerepo=nethserver-testing install nethserver-webvirtmgr

Then, I used server-manager to enable both services and set a password.
I extensively used the webvirtmgr to create virtual machines. I also did a p2v and used a cdrom.
I used novnc to access the console of installed systems (note: remember to set keyboard layout).

#14 Updated by Giacomo Sanchietti over 4 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in 6.5/nethserver-updates and 6.6/nethserver-base:
  • nethserver-webvirtmgr-1.0.0-1.ns6.noarch.rpm
  • nethserver-libvirt-1.0.0-1.ns6.noarch.rpm
  • bash-completion-1.3-7.el6.noarch.rpm
  • python-gunicorn-18.0-1.el6.noarch.rpm
  • python-websockify-0.5.1-1.el6.noarch.rpm
  • python-django15-1.5.6-1.el6.noarch.rpm
  • python-lockfile-0.8-3.el6.noarch.rpm
  • webvirtmgr-4.8.9-1.el6.noarch.rpm

Also available in: Atom PDF