Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[SOLVED] VM running off of single, dedicated disk...

Featured Replies

 

  • Replies 62
  • Views 14.4k
  • Created
  • Last Reply
  • Author

I tried this method from the one post... 

<disk type='block' device='disk'>      
<driver name='qemu' type='raw' cache='writeback'/>       
<source dev='/dev/sda'/>       
<target dev='hdd' bus='sata'/>     
</disk>

...and it took it, but when it boots, it's not seeing the drive...windoze isn't booting.  I'm still messing with it.  

 

  • Author

HA!!  I said, "f this xml nonsense", switched back to the normal view, punched in "manual, /dev/sde" and...

image.thumb.png.bc0549bd6b5bb3f47fc0cfe67f93779b.png

 

Boom.  lol

 

Now, let's see if it actually boots...

  • Author

Not looking promising...lol

 

image.thumb.png.317f543ce80efb6f7f42729a0b13a4e6.png

  • Author

HA!!  I spoke too soon!!!

 

image.png.014efd5ca0a6af85d42adf2a1b1666e6.png

  • Author

WE HAVE BOOTAGE, EVERYONE!!!  Thank you ALL for the TREMENDOUS amount of assistance everyone provided.  Next post will be the last post of the thread with a final recap of what worked.  Thank you all...you're the best.  😄

 

image.thumb.png.6704d11a55131de8a00f560b8a33b7df.png

  • Author

So, to go from a vdisk to a physical disk (v to p, as it were), first you must dd (copy) your vdisk to the physical disk:

 

dd if="location/of/vdisk" of=/dev/sdX

Details can be found in this video.  My command was...

 

dd if='/mnt/user/domains/Adobe/vdisk1.img' of=/dev/sde

 

**EDIT:  Thank you, John_M!!**

 

When that's done, open up the terminal (top right corner under your server stats) and run...

ls -l /dev/disk/by-id

...to get all your disk associations.  This is what I was trying to do earlier but, without the "-l" flag, it just comes out as a bunch of random nonsense.  With the flag, it shows which ID is tied to which device.  

 

So, you run that command and you get something like this:


image.thumb.png.7d7c655c064fc273e904f5a9e43fba8a.png

 

We know that the drive that we want is SDE from the "Main" tab:


image.thumb.png.4b95fcf34bd92f2ccc554b656a1d3d9e.png
 

That means we can use either scsi-35002538e40d01f52 or wwn-0x5002538e40d01f52 to tell the VM which disk to use.  So, go edit the VM and hand jam either \dev\disk\by-id\scsi-35002538e40d01f52 or \dev\disk\by-id\wwn-0x5002538e40d01f52 into the disk location:
 

image.thumb.png.2c4222539836e4015fce9242721ca0b8.png

 

...and boom...Bob's your auntie.

 

It's that easy.  Seriously.  

 

Thank you again, everyone.  YOU ROCK!!

Edited by rmp5s

  • rmp5s changed the title to [SOLVED] VM running off of single, dedicated disk...
1 hour ago, rmp5s said:

So, to go from a vdisk to a physical disk (v to p, as it were), first you must dd (copy) your vdisk to the physical disk:

 


dd if="location/of/vdisk" of=/dev/sdX

Details can be found in this video.

 

Then you simply point the VM to the new disk.  Look on your "Main" page and find the disk you copied the vdisk to.  In my case it's sde:

 

image.thumb.png.69eb9ae3d09aed3ffc696b94490a93ae.png

 

Then you edit the VM, change vdisk to "manual" and set the location to /dev/YOURDISK:

 

image.png.3abf0990f5248a6247c92ef32489d97a.png

 

It's that easy.  Seriously.  

 

Thank you again, everyone.  YOU ROCK!!

Not good to use sdx because on reboots drive letters can change, should use drives unique ID that does not change.

  • Author
6 minutes ago, jpowell8672 said:

Not good to use sdx because on reboots drive letters can change, should use drives unique ID that does not change.

Yes. I know. But, after spending HOURS trying to get the drive ID method working, I'm STOKED to just have it working.

 

If you'd like to look at my previous posts and see if you could figure out the correct drive ID, have at it.

15 hours ago, rmp5s said:

Yes. I know. But, after spending HOURS trying to get the drive ID method working, I'm STOKED to just have it working.

 

If you'd like to look at my previous posts and see if you could figure out the correct drive ID, have at it.

If you type

ls -l /dev/disk/by-id

you will see what the symlinks actually point to. Instead of using /dev/sdX in your configuration, use /dev/disk/by-id/Y where Y is the symlink (shown in light blue/cyan) that points to your /dev/sdX. If what I wrote doesn't make sense then post a screenshot of the ls -l command, above and confirm which sdX you are currently using (from your screenshot above it looks like you're using /dev/sde).

Here's what I get when I type the command above:

root@Mandaue:~# ls -l /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Jan 21 15:29 ata-WDC_WD60EFRX-68L0BN1_WD-WX31D9584LHA -> ../../sde
lrwxrwxrwx 1 root root 10 Jan 21 15:29 ata-WDC_WD60EFRX-68L0BN1_WD-WX31D9584LHA-part1 -> ../../sde1
lrwxrwxrwx 1 root root  9 Jan 21 15:29 ata-WDC_WD60EFRX-68L0BN1_WD-WX31D9584PUZ -> ../../sdk
lrwxrwxrwx 1 root root 10 Jan 21 15:29 ata-WDC_WD60EFRX-68L0BN1_WD-WX31D9584PUZ-part1 -> ../../sdk1
lrwxrwxrwx 1 root root  9 Jan 21 15:29 ata-WDC_WD60EFRX-68L0BN1_WD-WX31D95HZ0ZF -> ../../sdb
lrwxrwxrwx 1 root root 10 Jan 21 15:29 ata-WDC_WD60EFRX-68L0BN1_WD-WX31D95HZ0ZF-part1 -> ../../sdb1
lrwxrwxrwx 1 root root  9 Jan 21 15:29 ata-WDC_WD60EFRX-68L0BN1_WD-WX31D95HZARZ -> ../../sdi
lrwxrwxrwx 1 root root 10 Jan 21 15:29 ata-WDC_WD60EFRX-68L0BN1_WD-WX31D95HZARZ-part1 -> ../../sdi1
lrwxrwxrwx 1 root root  9 Jan 21 15:29 ata-WDC_WD60EFRX-68L0BN1_WD-WX41D758N0YV -> ../../sdf
lrwxrwxrwx 1 root root 10 Jan 21 15:29 ata-WDC_WD60EFRX-68L0BN1_WD-WX41D758N0YV-part1 -> ../../sdf1
lrwxrwxrwx 1 root root  9 Jan 21 15:29 ata-WDC_WD60EFRX-68MYMN1_WD-WX11D557YUDV -> ../../sdh
lrwxrwxrwx 1 root root 10 Jan 21 15:29 ata-WDC_WD60EFRX-68MYMN1_WD-WX11D557YUDV-part1 -> ../../sdh1
lrwxrwxrwx 1 root root  9 Jan 21 15:29 ata-WDC_WD60EFRX-68MYMN1_WD-WX11D55PXTHV -> ../../sdd
lrwxrwxrwx 1 root root 10 Jan 21 15:29 ata-WDC_WD60EFRX-68MYMN1_WD-WX11D55PXTHV-part1 -> ../../sdd1
lrwxrwxrwx 1 root root  9 Jan 21 15:29 ata-WDC_WD60EFRX-68MYMN1_WD-WX31D55A4939 -> ../../sdg
lrwxrwxrwx 1 root root 10 Jan 21 15:29 ata-WDC_WD60EFRX-68MYMN1_WD-WX31D55A4939-part1 -> ../../sdg1
lrwxrwxrwx 1 root root  9 Jan 21 15:29 ata-WDC_WD60EFRX-68MYMN1_WD-WX31D55DFK4P -> ../../sdj
lrwxrwxrwx 1 root root 10 Jan 21 15:29 ata-WDC_WD60EFRX-68MYMN1_WD-WX31D55DFK4P-part1 -> ../../sdj1
lrwxrwxrwx 1 root root  9 Jan 21 15:29 ata-WDC_WD60EFRX-68MYMN1_WD-WX31D55DFLZ4 -> ../../sdc
lrwxrwxrwx 1 root root 10 Jan 21 15:29 ata-WDC_WD60EFRX-68MYMN1_WD-WX31D55DFLZ4-part1 -> ../../sdc1
lrwxrwxrwx 1 root root  9 Jan 21 15:29 ata-WDC_WD60EFRX-68MYMN1_WD-WXA1D65E3TJ9 -> ../../sdl
lrwxrwxrwx 1 root root 10 Jan 21 15:29 ata-WDC_WD60EFRX-68MYMN1_WD-WXA1D65E3TJ9-part1 -> ../../sdl1
lrwxrwxrwx 1 root root  9 Jan 21 15:28 usb-Verbatim_STORE_N_GO_12460000000001D9-0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 Jan 21 15:28 usb-Verbatim_STORE_N_GO_12460000000001D9-0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root  9 Jan 21 15:29 wwn-0x50014ee0596ecc4b -> ../../sdk
lrwxrwxrwx 1 root root 10 Jan 21 15:29 wwn-0x50014ee0596ecc4b-part1 -> ../../sdk1
lrwxrwxrwx 1 root root  9 Jan 21 15:29 wwn-0x50014ee0596f1e3c -> ../../sde
lrwxrwxrwx 1 root root 10 Jan 21 15:29 wwn-0x50014ee0596f1e3c-part1 -> ../../sde1
lrwxrwxrwx 1 root root  9 Jan 21 15:29 wwn-0x50014ee0596f39f4 -> ../../sdi
lrwxrwxrwx 1 root root 10 Jan 21 15:29 wwn-0x50014ee0596f39f4-part1 -> ../../sdi1
lrwxrwxrwx 1 root root  9 Jan 21 15:29 wwn-0x50014ee0596f3b40 -> ../../sdb
lrwxrwxrwx 1 root root 10 Jan 21 15:29 wwn-0x50014ee0596f3b40-part1 -> ../../sdb1
lrwxrwxrwx 1 root root  9 Jan 21 15:29 wwn-0x50014ee20c3bba5c -> ../../sdd
lrwxrwxrwx 1 root root 10 Jan 21 15:29 wwn-0x50014ee20c3bba5c-part1 -> ../../sdd1
lrwxrwxrwx 1 root root  9 Jan 21 15:29 wwn-0x50014ee20c455c3c -> ../../sdj
lrwxrwxrwx 1 root root 10 Jan 21 15:29 wwn-0x50014ee20c455c3c-part1 -> ../../sdj1
lrwxrwxrwx 1 root root  9 Jan 21 15:29 wwn-0x50014ee20c975d80 -> ../../sdl
lrwxrwxrwx 1 root root 10 Jan 21 15:29 wwn-0x50014ee20c975d80-part1 -> ../../sdl1
lrwxrwxrwx 1 root root  9 Jan 21 15:29 wwn-0x50014ee26196c7df -> ../../sdc
lrwxrwxrwx 1 root root 10 Jan 21 15:29 wwn-0x50014ee26196c7df-part1 -> ../../sdc1
lrwxrwxrwx 1 root root  9 Jan 21 15:29 wwn-0x50014ee2b6ec2587 -> ../../sdg
lrwxrwxrwx 1 root root 10 Jan 21 15:29 wwn-0x50014ee2b6ec2587-part1 -> ../../sdg1
lrwxrwxrwx 1 root root  9 Jan 21 15:29 wwn-0x50014ee2b6f065b4 -> ../../sdh
lrwxrwxrwx 1 root root 10 Jan 21 15:29 wwn-0x50014ee2b6f065b4-part1 -> ../../sdh1
lrwxrwxrwx 1 root root  9 Jan 21 15:29 wwn-0x50014ee2b7564f5f -> ../../sdf
lrwxrwxrwx 1 root root 10 Jan 21 15:29 wwn-0x50014ee2b7564f5f-part1 -> ../../sdf1
root@Mandaue:~# 

So if I wanted to pass through /dev/sde (and it wasn't already in use as an array disk) I could use either

 

        /dev/disk/by-id/ata-WDC_WD60EFRX-68L0BN1_WD-WX31D9584LHA

or
        /dev/disk/by-id/wwn-0x50014ee0596f1e3c

 

because both point to ../../sde (i.e. to /dev/sde).
 

 

 

  • Author
On 1/21/2020 at 9:28 AM, John_M said:

If you type


ls -l /dev/disk/by-id

you will see what the symlinks actually point to. Instead of using /dev/sdX in your configuration, use /dev/disk/by-id/Y where Y is the symlink (shown in light blue/cyan) that points to your /dev/sdX. If what I wrote doesn't make sense then post a screenshot of the ls -l command, above and confirm which sdX you are currently using (from your screenshot above it looks like you're using /dev/sde).

That -l makes all the difference.  That's how to correlate everything.  Beautiful.  I'll update my post.  Thanks.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.