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

    Posts

    Recent Best Controversial
    • RE: adding a new VIF in XO doesn't UP the the interface on Debian13

      @delacosta456 This is a limitation of Debian's "/etc/network/interfaces" network configuration mechanism. It quite old and static - in other words it just applies network configuration on manual networking service restart. There is no hot plug handling.

      For something more advanced, you have to use netplan (like Ubuntu) and/or NetworkManager (some other distros)... or possibly systemd-networkd.

      posted in Management
      bvitnikB
      bvitnik
    • RE: Unable to MIgrate VDI when host is low on free memory

      @nikade You can even see that Dom0 VM has 16 vCPUs and host has 40 CPUs, in my case anyway. So Dom0 sees just some chunk of host resources.

      posted in Compute
      bvitnikB
      bvitnik
    • RE: Unable to MIgrate VDI when host is low on free memory

      @nikade said in Unable to MIgrate VDI when host is low on free memory:

      Could you please explain the difference between the term dom0 and host?

      This is what I mean:

      ae06dd02-1c5c-44cb-acb0-484503864c6c-image.png

      Dom0 is not "the host". It contains a management layer for the host but in reality it is just another VM, highly specialized one but stil just a VM. It does not see host's RAM as it's own.

      posted in Compute
      bvitnikB
      bvitnik
    • RE: Unable to MIgrate VDI when host is low on free memory

      @nikade This is not related to Dom0 RAM. It's related to the host RAM.

      posted in Compute
      bvitnikB
      bvitnik
    • RE: Unable to MIgrate VDI when host is low on free memory

      @hitechhillbilly I'd say this is normal if you are low on RAM and you are doing a live VDI migration. XCP-ng requires some amount of free RAM on the host to be able to live migrate the VDI. The larger the VDI, the more RAM is needed but exact sizing is unknown to me. I've encountered this error numerous times so I consider it common.

      The way around this is to shutdown the VM and then migrate the VDI. RAM requirements in that case are much much lower.

      posted in Compute
      bvitnikB
      bvitnik
    • RE: New project - XenAdminQt - a cross-platform GNU/Linux, macOS, Windows native thick client

      @benapetr This looks phenomenal. Will have to give it a try.

      This is a nice coincidence. Just the other day one of my younger colleagues boasted about making XCP-ng Center work under Wine... everything just works™. It would save a number of folks having to have a Windows VM on stand by just for the XCP-ng Center. Oh boy, how he was disappointed when I showed him everything that does not work 😁 ... but with this, there is still hope.

      posted in News
      bvitnikB
      bvitnik
    • RE: log_fs_usage / /var/log directory on pool master filling up constantly

      @denis.grilli I understand... but my experience is that even with the default scanning interval the logs become the problem when you get in the range of tens of SRs, thousands of disks. MajorP93's infra is quite small so I believe there is something additional that is spamming the logs... or there is some additional trigger for SR scan.

      Update: maybe the default value changed in recent versions?

      posted in XCP-ng
      bvitnikB
      bvitnik
    • RE: log_fs_usage / /var/log directory on pool master filling up constantly

      @Pilow agreed. This shouldn't be the norm. auto-scan-interval=120 is not going to be good for everyone. The majority of people probably don't have any problem with the default value, even in larger deployments.

      On the other hand, the real cause of the issue is still elusive.

      posted in XCP-ng
      bvitnikB
      bvitnik
    • RE: log_fs_usage / /var/log directory on pool master filling up constantly

      @MajorP93 Amount of logging is directly proportional to the number of hosts, VMs, SRs and clients (Xen Orchestra, XCP-ng Center...). If you have a lot of those, it's rather normal to have huge logs.

      Now, 5 hosts and 2 SRs does not seem to be much so I wouldn't expect you to have problems with huge logs. There could be something going on there. Try restarting your hosts to clear any stuck processes and internal tasks that could potentially spam the logs.

      We started having problems with /var/log size when we got in a range of 15+ hosts, 10+ SRs and 1000+ VMs per pool. Unfortunately, log partition cannot be expanded as it is at the end of the disk, followed only by the swap. The workaround we did is to patch the installer to create a large 8GB log partition instead of standard 4GB. Of course, we had to reinstall all of our hosts.

      posted in XCP-ng
      bvitnikB
      bvitnik
    • RE: ubuntu xen-guest-agent vs xe-guest-utilities

      @acebmxer rc in first column means "residual configuration". This means that the package is removed but there are some leftover configuration files so that, for example, when you reinstall the package at later time, the package will use preserved configuration. To remove residual configuration and package completely, use:

      sudo apt purge xen-guest-agent
      
      posted in XCP-ng
      bvitnikB
      bvitnik
    • RE: Custom config / cloud-init

      @acebmxer Great. These are some YAML basics. You should read more about it ☺ . Following AI instructions without understanding is not going to take you far.

      posted in Management
      bvitnikB
      bvitnik
    • RE: Custom config / cloud-init

      @acebmxer said in Custom config / cloud-init:

      ...

      network:
        version: 2
        ethernets:
          enX0:      # or whatever your interface name is
            dhcp4: false
            addresses: - 10.100.10.206/24
            gateway4: 10.100.10.254
            nameservers:
                addresses:
                     - 10.100.10.254
                     - 1.1.1.1
      

      Address should be on the next line:

            addresses:
            - 10.100.10.206/24
      

      Regarding 50-cloud-init.yaml, AI is lying 😁 .

      posted in Management
      bvitnikB
      bvitnik
    • RE: Booting to Dracut (I trusted ChatGPT)

      @nuentes metadata in this context is just XAPI database. In other words, it only contains information about your VMs, SRs, networks, pools etc. It does not contain anything system level. It is not a backup of the host system.

      As far as I know, but someone from Vates can confirm, metadata backup functionality in XO is based on XAPI pool-dump-database command:

      xe pool-dump-database file-name=dump.xml
      

      There is some info about it here:

      https://docs.xenserver.com/en-us/xenserver/8/dr/backup.html

      P.S. I guess metadata backup is also XML just like XAPI state file (database). I don't know why JSON came to my mind regarding metadata backup.

      posted in XCP-ng
      bvitnikB
      bvitnik
    • RE: Booting to Dracut (I trusted ChatGPT)

      @Greg_E Theoretically yes. I've never been in such situation so I would have to learn, experiment and improvise along the way. If you can mount the file system of the host, you can find XAPI database in this location:

      /var/lib/xcp/state.db
      

      This is an XML formated file. I don't know if this is the same format as metadata backup (I think it's JSON instead). So you could possibly restore this file to proper location and restart the host but you would probably need to change some references in it, like UUIDs of local file systems on a freshly installed system. Other possibility is that the state file could be converted to metadata backup and imported but I'm not aware of there being any such conversion tool. It would have to be improvised.

      There is always alot you can do. It just depends how deep you want to go, how complex you can go and how much time you can spare.

      posted in XCP-ng
      bvitnikB
      bvitnik
    • RE: Custom config / cloud-init

      @acebmxer Did you do:

      cloud-init clean --logs --seed
      

      before converting the VM to template?

      Also, network configuration is not part of the cloud-config (aka user data). In XO, there is a separate field called "Network config" where it should be specified. See examples at the end of the guide I pasted earlier. network: key should also be removed (commented in the examples).

      posted in Management
      bvitnikB
      bvitnik
    • RE: Booting to Dracut (I trusted ChatGPT)

      @nuentes Oh no, no. Your system is not destroyed beyond repair. It can be repaired. It's just that it is almost impossible or too much of a hustle for anyone to try to help you over forum. Someone has to sit in front of your machine to do it.

      My only guess is that ChatGPT instructed you to make changes based on a CentOS system but XCP-ng and Xen virtualization in general is much different than regular CentOS. It has two stage boot process. First the Xen kernel boots and then a special virtual machine called Dom0 is booted. What you are accessing and reconfiguring is in fact this VM, not the underlying "system". So it's like a two layer system and some configuration must be done on Xen layer, some on Dom0 layer. I'm unfortunately unfamiliar with exact specifics on kernel and initrd image generation for this case so I can't spot where thing have gone wrong.

      In short terms. Instead of going back and forth and trying a lot of different things, it's more time saving and simpler to reinstall the system and restore metadata if you already have a backup.

      posted in XCP-ng
      bvitnikB
      bvitnik
    • RE: Booting to Dracut (I trusted ChatGPT)

      @nuentes No. My intention was to rise awareness of USB (un)reliability, especially the reliability of USB attached storage. Also, either I'm blind or there is no mention of your system not being installed on USB storage.

      You said everything yourself. Your problems started with USB which you assumed can be fixed by flicking some kernel parameters. In the process of "fixing", you destroyed your system. Unfortunately, I believe that the system is now beyond repair via interactive forum session because no one knows what really happened. Backup is your best friend.

      posted in XCP-ng
      bvitnikB
      bvitnik
    • RE: Racked today, entire hosting solution based on Vates stack

      @Pilow Ah, yes. Makes much more sense now. My mind was too focused on Vates stack that I didn't think about anything outside of it like DNS, 1password, firewall etc. integration.

      You seem to have a quite good vision of what you are going to sell, both on technical level and business level. I work for cloud/managed services provider myself and we grew large but never got to this level of integration. I'm envious now 😆

      posted in Share your setup!
      bvitnikB
      bvitnik
    • RE: VDI CHAIN and snapshots

      @Pilow Long live the XenCenter/XCP-ng Center king 👑

      f130492f-c1ad-460e-9925-3ba08d69c2af-image.png

      posted in Management
      bvitnikB
      bvitnik
    • RE: Racked today, entire hosting solution based on Vates stack

      @Pilow said in Racked today, entire hosting solution based on Vates stack:

      ... and the fact that Pulumi can go beyond XO provider to manage other aspects of the stack

      Can you elaborate more?

      posted in Share your setup!
      bvitnikB
      bvitnik