LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 12-14-2015, 07:14 PM   #1
mailtomsa
LQ Newbie
 
Registered: Nov 2015
Posts: 21

Rep: Reputation: Disabled
Question Running my "real" Linux system inside a VM as guest OS?


I have set up Windows 8.1 and LinuxMint on my laptop as dual boot.
I use LinuxMint for almost everything but occasionally need the Windows system as well.
I have set up LinuxMint with one big partition for everything (/, /boot, /home, etc. all in one)

I am wondering if it is possible to set up VirtualBox under Windows in a way that I can run my "real" LinuxMint as guest OS inside Virtualbox on the Windows host. Or at least something that comes as close as possible to my "real" LinuxMint without having to do everything twice. The idea would be to use the same user data files, use the same config files and installed packages, etc.

So everything I install in the "real" system will be available in the VM and the other way around. Same thing for changing files, configs, etc.

Maybe something along the lines of creating a new LinuxMint VM of the same version under Windows with only the very bare minimum (maybe the kernel and /boot ???)
Then have that VM mount my "real" LinuxMint partition and use everything else from there (like /usr, /home, /opt, etc)

Not sure what to do about things like /dev, /proc, /var/log, etc. Maybe those will be part of the VM as well.

This is a very high level idea and I have no idea if / how it can be done. I tried to Google it, but have not really found anything...

Has anyone done this, or can point me to a few links?

Thank you!
 
Old 12-14-2015, 08:42 PM   #2
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
I used to do something like that years ago. I don't recall any problems, actually. There was a more seamless version without Virtualbox called colinux that was basically the same idea. The main hang ups I recall were (1) no specialized video drivers, or any other specialized hardware devices (2) I don't think Windows likes nested VMs much, so don't run Virtualbox inside your VM session.
(Edit) and if you compile your own kernel, don't be too restrictive with hardware. You can of course use Grub within VB to launch a different kernel in your VM rather than your physical machine if you need to.

Last edited by mostlyharmless; 12-14-2015 at 08:45 PM.
 
1 members found this post helpful.
Old 12-14-2015, 08:43 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
You can run physical disks under many virtual machines. Generally it isn't a standard way to run but many do it.

In your case you don't want to mount the physical disk but rather the partitions ONLY. If you mount the windows disk you will come to a stop or worse.


Search for physical disk.

See if this works.
http://www.serverwatch.com/server-tu...ualbox-vm.html

You run a virtual machine like normal. The only basic exception is that instead of using a virtual hard drive you make the vm a config file that points to a physical disk.

Linux may work fine but there may be some unique things that you may have to make generic. Maybe video but nic is generally supported in vm's.

If you mounted your physical partitions correctly and have a loader it should act like your normal linux. No need to worry about any subdirectory mounts usually.

Last edited by jefro; 12-14-2015 at 09:43 PM.
 
1 members found this post helpful.
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using "normal", vs "low-latency" vs "real-time RT" kernels GTrax Linux - Software 7 07-10-2014 04:34 AM
Accessing the disk drives on my "real" machine from Ubuntu running on Virtual Box. Keith Harcourt Linux - Virtualization and Cloud 2 12-01-2010 05:30 AM
Can't Get Linux Installed / Running - "Intel i7" Based System scrappydoo Linux - Hardware 4 04-16-2009 03:31 PM
How to display "real time" view of process running in openSUSE 10.1 ramirez.alex SUSE / openSUSE 6 02-27-2007 03:48 AM
System freezing at "Real Time Clock Driver" raccoon Linux - Newbie 0 12-02-2003 02:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

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