LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
LinkBack Search this Thread
Old 05-21-2013, 05:04 PM   #1
lllux
LQ Newbie
 
Registered: Apr 2013
Posts: 11

Rep: Reputation: Disabled
Best practices, running services on the host, QEMU


Hi all,

I remember reading in the OpenVZ manual that it was against best practices to run anything apart from OpenVZ on the host. Is this the same for QEMU? I cant find it in their docs.

The reason I'm asking is that I need a block level passthrough so I can use the VM as a nfs/glusterfs server... could I run a iSCSI target on the host and an initiator on the guest (I know that itself is against best practices, but I have read up on it and I think it will be fine for my purposes). Or I could just run glusterfs on the host... but that just seems to easy.

I'm trying to integrate the storage with the processing nodes in a cluster while still maintaining HA, its not going well so far!

Thanks for any input.

Last edited by lllux; 05-21-2013 at 05:10 PM.
 
Old 05-22-2013, 03:43 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,543
Blog Entries: 51

Rep: Reputation: 2607Reputation: 2607Reputation: 2607Reputation: 2607Reputation: 2607Reputation: 2607Reputation: 2607Reputation: 2607Reputation: 2607Reputation: 2607Reputation: 2607
Here's a nice classification of different virtualization solutions: http://en.wikipedia.org/wiki/Platform_virtualization. As for doing your actual question I'd say just go do it: it's not like it takes ages configuring it and if it works you can tell us about your triumph.
 
1 members found this post helpful.
Old 05-23-2013, 02:39 PM   #3
jefro
Guru
 
Registered: Mar 2008
Posts: 10,275

Rep: Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258
Any best practice on one VM tends to be similar to each. Best practices are for security, efficiency and data integrity.

As a general rule, any server should be limited to only the essentials needed to perform it's work. Extra apps and exposure can lead to less than optimum performance and usefulness.

In a very strict sense, a VM doesn't improve security, efficiency. It's usefulness is more for utilization of resources, ability to clone and replicate and maybe a few other uses.
 
1 members found this post helpful.
Old 05-28-2013, 07:38 PM   #4
lllux
LQ Newbie
 
Registered: Apr 2013
Posts: 11

Original Poster
Rep: Reputation: Disabled
Did it, it worked

So I now have a setup that uses "multifunctional" nodes for storage and processing using qemu libvirt and glusterfs and as instructed I'm telling you all about my triumph..!

As requested below, I will write some more stuff here when I have a sec

Last edited by lllux; 05-30-2013 at 01:03 PM.
 
Old 05-28-2013, 10:10 PM   #5
jefro
Guru
 
Registered: Mar 2008
Posts: 10,275

Rep: Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258Reputation: 1258
Since you have this post, why not go ahead an post what you have?
 
Old 05-29-2013, 06:51 PM   #6
Pearlseattle
Member
 
Registered: Aug 2007
Location: Switzerland
Distribution: Gentoo
Posts: 661

Rep: Reputation: 71
A few months back I decided to be extremely clever and did this:

1)
On my host compiled its Kernel with all host and client virtualization options (KVM) turned on .

2)
After having compiled the kernel on the host, copied it to the usual "/boot/mygreatkernel" and booted the host using it.

3)
Started all my QEMU/KVM VMs with the parameter "-kernel /boot/mygreatkernel", therefore using the same file that my host was using.

Result:
At the beginning everything working perfectly.
After a week or so I started noticing that the VMs were quite slow and after some more time their poor performance was obvious, with a reboot fixing everything until the whole cycle started again a few days/weeks later.
I then started looking a bit deeper into it and I saw that a lot of time was spent on kernel calls.
I then copied the kernel config file (".config") to the VMs themselves, compiled it in the VMs and put them on the host and since I boot using it (every VM has its own kernel-file) everything is fine.

Any clue why?
I could understand that even if the configuration in the ".config" file is the same the kernel compiled in the VMs is different from the one of the host (Xeon CPU) because of the "-native" CFLAG I'm using, but a deterioration of the performance with time should not happen, or?

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Keeping size of VM file down - QEMU/KVM guest running Centos 6, inside Centos 6 host rylan76 Linux - Virtualization and Cloud 2 01-24-2013 03:22 PM
Running qemu with no X on host daweefolk Linux - Virtualization and Cloud 7 04-21-2011 02:35 AM
Establishing a VPN connection (host to host) using IPSec services adithya24 Linux - Networking 9 06-10-2009 08:44 AM
qemu host mode problem shogun1234 Linux - Newbie 1 08-04-2008 07:06 AM
Qemu mangling memory in host royceH Linux - Desktop 3 01-09-2007 01:40 PM


All times are GMT -5. The time now is 01:10 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration