Servers‎ > ‎

Migrate Server 2008R2 on VMware to XEN (on Debian)

posted Mar 11, 2016, 6:53 AM by Chris Franklin   [ updated Mar 14, 2016, 7:00 AM ]
Long story short, I'm migrating all my VMware virtual server to XEN on a Debian (8 "Jessie") server. 
 
Requirements
First you'll need to convert your running Server to a vhdx file using disk2vhd
  • Leave "use VHDX" checked
  • And as I'll be converting a live server, well need to also check the  "Use Volume Shadow Copy"
  • Here I'm saving to "Z:\PD.vhdx"
    • Z: is my remote XEN server running SMB 
    • PD is my file & Server name

  • Once that's done you'll need to login to your XEN server and CONVERT your VHDX image in to a RAW file that XEN can read and work with. The command for that is.

command

VBoxManage clonehd PD.VHDX PD.img -format RAW

  • Now setup your XEN config file. Here's mine as an example

/etc/xen/pd.cfg

builder='hvm'
memory=4000
vcpus=3
name="pdexpress.vm"
vif=['mac=00:50:56:00:11:3,bridge=xenbr0']
disk=['file:/storage/virtuals/PD.img,hda,w']
boot="dc"
serial='pty'
vnc=1
vnclisten="0.0.0.0"
vncpasswd="somep7charpasswdgoeshere"
on_xend_stop='shutdown'
acpi=1
apic=1
stdvga=1
viridian=1
fx_passthru=0
localtime=1
pci_power_mgmt=1
xen_platform_pci=1
vgaram=128





Comments