cpjitservices Posted October 6, 2014 Posted October 6, 2014 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.
tmcd35 Posted October 6, 2014 Posted October 6, 2014 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. 1
Arthur Posted October 6, 2014 Posted October 6, 2014 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 1
steveg Posted October 6, 2014 Posted October 6, 2014 Can you use the tool from vm-ware to do physical to virtual, and then use this to convert that file to hyper-v? Download Microsoft Virtual Machine Converter 2.0 from Official Microsoft Download Center Steve 1
cpjitservices Posted October 6, 2014 Author Posted October 6, 2014 (edited) Can you use the tool from vm-ware to do physical to virtual, and then use this to convert that file to hyper-v? Download Microsoft Virtual Machine Converter 2.0 from Official Microsoft Download Center Steve I dont have a machine running VMWare ESXI so I cant do a P2V like that, I am using CentOS. I have got that MS VMC tool. Edited October 6, 2014 by cpjitservices
localzuk Posted October 6, 2014 Posted October 6, 2014 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.
steveg Posted October 6, 2014 Posted October 6, 2014 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
cpjitservices Posted October 6, 2014 Author Posted October 6, 2014 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
cpjitservices Posted October 6, 2014 Author Posted October 6, 2014 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..
localzuk Posted October 6, 2014 Posted October 6, 2014 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.
cpjitservices Posted October 6, 2014 Author Posted October 6, 2014 (edited) If all else fails - Acronis Backup & Recovery to the rescue... I hope! Thanks all. Edited October 6, 2014 by cpjitservices
MordyT Posted October 7, 2014 Posted October 7, 2014 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now