Need help?

Our experts have had an average response time of 11.7 minutes in August 2021 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

Failed to start migrated KVM VPS in SolusVM? Let us fix it

by | Jun 18, 2021

Failed to start migrated KVM VPS in SolusVM? We can help you.

We often come across this error when the iso mounted to VPS on the source server does not exist on the destination server.

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

Today, let us see how to migrate KVM VPS from one node to another and how we can fix it in case we fail.

 

Manually migrate KVM VPS from one node to another

In order to manually migrate KVM VPS, we follow the steps below:

  1. Initially, we stop the VPS we require in SolusVM > Virtual Servers > VPS > Shutdown. Here, we need to note the VMID of VPS.
  2. Then we connect to the source slave node over SSH.
  3. We find a logical volume of the VPS:
    # lvdisplay | grep "LV Path" | grep "kvm101"
    LV Path /dev/yourvg/kvm101_img
  4. Then we create a copy of the logical volume:
    # dd if=/dev/yourvg/kvm101_img | gzip | dd of=/home/kvm101_backup.gz bs=4096
  5. Eventually, we transfer the copy to the target slave node using the following command on the source node:
    # scp -C /home/kvm101_backup.gz [email protected]:/home/
  6. Connect to the target server over SSH.
  7. We create a logical volume with the same size and name:
    # lvcreate -n kvm101_img --size 10G /dev/yourvg
  8. Here, we restore the copy to the created logical volume:
    # dd if=/home/kvm101_backup.gz | gzip -d | dd of=/dev/yourvg/kvm101_img bs=4096
  9. Connect to the Master node over SSH
  10. Later, we update the Master node database with the new location of the VPS
    # /scripts/vm-migrate ID NEWNODEID

    Here, the ID is of the migrated VPS; NEWNODEID is the ID of the target node.
    For example:

    # /scripts/vm-
    migrate 20 5
  11. Then we reboot VPS via SolusVM > Virtual Server > migrated VPS > Reboot for changes to work effectively.
  12. Once we verify the correct work of VPS, we remove logical volume and the VPS directory on the source server:
    # lvremove
    /dev/yourvg/kvm101_img
    # rm -rf /home/kvm/kvm101/

 

Failed to start migrated KVM VPS in SolusVM

We may come across this error while rebooting the VPS in debug mode at SolusVM > Virtual Servers > VPS > Reboot:

Domain kvm135 has been undefined
Domain kvm135 defined from /home/kvm/kvm135/kvm135.xml
Domain kvm135 marked as autostarted
error: Failed to create domain from /home/kvm/kvm135/kvm135.xml error: Cannot access storage file ‘/home/solusvm/kvm/iso/debian-9.8.0-amd64-netinst.iso’: No such file or directory

Here, we can see that the ISO attach to VPS on the source server.

When the iso mounted to VPS on the source server does not exist on the destination server, it causes the error.

In order to fix this, our Support Techs suggest these steps:

  1. Initially, we log in to the SolusVM admin panel
  2. Then we open SolusVM > Virtual Servers > VPS
  3. In the Settings section we Unmount at CD Rom setting:

[Stuck with the migration or error? We’d be happy to assist]

 

Conclusion

In short, we saw how our Support Techs migrate and fix a possible error.

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 *

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

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

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

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