Skip to content
Bots!
Bots!
  • About
    • Myself
    • আমার দোয়া
  • Bookmarks
    • Bookmarks
    • My OCI Bookmarks
    • Useful Proxmox Commands & Links
    • Learning Nano
    • Useful Sites
    • Useful Virtualbox Command
    • Useful MySQL Command
    • Useful Linux Command
    • BTT-CAS
  • Resources
    • Webinar on Cloud Adoption for Project Managers
  • Photos
  • Videos
  • Downloads
Bots!

Import and Export Xen VM a.k.a XCP-NG

Rumi, January 27, 2023

Print virtual machine list

xe vm-list
uuid ( RO)           : 43dfac04-515e-7769-b2d2-444d4b7cb198
name-label ( RW): hk-zabbix-01
power-state ( RO): halted

Check the mount disk

df -h
[root@xenserver-hk-01 ~]# df -h
Filesystem               Size  Used Avail Use% Mounted on
devtmpfs                 2.0G   44K  2.0G   1% /dev
tmpfs                       2.0G  504K  2.0G   1% /dev/shm
tmpfs                       2.0G  4.1M  2.0G   1% /run
tmpfs                       2.0G     0  2.0G   0% /sys/fs/cgroup
/dev/sda1                18G  8.9G  7.9G  53% /
xenstore                   2.0G     0  2.0G   0% /var/lib/xenstored
/dev/loop0               45M   45M     0 100% /var/xen/xc-install
/dev/sda4                 512M  2.0M  510M   1% /boot/efi
/dev/sda5                 3.9G  708M  3.0G  20% /var/log
//192.168.10.10/soft    500G   49G  452G  10% /run/sr-mount/21c3c475-28c7-26b7-2abb-9bd8b011eb1e<br>192.168.10.10:/nfs/iso 18G 8.9G 7.9G 53% /run/sr-mount/a3ab3cfb-645d-54a0-9c49-9462bd66a7c3

Export the virtual machine to shared storage disk

xe vm-export vm=hk-zabbix-01 filename=/run/sr-mount/21c3c475-28c7-26b7-2abb-9bd8b011eb1e/hk-zabbix-01.xva

Import the VM

First copy the .xva or exported VM file to anywhere in the server. Then look for desired SR (Storage) UUID to be exported. Below the example import SR UUID is da491968-b6c2-00fa-1e8c-84e48f4d6114

Let’s fire up import command-

xe vm-import filename=/tmp/cifmount/SL-MEL-RMM.xva sr-uuid=da491968-b6c2-00fa-1e8c-84e48f4d6114 
Networking xe vm-exportxe vm-importXen Export-ImportXen SRXen.XCP-NG

Post navigation

Previous post
Next post

Leave a Reply Cancel reply

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

Myself…

Hi, I am Hasan T. Emdad Rumi, an IT Project Manager & Consultant, Virtualization & Cloud Savvyfrom Dhaka, Bangladesh. I have prior experience in managing numerous local and international projects in the area of Telco VAS & NMC, National Data Center & PKI Naitonal Root and CA Infrastructure. Also engaged with several Offshore Software Development Team.

Worked with Orascom Telecom-Banglalink, Network Elites as VAS partner, BTRC, BTT (Turkey) , Mango Teleservices Limited and Access to Informaiton (A2I-UNDP)

Currently working at Oracle Corporation as Principal Technology Solution and Cloud Architect.

You can reach me [h.t.emdad at gmail.com] and I will be delighted to exchange my views.

Tags

Apache Bind Cacti CentOS CentOS 6 CentOS 7 Debain Debian Debian 10 Debian 11 Debian 12 DKIM Docker endian icinga iptables Jitsi LAMP Letsencrypt Linux Munin MySQL Nagios Nextcloud NFS nginx pfsense php Postfix powerdns Proxmox RDP squid SSH SSL Ubuntu Ubuntu 16 Ubuntu 18 Ubuntu 20 Varnish virtualbox vpn Webmin XCP-NG zimbra

Topics

Recent Posts

  • Install Jitsi on Ubuntu 22.04 / 22.10 April 30, 2025
  • Key Lessons in life April 26, 2025
  • Create Proxmox Backup Server (PBS) on Debian 12 April 19, 2025
  • Add Physical Drive in Proxmox VM Guest April 19, 2025
  • Mount a drive permanently with fstab in Linux April 16, 2025
  • Proxmox 1:1 NAT routing March 30, 2025
  • Installation steps of WSL – Windows Subsystem for Linux March 8, 2025
  • Enabling Nested Virtualization In Proxmox March 8, 2025
  • How to Modify/Change console/SSH login banner for Proxmox Virtual Environment (Proxmox VE / PVE) March 3, 2025
  • Install Proxmox Backup Server on Debian 12 February 12, 2025

Archives

Top Posts & Pages

  • Install Jitsi on Ubuntu 22.04 / 22.10
©2025 Bots! | WordPress Theme by SuperbThemes