LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 12-01-2013, 07:17 AM   #1
hubabuba
Member
 
Registered: Jan 2002
Location: UK
Distribution: Slack 14.1
Posts: 193

Rep: Reputation: 30
Windows as virtualbox guest os question


Hello!

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)?

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

Rep: Reputation: 818Reputation: 818Reputation: 818Reputation: 818Reputation: 818Reputation: 818Reputation: 818
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 http://download.virtualbox.org/virtu...3.vbox-extpack and http://download.virtualbox.org/virtu...inux_amd64.run if your system is 64-bit or http://download.virtualbox.org/virtu...-Linux_x86.run 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, 09:40 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,650
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
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, 09:48 AM   #4
273
Senior Member
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 3,555

Rep: Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804Reputation: 804
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:
http://www.virtualbox.org/manual/ch09.html#rawdisk
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, 10:22 AM   #5
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,947

Rep: Reputation: 968Reputation: 968Reputation: 968Reputation: 968Reputation: 968Reputation: 968Reputation: 968Reputation: 968
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.

Cheers,

Niki
 
Old 12-01-2013, 12:14 PM   #6
hubabuba
Member
 
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, 05:15 PM   #7
chrisretusn
Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware
Posts: 508

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.

Code:
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.

Code:
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/
 
  


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
Virtualbox Windows 7 host and Linux guest userme Linux - Security 3 10-07-2012 10: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 01:51 PM
Virtualbox host 10.04 guest question texas.chef94 Linux - Virtualization and Cloud 17 10-02-2011 08:28 PM
Trying to connect to a VirtualBox Windows guest through RDP ErEn Linux - Networking 1 04-03-2010 04:45 PM
Configure USB in Windows XP guest at virtualbox nos1833 Debian 1 03-08-2008 12:51 AM


All times are GMT -5. The time now is 05:58 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration