VM mit eigener .img Datei


b_tob
Go to solution Solved by mgutt,

Recommended Posts

Hallo zusammen

aktuell habe ich einen Rechner hier stehen auf welchem ich mit jdownloader meine Filme und Serien herunterlade. Das heisst wenn ich einige 100GB herunterlade läuft der Rechner meistens durch. Nun dachte ich ich könnte auf Unraid eine VM aufsetzen und dort die Dateien herunterladen, der Server läuft ja eh immer.

 

Ich habe nun von der SSD, auf welchem das Win10 System installiert ist, eine .img Datei erstellt und diese im domains Ordner abgelegt, anschliessend eine neue Win10 VM erstellt und die vdisk1.img als primäre vdisk angegeben.

Beim Start der VM wird nun immer ein Bluescreen angezeigt mit dem Error "inaccessible boot device" und die VM ist in einer Reboot Dauerschleife.

Bei BIOS habe ich bereits "OVMF" und "SeaBIOS" getestet, bei Gerät "i440" und "q35". Leider bin ich nicht ganz sicher ob das alte System BIOS oder UEFI hat.

 

Hat jemand eine Idee woran es liegen könnte das die VM nicht starten?

Ich möchte nicht den jdownloader Docker benutzen da ich noch andere Sachen auf dem System laufen habe.

 

Vielen Dank für eure Hilfe.

 

b_tob

Link to comment
  • Solution
On 5/19/2022 at 4:38 PM, b_tob said:

Ich habe nun von der SSD, auf welchem das Win10 System installiert ist, eine .img Datei erstellt und diese im domains Ordner abgelegt

Und welches Format hat diese img Datei?

 

Es gibt ja nicht DAS img Format. Hier hat zb jemand eine Anleitung gepostet, wie er eine physische Maschine erst als VHD exportiert und dann mit qemu-img in Raw konvertiert hat:

https://www.reddit.com/r/unRAID/comments/nnqc0e/comment/gzwy02b/

Quote

This assumes you have the physical machines hard drive connected to the system you are running the commands on and not booted on the physical machine itself. This also assumes you are on a windows machine.

1. download and install VHD2Disk

2. Create a VHD or VHDX of whatever drive contains the OS you wish to virtualize.

3.IMPORTANT: Make sure you chose ALL of the boot/recovery partitions for that OS drive. If you just chose what was originally the 😄 drive, this WILL NOT BOOT. 

4. Download QEMU for windows

5. run the command:

qemu-img convert -pO raw "path/to/image.VHDX" "path/to/image.img"

6. Upload the completed image to your unRaid domains directory under a new folder named whatever you want the new VM to be

7. Open the VM tab on the unRaid interface and create a new Windows 10 VM

8. Add your cpus, amount of memory, add the newest VirtIO Drivers ISO and set the Primary vDisk location to the image you just uploaded

9. IMPORTANT: Change the Primary vDisk Bus to SATA

10. Click update and start VM

11. Open the VNC to the VM and watch it boot.

12. Profit?????

13. Once booted, use the VirtIO ISO mounted in file manager to install missing drivers.

 

UPDATE: If you are on the physical machine, use VMware vCenter 6.2.0 as /u/hbheroinbob suggested and use it to create an image of the physical machine and replace steps 1,2 and 3 but follow the rest.

 

UPDATE2: You can skip steps 1 through 5 and use Starwinds V2V and make a direct IMG of any drive. Make sure to include the boot partitions, and this will save you over 1 hour or more depending on the size of the drive. Thank you /u/ohnonotmynono for this awesome suggestion !

 

Ich würde mir aber den Stress sparen und einfach neu installieren.

 

Stichworte: vmware vsphere vdisk 

Link to comment

Die img Datei habe ich gemäss Anleitung von Spaceinvader One gemacht, welches Format die hat weiss ich leider nicht genau.

 

10 hours ago, mgutt said:

 

Mit dieser Anleitung hat es nun funktioniert, ich habe das img File mit VHD2Disk erstellt und anschliessend mit qemu konvertiert, die VM konnte nun booten. Gut möglich dass die Icy Box, mit welcher ich die SSD an Unraid angeschlossen hatte, die Bootpartition nicht angezeigt hat.

 

Danke jedenfalls für die Hilfe!

Link to comment
  • 1 year later...

habe diesen Post gefunden, weil ich auch mein existierendes Win7 in einer VM auf unraid gerne hätte.

Mal sehen, ob ich es hinbekomme.

 

Tipp zum jdownloader:

der läuft bei mir seit Jahren auf meiner Synology Diskstation

könnte man jetzt auch auf unraid umziehen, aber wozu?

wenn's läuft - never change ....

Edited by Cpt.Hardy
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.