Jump to content

Unable to Use Vdisk After Moving it


Recommended Posts

Hello all. 

 

    I think I have messed up a VM's disk image, but I'm having trouble understanding why / how.  I had a vdisk raw image for a VM stored on a non-attached disk mount point /mnt/vmstorage. 

 

    Using the shell, I used the move command (mv) to move the file to /mnt/user/domains/vmstorage/XubuntuHomeVM/vdisk.img. 

 

After the move completed, I edited the VM and pointed it to the new location. 

 

Now the VM will not boot. So I tried to see if I could access the files on the image or mount the image and no partitions are visible. This was an Xubuntu VM, but I don't remember the exact details of the file system on it. 

 

root@Sekhmet:/mnt/disks/vmstorage# fdisk -l vdisk1.img 
Disk vdisk1.img: 18.81 GiB, 20174798848 bytes, 39403904 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
root@Sekhmet:/mnt/disks/vmstorage# 

 

root@Sekhmet:/mnt/disks/vmstorage# losetup -f --show vdisk1.img 
/dev/loop4

 

No partitions are found on the disk when I set it up with losetup either. 

 

 

I can rebuild the VM, and the only important data is backed up. I just want to understand what I did wrong, or what could have caused this. 

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...