HPE Morpheus VM Essentials
1826055 Members
4554 Online
109690 Solutions
New Discussion

Re: Temporary file issues when migrating VMware VMs(VMware VM移行時の一時ファイルの問題)

 
kurotan
Advisor

Temporary file issues when migrating VMware VMs(VMware VM移行時の一時ファイルの問題)

I downloaded the "HPE VM Essentials Software migration guide" from the Demonstration Portal.

I tried migrating VMware VMs according to the guide.

After converting VMware VMs to managed VMs, I performed the "import as image" operation.

The data exported from vSphere was uploaded to the S3 storage that was set as storage.

When creating a new instance using that image, a vmdk image and a QCOW2 image were created in "/var/morpheus/kvm/images" on the host where the instance was deployed.

The problem is that this file remains even after the instance is deployed, and local pool capacity is consumed every time a new VM is migrated.

When creating an instance using the same image, the same file seems to be used, but a new file was not created.

Also, when creating an instance again using the same image after manually deleting the file, a new vmdk image and a QCOW2 image were created.

Ideally, the files in the above folders should be deleted automatically, but do they need to be deleted manually according to the specifications?

Or is this some kind of bug?

This could be a problem when migrating a large number of VMs.

[Japanese]

Demonstration Portalから”HPE VM Essentilas Software migration guide”をダウンロードしました。

ガイドに従い、VMwareVMの移行を試しました。

VMware VMを管理対象VMに変換後、"イメージとしてインポート"の操作をしました。
ストレージとして設定していたS3ストレージにvSphereからエクスポートされたデータがアップロードされました。

そのイメージを使用して新しいインスタンスを作成する際には、インスタンスをデプロイしたホストの
”/var/morpheus/kvm/images”にvmdkイメージとQCOW2イメージが作成されました。

問題はこのファイルがインスタンスのデプロイ後も削除されず残り続けてしまうため、
ローカルプールの容量が新しいVMの移行のたびに消費されてしまうことです。

同じイメージを使用してインスタンスを作成する場合は、同じファイルを使用するようで新しく
ファイルは作成されませんでした。
また手動でファイルを削除後に、再度同じイメージを使用してインスタンスを作成すると
vmdkイメージとQCOW2イメージが新たに作成されました。

上記フォルダのファイルは、自動的に削除されることが理想だと思いますが、仕様的に手動で削除する必要があるのでしょうか?
それとも何かしらの不具合でしょうか?

大量のVMを移行する場合に問題になりそうです。

2 REPLIES 2
AmitBiswas
HPE Pro

Re: Temporary file issues when migrating VMware VMs(VMware VM移行時の一時ファイルの問題)

Please share the output of the command below

#virsh domblklist <VM name>

This will show where the disk is pointing.



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
kurotan
Advisor

Re: Temporary file issues when migrating VMware VMs(VMware VM移行時の一時ファイルの問題)

@AmitBiswas,

Host(Ubuntu22.04/ucs-2)
***********************************************************************
(Before provisioning)
Comment:File verification
root@ucs-2:/var/morpheus/kvm/images# ls
root@ucs-2:/var/morpheus/kvm/images#
Comment:No files are generated

Comment:Check file system usage
root@ucs-2:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 13193776 2340 13191436 1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv 205314024 18677196 176134684 10% /
tmpfs 65968872 47952 65920920 1% /dev/shm
tmpfs 5120 0 5120 0% /run/lock
tmpfs 65968872 0 65968872 0% /run/qemu
/dev/sdb2 1992552 257732 1613580 14% /boot
infinibox.msys-tech.msys:/infinibox03 976562688 2048 976560640 1% /mnt/422e07f3-e606-4248-9f3f-329a94fa4709
infinibox.msys-tech.msys:/infinibox01 976562688 168977664 807585024 18% /mnt/2a405992-1b84-4f7e-8d60-ab6499da2822
infinibox.msys-tech.msys:/infinibox02 976562688 20370688 956192000 3% /mnt/f9a16a99-546e-4697-aba2-dfa57be1674a
tmpfs 13193772 4 13193768 1% /run/user/0
root@ucs-2:~#
Comment:Three NFS shares mounted

スクリーンショット 2025-06-09 092904.png

Comment:Check the pool list
virsh # pool-list
Name State Autostart
-------------------------------------------
infinibox01 active yes
infinibox02 active yes
infinibox03 active yes
local active yes
morpheus-cloud-init active yes
morpheus-images active yes

 

スクリーンショット 2025-06-09 093111.png
***********************************************************************
(After provisioning)

 

Comment:File verification
root@ucs-2:/var/morpheus/kvm/images# ls -la
total 18124780
drwxrwxr-x 2 morpheus-node root 4096 Jun 9 09:36 .
drwxrwxr-x 8 morpheus-node root 4096 May 8 17:18 ..
-rw-r--r-- 1 root root 11649548288 Jun 9 09:37 8ff4282d-b0dc-4fc8-a49a-93e54cabb5c6
-rw-r--r-- 1 root root 6910009856 Jun 9 09:36 8ff4282d-b0dc-4fc8-a49a-93e54cabb5c6.vmdk
root@ucs-2:/var/morpheus/kvm/images# file *
8ff4282d-b0dc-4fc8-a49a-93e54cabb5c6: QEMU QCOW2 Image (v3), 42949672960 bytes
8ff4282d-b0dc-4fc8-a49a-93e54cabb5c6.vmdk: VMware4 disk image
Comment:Two image files are generated.

Comment:Get the summary of block devices for a domain.
virsh # domblklist windows2019-w-virtio
Target Source
---------------------------------------------------------------------------------------------
vda /mnt/422e07f3-e606-4248-9f3f-329a94fa4709/windows2019-w-virtio/hpevm_35-disk-0
sda /mnt/422e07f3-e606-4248-9f3f-329a94fa4709/windows2019-w-virtio/hpevm_35-user-data
virsh #
Comment:Two devices are visible on the NFS share.

Comment:Check file system usage
root@ucs-2:/var/morpheus/kvm/images# df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 13193776 2464 13191312 1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv 205314024 36823512 157988368 19% /
tmpfs 65968872 47952 65920920 1% /dev/shm
tmpfs 5120 0 5120 0% /run/lock
tmpfs 65968872 0 65968872 0% /run/qemu
/dev/sdb2 1992552 257732 1613580 14% /boot
infinibox.msys-tech.msys:/infinibox03 976562688 11393024 965169664 2% /mnt/422e07f3-e606-4248-9f3f-329a94fa4709
infinibox.msys-tech.msys:/infinibox01 976562688 168980224 807582464 18% /mnt/2a405992-1b84-4f7e-8d60-ab6499da2822
infinibox.msys-tech.msys:/infinibox02 976562688 20370944 956191744 3% /mnt/f9a16a99-546e-4697-aba2-dfa57be1674a
tmpfs 13193772 4 13193768 1% /run/user/0
Comment:Use "/mnt/422e07f3-e606-4248-9f3f-329a94fa4709"
***********************************************************************