LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-27-2016, 05:32 PM   #1
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
advice on virtualization


Hi Guys.
I am about to do a fresh installation, I usually split the hard drive and install the OS on a separated root partition of about 25 GB then leave the rest for home and small partition for swap.

My question is in regard of using KVM to set up a virtual installation of a proprietary OS. So here it is, Can I set up a KVM virtual machine if I have a root partition but I want the user directories of the virtual machine to be under the home partition so there is more room for whatever files we create under this guest OS.

Or do you guys recommend something different than KVM? The reason I want to go with KVM is because it is built in the Linux kernel so I thought to give it a try. I know there is VirtualBox and it is very easy to set up but cant do real things in virtualbox. Should I try something different like containers? has anyone have some experience with containers? Like Dockers.

I will appreciate your advice. Thank you!
 
Old 02-27-2016, 07:35 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
The virtual disk images can live anywhere. Usually they are stored under /var/lib/libvirt/images for QEMU + KVM, but that directory can be symlinked anywhere else, and there's nothing magical about it anyhow so you can put the images anywhere you like. You might need to paly with SELinux contexts on the directory if you're using that.

I usually virtualize other Linux installs under KVM for work. I've only done Windows once (it was a Server 2008 install I needed to run a proprietary tool), but it seemed to work fine.

With containers like Docker, there isn't a separate running kernel, so the container runs whatever kernel you have installed on the box. You can't run a whole different OS in a container (though you can run the user-space stacks of different Linux distributions). So, for example, you can't run a Solaris or Windows container on a Linux host.
 
Old 02-28-2016, 09:27 AM   #3
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Original Poster
Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
Sounds like I will have to leave a big root partition in order to have kvm set up with a whole OS in it. I haven't had much luck with symlinking files I appreciate your advice thank you.
 
Old 02-28-2016, 02:58 PM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by TroN-0074 View Post
Sounds like I will have to leave a big root partition in order to have kvm set up with a whole OS in it. I haven't had much luck with symlinking files I appreciate your advice thank you.
No - you can assign partitions during the creating of the VM, in which case no disk space in root is taken.

When you do that though, I suggest you assign them via /dev/disk/by-id, or /dev/disk/by-uuid (or by-partuuid).

That way you insulate device names from having issues if a disk gets added/removed from the host.
 
  


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
[SOLVED] Virtualization options/suggestions/advice ? mOrloff Linux - Virtualization and Cloud 10 03-05-2014 11:42 AM
LXer: Virtualization With Xen On CentOS 6.3 (x86_64) (Paravirtualization & Hardware Virtualization) LXer Syndicated Linux News 0 08-29-2012 05:40 AM
Advice on virtualization: OpenVZ or Linux-VServer mrtwice Slackware 3 10-30-2008 01:45 PM
LXer: HP's Virtualization Honcho John Bennett: Rethinking Virtualization LXer Syndicated Linux News 0 09-04-2008 08:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:33 AM.

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