[Solved] Physical to Virtual... possible?

This is for discussing general topics about how to use VirtualBox.
Post Reply
DiGiTY
Posts: 17
Joined: 23. Aug 2009, 04:25
Primary OS: MS Windows 7
VBox Version: OSE Debian
Guest OSses: Ubuntu

[Solved] Physical to Virtual... possible?

Post by DiGiTY »

How do I go about taking a physical Ubuntu Desktop 9.04 box to a virtual machine in VirtualBox?
Entity
Posts: 100
Joined: 31. Dec 2007, 19:28
Primary OS: Mandriva
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: xp,mandriva,ubuntu,vista,7

Re: Physical to Virtual... possible?

Post by Entity »

It is possible. I once took a windows xp real machine and I cloned it as a vm.
I just booted on a live linux, and cloned the hdd with dd_rescue. (partition/s have to be unmounted first!)
Then with some VB command I don't remember I converted the raw hdd dump into a vdi.

It booted fine, just that at beginning it prompted a lot about new devices.
DiGiTY
Posts: 17
Joined: 23. Aug 2009, 04:25
Primary OS: MS Windows 7
VBox Version: OSE Debian
Guest OSses: Ubuntu

Re: Physical to Virtual... possible?

Post by DiGiTY »

well I just did something similar with my Ubuntu box (gparted + partimage) and it booted just fine in VirtualBox, but the vbox network card isn't showing up in the virtualize machine. I tried both the default NIC (PC-NET something) and the Pro 1000 desktop NIC and nether works. Any ideas?
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: Physical to Virtual... possible?

Post by baf »

Remove /etc/udev/rules.d/70-persistent-net.rules
And reboot your guest.
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
DiGiTY
Posts: 17
Joined: 23. Aug 2009, 04:25
Primary OS: MS Windows 7
VBox Version: OSE Debian
Guest OSses: Ubuntu

Re: Physical to Virtual... possible?

Post by DiGiTY »

Tried it and still no NIC. After I delete 70-persistent-net.rules and reboot, a new one is created. I viewed it and saw that the MAC address matches whats listed/defined in the vbox's Network settings and says eth0, but when I ifconfig there's no eth0 listed, just lo

any other ideas?
DiGiTY
Posts: 17
Joined: 23. Aug 2009, 04:25
Primary OS: MS Windows 7
VBox Version: OSE Debian
Guest OSses: Ubuntu

Re: Physical to Virtual... possible?

Post by DiGiTY »

got eth0 to come up finally (I had it commented out in /etc/network/interfaces for some reason). but now I can't access the network or Internet (I got it set to NAT in Network settings)
DiGiTY
Posts: 17
Joined: 23. Aug 2009, 04:25
Primary OS: MS Windows 7
VBox Version: OSE Debian
Guest OSses: Ubuntu

Re: Physical to Virtual... possible?

Post by DiGiTY »

SOLVED: I figured I mangled the OS' installation so I restored the original partimage disk image and then switched to bridge mode and it worked. P2V was eventually successfully
Post Reply