LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Install in partition using virtualbox (https://www.linuxquestions.org/questions/linux-newbie-8/install-in-partition-using-virtualbox-701433/)

marcusmercado 02-01-2009 09:49 AM

Install in partition using virtualbox
 
Hi,

Sorry for the noob question but is it possible to install linux in a real partition using virtual box. I have the partitions ready ext3 and swap. I fire up the iso using virtual box but it only sees the virtual hda not rael partition.

Is it possiblee and install in a real partition using vbox?

AlucardZero 02-01-2009 10:04 AM

Quote:

Starting with version 1.4, as an alternative to using virtual disk images (as described in
detail in chapter 5, Virtual storage, page 70), VirtualBox can also present either entire
physical hard disks or selected partitions thereof as virtual disks to virtual machines.
Please see your VirtualBox manual.

CJS 02-01-2009 10:29 AM

Yes, I believe you can use VBox to run a Live CD to install Linux to a partition. The key is a command like this:
Code:

sudo VBoxManage internalcommands createrawvmdk -filename ~/.VirtualBox/sda_HDD.vmdk -rawdisk /dev/sda -register
That creates a VBox HDD called "sda_HDD.vmdk" that will give you full access to the sda HDD. When you access sda_HDD within VBox, make sure not to mess with the partition that has the host OS that is running VBox, or you will be in for a lot of grief. Good luck and let us know how it goes.

theacerguy 02-01-2009 10:48 AM

im not sure but that code posted by CJS will work but sometimes on older distros there isnt sudo so su is best bet then take off sudo


All times are GMT -5. The time now is 11:08 PM.