Xen install fails

This is kind of an dual issue on the Authentic theme when clicking the button to install the Xen kernel etc, nothing happens. I switched to the framed theme and things got worse. After screwing around with it, things started working. I now get the button to do the install. It gets halfway through the process and quits.

Setting up Xen host system .. Checking system status .. .. done Installing required commands .. .. done   Setting up Xen kernel repository .. .. done   Installing Xen kernel and tools .. .. done   Removing virbr network interfaces .. .. none found   Setting up xenbr0 network bridge .. .. failed to copy setup script : cp: cannot create regular file `/net/create-net-bridge.pl': Permission denied   .. setup failed! See the error message above.

There are two bridges already on here, br0 and br1. Is it a matter of removing them and then running this again?

The process fails even far worse on CentOS 7. I'll have to try that again later on. Joe and I spent a few hours with it and got nowhere.

Status: 
Active

Comments

Is Webmin or Virtualmin already installed on the Xen host system?

Steffan's picture
Submitted by Steffan on Wed, 06/21/2017 - 12:25 Pro Licensee

Clean install of CentOS 6 (since 7 didn't work at all). Setup nfs and a couple other small things. Added br0 and br1 not knowing the new version does it for you. Downloaded the install script for CM and ran it. Went to that screen to add the CM master which is also a host for Xen and thats where I ran into this issue.

I believe this is one Joe is planning to work on -- I've notified him about it.

Steffan's picture
Submitted by Steffan on Wed, 06/21/2017 - 12:32 Pro Licensee

Joe said he could work on the theme issue but as far as the issues with CM itself, he deferred to Jamie.

Steffan's picture
Submitted by Steffan on Wed, 06/21/2017 - 12:43 Pro Licensee

Just for the fun of it, I clicked on Host Systems > Xen Host Systems and it crashed the webmin server. Can't get to that page. Did a force refresh and tried again, the frame shows the error that it can't load that page. Something with CM trying to set the server up for Xen is playing hell on the miniserv.

Jamie, my h1 crashed and I had to wipe clean and start over. You have the credentials to it to login and look if you need to.

Joe's picture
Submitted by Joe on Wed, 06/21/2017 - 15:29 Pro Licensee

I'm working on it, Jamie, if you need to poke at it, ping me.

I'm seeing the network bridge setup error (not related to an existing br0 interface, I don't think...just trying to do something that maybe doesn't work). I'm gonna reboot and make sure the xen kernel setup worked.

Joe's picture
Submitted by Joe on Wed, 06/21/2017 - 15:30 Pro Licensee

I haven't been able to reproduce the UI issues or Webmin shutting down issue.

Joe's picture
Submitted by Joe on Thu, 06/22/2017 - 18:43 Pro Licensee

I've checked in a fix for the Authentic theme bug (invalid HTML that did't close several tags due to lack of a footer in the edit_xen.cgi if xen kernel isn't running).

There's still an issue creating the bridge interface:

Setting up xenbr0 network bridge ..
.. failed to copy setup script : cp: cannot create regular file '/net/create-net-bridge.pl': No such file or directory

Which occurs on both CentOS6 and 7. I'm not sure I understand why it's trying to do something out of /net. Maybe just a path error...I don't see how that could ever work. Gonna poke at it a little more.

Joe's picture
Submitted by Joe on Thu, 06/22/2017 - 18:49 Pro Licensee

OK, I see why it's failing, and it may be that Jamie's check-in of a fix to xen-type-lib fixes the problem. It's this line in xen-type-lib.pl:

my $dst = $vhost->{'webminroot'}."/net/create-net-bridge.pl";

Which, if $vhost->{'webminroot'} is not defined (due to the installer not finding Webmin on the new host system) would result in a bogus path that we see in the error.

Steffan's picture
Submitted by Steffan on Sun, 06/25/2017 - 20:57 Pro Licensee

Found another issue with the install process. It's either an issue of the xen packages you use or CM may need to do it. Without the following symlink:

ln -s /usr/lib64/xen/boot/hvmloader /usr/lib/xen/boot/hvmloader

you will get an error:

Creating virtual system with Xen .. .. creation failed : The Xen HVM loader command hvmloader was not found on xxxxx.com   .. creation failed   Restores of all 1 systems failed!


Who takes ownership of the issue? CM or The Xen repo?

This is a Cloudmin bug - I'll fix it in the next release.