LinuxQuestions.org
Help answer threads with 0 replies.
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 02-19-2014, 05:59 AM   #1
Mankind75
Member
 
Registered: Apr 2004
Location: Wernigerode, Germany
Distribution: Slackware 15.0
Posts: 90

Rep: Reputation: 20
Virtualization on Slackware 14 (Ubuntu Server Guest)


Hello everyone,

I downloaded "Virtualbox" as a tar.gz-file this morning and installation was a breeze on my Slackware 14 installation. I would like to have Ubuntu as a guest but do not really want the graphical dekstop attached to it. My idea is to have "Ubuntu Server" running as a guest and put the ERP-Software OpenBravo on it. There is a specific repository and everything worked on the Ubuntu Desktop as a Virtualbox guest.

As far as I understand it, the Linux kernel has KVM-support, is this enabled on Slackware 14? I am using the huge-Kernel and didn't modify anything in the Kernel-configuration.

Could you please point me in the right direction?

Thanks and best regards,
Mkd75
 
Old 02-19-2014, 08:55 AM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
It is enabled on Slackware 14 and 14.1. Just make sure that you load the kernel module that matches your real CPU.

I've got a AMD Phenom(tm) II X6 and I'm loading the kvm_amd module in /etc/rc.d/rc.modules:
Code:
# add kvm support
modprobe kvm_amd 2>/dev/null
 
1 members found this post helpful.
Old 02-19-2014, 09:45 AM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; Slackware64-current (VM); Debian 12 (VM)
Posts: 8,272
Blog Entries: 61

Rep: Reputation: Disabled
You want the Ubuntu Server.
I found the kvm_amd module was loaded automatically on 14.1, no need for manual loading or any editing. My processor is an AMD Athlon64 X2 5200+.
 
Old 02-19-2014, 04:06 PM   #4
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by brianL View Post
You want the Ubuntu Server.
I found the kvm_amd module was loaded automatically on 14.1, no need for manual loading or any editing. My processor is an AMD Athlon64 X2 5200+.
Hmm. Maybe that's something that VirtualBox does for you. The libvirt stuff that I use doesn't (or didn't when I started using it in 14.0).
 
Old 02-19-2014, 04:17 PM   #5
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; Slackware64-current (VM); Debian 12 (VM)
Posts: 8,272
Blog Entries: 61

Rep: Reputation: Disabled
No, I ran lsmod immediately after installing 14.1 and found the kvm_amd and kvm modules had been loaded. This didn't happen with 14.0.
 
Old 02-19-2014, 05:11 PM   #6
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Ah. I had just copied over my modifications to rc.modules as part of my upgrade from 14.0. Good to know; I'll back out that change.

Thanks!
 
Old 02-19-2014, 08:28 PM   #7
Mankind75
Member
 
Registered: Apr 2004
Location: Wernigerode, Germany
Distribution: Slackware 15.0
Posts: 90

Original Poster
Rep: Reputation: 20
I also have an AMD Processor and I got the Kernel module up and running. So I suppose that Kernel-wise I am all set.

Quote:
bash-4.2# modprobe kvm_amd
bash-4.2# lsmod | grep kvm
kvm_amd 49306 0
kvm 346407 1 kvm_amd
One thing that I am a bit concerned about is that I do not really have a clue on how to go on. I do have Virtualbox but would like to get to know more about virtualization using KVM and the command-line. I had a look at /usr/share/doc/Linux-HOWTOs but didn't find anything in there. I also found this site: http://www.linux-kvm.org/page/HOWTO1 - probably enough material for a blog posting or something like that.
 
Old 02-20-2014, 03:07 AM   #8
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,172

Rep: Reputation: 227Reputation: 227Reputation: 227
Quote:
Originally Posted by Mankind75 View Post
...
One thing that I am a bit concerned about is that I do not really have a clue on how to go on.
...
Why concerned? You've already said you wanted to install VirtualBox and then install Ubuntu. Then go that way.
 
Old 02-20-2014, 04:21 AM   #9
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; Slackware64-current (VM); Debian 12 (VM)
Posts: 8,272
Blog Entries: 61

Rep: Reputation: Disabled
I might be wrong (often happens ), but I think I read somewhere that it could cause problems if you try to have the KVM and VBox modules loaded at the same time. Anybody know for sure?
 
Old 02-20-2014, 04:46 AM   #10
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; Slackware64-current (VM); Debian 12 (VM)
Posts: 8,272
Blog Entries: 61

Rep: Reputation: Disabled
Answering myself: did a quick search and found this article:

http://www.dedoimedo.com/computers/kvm-virtualbox.html
 
Old 02-20-2014, 05:14 AM   #11
Mankind75
Member
 
Registered: Apr 2004
Location: Wernigerode, Germany
Distribution: Slackware 15.0
Posts: 90

Original Poster
Rep: Reputation: 20
I just tried "qemu" instead of VirtualBox as Virtualization is a hot topic in the IT-industry. I am quite impressed with kvm and qemu.
 
Old 02-20-2014, 05:17 AM   #12
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; Slackware64-current (VM); Debian 12 (VM)
Posts: 8,272
Blog Entries: 61

Rep: Reputation: Disabled
Qemu is more versatile, can emulate more architectures than VBox, although the kvm bit is limited to x86 and x86_64.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu server guest on Cent OS 6.0 host. ThomasRonshof Linux - Virtualization and Cloud 5 10-26-2011 07:13 AM
Verify what virtualization is my Guest OS packets Linux - Server 1 01-08-2011 05:21 AM
[SOLVED] Slackware, CentOS, Fedora, or Ubuntu? <Virtualization?> lupusarcanus Linux - Newbie 20 01-20-2010 10:51 AM

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

All times are GMT -5. The time now is 09:39 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