[SOLVED] vm image file location & winserver import problem

FPOlivier

Member
Jun 4, 2020
13
1
8
48
Hello :)
Sorry if my English is not perfect...

Here is my configuration:
-zfs raid1 with 2 250 Go ssd for the OS
-Zfs Raid5 with 5 1To HDD for datas

The install is fresh (yesterday).

When I create a vm, I can't find the file containing the hard drive of this vm.
I thought it would be in the data store created in zfs, as I configure the vm, but not file... But the vm is running....

Example: I create a vm vor ubuntu20.04 with a 50Go hdd. I thought I would fine a big file about 50Go or at least 3 - 4 Go related to this vm, but nothing...


Anyway, I wouldn't care about it if it's running well, but I need to import and convert vhdx vm and then I can't because I don't now where to import it.

Could you help me?
Many thanks

FPOlivier
 
Hi H4R0,

Thanks !
I had a look at my folder /dev/zvol/mydatafolder
I can see a file for my vm : vm-100-disk-0
but:
1)Its weight is very low : about 512o (or ko I don't know)
2)I can't see its extension ( raw, as I am in ZFS, I think)

Wouldn't this file be the weight of th installed vm?
 
I ask because I really don't find wher my vm'sdisk is stored.
And then, when I'll convert/import my vhdx vm, I won't be able to store it in the good place.
Many thanks for your help :)
 
I can find my vm's hdd :

Capture.PNG

But when I have a look on these 2 folders in MobaXterm, files are shown very small :

Capture2.PNG
Thanks
 
  • Like
Reactions: Moayad
Thank you very very very much :) :) :)
explained like that, I understand immediatly (or even) why I didn't find my files

One question : my vm's disk does exist. so If it is not in a file, which kind of spiritual thing is it?o_O
I'll try that way

Thanks a lot
Have a nice day :)
 
One question : my vm's disk does exist. so If it is not in a file, which kind of spiritual thing is it?o_O
ZFS has two kinds of datasets. One that will show up as a regular file system and volumes, which are exposed as block devices to the system, such as your physical hard disk.

From the ZFS man page which you can read yourself if you run man zfs on the server.
A dataset can be one of the following:

file system A ZFS dataset of type filesystem can be mounted within the standard system namespace and behaves like other file systems. While ZFS file systems are designed to be POSIX compliant, known issues exist that prevent compliance in some cases. Applications that depend on standards conformance might fail due to non-standard behavior when checking file system free space.

volume A logical volume exported as a raw or block device. This type of dataset should only be used when a block device is required. File systems are typically used in most environments.

snapshot A read-only version of a file system or volume at a given point in time. It is specified as filesystem@name or volume@name.

bookmark Much like a snapshot, but without the hold on on-disk data. It can be used as the source of a send (but not for a receive). It is specified as filesystem#name or volume#name.
 
Hehe, yeah it can be confusing when encountering it for the first time. It is owned to the fact that on unixoid systems, pretty much everything is exposed as a file(system).

Depending on the file type you can distinguish between regular files, symlinks, directories, block devices, and so on. It's the first letter in the `Access` column in your screenshot or you get the same when running ls -l on the CLI.

Wikipedia has an article about the most common file types: https://en.wikipedia.org/wiki/Unix_file_types
 
  • Like
Reactions: FPOlivier
Then:
I importer the vhdx => ok
but : when windows start, it comes on the blue screen with boot repair tool
When I run it, it tells it can't repair windows

So I followed a process I found in this forum :
1. Export the VM from HyperV, copy the VHDX file to Proxmox host storage.
2. Convert VHDX to RAW: qemu-img convert -f vhdx OSS-OWNCLOUD.vhdx -O raw /mnt/convert/occonverted.raw
3. Make a new VM, use its ID in the import disk command: qm importdisk 101 occonverted.raw local-lvm
4. Attach the disk to VM, also add an EFI Disk. Change BIOS mode to OVMF.
5. In OVMF BIOS, add an EFI boot entry to point to the efi loader on the disk.

https://forum.proxmox.com/threads/m...v-to-proxmox-qm-importdisk-boot-failed.63674/

But in the console, it shows:
capture3.png

I don't know what to do ?
 
Have you checked the boot order in the option panel of the VM?
 

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!