Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: zoumhussein on December 11, 2011, 05:49:31 pm

Title: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
Post by: zoumhussein 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.

Title: Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
Post by: zephyrnet 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 ?

Title: Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
Post by: zephyrnet on January 10, 2012, 06:23:21 pm
Right, ive found Virtualbox application on the desktop, but not in Zentyal web console. Hmmm.
Title: Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
Post by: PsyFii on March 09, 2012, 06:34:53 pm
Did you work this out?

Title: Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
Post by: Marcus on March 09, 2012, 10:13:16 pm
Hello,

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

Best,

Marcus
Title: Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
Post by: PsyFii 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?
Title: Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
Post by: J. A. Calvo 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.
Title: Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
Post by: edumax64 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!!!
Title: Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
Post by: Psyfy 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...

Title: Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
Post by: Karl 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.
Title: Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
Post by: BrunovonTroba 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"
Title: Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
Post by: jsalamero 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.
Title: Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
Post by: FarquahrWindsor on September 28, 2012, 07:51:35 pm
https://help.ubuntu.com/12.04/serverguide/jeos-and-vmbuilder.html
https://help.ubuntu.com/community/KVM/Networking
http://en.wikibooks.org/wiki/QEMU/Images
If networking is a problem or images
Title: Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
Post by: ichat 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. 
Title: Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
Post by: FarquahrWindsor 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.
Title: Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
Post by: robb on September 29, 2012, 12:23:45 pm
Come on, not again...  :-\

IMO, the forum shouldn't get that divided. The Community Documentation however is another story. There we can benefit in representing per release the software structure.
Title: Re: Zentyal VM Management: Use VirtualBox instead of Qemu-KVM
Post by: FarquahrWindsor on September 29, 2012, 03:42:07 pm
Please do and doesn't have to be now, I know your doing a lot of excellent work that way.

Everytime I google I am surprised by the volume of work done.

Farquahr

http://www.zentyal.org/archives/2012/09/24/1105-official-documentation-for-zentyal-3-0-now-available/ (http://www.zentyal.org/archives/2012/09/24/1105-official-documentation-for-zentyal-3-0-now-available/)

http://doc.zentyal.org/en/ (http://doc.zentyal.org/en/)