Jump to content

Recommended Posts

Posted

Hi all,

 

I would like to convert one of my Linux physical machines to my Hyper-V Box, I have a tool from VMWare to convert physical machines to VMware infrastructure but I cant seem to find a similar tool for Hyper-V.

 

 

Anyone know an easy way to achieve this ?

 

 

Thanks

 

Chris.

Posted

Clonezilla? Take an image of the physical machine and apply that image to a VM's hard drive?

 

What flavour of Linux are you using. Hyper-V doesn't play nice with non-Windows OS's. I think SuSE and CentOS are the only ones officially supported. Even then I'm not certain latest versions are on the play nice list.

  • Thanks 1
Posted
Hyper-V doesn't play nice with non-Windows OS's.

The Integration Services for Hyper-V have been included in the Linux kernel for a while now, so most distros should be supported as guests.

 

Yes, Hyper-V supports many Linux distros, architectures, and versions, and that support has been improved in WS2012 R2 Hyper-V.

 

It’s no secret that there were some changes to the Linux Integration Services that are built into the Linux kernel. Those changes were intended for and supported on WS2012 R2 Hyper-V (not WS2012 Hyper-V). Those two changes are:

 

  • Dynamic Memory: Linux guest OSs can use the balloon driver to have the exact same support for Dynamic Memory as Windows (add and remove). Bear in mind the constraints of the Linux distro itself. And remember the recommendations of Linux when assigning large amounts of CPU/RAM to a machine. These are Linux recommendations/limits, not Hyper-V ones.
  • Online backup: You can now perform a file system freeze in the Linux guest OS to get a file system consistent backup of a Linux guest OS without pausing the VM. Linux does not have VSS (like Windows) so we cannot get application consistency. But this is still a huge step forward. According to Microsoft, WS2012 R2 Hyper-V is now the best way to virtualize and backup Linux; you can use any backup tool that supports Hyper-V to reliably backup your Linux VMs without using some script that does a dumb file copy.

Remember that online VHDX resizing is a host function, so Linux guest OSs support this too.

 

Source: www.aidanfinn.com/?p=14941

  • Thanks 1
Posted

At its simplest, moving a Linux install is pretty easy:

 

1. Create your new machine, use a live disc to create the partitions

2. On your original machine, use a live disc and tarball each partition, and put on some form of removable media

3. On the VM, mount each partition and untar the relevant tarball into it.

4. Restore grub to the correct place using the centos boot disc per - TipsAndTricks/ReinstallGRUB - CentOS Wiki

 

I've done similar things with various linux machines in the past. The tarball/move stage is usually pretty simple as most installs have a single partition.

Posted

I thought VMware did a free physical to virtual convertor which ran standalone, and the Microsoft convertor supports converting vm-ware files off-line?

 

Steve

Posted

They do, When I go to Convert Poweredon Machine it will only send it to a VMware ESXI server... I can oull From Hyper-V to ESXI but not powered on to Hyper-V

 

I thought VMware did a free physical to virtual convertor which ran standalone, and the Microsoft convertor supports converting vm-ware files off-line?

 

Steve

Posted
At its simplest, moving a Linux install is pretty easy:

 

1. Create your new machine, use a live disc to create the partitions

2. On your original machine, use a live disc and tarball each partition, and put on some form of removable media

3. On the VM, mount each partition and untar the relevant tarball into it.

4. Restore grub to the correct place using the centos boot disc per - TipsAndTricks/ReinstallGRUB - CentOS Wiki

 

I've done similar things with various linux machines in the past. The tarball/move stage is usually pretty simple as most installs have a single partition.

 

Bit of a complicated install this one. It's got many partitions.... All seperate partitions for /Var and /Home etc..

Posted
Bit of a complicated install this one. It's got many partitions.... All seperate partitions for /Var and /Home etc..

 

Yeah, its a bit of a pain via my method, as you have to go and edit the /etc/fstab file afterwards too but it works in my experience.

Posted

How about a offline p2v using the systinternals tool? I have no idea if it will work.

 

Normally I would do a backup with shadow protect and then convert to vhd using shadowprotect

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...