Sign in to follow this  
drewbuntu

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

7 posts in this topic Last Reply

Recommended Posts

Posted (edited)

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

Share this post


Link to post

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

 

Share this post


Link to post

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.

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
9 minutes ago, drewbuntu said:

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

Correct, all your shares are subfolders in that /mnt/user folder.

  • Upvote 1

Share this post


Link to post
1 hour ago, jonathanm said:

Correct, all your shares are subfolders in that /mnt/user folder.

Ah. That makes a lot of sense. Ty

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Copyright © 2005-2018 Lime Technology, Inc.
unRAID® is a registered trademark of Lime Technology, Inc.