Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 12-01-2013, 06:17 AM   #1
Registered: Jan 2002
Location: UK
Distribution: Slack 14.1
Posts: 193

Rep: Reputation: 30
Windows as virtualbox guest os question


My laptop has 2 harddrives and I'm planning on installing the Slack 14.1 on the first HDD as the main os.

I then want to install virtualbox in Slack and install windows in the virtuallbox using the second HDD.

I'm planning on partitionong the main HDD either as 3 separate partiotions: /, /home and swap or 4 partitions: /boot, /, /home and swap.

What I'm not sure about about is how to setup partions with the virtualbox and windows as a guest OS in mind, concidering that windows will be installed on the second HDD, as a guest os in linux virtualbox.

Do I just install Slack first, partitioning the first HDD as described above and deal with the virtuallbox and windows after the Slack is installed or do I need to setup partiotion(s) and specific directories on the second HDD for vrtualbox and windows during the Slack installion (at the same stage as partioniong the first HDD for Slack)?

Old 12-01-2013, 07:58 AM   #2
Senior Member
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060
You probably want to partition your Slackware drive first (use cfdisk /dev/sda for example). You may want to partition the second drive while you're at it (unless you're going to use the entire drive for Windows).

Install Slackware. Download the VirtualBox software (I prefer using the binary distribution from Oracle); you'll need and if your system is 64-bit or for 32-bit (the Extension Pack is the same for 32- or 64-bit systems).

Install VirtualBox (execute the ".run" file). Start VirtualBox and install the Extension Pack by clicking Fire, Extensions and choose the Extension Pack file you downloaded. You only install Extensions once, not for every guest.

Depending upon how you partitioned the second drive (which will be /dev/sdb), install Windows, pointing it at, say, /dev/sdb1 or whatever partition you wish to use (otherwise your guest will be created in your home directory).

That's pretty much it; however, be sure to read the installation instructions you'll find in /opt/VirtualBox/UserManual.pdf. Get familiar with what to do and how to do it before you install a guest. You can install as many guests as you have room for on the second drive and you can install both 32-bit and 64-bit guests (if your system is 64-bit and you installed 64-bit VirtualBox, that is). If you have a 64-bit system, do not install 32-bit VirtualBox.

Other than that there's a little fine tuning to do which is explained well in the manual, worth your time to read it as you're installing and configuring.

Hope this helps some.
Old 12-01-2013, 08:40 AM   #3
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,142
Blog Entries: 2

Rep: Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846Reputation: 4846
The OS that will run in Virtualbox will only see virtual hardware, it doesn't matter at all how your physical machine is partitioned (as long as you have a partition large enough to hold the disk-image for the VM). Install Slackware on your first disk, then partition, format and mount your second disk as you see fit. When installing Windows into the VM make sure that the disk image is created on the partition you wish it to be.
Old 12-01-2013, 08:48 AM   #4
LQ Addict
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,800

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
Just to add to the above. There are three ways you can use your second hard drive for the Windows instance in VirtualBox. The first, which is how I do it, is to simply format the second drive with a Linux file system and change the settings in VirtualBox so that it stores the virtual disks on that drive. This has the advantage of being able to have several different OSs with their hard drive images stored on the second drive -- which works well for me.
The second and third methods are slightly more complex and that is to use a raw disk or raw partition and is described here:
I have a feeling the second method and, perhaps, the third may be quicker than the first but the disadvantage is that you lose an entire disk or partition to on Virtual OS instance.
Old 12-01-2013, 09:22 AM   #5
MLED Founder
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, CentOS, FreeBSD
Posts: 3,360

Rep: Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907Reputation: 1907
I have two dozen different guest systems on my VirtualBox installation, mostly Slackware, but also some Windows for testing websites on different version of IE. The virtual systems are on a separate partition, mounted on a /data directory. The only thing you have to do is configure VirtualBox to store everything there.


Old 12-01-2013, 11:14 AM   #6
Registered: Jan 2002
Location: UK
Distribution: Slack 14.1
Posts: 193

Original Poster
Rep: Reputation: 30
Thanks all for the info!

Was going to dedicate the second HDD just for VirtualBox Windows installation, but as I come to think of it might also have FreeBSD as another guest OS. Hmmmm...
Old 12-02-2013, 04:15 PM   #7
Registered: Dec 2005
Location: Philippines
Distribution: Slackware
Posts: 605

Rep: Reputation: Disabled
You don't need dedicated partitions for VirtualBox guest. On my main computer I have two hard drives. The first drive has three partitions for /, /home/ and swap. The second disk is were my backups go and it is mounted on /home/backup.

Filesystem     Type   Size  Used Avail Use% Mounted on
/dev/sda1      jfs     47G   41G  5.6G  88% /
/dev/sda3      jfs    882G  132G  751G  15% /home
/dev/sdb1      jfs    932G   75G  858G   8% /home/backup
All of my guest VirtualBox machines are stored on my first disk on the /home/ partition in /home/chris/VirtualBoxVMs/. The number of virtual machines varies from time to time, This is what I have now. At one point I had about 10-15 of them.

501M    /home/chris/VirtualBoxVMs/FreeDOS
873M    /home/chris/VirtualBoxVMs/Haiku
17G     /home/chris/VirtualBoxVMs/SnowLeopard
16G     /home/chris/VirtualBoxVMs/Windows7
19G     /home/chris/VirtualBoxVMs/WindowsXP
52G     /home/chris/VirtualBoxVMs/


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
Virtualbox Windows 7 host and Linux guest userme Linux - Security 3 10-07-2012 09:22 PM
Host Fedora14, Windows 7 is running as Virtualbox guest- Mic is not working on Guest mwaheed Linux - Virtualization and Cloud 1 10-20-2011 12:51 PM
Virtualbox host 10.04 guest question texas.chef94 Linux - Virtualization and Cloud 17 10-02-2011 07:28 PM
Trying to connect to a VirtualBox Windows guest through RDP ErEn Linux - Networking 1 04-03-2010 03:45 PM
Configure USB in Windows XP guest at virtualbox nos1833 Debian 1 03-07-2008 11:51 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:46 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration