Domain.cfg corrupt [HELP]


Recommended Posts

This morning while beginning the process to migrate to a new ssd the domain.cfg file on the flash drive for Unraid became corrupt.

 

I did a quick google search and couldn't find anything about fixing the issue. Is this something that can be replaced with the file from the install package or am I SOL here?

Link to comment

It isn't a very complex file. Here's mine for reference.

SERVICE="enable"
DEBUG="no"
DOMAINDIR="/mnt/user/domains/"
MEDIADIR="/mnt/user/isos/"
VIRTIOISO="/mnt/user/isos/virtio-win-0.1.160-1.iso"
BRNAME="br0"
VMSTORAGEMODE="auto"
IMAGE_FILE="/mnt/user/system/libvirt/libvirt.img"
IMAGE_SIZE="1"
DISKDIR="/mnt/"
TIMEOUT="60"
HOSTSHUTDOWN="shutdown"

It essentially reflects the content of the Settings -> VM Manager page in Advanced view:

 

948965119_ScreenShot2018-11-20at14_30_51.png.c4df4fac2a6d8cbe9ce309d1227bfdae.png

  • Upvote 1
Link to comment
Just now, Squid said:

The domain.cfg file is simply the settings from Settings - VM Settings.  Whatever you change in there will rewrite the domain.cfg file.

Thank you, that explains when it got corrupt it was just after I shut down the VMs.

 

If I remove the corrupt file will Unraid write a new one when I change the VM Settings?

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.