ubuntu vm xcp to proxmox

ppktm

New Member
Mar 14, 2024
4
0
1
I have vm converted to qcow2 and imported on proxmox. It has lvm but when it boots does not see the lvm device and drops to initramfs. Ran lvm: vgscan, pvscan, it does not see anything.

Steps
* xe vdi-export uuid="xxxx" filename myvm.vhd format=vhd
* on proxmox created a vm (100)
* qemu-img convert myvm.vhd -O qcow2 myvm,qcow2 -p
* qm importdisk 100 myvm.qcow2 mypool
* qm set 100 -scsi0 mypool:vm-100-disk-0

What am I missing ?

Thanks
ppktm
 
Yes,

Code:
* qm importdisk 100 myvm.qcow2 mypool

transferred 97.1 GiB of 100.0 GiB (97.10%)

transferred 98.1 GiB of 100.0 GiB (98.10%)

transferred 99.1 GiB of 100.0 GiB (99.10%)

transferred 100.0 GiB of 100.0 GiB (100.00%)

transferred 100.0 GiB of 100.0 GiB (100.00%)

Successfully imported disk as 'unused0:mypool:vm-100-disk-0'

Code:
* qm set 100 -scsi0 mypool:vm-100-disk-0

update VM 100: -scsi0 mypool:vm-100-disk-0

Code:
* qm config 100

agent: 1

boot: order=scsi0;ide2

cores: 4

cpu: x86-64-v2-AES

ide2: none,media=cdrom

memory: 10240

meta: creation-qemu=8.1.5,ctime=1712599022

name: myvm

numa: 0

ostype: l26

scsi0: mypool:vm-100-disk-0,size=102399M

scsihw: virtio-scsi-single

smbios1: uuid=5e78cace-02c7-4059-a0ca-1dc8ec3a25b1

sockets: 1

vmgenid: 733950da-1cce-47db-8391-d6d27682da6e

Thanks
ppktm
 
Last edited:

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!