XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Home
    2. nackstein
    3. Posts
    N
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 21
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Stats Network throughput (b)its not (B)ytes

      @noaks98 I agree that networking use bits per seconds and base 10 powers, the same for storage where the base 10 is the industry standard. Things change at the OS level, Linux stick with base 2 for almost anything, see df, memory pages etc.
      If you look at the sar utilities even the network is reported with base 2 kilobytes.

                    rxkB/s
                           Total number of kilobytes received per second.
      
                    txkB/s
                           Total number of kilobytes transmitted per second.
      

      looking at the code of sar (rndr_stats.c)

                      render(isdb, pre, PT_NOFLAG,
                             "%s\ttxkB/s", NULL,
                             cons(sv, sndc->interface, NULL),
                             NOVAL,
                             txkb / 1024,
                             NULL);
      

      I suppose that the "Linux" standard prevails here.

      posted in Xen Orchestra
      N
      nackstein
    • RE: [WARNING] XCP-ng Center shows wrong CITRIX updates for XCP-ng Servers - DO NOT APPLY - Fix released

      @borzel only who do nothing can't do wrong. keep up with the good work and make treasure of your mistakes!

      posted in News
      N
      nackstein
    • RE: Windows Time Sync

      @gofm not sure on windows but on linux the walltime is written in UTC to the CMOS when you shutdown or when you explicitly call hwclock command. the time written in the virtualized CMOS should contain an offset to the host clock so when the VM start it read the host time plus the offset. I suppose that if you disable the time sync in windows, set the time and reboot you will come up with a correct clock.
      I have no link to point you at, this is just a sum of things I remember but may be dated and/or wrong still if you can reboot your Windows VM could be worth testing.

      posted in Compute
      N
      nackstein
    • RE: XO Hub Template: what do you want next?

      I noticed that the Alpine Linux 3.10 Template from the XO Hub have the parameter platform:viridian=true. Didn't notice any erratic behavior but just thought this could be a oversight.

      posted in News
      N
      nackstein
    • RE: first attemp with XOCE

      I tried building from scratch and with node 8. I had a couple of build error but building one package by directly entering its directory and relaunching building without --parallel in the main package.json solved my problem. I think the VM I used to build with 2GB RAM is not enough for parallel building (I took the hint from the post about building on FreeBSD).

      now I would like to install on a local directory and not using the git directory to start services. how do you usually do in your development environment?

      posted in Xen Orchestra
      N
      nackstein
    • RE: first attemp with XOCE

      @Danp oh yes, I just forgot to post it here. I'm going to edit my post. thanks.
      I think the broken dependency is due to bcrypt 2.x that come only in 64 npm version and by using a too recent node/npm the build system look for bcrypt 2.x 79 npm version

      posted in Xen Orchestra
      N
      nackstein
    • RE: first attemp with XOCE

      @olivierlambert ok thanks for the clarification. I was deliberating exploring new territories. I don't like the build system in javascript but maybe it's useful on windows platform so you don't have to port make and shell script. to me it's a new complicated thing to just execute some command in a pipe. Anyway my post was sarcastic, I don't want to blame anyone.

      posted in Xen Orchestra
      N
      nackstein
    • RE: first attemp with XOCE

      @BenjiReis yes but XOA is using v12.16.1 so I believed the documentation was a little old. I will try to build from scratch with the LTS that is 12.16.1.

      posted in Xen Orchestra
      N
      nackstein
    • RE: first attemp with XOCE

      it seems that the git diff didn't include a modification I made, maybe the file isn't tracked.

      in file @xen-orchestra/audit-core/node_modules/@babel/helper-compilation-targets/package.json
      I had to modify the exports:

      "exports": {
        ".": "./lib/index.js"
      },
      

      the original was like (not sure):

      "exports": none
      

      but was throwing error during build:

      Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main resolved
      
      posted in Xen Orchestra
      N
      nackstein
    • first attemp with XOCE

      hello all,
      I tried following the instruction to install XO from source at https://xen-orchestra.com/docs/from_the_sources.html.
      My target OS is a openSUSE 15.1. I start documenting the steps I followed, maybe can be of help to others:
      I installed the prerequisites:

      zypper install -t pattern devel_basis
      zypper install redis git libvhdi-tools libpng16-devel python
      

      I installed npm and node with the n script with a non root user (username xo):

      curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n
      N_PREFIX=/home/xo/ n latest
      

      I installed yarn with xo user:

      curl -oyarn-install.sh -L https://yarnpkg.com/install.sh
      ./yarn-install.sh
      

      then as documented I cloned git and tried building with yarn:

      git clone -b master http://github.com/vatesfr/xen-orchestra
      cd xen-orchestra
      yarn
      yarn build
      

      then build process is much more complex than I expected (javascript dev are really crazy) and in my case it failed. I bonked my head against the wall trying to debug something I never saw. The major problem seemed to be babel that throw an OOM, at first I was thinking about bad libraries and regression but in the end I found out how to increase the heap of node. The other error seemed a regression in my node version, maybe I should switch to LTS instead of latest (I have installed 13.10.1).

      I lost a lot of time trying different approach, I will post here just the solution for my case, it's not a patch for everyone:

      diff --git a/package.json b/package.json
      index 9e44def0b..4d3be801d 100644
      --- a/package.json
      +++ b/package.json
      @@ -60,7 +60,7 @@
         },
         "private": true,
         "scripts": {
      -    "build": "scripts/run-script --parallel build",
      +    "build": "scripts/run-script build",
           "clean": "scripts/run-script --parallel clean",
           "dev": "scripts/run-script --parallel dev",
           "dev-test": "jest --bail --watch \"^(?!.*\\.integ\\.spec\\.js$)\"",
      diff --git a/packages/xo-web/gulpfile.js b/packages/xo-web/gulpfile.js
      index 45feff969..6d32068d9 100644
      --- a/packages/xo-web/gulpfile.js
      +++ b/packages/xo-web/gulpfile.js
      @@ -270,6 +270,7 @@ gulp.task(function buildScripts() {
         )
       })
       
      +
       gulp.task(function buildStyles() {
         return pipe(
           src('index.scss', { sourcemaps: true }),
      @@ -295,9 +296,14 @@ gulp.task(function copyAssets() {
         )
       })
       
      +//gulp.task(
      +//  'build',
      +//  gulp.parallel('buildPages', 'buildScripts', 'buildStyles', 'copyAssets')
      +//)
      +
       gulp.task(
         'build',
      -  gulp.parallel('buildPages', 'buildScripts', 'buildStyles', 'copyAssets')
      +  gulp.series('buildPages', 'buildScripts', 'buildStyles', 'copyAssets',  function (done) { done();})
       )
       
       // -------------------------------------------------------------------
      diff --git a/packages/xo-web/package.json b/packages/xo-web/package.json
      index 57c99d193..e6530a154 100644
      --- a/packages/xo-web/package.json
      +++ b/packages/xo-web/package.json
      @@ -148,7 +148,7 @@
           "xo-vmdk-to-vhd": "^0.1.8"
         },
         "scripts": {
      -    "build": "NODE_ENV=production gulp build",
      +    "build": "NODE_ENV=production gulp build --max-old-space-size=1024",
           "clean": "gulp clean",
           "dev": "NODE_ENV=development gulp build",
           "prebuild": "yarn run clean && index-modules --auto src",
      

      probably you can avoid the serialization in the gulpfile, I used it to debug.
      who on earth wrote a build system in javascript? IMHO Satan himself.

      anyway, I reached the end and the build was successful, I just ignore a couple of optional dependencies that does not work, I just remember one is bcrypt, I forgot the other and don't know how to recheck.

      now it's as simple ad creating a configuration (default) for redis and start it. and then start yarn.
      for the start I have to switch to root, I wanted to try with xo user but I see that the at the start xo-server look for a lot of command requiring root privileges, I wasn't in the mood of hacking to wrap all of them with a sudo script. I don't know if there is a smarter approach. so as root I loaded the PATH variable to look for the yarn and node binaries and with yarn start all works. login ok and first round clicking between webpages all ok.

      now one question, how do you export the built application to /usr/local or /opt or other directory to actually make an installation? I don't see any procedure. I suppose I have to copy the packeges directory in place. it's so?

      posted in Xen Orchestra
      N
      nackstein
    • RE: Experimental update of CentOS packages

      @stormi enabled=0, didn't see it! thanks 👍

      posted in Development
      N
      nackstein
    • RE: Experimental update of CentOS packages

      @stormi I have a doubt, you say that XCP-ng 8.0 comes with packages updated to CentOS 7.5 plus some custom package like kernel.
      If I update the host via yum it goes to the latest CentOS 7.x version plus latest updates, I'm right?
      I don't see any yum settings that keep it stuck to 7.5.
      I mean, the updates repo have this source:
      mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
      and $releasever = 7 widhtout any minor release specification, so I assume an update takes my base OS to the latest minor plus updates.

      posted in Development
      N
      nackstein
    • RE: xe-guest-utilities on openSUSE

      @stormi do you remember of what year you attended this talk? about in 2017 something changed about compatibility between openSUSE Leap and SLE. I do not have a SLE to compare version of rpm by rpm...

      Anyway, I found this interesting page about all os-release differences:
      https://en.opensuse.org/SDB:SUSE_and_openSUSE_Products_Version_Outputs

      posted in Development
      N
      nackstein
    • RE: XOA Error when installing

      uhm... I contributed to increase entropy. sorry. the original post was about another issue.

      posted in Xen Orchestra
      N
      nackstein
    • RE: XOA Error when installing

      @kilo interfaces.d it's a directory while interfaces it's a file. In recent debian you can configure just interfaces or create new file one for each interface and put them into interfaces.d, for your purpose it's enough to edit interfaces

      before editing, try to bring the interface up as suggested by Olivier. maybe you can post the content of interfaces type

      cat interfaces
      

      to show its content

      posted in Xen Orchestra
      N
      nackstein
    • RE: XOA Error when installing

      @kilo ifconfig is deprecated by many year and some distro does not install it anymore.
      now the suite of utilities to configure the network stack is iproute2 and it contain ip, tc, ss, bridge etc...

      posted in Xen Orchestra
      N
      nackstein
    • RE: XOA Error when installing

      @kilo at the shell prompt (as root user) type:

      ip a l
      

      you will see the IP if static of if DHCP worked.
      if you need to configure the network edit (using vi or nano) /etc/network/interfaces
      I show you mine as reference:

      # and how to activate them. For more information, see interfaces(5).
      
      source /etc/network/interfaces.d/*
      
      # The loopback network interface
      auto lo eth0
      iface lo inet loopback
      
      # The primary network interface
      allow-hotplug eth0
      iface eth0 inet static
          address 172.27.217.231
          network 255.255.254.0
          gateway 172.27.217.254
      

      once the file is edited restart the network:

      systemctl restart networking
      

      note: remember to set auto on eth0 (see the line auto lo eth0)or when you give a network restart eth0 does not get the IP address and you need to reboot the VM.

      posted in Xen Orchestra
      N
      nackstein
    • RE: xe-guest-utilities on openSUSE

      @stormi openSUSE Leap follow SLES versioning and is compiled from sources of SLES. openSUSE Tumbleweed is a rolling release similar to arch but with rpm. So Leap is like CentOS while Tumbleweed is a little different that Fedora since it's rolling. Tumbleweed is used as the testbed for the next SLES major release.

      The os-release of Tumbleweed is like this one:

      NAME="openSUSE Tumbleweed"
      # VERSION="20200228"
      ID="opensuse-tumbleweed"
      ID_LIKE="opensuse suse"
      VERSION_ID="20200228"
      PRETTY_NAME="openSUSE Tumbleweed"
      ANSI_COLOR="0;32"
      CPE_NAME="cpe:/o:opensuse:tumbleweed:20200228"
      BUG_REPORT_URL="https://bugs.opensuse.org"
      HOME_URL="https://www.opensuse.org/"
      LOGO="distributor-logo"
      

      EDIT: there is one exception, the first leap used the versioning 42.x after that comes 15.x
      so the history of openSUSE is something like this:
      openSUSE 13.x
      openSUSE Leap 42.x
      openSUSE Leap 15.x

      🤦

      posted in Development
      N
      nackstein