Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 6475
  • Last Modified:

How to convert Ubuntu physical Machine to Microsoft vhd ?

Dear Experts,
I want to convert Ubuntu Physical machine to Microsoft Virtual machine. Please provide proper steps.
Regards.
0
ibu1
Asked:
ibu1
  • 5
  • 3
1 Solution
 
MazdajaiCommented:
Do you mean hyperv? It's a 4 step process:
1. boot to the live cd, mount a windows share. This will be the share storing the Ubuntu image.
mount –t cifs –o username=guest password=guest //server/share /tmp/smb

2. Use dd and clone the disk.
dd if=/dev/sda of=/tmp/smb/ub1.img

3. Login to a windows box with access to hyperv. Use vhdtool to convert the image.
vhdtool.exe /convert ub1.img
http://archive.msdn.microsoft.com/vhdtool

4. Import the vhd file into hyperv. Install integration tool.
0
 
ibu1Author Commented:
Hello Mazdajai,
I will try this today and also please send steps to make virtual machine into physical.
Thanks.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
ibu1Author Commented:
Hello Mazdajai,
I am still waiting for the way to convert physical to virtual.
0
 
MazdajaiCommented:
ibu1,

It is step 1. Have you tried it?
0
 
ibu1Author Commented:
Yes,I tried step 1 and completed the first part to take the image but did not convert it to vhd file.
0
 
ibu1Author Commented:
Hello,
I tried to convert the image from my external hard to windows xp machine and below is the output.But it did not create any vhd file.Is this tool is only compatible with the machine where hyper-v is installed or can it be run from windows xp machine as well? The image is 74.5 GB and the below command just finishes in a second.
O:\ubuntu>VhdTool.exe /convert ub1.img
        Status: Converting "ub1.img" to a fixed format VHD.
        Status: Attempting to open file "ub1.img"
        Status: File opened, current size is 80026362880
        Status: VHD footer generated
        Status: VHD footer written to file.
        Status: Complete
0
 
MazdajaiCommented:
Do you have enough space on the O-Drive?
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now