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.

Convert Sata to Virtio?

Featured Replies

So when I setup a VM a long time ago, I set it up on bus="Sata" instead of bus="Virtio".  I understand that Virtio will get better performance.  The disk type is "raw".

 

Is there any way to change this after the fact?  The drive is an OS drive.  I really can't rebuild this OS from scratch, as it's the primary HTPC currently.  I do have backups I can test any suggestions with.

 

Thanks.

So when I setup a VM a long time ago, I set it up on bus="Sata" instead of bus="Virtio".  I understand that Virtio will get better performance.  The disk type is "raw".

 

Is there any way to change this after the fact?  The drive is an OS drive.  I really can't rebuild this OS from scratch, as it's the primary HTPC currently.  I do have backups I can test any suggestions with.

 

Thanks.

Linux or windows guest?

  • Author

Windows 8.1 guest.

I don't know if that is possible because Windows won't see the disk until virtio drivers are loaded. You can try this:

 

1. Make a backup of your Windows img file and current XML (copy your XML and save it somewhere).

2. Add a second hard drive of virtio type to your XML

3. Boot into your VM and you'll either be prompted for drivers for the 2nd hard disk or go to device manager and find the drive with the yellow exclamation point on it, right click on it, and install the virtio drivers. Now virtio drivers are installed and Windows should see your second hard drive.

4. Shut down the VM and change your boot drive from the current type to virtio.

5. Start your VM and hopefully Windows will update the drivers for the boot drive and boot up.

 

Again, I don't know if this will work. At least you'll have a backup of your img file and XML to restore if it doesn't.

 

Gary

I don't know if that is possible because Windows won't see the disk until virtio drivers are loaded. You can try this:

 

1. Make a backup of your Windows img file and current XML (copy your XML and save it somewhere).

2. Add a second hard drive of virtio type to your XML

3. Boot into your VM and you'll either be prompted for drivers for the 2nd hard disk or go to device manager and find the drive with the yellow exclamation point on it, right click on it, and install the virtio drivers. Now virtio drivers are installed and Windows should see your second hard drive.

4. Shut down the VM and change your boot drive from the current type to virtio.

5. Start your VM and hopefully Windows will update the drivers for the boot drive and boot up.

 

Again, I don't know if this will work. At least you'll have a backup of your img file and XML to restore if it doesn't.

 

Gary

This should work.

  • Author

Caused my system to blue screen with "Your PC ran into a problem :("  Then it auto reboots.  Let it do that three times, to no avail.

 

Was able to revert back without having to restore from a backup.  I did change my target device from "vdc" to "hda".  Would that affect anything? Should I have left it at vdc?

  • Author

I got it working!  Thanks for your help!

 

I tried it with leaving the device as vdc, but it still wouldn't boot.  I booted with no device passthrough (removed all qemu commands) and was able to get it to boot successfully.  Then added the passthrough items back and it worked! 

 

Then I was able to successfully apply jonp's SSD XML performance tweaks.

 

Thanks everyone!

I got it working!  Thanks for your help!

 

I tried it with leaving the device as vdc, but it still wouldn't boot.  I booted with no device passthrough (removed all qemu commands) and was able to get it to boot successfully.  Then added the passthrough items back and it worked! 

 

Then I was able to successfully apply jonp's SSD XML performance tweaks.

 

Thanks everyone!

 

Hmm, just to confirm so I understand here, were you passing through a GPU or other devices and that's what you removed and put back?

  • Author

Yeah, basically, I have two VM XML's.  One with <qemu:commandline> section, and one without.  Other than that, they are identical.  The one without is so I can remotely access the VM at a bios/boot level to troubleshoot issues. 

 

I booted the one without, and it failed to boot once, but went into System Startup failure in Windows, instead of just the "Problem with your PC" error message and auto reboot.  I looked around but wasn't able to make any actual changes from CLI or and the auto startup repair failed.  But sometime during all of that, it must've installed the driver because then I rebooted it and it took me to the OS. 

 

I checked Device Manger, and the hard drive was now listed as a Red Hat SCSI device instead of QEMU Harddrive.  I shut it down, booted up my VM with the <qemu:commandline> lines, and it booted up successfully.

 

I then shut it down, made the changes to incorporate your XML SSD Performance tweaks, and booted it back up successfully.

 

The items that I have for passthrough are a USB controller, and an ATI HD7770 GPU.

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.