ns_webvirtmgr

How to Configure and run a VM with WebVirtMgr on NethServer

Install through the software center the Virtual Machines Manager 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.

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

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

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

Result:

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

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'/>
</disk>

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'/>
</interface>

NB: Replace MAC, slot and interface name!

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

Go to power and press “start!”

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


  • ns_webvirtmgr.txt
  • Last modified: 2016/06/25 21:26
  • by Marc