VirtualBox

Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#12154 closed defect (duplicate)

Snapshots fail to write HD device info to .vbox

Reported by: Stratus Owned by:
Component: virtual disk Version: VirtualBox 4.2.18
Keywords: Cc:
Guest type: BSD Host type: Windows

Description

When taking a snapshot, AttachedDevice is not being written for the harddrive! The snapshot is rendered useless. I found that adding the XML lines with the properly referenced HardDisk uuid string restored access to the VM. See below.

Failed to open a session for the virtual machine virtualserver.

piix3ide#0: The target VM is missing a primary master device. Please make sure the source and target VMs have compatible storage configurations [ver=20 pass=final] (VERR_SSM_LOAD_CONFIG_MISMATCH).

Result Code: E_FAIL (0x80004005)
Component: Console
Interface: IConsole {db7ab4ca-2a3f-4183-9243-c1208da92392}

virtualserver.vbox

      </Hardware>
      <StorageControllers>
        <StorageController name="IDE" type="PIIX4" PortCount="2" useHostIOCache="true" Bootable="true">
          <AttachedDevice passthrough="true" type="DVD" port="1" device="0">
            <HostDrive src="A:"/>
          </AttachedDevice>

Missing the device! Added this in myself.

          <AttachedDevice nonrotational="true" type="HardDisk" port="0" device="0">
            <Image uuid="{965fd831-eace-43e7-84bc-851a95b812e2}"/>
          </AttachedDevice>
        </StorageController>
      </StorageControllers>

Change History (4)

comment:1 by Frank Mehnert, 12 years ago

We need some test case to reproduce as this normally doesn't happen. Does this also happen with a fresh (dummy) VM with only a hard disk attached? Your DVD drive ('A:') looks suspicious.

comment:2 by Frank Mehnert, 12 years ago

Resolution: duplicate
Status: newclosed

I guess this is a duplicate of #11750.

comment:3 by dreezman, 11 years ago

I had same problem in 4.2.18. Upgraded to 4.3.6 and still had same problem. The above fix fixed it for me.

in reply to:  1 comment:4 by Stratus, 11 years ago

Replying to frank:

We need some test case to reproduce as this normally doesn't happen. Does this also happen with a fresh (dummy) VM with only a hard disk attached? Your DVD drive ('A:') looks suspicious.

Decided A: made a perfect available optical drive letter, since obviously 5.25" drives are gone and done. Choosing A: has no ill side effects nor conflicts with any machine communication. Never have to remap the dvd drive when other drives are added/inserted.

Note: See TracTickets for help on using tickets.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette