LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 09-24-2018, 12:21 PM   #1
Dead_Bot
LQ Newbie
 
Registered: Sep 2018
Posts: 1

Rep: Reputation: Disabled
Question Problem installing multiple Linux distros using oracle virtual-box .


Hey, I was trying to install multiple linux distros in a single partition on my hard-disk using virtual box. Is it possible to install 3 different distros-(Ubuntu, Kali-linux, Fedora) at the same partition without creating any new partition on my hard-disk. Or do I need to create a different partition for each distro?
I am using Oracle Virtual-Box for testing each distribution separately, and I don't want to create any new partition as it will require me to delete the existing partition and with it delete the existing Ubuntu distro that is already installed in it. Is there a way to install multiple linux distros in the single allocated space without formatting the entire drive while installation using the virtual-box?

I am fairly new to using these so please excuse me if I asked a stupid question, I tried finding the answer this question before but had no luck... So thanks in advance if you know what to do and help me...
 
Old 09-24-2018, 12:42 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
No, you don't need a separate physical partition for each virtual machine. In fact you don't need a separate partition for them at all. In saying that, I personally give my virtual machines a separate partition to allow me to image these offline in a more focussed way.

You don't need to delete an existing partition to create a new one - you can resize a partition to make space.

You should give more details on your disk space and existing partition sizes for a better answer, e.g. the output from:

Code:
sudo parted -l
and

Code:
lsblk
 
Old 09-24-2018, 12:59 PM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
As hydrurga said, no need for separate partitions. When I was dividing space, I left the remainder (135G) as one partition, now mounted on /mnt/virtual. It has three VMs
Code:
bash-4.4$ du -sh /mnt/virtual/*
10G	/mnt/virtual/Mint-19_
29G	/mnt/virtual/Vista
50G	/mnt/virtual/Windoze 10
du: cannot read directory '/mnt/virtual/lost+found': Permission denied
16K	/mnt/virtual/lost+found
bash-4.4$
As you see, the sizes vary, and windows 10 is 2x anything else. But you better get used to it if you need windows, because all the others are approaching EOL. There's not much software installed in them. They could expand a lot with bloatware installed.
 
Old 09-24-2018, 01:51 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Welcome to LinuxQuestions

In addition, a virtual hard drive is just a another very big file to the host operating system and depends on how much free space you have which I assume is Windows. For testing purposes 13-15GB should be sufficient for any default linux installation and can be located on any drive.

If you do not have the necessary free space on your system it is possible depending on the distribution to only install a minimum system or certain packages.

Last edited by michaelk; 09-24-2018 at 01:52 PM.
 
Old 09-24-2018, 02:12 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
I think I'm confused.

Thoughts.

Generally you don't use a physical partition when using a client OS under VM. As above you'd use a single or group of files that are a virtual hard drive. One can in fact use a physical drive or partition under a VM but it is not currently a common task. In fact it tends to break stuff.

In a real install to a physical drive one could load quite a number of Linux OS's on a single partition. It is very uncommon to do that now a days.
 
Old 09-24-2018, 05:41 PM   #6
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
By default the space for each VM exists as a sub-directory of '/home/username/VirtualBox VMs'.

Note that the embedded space in 'VirtualBox VMs' can cause problems on the command line, if you forget the quotes!
It can be convenient to add a single directory which you can use as a "shared folder" to copy data around.

Last edited by JeremyBoden; 09-24-2018 at 05:44 PM.
 
  


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
How can I use kickstart to build multiple virtual machines on Oracle virtual box? VitalTrainings Linux - Newbie 1 08-29-2014 09:04 AM
installing the saasbook oracle virtual box running Ubuntu Linux VM - on SUSE Linux incognitodiscforums Linux - Newbie 5 11-12-2013 08:51 AM
Issue faced while installing Linux in virtual machine in Oracle virtual box ravisingh1 Linux - Virtualization and Cloud 5 04-07-2013 10:42 AM
Installing RHEL6 using Oracle Virtual box having Win 7 as base OS arora.linux Linux - Newbie 2 05-31-2011 06:49 PM
[SOLVED] Installing Slack 13 on Oracle Virtual Box - fails to boot default kernel in DVD stevet2048 Linux - Virtualization and Cloud 3 01-29-2011 07:05 PM

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

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