September 30, 201411 yr unRAID OS Version: ver 6.0 beta 10a Description: kvm libvirt-sock missing? How to reproduce: attempt to start kvm vm (no gpu passthrough) windows 8.1 Expected results: kvm vm starts Actual results: root@Tower:/boot/scripts/user_scripts# virsh create /mnt/cache/cache-only/vms/windows/windows-8-1/windows-8-1-pro.xml error: failed to connect to the hypervisor error: no valid connection error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory Other information: this was previously working on beta 9, upgraded to beta 10a and attempted to start vm with the following error message displayed, there were NO modifications to the xml file so im 100% sure that its not a misconfigured file.
September 30, 201411 yr Libvirt is not automatically started on beta 10. You have to install the virtman plugin or start libvirt manually.
September 30, 201411 yr Author Libvirt is not automatically started on beta 10. You have to install the virtman plugin or start libvirt manually. Ah right cheers saarg, must of missed that in the release notes, I will have a play around with libvirt
October 1, 201411 yr Author i now see the line in the changelog for ver 6 beta 10, @tom @jonp any particular reason why libvirt got removed from beta 10/10a and any ideas when it will make a reappearance, beta 11 perhaps?. @saarg, you mentioned that i could start libvirt manually, how can this be achieved?, im assuming i would have to do some work to loop mount the libvirt image referenced in the virtman plugin?. reason i ask is that i want to try and keep my flash drive as clean as possible and so dont want to install virtman unless i absolutely have to, especially seeing as libvirt probably will be reintroduced into stock unraid in a later release. my goal is a simple one, start and stop a windows vm (no gpu passthrough) trigged by array start and stop, thats all i need really, but just being able to virsh would do for now.
October 1, 201411 yr I believe libvirt starting up was removed because it really doesn't belong in a stock unraid, similar to docker unless you want to use it. Even in beta 9 it would start /stop with array but on reboot you would have to load all your vm's. It really is a very basic plugin and only uses a 3 Mb image. You could make your own image that's only a few kb if you wanted. Anything you do would have to use similar scripts in your go and an image or symlink to /etc/libvirt. I could make it to install somewhere other than flash but at a couple megs I don't see why. Once you're xml's are loaded that's it. If it does get reintroduced it will be almost the same as virtMan name and all.
October 1, 201411 yr Author I believe libvirt starting up was removed because it really doesn't belong in a stock unraid, similar to docker unless you want to use it. Even in beta 9 it would start /stop with array but on reboot you would have to load all your vm's. It really is a very basic plugin and only uses a 3 Mb image. You could make your own image that's only a few kb if you wanted. Anything you do would have to use similar scripts in your go and an image or symlink to /etc/libvirt. I could make it to install somewhere other than flash but at a couple megs I don't see why. Once you're xml's are loaded that's it. If it does get reintroduced it will be almost the same as virtMan name and all. thanks for your comments, i didnt mean to dismiss what you have done with virtman, so i hope you didnt take offence, it wasnt intended!, i am after the cleanest/smallest/fastest solution possible thats all, i will give your plugin a go as it does sound fairly minimal. i will mark this thread as solved.
October 1, 201411 yr I didn't take it that way at all. You could also just strip down the plugin I.e. remove the virtMan.page, png, css etc. Just keep the event scripts and image mount. I have a basic plg that mounts my vm drive.
October 1, 201411 yr Right, main reason I took rc.libvirt out of -beta10a was because shutdown of VM's was happening at wrong time - needs to be before network services are stopped. Also Jon has been working with dmacias on a 'virtMan' plugin (nice work btw dmacias!).
October 2, 201411 yr Right, main reason I took rc.libvirt out of -beta10a was because shutdown of VM's was happening at wrong time - needs to be before network services are stopped. Also Jon has been working with dmacias on a 'virtMan' plugin (nice work btw dmacias!). Thanks. I think I saw a php-libvirt.so included. That works great so far with a basic page I tried out. I was wondering if php sessions were available under emhttp? I wanted to try out php-virtual-control.
Archived
This topic is now archived and is closed to further replies.