Bobcares

Cannot boot a new VPS on XenHVM node

by | Jun 17, 2021

Cannot boot a new VPS on XenHVM node? We can help you.

As part of our Server Management Services, we assist our customers with several VPS queries.

Today, let us see how we can fix this error quickly.


 

Are you unable to boot a new VPS on XenHVM node?

 
Usually while booting or starting a new VPS in XenHVM node via SolusVM , users may see certain errors which can happen due to several reasons.

Today, let us discuss about the two reasons that we noticed and it’s resolution provided by our Support Techs.

 

Cannot boot a new VPS on XenHVM node if the VMID greater than 10000

 
Typical error will look as below on attempt to start VPS from command line.

# xl create -c /home/xen/vm10003/vm10003.cfg
Parsing config from /home/xen/vm10003/vm10003.cfg
WARNING: ignoring “vncviewer” option. Use “-V” option of “xl create” to automatically spawn vncviewer.
WARNING: you seem to be using “kernel” directive to override HVM guest firmware. Ignore that. Use “firmware_override” instead if you really want a non-default firmware
libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: /etc/xen/scripts/vif-bridge add [12018] exited with error status 1
libxl: error: libxl_device.c:1150:device_hotplug_child_death_cb: script: ip link set vif1541.0-emu name vifvm10003.0-emu failed
libxl: error: libxl_create.c:1384:domcreate_attach_vtpms: unable to add nic devices

 

Resolution:

 

  • Firstly, connect to the SolusVM Xen slave server via SSH.
  • Then, comment out the option no_vif_prefix in configuration file /usr/local/solusvm/data/config.ini and set is as true.
[XEN]
; Set this to true to remove the vifvm prefix from the interface vif names
no_vif_prefix = true
  • If the file /usr/local/solusvm/data/config.ini does not exist, create it from /usr/local/solusvm/data/config.ini.example.
# cp /usr/local/solusvm/data/config.ini.example /usr/local/solusvm/data/config.ini
  • The new setting will be applied for the new VPSes automatically. For already existing VPS, rewrite configuration file of the VPS by clicking on Rewrite Config icon on the virtual server management page.

If the issue persists on the new server, there is a probability that NetworkManager prevents starting virtual interface.

 

VPS on SolusVM Xen HVM node does not start

 
Again, on attempt to start VPS from command line you can see the below error:

# 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

Sometimes, Xen HVM VPS starts but shuts down unexpectedly.

In Xen dmesg logs you can see 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:

It usually occurs if SolusVM sets too low value for shadow_memory.

 

Resolution:

 
Let us see the steps followed by our Support Techs to resolve it.
 

For an existing VPS
  • Firstly, open SolusVM > Virtual Servers > VPS > Custom Config.
  • Then, tick the “Enable Custom Config” and “Custom Only” options.
  • Copy and paste Live Config to Custom Config field.
  • Next, remove the line “shadow_memory”.
  • Finally, press Save and Reboot.

 

For a new VPS
  • Firstly, connect to Master server over SSH.
  • Access Master database.
# wget https://raw.githubusercontent.com/solusvm-support/helpers/master/solusvmdb.sh && sh solusvmdb.sh
  • Finally, Run the query below:
ALTER table xendata modify shadow int(5) NULL;

 

[Need help to fix VPS error? We can help you]

Conclusion

In short, today we saw the steps followed by the Support Techs to resolve boot error on VPS.

 

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF