Skip to content

Instantly share code, notes, and snippets.

@mb00g
Last active July 17, 2020 02:05
Show Gist options
  • Save mb00g/f8523f815b644ffaf1e2c51f7505dfc6 to your computer and use it in GitHub Desktop.
Save mb00g/f8523f815b644ffaf1e2c51f7505dfc6 to your computer and use it in GitHub Desktop.

scp file2 vm dari vsphere ke proxmox

scp -r root@ip_vpshere:/vmfs/volumes/datastore1/ubuntu_18.04_template /root/vmdk

Buat VM kosongan, jangan lupa ID number-nya (misalkan 100), dilanjut convert file vm-flat.vmdk menjadi vm.qcow2

qemu-img convert /root/vmdk/ubuntu_18.04_template/ubuntu_18.04_template-flat.vmdk -O qcow2 /var/lib/vz/images/100/ubuntu_18.04_template-flat.qcow2

edit parameter vm di /etc/pve/local/qemu-server/100.conf, rubah hdd menjadi ubuntu_18.04_template-flat.qcow2

bootdisk: virtio0
cores: 1
ide2: none,media=cdrom
memory: 2048
name: ubuntu-vmware
net0: virtio=6E:B8:0F:4C:C8:1C,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsihw: virtio-scsi-pci
smbios1: uuid=2c9d3ca3-79d6-4f7a-a013-f2de37a6a852
sockets: 1
virtio0: local:ubuntu_18.04_template-flat.qcow2,size=10G
vmgenid: b7e12f95-33be-460f-9761-6ebec15223b9

move HDD dengan target storage arahkan ke RBD (lakukan dari WebUI proxmox)

Error dracut, workaround

https://forum.proxmox.com/threads/import-vmware-centos-7-machine.42565/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment