[SOLVED] Import VMWare Centos 7 machine

D

Deleted member 33567

Guest
I have tried the following:

Code:
root@node01-sxb-pve01:/vz/template/ova# qm importovf 109 CentOS7.2_64_kusanagi7.8.3.ovf local
Formatting '/var/lib/vz/images/109/vm-109-disk-1.raw', fmt=raw size=32212254720
    (100.00/100%)
root@node01-sxb-pve01:/vz/template/ova# less CentOS7.2_64_kusanagi7.8.3.mf
root@node01-sxb-pve01:/vz/template/ova# ls
CentOS7.2_64_kusanagi7.8.3-disk1.vmdk  CentOS7.2_64_kusanagi7.8.3.mf  CentOS7.2_64_kusanagi7.8.3.ova  CentOS7.2_64_kusanagi7.8.3.ovf
root@node01-sxb-pve01:/vz/template/ova# ls -la
total 3489636
drwxr-xr-x 2 root root       4096 Mar 28 23:20 .
drwxr-xr-x 7 root root       4096 Mar 29 17:49 ..
-rw-r--r-- 1   64   64 1784927744 Aug  5  2016 CentOS7.2_64_kusanagi7.8.3-disk1.vmdk
-rw-r--r-- 1   64   64        165 Aug  5  2016 CentOS7.2_64_kusanagi7.8.3.mf
-rw-r--r-- 1 root root 1784937472 Aug  5  2016 CentOS7.2_64_kusanagi7.8.3.ova
-rw-r--r-- 1   64   64       6282 Aug  5  2016 CentOS7.2_64_kusanagi7.8.3.ovf
root@node01-sxb-pve01:/vz/template/ova#



Any idea why the import did not worked? I have checked the anaconda config an output it's here:
Code:
#version=DEVEL
# System authorization information
auth --enableshadow --passalgo=sha512
# Use CDROM installation media
cdrom
# Use graphical install
graphical
# Run the Setup Agent on first boot
firstboot --enable
# Keyboard layouts
keyboard --vckeymap=jp --xlayouts='jp'
# System language
lang ja_JP.UTF-8

# Network information
network  --bootproto=static --device=eno16777736 --gateway=192.168.123.254 --ip=192.168.123.193 --nameserver=192.168.123.254 --netmask=255.255.255.0 --noipv6 --activate
network  --hostname=localhost.localdomain

# Root password
rootpw --iscrypted $6$fr7q/W8bMTixNRS.$dQ/7AXa6SCsGtlddiObK9gjxzSn9KmjhL9CzpoGUr9jiymB3aJJ0P0nsvln0EXCiHUxstMNW.tOSX22y..owe1
# System timezone
timezone Asia/Tokyo --isUtc
# System bootloader configuration
bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
autopart --type=lvm
# Partition clearing information
clearpart --none --initlabel

%packages
@^minimal
@core
kexec-tools

%end

%addon com_redhat_kdump --enable --reserve-mb='auto'

%end
 
Last edited by a moderator:
I was using VmWare Adaptor instead of SCSI and this helped to successfully migrate the machine into Proxmox.
 
I had a similar problem, a centos 7 vm migrated from vmware booted only with scsi adapter set to VMware PVSCSI. Turns out the virtio_scsi module was missing so a new initramfs was needed.

modprobe virtio_scsi
dracut -f

Afterwards the switch to VirtIO SCSI and booting the vm worked. Learned from that I prepared my vms with

yum install qemu-guest-agent
yum remove open-vm-tools
dracut --force --add-drivers "virtio_balloon virtio_scsi virtio_console virtio_net virtio_pci"

before the migration from vmware. No VMware PVSCSI adapter step needed anymore.
 
I had a similar problem, a centos 7 vm migrated from vmware booted only with scsi adapter set to VMware PVSCSI. Turns out the virtio_scsi module was missing so a new initramfs was needed.

modprobe virtio_scsi
dracut -f

Afterwards the switch to VirtIO SCSI and booting the vm worked. Learned from that I prepared my vms with

yum install qemu-guest-agent
yum remove open-vm-tools
dracut --force --add-drivers "virtio_balloon virtio_scsi virtio_console virtio_net virtio_pci"

before the migration from vmware. No VMware PVSCSI adapter step needed anymore.
Just successfully used this pro-tip 4 years later :D
 
  • Like
Reactions: ofer5183

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!