LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-10-2010, 02:15 PM   #1
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 376

Rep: Reputation: Disabled
Good CLI VM for running servers?


Can anyone recommend a Virtual Machine that doesn't require X that I could consolidate my servers onto?

I'm playing with VirtualBox but it seems to need a GUI.
 
Old 05-10-2010, 02:18 PM   #2
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Have you tried KVM yet?
 
Old 05-10-2010, 02:33 PM   #3
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Qemu has a decent -curses switch that works well.
 
Old 05-10-2010, 02:54 PM   #4
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
Another vote for qemu.

You can start a VM without a GUI running it as a VNC server.
You can then connect from any box on the network to see the "screen" of your VM.

I have been using this setup successfully for a while now.
 
Old 05-10-2010, 03:17 PM   #5
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware and OpenBSD
Posts: 740

Rep: Reputation: 190Reputation: 190
Virtualbox does not need a GUI. I use Virtualbox headless all the time. Check out the "VBoxHeadless" and "VBoxManage" commands. There was a recent article on howtoforge, IIRC, about this as well.

Edit: Here is the howtoforge article:

http://howtoforge.com/vboxheadless-r...tos-5.4-server

The article was written with CentOS in mind, but the VirtualBox commands the author goes through of course would work on any distro including Slackware.

Last edited by chess; 05-10-2010 at 03:19 PM. Reason: add article link
 
Old 05-10-2010, 03:42 PM   #6
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 376

Original Poster
Rep: Reputation: Disabled
So, which typically runs faster, VirtualBox, Qemu or KVM?

(I'm running apache, mail and fileserving with samba...)
 
Old 05-10-2010, 04:48 PM   #7
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,184

Rep: Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765
Quote:
Originally Posted by arfon View Post
So, which typically runs faster, VirtualBox, Qemu or KVM?

(I'm running apache, mail and fileserving with samba...)
Please note that Qemu is the userspace part of the KVM package; and I believe Qemu technology can be found in VBox as well.

I can't vouch for VBox but I can tell you I can have up to 15-20 users accessing a Debian Samba server running a KVM Windows 2003 terminal services VM and they don't suspect a damn thing. Speed is blinding; and I haven't had that server blink on me once in two and a half years.

Not once.

It was my first VM setup and pretty much my first serious Linux server. KVM won't let you down. I run my own VMs here and I can have three or four Linux/BSD/MS virtual machines open at a time. Speed is native. The only thing I hear people complain about regarding KVM is its relatively poor graphics performance but on a server with no X that's not going to affect you.

If I were setting up that server now I would use Slackware and KVM without hesitation. There is a Slackbuild for KVM/Qemu.
 
Old 05-12-2010, 07:45 AM   #8
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 376

Original Poster
Rep: Reputation: Disabled
Hit a snag with KVM...

I compiled packages for VirtualBox and then decided to give KVM a try based on you guys but, I've hit a snag.

My test box is old and does not have BIOS Virtualization. Does anyone have instructions/a link to how to set up QEMU/KVM on boxes without BIOS Virtualization? I was reading through the QEMU wiki and apparently, it will run without the virtualization.

BTW, I'm running 32bit Slack 13 on this machine.
 
Old 05-12-2010, 08:10 AM   #9
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,183

Rep: Reputation: 237Reputation: 237Reputation: 237
Quote:
Originally Posted by arfon View Post
I compiled packages for VirtualBox and then decided to give KVM a try based on you guys but, I've hit a snag.

My test box is old and does not have BIOS Virtualization. Does anyone have instructions/a link to how to set up QEMU/KVM on boxes without BIOS Virtualization? I was reading through the QEMU wiki and apparently, it will run without the virtualization.

BTW, I'm running 32bit Slack 13 on this machine.
There is nothing special during install. When running, you can use the "-curses" option to let qemu use character terminal (instead of graphics window) as display output.
 
Old 05-12-2010, 08:31 AM   #10
HasC
Member
 
Registered: Oct 2009
Location: South America - Paraguay
Distribution: Debian 5 - Slackware 13.1 - Arch - Some others linuxes/*BSDs through KVM and Xen
Posts: 329

Rep: Reputation: 55
Quote:
Originally Posted by arfon View Post
I compiled packages for VirtualBox and then decided to give KVM a try based on you guys but, I've hit a snag.

My test box is old and does not have BIOS Virtualization. Does anyone have instructions/a link to how to set up QEMU/KVM on boxes without BIOS Virtualization? I was reading through the QEMU wiki and apparently, it will run without the virtualization.

BTW, I'm running 32bit Slack 13 on this machine.
QEMU can run without virtualization support, but it will run a lot slower. You better try QEMU with KQEMU kernel module.

KVM, on the other hand, *requires* virtualization support (either Intel-VT or AMD-V).
 
Old 05-12-2010, 08:40 AM   #11
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by HasC View Post
QEMU can run without virtualization support, but it will run a lot slower. You better try QEMU with KQEMU kernel module.

KVM, on the other hand, *requires* virtualization support (either Intel-VT or AMD-V).
Unfortunately KQEMU is obsolete:

http://wiki.qemu.org/Manual

I'm not even sure it still works with the latest QEMU.
 
Old 05-12-2010, 08:58 AM   #12
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
KQemu is still available on slackbuilds.org. I will try to keep it there as long as I can (I'm the maintainer). But it does work with Qemu on 13.0 right now. Not sure yet how it will behave on 13.1.

http://slackbuilds.org/repository/13.0/system/kqemu/
http://slackbuilds.org/repository/13.0/system/qemu/

I will probably put the build scripts for Qemu + KQemu on my personal site if Qemu is updated and no longer works with the latest Qemu.

Last edited by dive; 05-12-2010 at 11:13 AM.
 
Old 05-12-2010, 09:52 AM   #13
arfon
Member
 
Registered: Apr 2004
Distribution: Slackware & RHEL
Posts: 376

Original Poster
Rep: Reputation: Disabled
SOOOooooo, I have to have BIOS Virtualization to get KVM to work?
 
Old 05-12-2010, 10:02 AM   #14
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by arfon View Post
SOOOooooo, I have to have BIOS Virtualization to get KVM to work?
The short answer is yes. KVM requires BIOS virtulization. KVM will fallback to just QEMU mode if BIOS virtulization is available but the KVM modules are not loaded. QEMU emulation alone is slow without either software acceleration (KQEMU) or hardware (AMD-V or Intel VT) acceleration.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] CLI HyperVisor running GUI VM? computer_freak_8 Linux - Security 16 08-26-2009 10:54 PM
Running two commands symultaneously from CLI jamwaffles Linux - Software 10 02-12-2009 10:05 AM
A good semi-manual distro... any comments? One good for running InkScape? rylan76 Linux - General 5 12-11-2008 07:46 AM
Suse 10.2 running updates from CLI metallica1973 SUSE / openSUSE 3 08-26-2007 09:25 PM
good (preferably not cli) multiplayer games for a PII...? questionasker Linux - Games 1 04-28-2004 09:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration