Author Topic: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM  (Read 7203 times)

zoumhussein

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
« on: December 11, 2011, 05:49:31 pm »
Hello,

I would like to use virtualbox to manage my vm instances in zentyal instead of using qemu-kvm as the default.
I've installed virtualbox (ose) and remove qemu-kvm.
That wasn't enough: i guess there is a little configuration to do to make virtualbox as default.
Thanks for your answers.


zephyrnet

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +1/-2
    • View Profile
Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
« Reply #1 on: January 10, 2012, 03:23:55 pm »
Hi,

Bump, same issue.

I did the following on a clean install from zentyal installer , but having installed KVM and encountered issues. on 64bit AMD machine

sudo service qemu-kvm stop

sudo apt-get remove quemu-kvm

Sudo Nano /etc/apt/sources.list

added deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free

wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -

sudo apt-get update
sudo apt-get install virtualbox-4.1
sudo apt-get install dkms

sudo shutdown -r now

But nothing virtual machine related appeared in the zentyal web interface. I tried enabling virtual host but it simply reinstalled KVM Quemu again.

any ideas?

Do i need a fresh blank install of ubuntu server, then add virtualbox & zentyal on top for it to work ?

« Last Edit: January 10, 2012, 03:26:05 pm by zephyrnet »

zephyrnet

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +1/-2
    • View Profile
Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
« Reply #2 on: January 10, 2012, 06:23:21 pm »
Right, ive found Virtualbox application on the desktop, but not in Zentyal web console. Hmmm.

PsyFii

  • Zen Apprentice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
« Reply #3 on: March 09, 2012, 06:34:53 pm »
Did you work this out?


Marcus

  • Forum Moderator
  • Zen Samurai
  • *****
  • Posts: 395
  • Karma: +12/-0
    • View Profile
    • Professional IT Service
Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
« Reply #4 on: March 09, 2012, 10:13:16 pm »
Hello,

You may install phpVirtualBox:
http://code.google.com/p/phpvirtualbox/

Best,

Marcus

PsyFii

  • Zen Apprentice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
« Reply #5 on: March 10, 2012, 12:46:11 pm »
That's a kludge!

The Zentyal docs state that either KVM or VirtualBox can be used as the default but don't describe how to make it so. I (and many others) need a 'bridged' i/f for the VM's but can't get KVM to do it.

So my question is: Is it a limitation of KVM and if not, will a patch to v2.2 be made available or will this issue be resolved in v3.0?
« Last Edit: March 10, 2012, 12:54:00 pm by PsyFii »

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
« Reply #6 on: March 10, 2012, 10:44:55 pm »
The zentyal-virt module choses the one which is installed, giving preference to KVM in case of both are installed. If you want to use virtualbox, you have just to install it (the one in our PPA) and uninstall KVM.
Zentyal Server Lead Developer

edumax64

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
« Reply #7 on: March 17, 2012, 12:18:52 pm »
Hi i have problem with kernel module not installed for virtualbox. I ask you, if i look this:

Thank you. I tried that but got a kernel version error.

However, I was able to get it running doing the following:

- Adding the repository:
deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free

- Getting the key and updating:
wget http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc
sudo apt-key add oracle_vbox.asc
sudo apt-get update

- Installing linux headers and finally virtualbox:
sudo apt-get install linux-headers-2.6.32-24-generic
sudo apt-get install virtualbox-4.0


Now, thi is better solution for running virtualbox instead Zentyal 2.2?
I have unistall virt-manager, and iinstall viertalbox.ose amd64, but dont''resolve an issue for kernel module not installed vboxdrv 2.32.68
Thi is problem even i use Ubuntu Server 10.04 Virtualbox not load system operative with cd-rom or iso file, he load from 20%, but stop after 2 minutes
I think there is a bug in new kernel.
Depends linux-headers?
DEpends build-essentials?
What is soltution for running Virtualbox 4.1(amd64), not Kvm. on Zentyal Server?
I have this server on production system, and i need virtual machine with Windows 7 or Windows xp.
Can hel me?
Thank you!!!
« Last Edit: March 17, 2012, 12:26:17 pm by edumax64 »

Psyfy

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
  • B.Sc(EE)
    • View Profile
Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
« Reply #8 on: March 20, 2012, 10:58:49 am »
What are names of the Zentyal virt PPA packages for KVM and VirtualBox?

----------------------------------------------------------------------

Actually, I found an answer to my question at -->> http://www.zentyal.org/archives/2011/06/30/740-the-last-zentyal-beta-installer-2-1-2-available/


"As to the VM Management module, it is worth to notice that two different backends are developed to manage VirtualBox and KVM. KVM will be the default option, but the development of the VirtualBox backend is currently more advanced. Those users interested in testing it, simply need to remove the libvirt package and install the virtualbox package (sudo apt-get remove libvirt-bin && sudo apt-get install virtualbox-ose)."



Maybe someone can confirm if this works...

« Last Edit: March 20, 2012, 02:10:16 pm by Psyfy »
Cognosce ti ipsum.

Karl

  • Zen Apprentice
  • *
  • Posts: 36
  • Karma: +1/-0
    • View Profile
Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
« Reply #9 on: April 12, 2012, 03:15:32 am »
Install Virtualbox before installing Zentyal's VM module.  During the installation of the module, it detects and uses Virtualbox automatically.  You should be able to switch by uninstalling the VM module, uninstalling KVM/QEMU, installing Virtualbox, and then reinstalling the VM module.  I tried that once just to see if it worked and had no problems.

BrunovonTroba

  • Zen Monk
  • **
  • Posts: 60
  • Karma: +2/-0
    • View Profile
Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
« Reply #10 on: September 28, 2012, 01:31:23 pm »
Install Virtualbox before installing Zentyal's VM module.  During the installation of the module, it detects and uses Virtualbox automatically.  You should be able to switch by uninstalling the VM module, uninstalling KVM/QEMU, installing Virtualbox, and then reinstalling the VM module.  I tried that once just to see if it worked and had no problems.
Really worked well
But the other problem is that VirtualBox module is not creating disk image file nor I can't use existing VDI image - the message is "The hard disk image XP.vdi should be in qcow2 format"

jsalamero

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1419
  • Karma: +45/-1
    • View Profile
Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
« Reply #11 on: September 28, 2012, 05:39:07 pm »
We don't recommend using virtualbox with the zentyal-virt module, KVM work better and bugfixing on virtualbox backend is not a priority now and might be dropped.

FarquahrWindsor

  • Guest
« Last Edit: September 28, 2012, 08:05:45 pm by FarquahrWindsor »

ichat

  • Zen Hero
  • *****
  • Posts: 798
  • Karma: +28/-16
  • RTFM!
    • View Profile
Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
« Reply #13 on: September 28, 2012, 08:23:10 pm »
agreed with jsalamero,  as it is now,  virtualbox should be removed from the code as its not usefull in its current form, and its not likely that this will change soon,  hurting the code more than it solves,  we are better off,  eventually trying to get virtualbox supported in a seperated module  if possible  managed by community contribution..

with some work  phpvirtualbox CAN be improved verry mutch and in time it would be the better solution...

in some (maybe even most) cases  i do prefer virtualbox,  but only with the right tooling. 
All tips hints and advices are based on my personal experience.
As I try my best to be as accurate as possible, following my advice is always at your own risk,
I claim absolutely NO responsibility in any way!

FarquahrWindsor

  • Guest
Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
« Reply #14 on: September 29, 2012, 10:51:34 am »
It would be good if the forum structure matched the documentation. The search mechanisms in the forum are structured this way and currently keywords pick up a hell of returns that are not of interest.
It would be quite simple to achieve and this part about Zentyal VM management could have a couple of sticky topics that provide common requests and problems.

http://forum.zentyal.org/index.php/topic,8969.msg50167.html#msg50167

Gives a fair amount of info and maybe a FAQ would add a lot to the forum with minimal overhead.