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

    Posts

    Recent Best Controversial
    • RE: How do you clone a VM to another host?

      There is no implementation in XAPI to "copy" VM to remote host (maybe XO has it own implementaion I'm not sure).
      Copy works only localy.
      You can only migrate it to remote host.

      Disclaimer.
      Everything you do on your own risk.

      But you can do it manually by export/copy VDI from one host to another.
      If you do not need "live" copy while VM is running, just stop VM, get all VBDs xe vbd-list vm-name-lable={VM-name}.
      You will see all VBDs and VDIs of VM.
      Go to certain SR cd /var/run/sr-mount/{SR-UUID} and copy VDI to new host's SR (you can use scp).
      On destination host:

      1. Get new VDI UUID vhd-util read -p -n {VDI-UUID}.vhd
      2. Rename file using this UUID
        91acf2f8-fbdd-4a6e-b85a-3520c00ddec9-image.png
      3. Rescan SR on destination host.
      4. Create VM, attach VDI.

      If VDI stored on "shared" SR (iSCSI, NFS, ceph rbd and etc...), firts you have to export VDI by command xe vdi-export uuid={VDI-UUID} filename={VM-Name_xvda}.vhd format=vhd --progress
      After success export, copy to destination host, read, rename and etc....

      If you need "live" migration you can do it with minimal down time via snapshot.

      1. Make snapshot with uniq name.
      2. List VBDs xe vbd-list vm-name-lable={VM-name}.
      3. Export all VDIs xe vdi-export uuid={VDI-UUID} filename={VM-Name_xvda}.vhd format=vhd --progress (repeat for all VDIs).
      4. Copy to destination host
      5. Use vhd-util to get new UUID and rename VDI vhd-util read -p -n {VDI-UUID}.vhd
      6. Shutdown VM. Do not delete VM before it will not start successfully on "new" host!
      7. Get snapshot list xe snapshot-list
      8. Get disks in snapshot xe snapshot-disk-list uuid={snapshot_UUID}
      9. Export diff xe vdi-export uuid={main_VDI_UUID_from_step_3} filename=2920_delta_xvda.vhd format=vhd base={snapshot_VDI_UUID_from_step_8)} --progress
      10. Copy diff to destination host
      11. Import diff xe vdi-import uuid=VDI_UUID_from_step_5 filename=2920_delta_xvda.vhd format=vhd --progress
      posted in Xen Orchestra
      splastunovS
      splastunov
    • RE: New VM MAC address restriction

      @mdraugh sure.

      As workaround you can create simple table with MAC-IP-VM fields, and simple script to deploy new VM with first "free" MAC. Yes, it sounds like to develop your own XO, but I belive it should help alot.

      posted in Management
      splastunovS
      splastunov
    • RE: New VM MAC address restriction

      It is not a problem at all.

      You can always set MAC manually, or create VIF with certain MAC via XAPI or cli.

      Link to XAPI https://xapi-project.github.io/xen-api/classes/vif.html
      check create method.

      Cli command
      xe vif-create vm-uuid=<VM UUID> network-uuid=<NETWORK UUID> device=<ETHERNET INTERFACE NUMBER> mac=<MAC ADDRESS>
      Device could be in range 0-15
      MAC in format XX:XX:XX:XX:XX:XX

      After you need "activate" new VIF by command
      xe vif-plug uuid=<VIF UUID>
      If VM does not running xe-guest-tools you have to switch off VM and power it on again to activate new VIF.

      posted in Management
      splastunovS
      splastunov
    • RE: XOSTOR hyperconvergence preview

      @Mark-C Thank you!
      Could you tell please how you scale your storage with iSCSI? What hardware/software are you using for storage? Is it possible to add storage nodes on fly or you have to deploy new storag cluster every time when you grow?

      posted in XOSTOR
      splastunovS
      splastunov
    • RE: XOSTOR hyperconvergence preview

      @olivierlambert NFS and iSCSI have single point of failure. Yes, it is possible to deploy multipath iSCSI, but it is to complicated. I like CEPH RBD because it does not have single point of failure.
      So I'm looking for something similar.

      From my point of vew XOSTOR is good idea, but in some cases there is no need to use all nodes as xcp-ng hosts. For example you do not need large amount of RAM and fast modern CPU for storage cluster nodes.
      I think the best solution in my case will be to deploy XOSTOR controller in xcp-ng cluster connected to separate storage cluster.

      At first glance, I assume that it should be possible to connect storage cluster to xcp-ng with this command
      linstor resource create node1 test1 --diskless

      So the base idea is to use xcp-ng nodes for linstor-controllers/linstor-satellite and "storage" nodes as linstor-satellite only.

      posted in XOSTOR
      splastunovS
      splastunov
    • RE: XOSTOR hyperconvergence preview

      Hi!

      I'm looking for new storage cluster for XCP-ng, because ceph RBD performance is very poor.
      The main quetion now - is it possible to build XOSTOR (linstore) cluster separatly from xcp-ng and connect it over ethernet?
      No inforamtion about such scenario in this article.
      So I would like to have "compute" claster of xcp-ng nodes with fast local NVMe disks + and dedicated storage cluster with big amount of HDDs connected vie ethernet.

      And second question is about scaling.
      How this storage cluster could be scaled? Is it possible to add storage nodes online without interrupting clients (VMs)?

      Thank you

      posted in XOSTOR
      splastunovS
      splastunov
    • RE: Health alerts/alarms

      Maybe netdata will cover everything?

      There are no default alerts, but you can easily create them by yourself.

      Also it is very easy to deploy "parent" netdata node and stream metrics to it from all hosts (maybe this part could be integrated to XOA free version? 😉 ).
      You do not need netdata cloud account for this solution 😉

      posted in Xen Orchestra
      splastunovS
      splastunov
    • RE: Full backup restore error: Stream_vdi.Invalid_checksum

      @RS sorry, I have no idea how to fix it

      posted in Xen Orchestra
      splastunovS
      splastunov
    • RE: Disable TX checksumming with API

      You can always try to use XAPI, or xe cli tool

      posted in REST API
      splastunovS
      splastunov
    • RE: Full backup restore error: Stream_vdi.Invalid_checksum

      @RS Few years ago I faced the same errors on all xva backups and after that switch to vdi backups.
      I did not find the root of problem, but I know how to "repair" broken backup.

      Check xva backup with command vhd-util check -n name_of_backup.xva.
      If you got something like Checksum : 0x0|0xffffffff (Bad!), the solution is:

      1. Create VM or get server with modern Ubuntu. You will need x3 space of your backup size.
      2. Copy broken backup
      3. Install xva-img https://github.com/eriklax/xva-img
      apt-get install libssl-dev g++ cmake
      add-apt-repository ppa:ubuntu-toolchain-r/test && apt-get update && apt-get install -y gcc-7
      
      #To compile execute following commands in xva-img folder
      
      cmake ./
      make install
      
      1. Unpack backup
      mkdir my-virtual-machine
      tar -xf name_of_backup.xva.xva -C my-virtual-machine
      chmod -R 755 my-virtual-machine
      
      1. Create RAW disk. Replace Ref\:1 with your digits
      xva-img -p disk-export my-virtual-machine/Ref\:1/ disk.raw
      
      1. Install qemu-utils from standard repos apt install qemu-utils
      2. Convert RAW to VHD qemu-img convert -f raw -O vpc disk.raw resotred.vhd
      3. Copy VHD to xcp-ng SR cp resotred.vhd /run/sr-mount/{sr-uuid}/
      4. Get UUID of your restored VHD. This command should be executed on xcp-ng server. vhd-util read -p -n resotred.vhd
      5. Rename vhd
      6. Rescan SR, rename VHD with empty name
      posted in Xen Orchestra
      splastunovS
      splastunov
    • RE: Simulating network cable disconnect

      @KPS said in Simulating network cable disconnect:

      This is an old thread, but to keep it in one place: is there any option to start a VM with disconnected vif?

      as workaround/trick you can use locking mode.
      Set it to "locked" and do not allow any IP, so all traffic will be dropped on this VIF. It will be like "disabled". After that you can set locking mode to "unlocked" to allow any traffic.

      posted in Xen Orchestra
      splastunovS
      splastunov
    • RE: nVidia Tesla P4 for vgpu and Plex encoding

      @mohammadm
      I'm talking now about vGPU not passthrough

      1. old drivers
      2. no way to monitor GPU load
      3. Sometimes the GPU on Dom0 stops responding and the only thing that can be done to solve this problem is to reboot the entire server with all the virtual machines on it.
        and etc.... do not remember all troubles I had with it
      posted in Compute
      splastunovS
      splastunov
    • RE: nVidia Tesla P4 for vgpu and Plex encoding

      @austinw no licenses, but a lot of troubles.....

      posted in Compute
      splastunovS
      splastunov
    • RE: XOA is allways halted after the machine is rebooted

      Instructions
      Set the "other-config:auto_poweron=true" parameter on both target VM and resource pool:

      #xe pool-param-set uuid=<pool_UUID> other-config:auto_poweron=true
      #xe vm-param-set uuid=<vm_UUID> other-config:auto_poweron=true
      
      posted in Xen Orchestra
      splastunovS
      splastunov
    • RE: EOL: XCP-ng Center has come to an end (New Maintainer!)

      great news! Thank you @michael-manley

      posted in News
      splastunovS
      splastunov
    • RE: AMD Radeon S7150x2 - Not being seen by VMs

      Just use official AMD drivers

      https://www.amd.com/en/support/professional-graphics/firepro/firepro-s-series/firepro-s7150-x2

      It works fine, but sometime Dom-0 "lose" graphic adapter and you should restart whole server....
      I did find solution and AMD stopped supporting it....

      posted in Hardware
      splastunovS
      splastunov
    • RE: How to control AMD GPU?

      Some time later I faced with problem that VMs (Linux and Windows) can't correctly start GPU (ADM MxGPU).
      In windows device manager there was error #43.
      I have solved this error without host reboot by reloading gim module.

      Hope this will help somebody else.

      rmmod gim gim_api
      modprobe gim gim_api
      
      posted in Development
      splastunovS
      splastunov
    • RE: How to control AMD GPU?

      In my case problem was in bad connection.
      I have reassembled server, cleaned PCI-e (GPU) contacts and now it is stable.

      But it will be nice to have some tool to control and monitor AMD GPUs.

      posted in Development
      splastunovS
      splastunov
    • RE: nVidia Tesla P4 for vgpu and Plex encoding

      @hani it began asking for license after one day but without throttling.

      I have switched to AMD GPUs

      posted in Compute
      splastunovS
      splastunov
    • RE: Nvidia MiG Support

      @Dani Strange. Is it executable? Did you tried to follow step by step my instruction to make vGPU work?

      posted in Compute
      splastunovS
      splastunov