Page 1 of 1

Create Virtual From Physical

Posted: 17. Sep 2013, 15:17
by archeryguru2000
Hello,
I decided to create a virtual copy of my laptop OS (Ubuntu 10.10, 64 bit) so I can upgrade my OS without worrying about losing anything in either a backup or upgrade process. So I booted a live CD and ran a dd command.

Code: Select all

#: dd if=/dev/sda of=<external hard drive>/virtual_machine.bin
I then rebooted my physical machine and converted the *.bin file to *.vdi format.

Code: Select all

$: VBoxManage convertdd /<external hard drive>/virtual_machine.bin /<external hard drive>/virtual_machine.vdi --format VDI
I then created a new VirtualBox machine and booted. All went well at first. However, after the grub screen and plymouth splash, I am then presented with a terminal. I decided to try

Code: Select all

$: startx
but that resulted in an error:

Code: Select all

Fatal server error:
no screens found

Please consult... <blah blah ...>

xinit: No such file or directory (errno 2): unable to connect to X server
xinit: No such process (errno 3): Server error.
How should I approach this? Where should I search for "screens?" I assume this should be in /etc/X11/xorg.conf? However, I've checked this file and it seems okay?

Any suggestions what I should do/try?

Thanks,
~~archery~~

Re: Create Virtual From Physical

Posted: 17. Sep 2013, 15:32
by archeryguru2000
AH HA! I've solved my own problem. (Gotta love linux!) Anyway, for those who are curious or are having a similar problem. I doubled checked the xorg.conf file and decided to remove it. I was attempting to see if linux would attempt to (re-) create this config file based on the "new" display settings (inside of a virtual machine). Thus I first created a backup (ALWAYS A GOOD IDEA):

Code: Select all

$: sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
And then I removed the original:

Code: Select all

$: sudo rm /etc/X11/xorg.conf
After this, I rebooted and viola, I have my virtual machine that is a copy of my physical machine. YEAH!

~~archery~~