Every virtual machine I restart doesn't boot.
-
@Pilow
I guess my server using RAID5.
I created a VM with PXE as boot, but it is VM.start: 50%. -
-
I rebooted the server and now I got:

-
@ohthisis you have no bootable disk on this VM, or boot order is wrong.
could you screen the DISKS tab and the ADVANCED tab ? -
It is difficult to know the source of the problem without more details from your logs. Can you run the following commands on your XCP-ng host and then attach the generated files here?
grep -A 15 -B 15 -i error /var/log/xensource.log/xensource > xensource.txt grep -A 15 -B 15 -i exception /var/log/SMlog > smlog.txt dmesg -T|grep -Eiv 'guest|capacity|promiscuous' > dmesg.txt -
Hello,
This issue was related to XPC-ng and caused me to delete and recreate and configure one of the most important virtual machines I have. As I said, every virtual machine I create is only 33% complete, and when I try to turn on virtual machines that are already turned off, I get the message "VM state is halted but should be running".
I had to turn the server off and back on to fix the problem. To be honest, I'm afraid to test again to see if the problem is fixed, because I have a VPN server that has a number of users connected to it, and I also have a monitoring server.
If it is a hardware problem, the green lights on the hard drive should change to orange or red, but all the hard drive lights on the server are green. I think the problem is related to the stability of XCP-ng. -
XCP-ng is rock stable. We have (and Citrix does too) many many automated test for such basic operations. So you clearly have an issue somewhere triggering that problem.
-
@olivierlambert Where? How to find it? As you can see, I only have 4 virtual machines on the XCP-ng host.
-
Starting with the documentation is a good thing: https://docs.xcp-ng.org/troubleshooting/
This will give you (and us) hints on what's going on

-
@ohthisis Go to the Disks tab of the VM, what does it look like?
-
A few things can be implied from his last screenshot and comments.

His boot order is set to PXE boot first, disk next.
He has no bootable disk attached to the VM.It's possible that the disk is "detached" from the VM. IE it says disconnected or whatever under disks.
My Example

He earlier mentioned that he "created a VM with PXE as boot" but what is his PXE server doing? Why not just download the ISO or import the image directly to XCP-ng and build a VM from that as a template.
-
@DustinB yeah im guessing the VDI isn't attached to the VM for some reason, based on the screenshot.
Im also wondering if he ever rebooted the VM's after installing them with PXE

-
@nikade said in Every virtual machine I restart doesn't boot.:
@DustinB yeah im guessing the VDI isn't attached to the VM for some reason, based on the screenshot.
Im also wondering if he ever rebooted the VM's after installing them with PXE

Right, it's a likely answer... but even then I would've expected his PXE server to just restart the installation process all over again... assuming that the disk is attached to the VM etc and that PXE boot isn't disabled automatically like it is with an ISO after first boot.
haha
