[SOLVED] qcow2 richtig importieren / Anfängerfragen esxi --> pxm

JayTee75

New Member
Apr 13, 2023
8
1
3
Hallo,

ich sammle erste Erfahrungen mit Proxmox, da ich von Vsphere migrieren will.

Ich probiere derzeit ein vorhandenes Disk-Image in Proxmox (letzte Version) zu importieren.

Code:
root@proxmox:/tmp# qm importdisk 120 /tmp/test.qcow2 local-lvm --format qcow2

Dies klappt auch mit dieser Ausgabe:

Code:
importing disk '/tmp/test.qcow2' to VM 120 ...
  WARNING: You have not turned on protection against thin pools running out of space.
  WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full.
  Logical volume "vm-120-disk-1" created.
  WARNING: Sum of all thin volume sizes (111.00 GiB) exceeds the size of thin pool pve/data and the amount of free space in volume group (14.75 GiB).
transferred 0.0 B of 32.0 GiB (0.00%)
transferred 370.3 MiB of 32.0 GiB (1.13%)
...
transferred 32.0 GiB of 32.0 GiB (100.00%)
Successfully imported disk as 'unused0:local-lvm:vm-120-disk-1'

Schaue ich dann unter VM Disks nach erscheint jedoch nur die vm-120-disk-1 im raw Format.

1681393033927.png

Was mache ich falsch beim Import?

Für eine Hilfestellung, jetzt schon besten Dank.

JayTee75
 
local-lvm und local-zfs sind auch Block Storages und nutzen native Blockdevices (Thin Volumes (LVs) bei LVM-Thin, Zvols bei ZFS) des darunterliegenden Storages. Da geht nur "raw". Willst du qcow2-Image-Dateien haben, musst du einen Storage nehmen der auf Dateisystem-Ebene arbeitet, wie z.B. ein Directory/NFS/SMB Storage, hast du dann aber auch entsprechend mehr Overhead durch das Copy-on-Write von Qcow2 sowie das zusätzliche Dateisystem.
 
Last edited:
  • Like
Reactions: JayTee75
Danke für die schnelle Hilfe. Jetzt habe ich das auch mit den Verzeichnissen verstanden!
Funktioniert.

1681394666754.png
 
Hallo,

ich sammle erste Erfahrungen mit Proxmox, da ich von Vsphere migrieren will.

Ich probiere derzeit ein vorhandenes Disk-Image in Proxmox (letzte Version) zu importieren.

Code:
root@proxmox:/tmp# qm importdisk 120 /tmp/test.qcow2 local-lvm --format qcow2

Dies klappt auch mit dieser Ausgabe:

Code:
importing disk '/tmp/test.qcow2' to VM 120 ...
  WARNING: You have not turned on protection against thin pools running out of space.
  WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full.
  Logical volume "vm-120-disk-1" created.
  WARNING: Sum of all thin volume sizes (111.00 GiB) exceeds the size of thin pool pve/data and the amount of free space in volume group (14.75 GiB).
transferred 0.0 B of 32.0 GiB (0.00%)
transferred 370.3 MiB of 32.0 GiB (1.13%)
...
transferred 32.0 GiB of 32.0 GiB (100.00%)
Successfully imported disk as 'unused0:local-lvm:vm-120-disk-1'

Schaue ich dann unter VM Disks nach erscheint jedoch nur die vm-120-disk-1 im raw Format.

View attachment 49169

Was mache ich falsch beim Import?

Für eine Hilfestellung, jetzt schon besten Dank.

JayTee75
Du kannst deine VMDK ganz einfach so migrieren oder wenn du die auf einem NAS hast, kannst du die VMDK auch direkt in eine VM einbinden und im laufenden Betrieb migrieren.
Ich empfehle dir auch lieber raw statt qcow2 zu nutzen, performt einfach deutlich besser.
 
  • Like
Reactions: JayTee75
@JayTee75
Mal ein Schwank aus meiner Jugend ;)
ich arbeite mit VMware seit 2006 (ESX 3.0 und manchmal 2.5), daher bin ich auch etwas doll mit meiner VMware Denke falsche Wege gegangen.
Bei proxmox wir viel mit Block Devices gearbeitet, anstatt Dateien auf ein FS zu packen. Das hat weniger Overhead und bringt mehr Performance.
Bei Benchmarks ESXi mit VMFS6 gegen RAW Disks auf ZFS Single/RAID1 oder LVM-Thin hast du auf dem gleichen Blech ca. 20% mehr Leistung. Bei SQL Bechmarks sogar bis zu 80% mehr Leistung.

Also am besten RAW (Block Devices) nutzen. ;)
 
  • Like
Reactions: herzkerl
@JayTee75
Mal ein Schwank aus meiner Jugend ;)
ich arbeite mit VMware seit 2006 (ESX 3.0 und manchmal 2.5), daher bin ich auch etwas doll mit meiner VMware Denke falsche Wege gegangen.
Bei proxmox wir viel mit Block Devices gearbeitet, anstatt Dateien auf ein FS zu packen. Das hat weniger Overhead und bringt mehr Performance.
Bei Benchmarks ESXi mit VMFS6 gegen RAW Disks auf ZFS Single/RAID1 oder LVM-Thin hast du auf dem gleichen Blech ca. 20% mehr Leistung. Bei SQL Bechmarks sogar bis zu 80% mehr Leistung.

Also am besten RAW (Block Devices) nutzen. ;)
Danke für den Schwank.
Also sollte ich alles an besten in ein LVM (Thin) packen? Wahrscheinlich noch Kopfsache.
Dachte dort geht dann kein Snapshot. Muss ich dazu etwas beachten?
 
Danke für den Schwank.
Also sollte ich alles an besten in ein LVM (Thin) packen? Wahrscheinlich noch Kopfsache.
Dachte dort geht dann kein Snapshot. Muss ich dazu etwas beachten?
Dann lese am besten den Teil des Wiki:
https://pve.proxmox.com/wiki/Storage

Snapshot geht nur nicht shared.

Eigentlich wird im Wiki alles gut erklärt, aber wenn du Detailwissen haben möchtest oder etwas nicht verstehst, einfach fragen.
 
Danke Falk. Wertvolle Tipps.
Schiebe gerade alles auf neues Storage (LVM-thin) ;)
Für Backup wär dann aber Directory sinnvoll?
Wie binde ich VM-Disk am besten an VirtIO Block oder Virtio SCSI?
 
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!