What about install first using VirtualBox, and then copy to HDD ?

General support questions
User avatar
Posts: 22
Joined: 2010/04/13 13:30:39

What about install first using VirtualBox, and then copy to HDD ?

Postby loopx » 2012/05/06 19:46:16


I'm a Linux user since many years now. I've got a server at home running Arch Linux ... but I'm not satisfied for a server usage ... So, I will use, for the first time, the RHEL clone : CentOS (v6).

My server is a little notebook ... and only 1 drive (old drive, IDE). So, first, to set all services required, I will want to use VirtualBox and virtualize the first installation. After that, copy the install back to a HDD and boot it with true hardware ... detect both NIC, ... and I hope that will work fine :).

Do you think it's a good idea ? What about LVM (if set by default, because drive will probably not have same size) and other hardware which will not be present at the begining ???


Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

What about install first using VirtualBox, and then copy to

Postby pschaff » 2012/05/07 17:23:35

It should be possible to do what you propose, but it seems unlikely to be worth the trouble. It would be a lot easier to just install to the real hardware if that is your final target.

Anyway, to follow the virtual-to-physical conversion path, you will need to copy the installed system to the physical partitions. I think it could be done by attaching the physical partitions to the virtual machine, formatting them, and copying over the data with a tool such as tar, but I have never done that with VirtualBox. You will need to be sure that whatever copy method you use preserves the SELinux context, and that you appropriately modify /etc/fstab and /boot/grub/grub.conf to match the physical hardware, and follow Creating a New Initial RAM Disk to make it bootable. You will also have to change the graphics configuration after boot to match the physical hardware.

I'd just use a VM to practice and then do a fresh install on the real iron.

Return to “CentOS 6 - General Support”

Who is online

Users browsing this forum: No registered users and 5 guests