VPS on SolusVM Xen HVM node does not start: Cannot allocate memory

Have more questions? Submit a request

Applicable to:

  • SolusVM

Symptoms 

  • VPS on SolusVM Xen HVM node does not start:

    # xl create -c -V /home/xen/vm101/vm101.cfg
    ...
    c: error: panic: xc_dom_boot.c:379: xc_dom_gnttab_hvm_seed: failed to add gnttab to physmap [errno=12]
    : Internal error
    libxl: error: libxl_dom.c:708:libxl__build_dom: xc_dom_gnttab_init failed: Cannot allocate memory

    Or 

    Xen HVM VPS starts but shuts down unexpectedly.

  • In Xen dmesg logs there is the following error:

    # xl dmesg
    ...
    (XEN) Failed to shatter gfn 44a75: -12
    (XEN) d12124v0 EPT violation 0x59c (--x/rw-) gpa 0x00000044a750d6 mfn 0x644a75 type 0
    (XEN) d12124v0 Walking EPT tables for GFN 44a75:
    (XEN) d12124v0 epte 9c000019e5d86107
    (XEN) d12124v0 epte 9c00000640000bf3
    (XEN) d12124v0 --- GLA 0xffffb00a430100d6
    (XEN) domain_crash called from vmx.c:3385
    (XEN) Domain 12124 (vcpu#0) crashed on cpu#10:

  • The xen package version is or bigger than:

    # rpm -qa | grep xen
    xen-4.8.5.75 
    xen-4.10.4.26
    xen-4.12.1.70

Cause

SolusVM sets too low value for shadow_memory

Resolution

For an existing VPS
  1. Open SolusVM > Virtual Servers > VPS > Custom Config
  2. Tick the "Enable Custom Config" and "Custom Only" options
  3. Copy and paste Live Config to Custom Config field
  4. Remove the line "shadow_memory"
  5. Press Save and Reboot

OR

  1. Connect to Master server via SSH
  2. Access Master database:

    # wget https://raw.githubusercontent.com/solusvm-support/helpers/master/solusvmdb.sh && sh solusvmdb.sh

  3. Run the query:

    MYSQL_LIN: update xendata set shadow=NULL;

  4. Navigate to SolusVM > Virtual Servers > VPS
  5. Click Rewrite Config and Reboot.
For a new VPS
  1. Connect to Master server over SSH.
  2. Access Master database:

    # wget https://raw.githubusercontent.com/solusvm-support/helpers/master/solusvmdb.sh && sh solusvmdb.sh

  3. Run the query:

    MYSQL_LIN: ALTER table xendata modify shadow int(5) NULL;

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.