How to Configure and run a VM with WebVirtMgr on NethServer

1) Install VMM Package

Install through the software center the Virtual Machines Manager package.

2) Configure VVM Package

After the installation process you can configure the Virtual Machine packacge's through the menu. Enable both the Console and the Virtual machine manager, and set a password.

3) Add bridge interface(s)

Add a bridge interface. Go in Network section on the menu. Click on 'New Interface button' and create a new bridge interface.

4) Access WebVirtMgr Page

Go on the WebVirtMgr Page <IP>:8000 and click on “localhost” to see the active instances.

5) Add Storage

Go to Storage section. Create two storage. One for the VMs disk like this:

One storage for iso file: Create the folder

mkdir /var/lib/libvirt/iso


6) Upload your ISO

Click on the green iso link and upload the iso of the OSs you want to install.

7) Create new instances

Go to Instances and click “new instances” In this page you can choose to use a predefined cpu, memory and hard disk size or use a custom template. Choose the one that fits your needs. NB: if you want to add more Network interfaces or more hard disks you have to choose the custom template.

If you want to add a disk to an existing VM you can edit the XML configuration file ( Settings→XML )

Add under the <devices> section:

<disk type='block' device='disk'>
  <driver name='qemu' type='raw'/>
  <source dev='/dev/sdb'/>
  <target dev='sdb' bus='scsi'/>
  <address type='drive' controller='0' bus='0' target='0' unit='5'/>

NB: Replace sdb with the correct drive!

If you want to add a NIC to an existing VM you can edit the XML configuration file ( Settings→XML )

Add the new bridge interface on Nethserver gui and WebVirtMgr and add under the <devices> section:

<interface type='bridge'>
  <mac address='52:54:00:12:34:56'/>
  <source bridge='br1'/>
  <model type='virtio'/>
  <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>

NB: Replace MAC, slot and interface name!

8) Select the media to install

Now on the VM page go to: Settings→Media and choose the iso to use for OS install and click connect.

9) Start the VM

Go to power and press “start!”

10) Web Console

You can access the VM with the webconsole (Access→Console click “Console” button)