Converting SUSE 12 SP4 VM image to VHD
Pre-requisites:
Source VM OS volume must use MBR partitioning rather than GPT.
Use the persistent naming (file system label or UUID) in
fstabconfiguration.Most distributions provide the fstab nofail or nobootwait parameters. These parameters enable a system to start when the disk fails to mount at startup.
Ensure that the operating system is installed on the first disk of the source VM. Do not configure a swap partition on the operating system disk. See Information for Non-endorsed Distributions.
We recommend that the network interface in the source VM uses DHCP and enabled on boot. See Add, change, or remove IP addresses for an Azure network interface.
To convert the SUSE 12 SP4 VM image to VHD
- Ensure that the required modules are installed.
lsinitrd -f /boot/initramfs-`uname -r`.img | grep -i hv
Or
modinfo hv_vmbus hv_storvsc hv_netvsc
reboot
Rebuild
initrd.cd /boot/
cp initrd-$(uname -r) initrd-$(uname -r).backup
mkinitrd -v -m "hv_vmbus hv_netvsc hv_storvsc" -f /boot/initrd-$(uname -r) $(uname -r)
- Check the network interface name eth0 and enabled on boot.
/etc/sysconfig/network/ifcfg-eth0 contains the record:
STARTMODE='auto'
- Perform a new full backup of the source VM,
- Prepare an image sharing server and configure the image sharing feature with azure account.
- Import the backup image and perform the conversion.
- Verify the converted vhd files.
In the Azure web portal:
Create a disk with the converted .vhd file.
Create a VM with the previous disk.
Navigate to Disks > Created disk > Create VM. With default Networking & Disks & Management settings, enable boot diagnostics.
Log in to the converted VM through RDP.