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

    Posts

    Recent Best Controversial
    • RE: New Rust Xen guest tools

      @olivierlambert
      No, I am used to stopping when I hit an error 🙂

      All three show the new version of the management aganet after

      apt install -f
      
      posted in Development
      A
      AndreS
    • RE: New Rust Xen guest tools

      @olivierlambert said in New Rust Xen guest tools:

      hostnamectl 
         Static hostname: dockerhost
               Icon name: computer-vm
                 Chassis: vm
              Machine ID: a2e7746766144e0ba18cacafdac23680
                 Boot ID: b2bda1e4567c4d148aaf138e1a658fc4
          Virtualization: xen
        Operating System: Debian GNU/Linux 11 (bullseye)
                  Kernel: Linux 5.10.0-26-amd64
            Architecture: x86-64
      
      #dpkg -i xen-guest-agent_0.3.0~rc1_amd64.deb
      dpkg: error: requested operation requires superuser privilege
      andre@dockerhost:~$ sudo dpkg -i xen-guest-agent_0.3.0~rc1_amd64.deb
      [sudo] password for andre: 
      Selecting previously unselected package xen-guest-agent.
      (Reading database ... 83188 files and directories currently installed.)
      Preparing to unpack xen-guest-agent_0.3.0~rc1_amd64.deb ...
      Unpacking xen-guest-agent (0.3.0~rc1) ...
      dpkg: dependency problems prevent configuration of xen-guest-agent:
       xen-guest-agent depends on libxenstore4 | libxenstore3.0; however:
        Package libxenstore4 is not installed.
        Package libxenstore3.0 is not installed.
      
      dpkg: error processing package xen-guest-agent (--install):
       dependency problems - leaving unconfigured
      Errors were encountered while processing:
       xen-guest-agent
      

      Note: originally installed with template for Debian 10


      $ hostnamectl 
       Static hostname: wwwdev
             Icon name: computer-vm
               Chassis: vm 🖴
            Machine ID: 654b85548a1d4f989e862383b6f58314
               Boot ID: 8f7229bb2065499989c05d03b0dc3ca2
        Virtualization: xen
      Operating System: Debian GNU/Linux 12 (bookworm)  
                Kernel: Linux 6.1.0-13-amd64
          Architecture: x86-64
       Hardware Vendor: Xen
        Hardware Model: HVM domU
      Firmware Version: 4.13
      
      $ sudo dpkg -i xen-guest-agent_0.3.0~rc1_amd64.deb 
      Selecting previously unselected package xen-guest-agent.
      (Reading database ... 43212 files and directories currently installed.)
      Preparing to unpack xen-guest-agent_0.3.0~rc1_amd64.deb ...
      Unpacking xen-guest-agent (0.3.0~rc1) ...
      dpkg: dependency problems prevent configuration of xen-guest-agent:
       xen-guest-agent depends on libxenstore4 | libxenstore3.0; however:
        Package libxenstore4 is not installed.
        Package libxenstore3.0 is not installed.
      
      dpkg: error processing package xen-guest-agent (--install):
       dependency problems - leaving unconfigured
      Errors were encountered while processing:
       xen-guest-agent
      

      Originally instaled using the Debian 11 template


      #hostnamectl
       Static hostname: pihole
             Icon name: computer-vm
               Chassis: vm 🖴
            Machine ID: 23ed898244cd45ff8b9107bc98d0c0f8
               Boot ID: 86fb16056cab4ffeb7eddfbdd32a6cac
        Virtualization: xen
      Operating System: Debian GNU/Linux 12 (bookworm)  
                Kernel: Linux 6.1.0-13-amd64
          Architecture: x86-64
       Hardware Vendor: Xen
        Hardware Model: HVM domU
      Firmware Version: 4.13
      
      # dpkg -i xen-guest-agent_0.3.0~rc1_amd64.deb 
      (Reading database ... 35511 files and directories currently installed.)
      Preparing to unpack xen-guest-agent_0.3.0~rc1_amd64.deb ...
      Unpacking xen-guest-agent (0.3.0~rc1) over (0.3.0~rc1) ...
      dpkg: dependency problems prevent configuration of xen-guest-agent:
       xen-guest-agent depends on libxenstore4 | libxenstore3.0; however:
        Package libxenstore4 is not installed.
        Package libxenstore3.0 is not installed.
      
      dpkg: error processing package xen-guest-agent (--install):
       dependency problems - leaving unconfigured
      Errors were encountered while processing:
       xen-guest-agent
      

      Installed a few weeks ago, using the Debian 12 template

      I stopped at this point, let me know if you want more details.

      $ sudo apt upgrade
      Reading package lists... Done
      Building dependency tree... Done
      Reading state information... Done
      You might want to run 'apt --fix-broken install' to correct these.
      The following packages have unmet dependencies:
       xen-guest-agent : Depends: libxenstore4 but it is not installed or
                                  libxenstore3.0 but it is not installable
      E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
      
      
      posted in Development
      A
      AndreS
    • RE: Gentoo - Failed to boot with Xen

      @Fulgurance Good luck!

      From you response I could not see if you tried with Xen config only first (or LVM first) instead of trying both at the same time.
      This could help you narrow done the problem area. Remember you are trying to add Xen, LVM AND encrypted root at the same time.

      posted in Compute
      A
      AndreS
    • RE: Gentoo - Failed to boot with Xen

      @Fulgurance What did you base the Xen kernel config on? Did you start with the working kernel config and added the Xen requirements? In that case I believe you indeed need to reach out out the XEN team to understand what the issue is.

      You could try to start first with LVM and add XEN (leave the encryption out) or with encryption and XEN (leave LVM out) to see if it is one of the two that is causing the issue.

      posted in Compute
      A
      AndreS
    • RE: Gentoo - Failed to boot with Xen

      The wiki only mentions that IF you use LVM how to address it in the grub config. Encryption is not even mentioned. Note that this really makes the setup much more complicated. As far as I know a plain vanilla kernel (or gentoo-sources kernel) does not have LVM enabled by default. You are trying to troubleshoot a setup that is not exactly mentioned in the wiki (only referenced in the grub setup). The Gentoo liveCD kernel has everything you can think of enabled and uses (I think) initramfs.

      I would either start with a more simple scheme like building it on top of a ext4/xfs/whatever root filesystem and maybe experiment with the ecrypted/LVM version inside a VM unless you can find a guide/wiki that describes all three options: Xen dom0 on an encrypted LVM volume.

      Maybe you can start here or here. Advise is to get Gentoo up and running before you build a Xen enabled kernel; that way you have first of all a fallback scenario (your system will boot and you dont't have to go through the chroot thing everytime) and you separate things to make troubleshooting easier. Good luck!

      posted in Compute
      A
      AndreS
    • RE: Gentoo - Failed to boot with Xen

      How are you building your kernel? This looks like either LVM is not available a boot time or encryption is gettting in the way. It's been too long ago that I build systems with root on LVM.
      Have you tried it without encryption? This seems discussion seems to tough upon many possible issues; your error message alone is not enough to be more specific.
      Gentoo Forum

      posted in Compute
      A
      AndreS
    • RE: build a small home pc for XCP-ng?

      @Cottmain
      Hi, no problem. We all started somewhere 🙂

      For your setup I would suggest you either get somethig cheap so that if it doesn't match your requirements you can switch at low cost or you do some math and decide what you need and add enough headroom for the near future.

      Make that list a bit more concrete and add some numbers for memory and storage. Leave at least a couple of Gbs for XCP-ng itself and some spare memory as you can't really fill up the server's memory to the last Gb. You might even get away with two low(er) spec machines.

      If you want to make use of passthrough I suggest you look around at the forum to get some feekl of what is needed and what is possible. You will need a separate videocard if you want to pass it through and use it for encoding inside a vm; XCP-ng will claim one videocard. Also check the forums for network card passthrough and OPNSense/pfSense.

      Flexibility seems to be key for you at this time. You don't need the absolute newest stuff but if you are investing make sure it can serve you the next couple of years; do keep an eye on power usage as a cheap old server will do all that you want but might add significantly to your energy bill.

      posted in Compute
      A
      AndreS
    • RE: build a small home pc for XCP-ng?

      @Cottmain
      Can you give more info on what you would like to do with the server (home firewall and other setup is rahter vague)? I have had XCP-ng running on Dell T20's, an HP Pro 6300 (desktop) and I am currently running it on an Asrock Deskmini X300. For me this works; memory is for me the most important resource and that's why the Deskmini has 64 Gb of memory. I use this setup as a testlab and host a few services that I expose to the internet for myself and family/friends. For me this works.

      So what are you aiming to do? Maybe start here for the minimum requirements https://xcp-ng.org/docs/requirements.html#xcp-ng-system-requirements and take it from there. As long as you have enough storage and memory to install XCP-ng and create a few vm's you are good to go. Have you consider a second hand machine just to get started?

      posted in Compute
      A
      AndreS
    • RE: Migrating VM fails with DUPLICATE_VM error part2

      @darkbeldin For the record, both vm's were running on the same esxi host when exported. This may or may not be a factor (I suspect it is).

      posted in Xen Orchestra
      A
      AndreS
    • RE: Migrating VM fails with DUPLICATE_VM error part2

      @darkbeldin We are talking 15-18 months ago ... What I remember is a fairly standard export from esxi into (I believe) an OVA format and I imported that directly into xcp-ng. I don't remember anything complex other than having to redo the export a few times to get properly rid of vmware tools and some drivers.

      Edit: I checked a few articles and it was probably the OVF format.

      posted in Xen Orchestra
      A
      AndreS
    • RE: Migrating VM fails with DUPLICATE_VM error part2

      @darkbeldin Thanks! If I can test anything let me know. Do note that I have removed the degraded disk from the host and said goodbye to three vm's that I could not copy/migrate/clone anymore. Not a big loss, this is a home lab but I could not even copy them away to preserve them for later. I do have the other vm (I imported two last year from esxi).

      posted in Xen Orchestra
      A
      AndreS
    • RE: Migrating VM fails with DUPLICATE_VM error part2

      @olivierlambert Indeed. Learned a lot this week. Thanks for walking me through this.

      Should I register anything for mac_seed duplication that is obviously caused by the export from esxi/import into xcp-ng? The MAC address duplciation issue was fixed earlier if I am not mistaken.

      posted in Xen Orchestra
      A
      AndreS
    • RE: Migrating VM fails with DUPLICATE_VM error part2

      OK, the underlying disk has problems. I found the kernel.log and it is filling up with read errors. That part is clear now.

      So what lead me to try and migrate the vm (slow boot/response) uncovered a mac_seed duplication and we fixed that. Not sure if this was already fixed in the code last year.

      On to this prblem; could I have seen the disk issue somewhere in the XO interface? In the logs I only see the higher level issue of failed migrations. It's a learning experience anyway; maybe a mirrored disk could be an answer. Need to investigate.

      posted in Xen Orchestra
      A
      AndreS
    • RE: Migrating VM fails with DUPLICATE_VM error part2

      @olivierlambert Rebooted both hosts, everything came up as expected.
      Stopped the Win10vm vm, changed the mac_seed and started the migration.
      Initially it looked ok but it finished with an error:

      xe vm-migrate remote-master=172.25.10.11 remote-username=root remote-password=xxxxxx vif:f4b175c2-0082-212c-b9d9-bd616cd83d2c=a014b230-2db6-adb4-ba4f-0b1cc07fdcae vm=Win10vm
      Performing a Storage XenMotion migration. Your VM's VDIs will be migrated with the VM.
      Will migrate to remote host: xen1, using remote network: Pool-wide network associated with eth0. Here is the VDI mapping:
      VDI 4d4a809d-6801-4462-8e52-811882106821 -> SR 270f8f4a-a24c-ced6-99c7-9bc2ba5f5008
      VDI 6a30ca10-a386-4e00-91aa-89c3e5bd43de -> SR 270f8f4a-a24c-ced6-99c7-9bc2ba5f5008
      The VDI copy action has failed
      <extra>: End_of_file
      

      Via XO

      vm.migrate
      {
        "vm": "afe623be-5451-fd48-3f24-60120e53f5ab",
        "mapVifsNetworks": {
          "f4b175c2-0082-212c-b9d9-bd616cd83d2c": "a014b230-2db6-adb4-ba4f-0b1cc07fdcae"
        },
        "migrationNetwork": "a014b230-2db6-adb4-ba4f-0b1cc07fdcae",
        "sr": "270f8f4a-a24c-ced6-99c7-9bc2ba5f5008",
        "targetHost": "3b57d90b-983f-46bb-8f52-4319025d1182"
      }
      {
        "code": 21,
        "data": {
          "objectId": "afe623be-5451-fd48-3f24-60120e53f5ab",
          "code": "VDI_COPY_FAILED"
        },
        "message": "operation failed",
        "name": "XoError",
        "stack": "XoError: operation failed
          at operationFailed (/opt/xo/xo-builds/xen-orchestra-202111061638/packages/xo-common/src/api-errors.js:21:32)
          at file:///opt/xo/xo-builds/xen-orchestra-202111061638/packages/xo-server/src/api/vm.mjs:482:15
          at Object.migrate (file:///opt/xo/xo-builds/xen-orchestra-202111061638/packages/xo-server/src/api/vm.mjs:469:3)
          at Api.callApiMethod (file:///opt/xo/xo-builds/xen-orchestra-202111061638/packages/xo-server/src/xo-mixins/api.mjs:304:20)"
      }
      

      I have however succesfully migrated the 'other' vm that was imported (and had the duplicate mac_seed) . So both are now running on the same host.

      So next to the mac_seed there seems to be something wrong with the imported windows vm; it starts horribly slow indeed.

      posted in Xen Orchestra
      A
      AndreS
    • RE: Migrating VM fails with DUPLICATE_VM error part2

      @olivierlambert
      I stopped all other VMs and then I was able to start the Win10vm again.

      Memory stettings for this VM
      Static: 6 GiB/6 GiB
      Dynamic: 6 GiB/6 GiB

      I'll do a reboot anyway because I have never had this before; normally I have 4-5 vms running and a few Gb of memory free. With the dynamice memory settings. I can only guess that the migrations used memory that was not freed up.

      I will reboot both hosts, just to be sure; check the mac_seed and set it to something different and try again.

      posted in Xen Orchestra
      A
      AndreS
    • RE: Migrating VM fails with DUPLICATE_VM error part2

      @olivierlambert
      51b6c2e4-b91f-4a2e-a1b7-da9af3b41149-image.png

      Dynamic, yes, but total is still very low. Everywhere I look memory usage is just under 9 Gb including 2.2 Gb for xcp-ng. Host has 24 Gb. Should I just reboot to have a clean start?

      posted in Xen Orchestra
      A
      AndreS
    • RE: Migrating VM fails with DUPLICATE_VM error part2

      @olivierlambert

      uid ( RO)                                  : 03688598-ec14-4492-ab46-5424dcee8e9f
                                  name-label ( RW): xen2
                            name-description ( RW): Dell T20
                          allowed-operations (SRO): VM.migrate; provision; VM.resume; evacuate; VM.start
                          current-operations (SRO): 
                                     enabled ( RO): true
                                     display ( RO): enabled
                           API-version-major ( RO): 2
                           API-version-minor ( RO): 16
                          API-version-vendor ( RO): XenSource
           API-version-vendor-implementation (MRO): 
                                     logging (MRW): 
                       suspend-image-sr-uuid ( RW): a610de27-9c64-ee06-a8fd-4e1d1c7768ab
                          crash-dump-sr-uuid ( RW): a610de27-9c64-ee06-a8fd-4e1d1c7768ab
                            software-version (MRO): product_version: 8.2.0; product_version_text: 8.2; product_version_text_short: 8.2; platform_name: XCP; platform_version: 3.2.0; product_brand: XCP-ng; build_number: release/stockholm/master/7; hostname: localhost; date: 2021-05-20; dbv: 0.0.1; xapi: 1.20; xen: 4.13.1-9.12.1; linux: 4.19.0+1; xencenter_min: 2.16; xencenter_max: 2.16; network_backend: openvswitch; db_schema: 5.602
                                capabilities (SRO): xen-3.0-x86_64; xen-3.0-x86_32p; hvm-3.0-x86_32; hvm-3.0-x86_32p; hvm-3.0-x86_64; 
                                other-config (MRW): agent_start_time: 1636223713.; boot_time: 1632048708.; rpm_patch_installation_time: 1632048285.199; iscsi_iqn: iqn.2020-07.com.example:67db4a3c
                                    cpu_info (MRO): cpu_count: 4; socket_count: 1; vendor: GenuineIntel; speed: 3192.841; modelname: Intel(R) Xeon(R) CPU E3-1225 v3 @ 3.20GHz; family: 6; model: 60; stepping: 3; flags: fpu de tsc msr pae mce cx8 apic sep mca cmov pat clflush acpi mmx fxsr sse sse2 ss ht syscall nx rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid pn
      -00000000-00000000-00000000-00000000; features_hvm: 1fcbfbff-f7fa3223-2d93fbff-00000423-00000001-000007ab-00000000-00000000-00001000-9c000400-00000000-00000000-00000000-00000000-00000000; features_hvm_host: 1fcbfbff-f7fa3223-2d93fbff-00000423-00000001-000007ab-00000000-00000000-00001000-9c000400-00000000-00000000-00000000-00000000-00000000; features_pv_host: 1fc9cbf5-f6f83203-2991cbf5-00000023-00000001-00000329-00000000-00000000-00001000-8c000400-00000000-00000000-00000000-00000000-00000000
                                chipset-info (MRO): iommu: true
                                    hostname ( RO): xen2
                                     address ( RO): 172.25.10.12
                       supported-bootloaders (SRO): pygrub; eliloader
                                       blobs ( RO): 
                             memory-overhead ( RO): 621060096
                                memory-total ( RO): 25673416704
                                 memory-free ( RO): 16197537792
                        memory-free-computed ( RO): 3970736128
                           host-metrics-live ( RO): true
                        patches (SRO) [DEPRECATED]: 
                                     updates (SRO): 
                               ha-statefiles ( RO): 
                            ha-network-peers ( RO): 
                          external-auth-type ( RO): 
                  external-auth-service-name ( RO): 
                 external-auth-configuration (MRO): 
                                     edition ( RO): xcp-ng
                              license-server (MRO): address: localhost; port: 27000
                               power-on-mode ( RO): 
                             power-on-config (MRO): 
                              local-cache-sr ( RO): <not in database>
                                        tags (SRW): 
                                  ssl-legacy ( RW): false
                          guest_VCPUs_params (MRW): 
          virtual-hardware-platform-versions (SRO): 0; 1; 2
                         control-domain-uuid ( RO): 66c5258b-6429-4658-b31c-06ccd0f1896d
                                resident-vms (SRO): 90ee64f7-9a07-fd83-033a-10183b98a9a6; c318a4e3-a14d-01ca-b2c4-df11c1f9d9b8; 66c5258b-6429-4658-b31c-06ccd0f1896d; 49c86f89-eabb-bd68-dc79-387434bdb899
                    updates-requiring-reboot (SRO): 
                                    features (SRO): 
                                   iscsi_iqn ( RW): iqn.2020-07.com.example:67db4a3c
                                multipathing ( RW): false
      
      
      
      posted in Xen Orchestra
      A
      AndreS
    • RE: Migrating VM fails with DUPLICATE_VM error part2

      @olivierlambert Here you go

                               snapshot-time ( RO): 19700101T00:00:00Z
                               snapshot-info ( RO): 
                                      parent ( RO): <not in database>
                                    children ( RO): 
                           is-control-domain ( RO): false
                                 power-state ( RO): halted
                               memory-actual ( RO): 6442455040
                               memory-target ( RO): 0
                             memory-overhead ( RO): 54525952
                           memory-static-max ( RW): 6442450944
                          memory-dynamic-max ( RW): 6442450944
                          memory-dynamic-min ( RW): 6442450944
                           memory-static-min ( RW): 6442450944
                            suspend-VDI-uuid ( RW): <not in database>
                             suspend-SR-uuid ( RW): <not in database>
                                VCPUs-params (MRW): 
                                   VCPUs-max ( RW): 2
                            VCPUs-at-startup ( RW): 2
                      actions-after-shutdown ( RW): Destroy
                        actions-after-reboot ( RW): Restart
                         actions-after-crash ( RW): Restart
                               console-uuids (SRO): 
                                         hvm ( RO): false
                                    platform (MRW): timeoffset: 3570; device-model: qemu-upstream-compat; nx: true; acpi: 1; apic: true; pae: true; hpet: true; viridian: true
                          allowed-operations (SRO): changing_NVRAM; changing_dynamic_range; changing_shadow_memory; changing_static_range; make_into_template; migrate_send; destroy; export; start_on; start; clone; copy; snapshot
                          current-operations (SRO): 
                          blocked-operations (MRW): 
                         allowed-VBD-devices (SRO): 2; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; 17; 18; 19; 20; 21; 22; 23; 24; 25; 26; 27; 28; 29; 30; 31; 32; 33; 34; 35; 36; 37; 38; 39; 40; 41; 42; 43; 44; 45; 46; 47; 48; 49; 50; 51; 52; 53; 54; 55; 56; 57; 58; 59; 60; 61; 62; 63; 64; 65; 66; 67; 68; 69; 70; 71; 72; 73; 74; 75; 76; 77; 78; 79; 80; 81; 82; 83; 84; 85; 86; 87; 88; 89; 90; 91; 92; 93; 94; 95; 96; 97; 98; 99; 100; 101; 102; 103; 104; 105; 106; 107; 108; 109; 110; 111; 112; 113; 114; 115; 116; 117; 118; 119; 120; 121; 122; 123; 124; 125; 126; 127; 128; 129; 130; 131; 132; 133; 134; 135; 136; 137; 138; 139; 140; 141; 142; 143; 144; 145; 146; 147; 148; 149; 150; 151; 152; 153; 154; 155; 156; 157; 158; 159; 160; 161; 162; 163; 164; 165; 166; 167; 168; 169; 170; 171; 172; 173; 174; 175; 176; 177; 178; 179; 180; 181; 182; 183; 184; 185; 186; 187; 188; 189; 190; 191; 192; 193; 194; 195; 196; 197; 198; 199; 200; 201; 202; 203; 204; 205; 206; 207; 208; 209; 210; 211; 212; 213; 214; 215; 216; 217; 218; 219; 220; 221; 222; 223; 224; 225; 226; 227; 228; 229; 230; 231; 232; 233; 234; 235; 236; 237; 238; 239; 240; 241; 242; 243; 244; 245; 246; 247; 248; 249; 250; 251; 252; 253; 254
                         allowed-VIF-devices (SRO): 1; 2; 3; 4; 5; 6
                              possible-hosts ( RO): 
                                 domain-type ( RW): hvm
                         current-domain-type ( RO): unspecified
                             HVM-boot-policy ( RW): BIOS order
                             HVM-boot-params (MRW): order: cnd
                       HVM-shadow-multiplier ( RW): 1.000
                                   PV-kernel ( RW): 
                                  PV-ramdisk ( RW): 
                                     PV-args ( RW): 
                              PV-legacy-args ( RW): 
                               PV-bootloader ( RW): 
                          PV-bootloader-args ( RW): 
                         last-boot-CPU-flags ( RO): vendor: GenuineIntel; features: 1fcbfbff-f7fa3223-2d93fbff-00000423-00000001-000007ab-00000000-00000000-00001000-9c000400-00000000-00000000-00000000-00000000-00000000
                            last-boot-record ( RO): '{"xen_platform":[1,1],"pv_drivers_detected":true,"pci_power_mgmt":false,"pci_msitranslate":true,"qemu_vifs":[],"qemu_vbds":[],"suspend_memory_bytes":8589934592,"original_profile":"Qemu_upstream_compat","profile":"Qemu_upstream_compat","nested_virt":false,"nomigrate":false,"domain_config":["X86",{"emulation_flags":["X86_EMU_LAPIC","X86_EMU_HPET","X86_EMU_PM","X86_EMU_RTC","X86_EMU_IOAPIC","X86_EMU_PIC","X86_EMU_VGA","X86_EMU_IOMMU","X86_EMU_PIT","X86_EMU_USE_PIRQ"]}],"last_start_time":1603780055.119536,"ty":["HVM",{"firmware":"Bios","qemu_stubdom":false,"qemu_disk_cmdline":false,"boot_order":"cdn","pci_passthrough":false,"pci_emulations":[],"serial":"pty","acpi":true,"video":"Cirrus","video_mib":4,"timeoffset":"3585","shadow_multiplier":1.0,"hap":true}],"build_info":{"has_hard_affinity":false,"priv":["BuildHVM",{"video_mib":4,"shadow_multiplier":1.0}],"vcpus":2,"kernel":"/usr/libexec/xen/boot/hvmloader","memory_target":8388608,"memory_max":8388608},"version":2}'
                                 resident-on ( RO): <not in database>
                                    affinity ( RW): <not in database>
                                other-config (MRW): mac_seed: 5e88eb6a-d680-c47f-a94a-028886971ba4; auto_poweron: true; vgpu_pci: ; base_template_name: Other install media; install-methods: cdrom
                                      dom-id ( RO): -1
                             recommendations ( RO): <restrictions><restriction field="memory-static-max" max="137438953472" /><restriction field="vcpus-max" max="32" /><restriction property="number-of-vbds" max="255" /><restriction property="number-of-vifs" max="7" /><restriction field="has-vendor-device" value="false" /></restrictions>
                               xenstore-data (MRW): vm-data/mmio-hole-size: 268435456; vm-data: 
                  ha-always-run ( RW) [DEPRECATED]: false
                         ha-restart-priority ( RW): 
                                       blobs ( RO): 
                                  start-time ( RO): 19700101T00:00:00Z
                                install-time ( RO): 19700101T00:00:00Z
                                VCPUs-number ( RO): 0
                           VCPUs-utilisation (MRO): 
                                  os-version (MRO): name: Microsoft Windows 10 Pro|C:\WINDOWS|\Device\Harddisk0\Partition2; distro: windows; major: 6; minor: 2; spmajor: 0; spminor: 0
                          PV-drivers-version (MRO): major: 0; minor: 0; micro: 0; build: 0
          PV-drivers-up-to-date ( RO) [DEPRECATED]: true
                                      memory (MRO): 
                                       disks (MRO): 
                                        VBDs (SRO): ac9e1b28-f576-b83d-c7ca-8ce097e3b30e; 9177269c-442b-24be-174e-25ba7ba20846; 3adc01b3-e9a7-42d8-8375-7380ef9c2791
                                    networks (MRO): 0/ip: 172.25.10.211; 0/ipv4/0: 172.25.10.211
                         PV-drivers-detected ( RO): true
                                       other (MRO): feature-static-ip-setting: 1; feature-ts: 1; feature-ts2: 1; feature-xs-batcmd: 1; feature-setcomputername: 1; error: CreateProcessAsUser : 2 failed.; feature-s4: 1; feature-s3: 1; feature-reboot: 1; feature-poweroff: 1; feature-balloon: 1; feature-suspend: 1; has-vendor-device: 0; platform-feature-xs_reset_watches: 1; platform-feature-multiprocessor-suspend: 1; data-ts: 1
                                        live ( RO): true
                  guest-metrics-last-updated ( RO): 20211114T22:16:45Z
                         can-use-hotplug-vbd ( RO): unspecified
                         can-use-hotplug-vif ( RO): true
                    cooperative ( RO) [DEPRECATED]: true
                                        tags (SRW): 
                                   appliance ( RW): <not in database>
                           snapshot-schedule ( RW): <not in database>
                            is-vmss-snapshot ( RO): false
                                 start-delay ( RW): 0
                              shutdown-delay ( RW): 0
                                       order ( RW): 0
                                     version ( RO): 0
                               generation-id ( RO): 2464683622889442979:3979947479560168523
                   hardware-platform-version ( RO): 0
                           has-vendor-device ( RW): false
                             requires-reboot ( RO): false
                             reference-label ( RO): 
                                bios-strings (MRO): bios-vendor: Xen; bios-version: ; system-manufacturer: Xen; system-product-name: HVM domU; system-version: ; system-serial-number: ; baseboard-manufacturer: ; baseboard-product-name: ; baseboard-version: ; baseboard-serial-number: ; baseboard-asset-tag: ; baseboard-location-in-chassis: ; enclosure-asset-tag: ; hp-rombios: ; oem-1: Xen; oem-2: MS_VM_CERT/SHA1/bdbeb6e0a816d43fa6d3fe8aaef04c2bad9d3e3d
      
      
      posted in Xen Orchestra
      A
      AndreS
    • RE: Migrating VM fails with DUPLICATE_VM error part2

      @olivierlambert Thanks. Done that.
      Next stop is

      xe vm-migrate remote-master=172.25.10.11 remote-username=root remote-password=xxxxxx vif:f4b175c2-0082-212c-b9d9-bd616cd83d2c=a014b230-2db6-adb4-ba4f-0b1cc07fdcae vm=Win10vm
      Performing a Storage XenMotion migration. Your VM's VDIs will be migrated with the VM.
      Will migrate to remote host: xen1, using remote network: Pool-wide network associated with eth0. Here is the VDI mapping:
      VDI 4d4a809d-6801-4462-8e52-811882106821 -> SR 270f8f4a-a24c-ced6-99c7-9bc2ba5f5008
      VDI 6a30ca10-a386-4e00-91aa-89c3e5bd43de -> SR 270f8f4a-a24c-ced6-99c7-9bc2ba5f5008
      There were no servers available to complete the specified operation.
      

      Doesn't matter what I set the mac_seed to: empty, just a few characters or change one character. Setting it back to the 'original' value reproduces the earlier error about creating a duplicate so the mac_seed value is making a difference. But there seems to be more.

      I couldn't find anything specific on There were no servers available to complete the specified operation. on the forum, just one hit; someone asking what it means.

      A wider internet search showed some Citrix /Xen related posts; one about a DVD image not being available anymore so I disabled the DVD but that also made no difference. There is more than enough storage available on the receiving SR; more than double what is needed.

      But now it gets interesting. When I try to start the vm again I get this:

      vm.start
      {
        "id": "afe623be-5451-fd48-3f24-60120e53f5ab",
        "bypassMacAddressesCheck": false,
        "force": false
      }
      {
        "code": "NO_HOSTS_AVAILABLE",
        "params": [],
        "call": {
          "method": "VM.start",
          "params": [
            "OpaqueRef:3947721f-7307-4560-aa59-dec8a8e26bfb",
            false,
            false
          ]
        },
        "message": "NO_HOSTS_AVAILABLE()",
        "name": "XapiError",
        "stack": "XapiError: NO_HOSTS_AVAILABLE()
          at Function.wrap (/opt/xo/xo-builds/xen-orchestra-202111061645/packages/xen-api/src/_XapiError.js:16:12)
          at /opt/xo/xo-builds/xen-orchestra-202111061645/packages/xen-api/src/transports/json-rpc.js:41:27
          at AsyncResource.runInAsyncScope (async_hooks.js:197:9)
          at cb (/opt/xo/xo-builds/xen-orchestra-202111061645/node_modules/bluebird/js/release/util.js:355:42)
          at tryCatcher (/opt/xo/xo-builds/xen-orchestra-202111061645/node_modules/bluebird/js/release/util.js:16:23)
          at Promise._settlePromiseFromHandler (/opt/xo/xo-builds/xen-orchestra-202111061645/node_modules/bluebird/js/release/promise.js:547:31)
          at Promise._settlePromise (/opt/xo/xo-builds/xen-orchestra-202111061645/node_modules/bluebird/js/release/promise.js:604:18)
          at Promise._settlePromise0 (/opt/xo/xo-builds/xen-orchestra-202111061645/node_modules/bluebird/js/release/promise.js:649:10)
          at Promise._settlePromises (/opt/xo/xo-builds/xen-orchestra-202111061645/node_modules/bluebird/js/release/promise.js:729:18)
          at _drainQueueStep (/opt/xo/xo-builds/xen-orchestra-202111061645/node_modules/bluebird/js/release/async.js:93:12)
          at _drainQueue (/opt/xo/xo-builds/xen-orchestra-202111061645/node_modules/bluebird/js/release/async.js:86:9)
          at Async._drainQueues (/opt/xo/xo-builds/xen-orchestra-202111061645/node_modules/bluebird/js/release/async.js:102:5)
          at Immediate.Async.drainQueues [as _onImmediate] (/opt/xo/xo-builds/xen-orchestra-202111061645/node_modules/bluebird/js/release/async.js:15:14)
          at processImmediate (internal/timers.js:464:21)
          at process.topLevelDomainCallback (domain.js:152:15)
          at process.callbackTrampoline (internal/async_hooks.js:128:24)"
      }
      

      Setting it back to the 'original' mac_seed value does not even allow me to start the vm. I do get the ' duplicate' error on vm migration.

      When I start via xe I get

      xe vm-start vm=Win10vm
      There are no suitable hosts to start this VM on.
      The following table provides per-host reasons for why the VM could not be started:
      
      xen2    : Cannot start here [Not enough free memory]
      
      
      There were no servers available to complete the specified operation.
      

      There is enough free memory (9 Gb available, 6 Gb requested). Even freeing up 15 Gb of memory does not make a diffence. Same errors in XOA and via xe.

      Any other suggestions?

      posted in Xen Orchestra
      A
      AndreS
    • RE: Migrating VM fails with DUPLICATE_VM error part2

      @olivierlambert Life happened, just spent some time working through scenarios.

      Using xe vm-migrate I can move vms from one host to the other (this is across pools) and back. For me this rules out a host level issue.

      When I try to move the vms that won't migrate in both cases I get the error

      Cannot restore this VM because it would create a duplicate
      

      This clearly points at the two vms that were imported from esxi last year.

      Reviewed the output of xe vm-list params=all uuid=<relevant vm uuid> again and finaly noticed that they both have the same mac_seed: value under other-config (MRW):

      other-config (MRW): auto_poweron: true; vgpu_pci: ; base_template_name: Other install media; mac_seed: 5e88eb6a-d680-c47f-a94a-028886971ba4; install-methods: cdrom
      

      and

      other-config (MRW): auto_poweron: true; import_task: OpaqueRef:680ed8f5-22a5-4a4b-af3b-6988f7734441; install-repository: cdrom; vgpu_pci: ; base_template_name: Other install media; mac_seed: 5e88eb6a-d680-c47f-a94a-028886971ba4; install-methods: cdrom
      

      Could that cause a clash/duplicate error?

      posted in Xen Orchestra
      A
      AndreS