Restoring Virtual Machines


Recommended Posts

Dear sir or madam,

Kindly I would like to inform you that for no particular reason (to my knowledge) my two virtual machines disappeared after a basic reboot; windows 7 and a Ubuntu VM. The vdisk.img files seem to exist perfectly fine however no VM's appear. I must admit that have not made any back-ups of the XML files something that I will do from now on seeing that unRAID is not as stable as I though it would be.

Since I was unable to find documentation on how to restore the the VM I was wondering if anyone had recommendations how to restore VMs (rebooting again did not help).

Link to comment

Edit config/domain.cfg on the flash drive (use Notepad++ if using windows -> not Notepad), and give it a valid path for VIRTIOISO (say /mnt/user/system) or where ever the virtio image is stored.  Also change MEDIADIR to be /mnt/user/system  and you **should** be in business.

Link to comment

Squid- you are the MAN.  I am able to start my windows VM.   thank you sir!

 

there is one issue that I'm still trying to figure out.  I have a Mac VM as well that has always worked.  I get an error (screen shot below) when trying to start it.   Here are the logs.  If you need more diags, etc. please let me know.

 

2018-04-12 18:19:13.072+0000: starting up libvirt version: 4.0.0, qemu version: 2.11.1, hostname: Emperor
2018-04-12 18:19:13.072+0000: Domain id=1 is tainted: high-privileges
2018-04-12 18:19:13.072+0000: Domain id=1 is tainted: custom-argv
2018-04-12T18:19:13.097941Z qemu-system-x86_64: -machine pc-q35-2.3,accel=kvm,usb=off,dump-guest-core=off: unsupported machine type
Use -machine help to list supported machines
2018-04-12 18:19:13.149+0000: shutting down, reason=failed
2018-04-12 18:21:06.816+0000: starting up libvirt version: 4.0.0, qemu version: 2.11.1, hostname: Emperor
2018-04-12 18:21:06.816+0000: Domain id=2 is tainted: high-privileges
2018-04-12 18:21:06.816+0000: Domain id=2 is tainted: custom-argv
2018-04-12T18:21:06.841592Z qemu-system-x86_64: -machine pc-q35-2.3,accel=kvm,usb=off,dump-guest-core=off: unsupported machine type
Use -machine help to list supported machines
2018-04-12 18:21:06.861+0000: shutting down, reason=failed
2018-04-12 18:21:56.013+0000: starting up libvirt version: 4.0.0, qemu version: 2.11.1, hostname: Emperor
2018-04-12 18:21:56.013+0000: Domain id=4 is tainted: high-privileges
2018-04-12 18:21:56.013+0000: Domain id=4 is tainted: custom-argv
2018-04-12T18:21:56.038205Z qemu-system-x86_64: -machine pc-q35-2.3,accel=kvm,usb=off,dump-guest-core=off: unsupported machine type
Use -machine help to list supported machines
2018-04-12 18:21:56.089+0000: shutting down, reason=failed

 

Below is the error window...  Any help is appreciated!

 

image.png.8c82db96912e8dcb9b1c5dae13a3f1fb.png

Edited by althoralthor
Link to comment
  • 5 years later...
On 4/12/2018 at 10:06 AM, Squid said:

Edit config/domain.cfg on the flash drive (use Notepad++ if using windows -> not Notepad), and give it a valid path for VIRTIOISO (say /mnt/user/system) or where ever the virtio image is stored.  Also change MEDIADIR to be /mnt/user/system  and you **should** be in business.

Thank you Squid! This suggestion worked for me as well. I was having trouble starting a Ubuntu VM for the first time, the desktop version with GUI, so that I had to provide my graphics adapter to the VM. My VIRTIOISO path setting turned out to be /mnt/user/system/libvirt/. Bingo, the Ubuntu installation fired right up, I completed the installation process to the virtual drive, and I can run the Ubuntu desktop just like it's on bare metal. You're the best!

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.