VMware Communities
maximI5
Contributor
Contributor

How to resize physical partition?

How to resize physical partition?

I have installed VM on individual partition on physical disk.

When I resized it from host, I got an error.

The partition table on the physical disk has changed since the disk was created. Remove the physical disk from the virtual machine, then add it again

Cannot open the disk 'D:\Windows2021\Windows 10 x64.vmdk' or one of the snapshot disks it depends on.

Module 'Disk' power on failed.

Failed to start the virtual machine.

When I resized it from VM, I got an error.

 

And how can I copy VM on a physical disk?

0 Kudos
9 Replies
continuum
Immortal
Immortal

> Remove the physical disk from the virtual machine, then add it again
That indeed is the trick.

> And how can I copy VM on a physical disk?d
I usually do that with Linux dd or better ddrescue

Ulli


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos
maximI5
Contributor
Contributor

Thanks for answer. 

Remove the physical disk from the virtual machine, then add it again
That indeed is the trick.

But it doesn't work. I did it before, after that got  'operating system not found.'

 

> And how can I copy VM on a physical disk?d
I usually do that with Linux dd or better ddrescue

I do that with Paragon, but had 'operating system not found.', when adding a new partition. 

 

 

0 Kudos
continuum
Immortal
Immortal

Please show the partitiontable of the physical disk.
Please use Diskmanagement from Windows and/or gparted from Linux.

We also need to see the new vmdk - it probably shows invalid UUIDs.
If possible also attach the original vmdk-file

 

 


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos
maximI5
Contributor
Contributor

Thanks for your help.

I see it some disadvantages with managing the physical disk.

I made only this and VM doesn't start. 

1 Working good VM W10 x64

2. Removing disk. 

maximI5_0-1643387964637.png

 

3. Adding this same partition again

 

maximI5_1-1643388050894.pngmaximI5_2-1643388079227.png

 

4. Same

maximI5_3-1643388161428.png

 

5 System does not start from disk. 

maximI5_4-1643388421413.png

6. Deleting files on host

maximI5_5-1643388604465.png

7. Restoring from backup

Again looks identical 

maximI5_6-1643388716910.png

 

8 VM starts normally. 

0 Kudos
maximI5
Contributor
Contributor

maximI5_0-1643389412656.png

 

maximI5_1-1643389480115.png

 

 

Difference Before and After in 

maximI5_2-1643389748304.png

 

In new file Windows 10 x64-1.vmdk

# Disk DescriptorFile
version=1
encoding="windows-1250"
CID=fffffffe
parentCID=ffffffff
createType="partitionedDevice"

# Extent description
RW 63 FLAT "Windows 10 x64-1-pt.vmdk" 0
RDONLY 1985 FLAT "\\.\PhysicalDrive5" 63 partitionUUID \\?\scsi#disk&ven_nvme&prod_ct500p2ssd8#5&2c4f139f&0&000000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}
RW 716800 ZERO
RW 306743296 ZERO
RW 210747392 FLAT "\\.\PhysicalDrive5" 307462144 partitionUUID \\?\scsi#disk&ven_nvme&prod_ct500p2ssd8#5&2c4f139f&0&000000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}
RW 458563584 ZERO
RW 48 ZERO

# The Disk Data Base
#DDB

ddb.adapterType = "lsilogic"
ddb.geometry.biosCylinders = "60801"
ddb.geometry.biosHeads = "255"
ddb.geometry.biosSectors = "63"
ddb.geometry.cylinders = "60801"
ddb.geometry.heads = "255"
ddb.geometry.sectors = "63"
ddb.longContentID = "090d8ee173c3ebdd526a0656fffffffe"
ddb.uuid = "60 00 C2 9e 23 83 20 ff-40 82 44 ec de 0f b9 cd"
ddb.virtualHWVersion = "18"

In old file Windows 10 x64-0.vmdk

# Disk DescriptorFile
version=1
encoding="windows-1250"
CID=b8600966
parentCID=ffffffff
createType="partitionedDevice"

# Extent description
RW 63 FLAT "Windows 10 x64-0-pt.vmdk" 0
RDONLY 1985 FLAT "\\.\PhysicalDrive5" 63 partitionUUID \\?\scsi#disk&ven_nvme&prod_ct500p2ssd8#5&2c4f139f&0&000000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}
RW 716800 ZERO
RW 306743296 ZERO
RW 210747392 FLAT "\\.\PhysicalDrive5" 307462144 partitionUUID \\?\scsi#disk&ven_nvme&prod_ct500p2ssd8#5&2c4f139f&0&000000#{53f56307-b6bf-11d0-94f2-00a0c91efb8b}
RW 458563584 ZERO
RW 48 ZERO

# The Disk Data Base
#DDB

ddb.adapterType = "lsilogic"
ddb.geometry.biosCylinders = "60801"
ddb.geometry.biosHeads = "255"
ddb.geometry.biosSectors = "63"
ddb.geometry.cylinders = "60801"
ddb.geometry.heads = "255"
ddb.geometry.sectors = "63"
ddb.longContentID = "b3f0da4117ea172ffeba3dbfb8600966"
ddb.uuid = "60 00 C2 95 57 87 1f c9-e8 04 cd 00 b6 2d fd b4"
ddb.virtualHWVersion = "18"

 

 

0 Kudos
continuum
Immortal
Immortal

please show screenshot of diskmanagement - we need to know wether the hostOS needs access to disk5.
I assume you launch Workstation as administrator - should be obvious ....

Ulli


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos
maximI5
Contributor
Contributor

 

Thank you for your time.

maybe simply I  will use vmdisk instead physicals .

maximI5_0-1643395144662.png

 

Yes, as administrator.

0 Kudos
continuum
Immortal
Immortal

Looks like the same disk has the 350mb boot partition ! - means you will not be able to use this physical disk.
Use a regular vmdk instead - that will work so much more flawless and more reliable ....

Ulli


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos
maximI5
Contributor
Contributor

 

 

I don't think so, the part. 350MB is not connect to VM,

And most important,  its works before, and it is work after backup this file

maximI5_1-1643396399531.png

 

 

maximI5_0-1643396283736.png

 

0 Kudos