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.

Problem adding new vDisk to existing VM

Featured Replies

I tried adding a new vDisk to an existing VM two different ways:

After using virtManager, the OS wouldn't load.

So I reset and tried an XML edit. But following error prevents me from saving the XML:

VM creation error

unsupported configuration: per-device boot elements cannot be used together with os/boot elements

 

Anyone able to clue me in on what's going on? Why does this work:

    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/user/domains/notmacOS/vdisk2.img'/>
      <target dev='hdd' bus='sata'/>
      <address type='drive' controller='0' bus='0' target='0' unit='3'/>
    </disk>

 

but this gives the error:

    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/user/domains/notmacOS/vdisk2.img'/>
      <target dev='hdc' bus='sata'/>
      <boot order='1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='2'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/user/domains/_vDisks/notmacOS_scratchDisk.img'/>
      <target dev='hdd' bus='sata'/>
      <address type='drive' controller='0' bus='0' target='0' unit='3'/>
    </disk>

 

I used the standard template manager GUI to add a vDisk, which generated the the second XML. Couldn't be more easy. So why the error and how to fix. Or is there a better way of adding the second vDisk?

Googling the error seems to be the direction needed for this one, there are quite a few answers for that...

 

Using the form view of the UnRaid VM editor is probably likely the best method of fixing this issue... And if not, create a "New" VM, but point it to the old image files it needs, then add the drive there...  Some minor manual editing would be needed after that...  Make sure to do backups...

  • Author

After many, MANY, diffcompare I narrowed the offending XML which led me to @SpaceInvaderOne explanation HERE.

 

Essentially I was using both a boot device selector earlier in my XML:

<boot dev='hd'/>

and boot ordering in the disk attachment:

<boot order='1'/>

Only one is usable at a time. I chose the latter. Easier to understand when I inevitably change something in the future.

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.