(SOLVED) VMs disappear after a server restart, files still available


Recommended Posts

Setup my first VM since upgrading to 6.5.3 and the VM disappeared after i restart unraid server.

 

I examined the vm manager settings based on some other forum posts and everything seems like it should be working..

 

libvirt storage location: /mnt/cache/system/libvirt.img

default vm storage path: /mnt/user/domains/

 

# ls -l /mnt/cache/system/libvirt.img
-rw-rw-rw- 1 nobody users 1073741824 Aug  9 15:15 /mnt/cache/system/libvirt.img

 

# ls -l /mnt/user/domains/Windows\ 10/
total 50586668
-rwxrwxrwx 1 root root 429496729600 Aug  9 14:37 vdisk1.img*

server-diagnostics-20180809-1525.zip

 

cat /boot/config/domain.cfg

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

 

Edited by drewbuntu
Solved tag
Link to comment

I've noticed that it appears to be making copies of both the libvirt.img and the vdisk.img. puts them in both /mnt/user/... and /mnt/cache/...

 

# ll -h /mnt/user/domains/Windows\ 10/vdisk1.img
-rwxrwxrwx 1 root root 400G Aug  9 14:37 /mnt/user/domains/Windows\ 10/vdisk1.img*

# ll -h /mnt/cache/domains/Windows\ 10/vdisk1.img
-rwxrwxrwx 1 root root 400G Aug  9 14:37 /mnt/cache/domains/Windows\ 10/vdisk1.img*
# ll -h /mnt/user/system/libvirt.img
-rw-rw-rw- 1 nobody users 1.0G Aug  9 15:31 /mnt/user/system/libvirt.img

# ll -h /mnt/cache/system/libvirt.img
-rw-rw-rw- 1 nobody users 1.0G Aug  9 15:31 /mnt/cache/system/libvirt.img

 

Link to comment
3 hours ago, itimpi said:

They are two different views of the same file(s).    /mnt/cache is the physical drive view, while /mnt/user is the User Share view.

 

Hmm. i dont have a share named "user".

 

Well, i recreated the VM and pointed to the same VDISK and it persisted through a server reboot. not sure what happened but it was annoying AF

Link to comment
7 minutes ago, drewbuntu said:

 

Hmm. i dont have a share named "user".

 

Well, i recreated the VM and pointed to the same VDISK and it persisted through a server reboot. not sure what happened but it was annoying AF

I was not trying to say you had a share called user, but that User Shares appear as folders under the /mnt/user location.

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.