LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 08-02-2013, 09:46 AM   #1
shfyang
Member
 
Registered: Jun 2013
Location: metro Detroit
Distribution: RHEL, SuSE
Posts: 54

Rep: Reputation: Disabled
Backup of kvm image on Centos 6.4 host


I am using Centos 6.4 with kvm virtualization. I see the images at /var/lib/libvirt/images/, each image file is about 20GB, can I just copy it to external hard drive, and then copy it back should I want the virtual machine again? (say virtulization machine is dead or I had to reinstall the Centos 6.4 server). I know VMWare workstation image can be handled this way!

Thank you for your answer!
 
Old 08-02-2013, 10:39 AM   #2
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
The image is just the disk contents. you also need the output of `virsh dump VMNAME > vmdefs.xml` along with the image
 
2 members found this post helpful.
Old 08-02-2013, 06:58 PM   #3
shfyang
Member
 
Registered: Jun 2013
Location: metro Detroit
Distribution: RHEL, SuSE
Posts: 54

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dyasny View Post
The image is just the disk contents. you also need the output of `virsh dump VMNAME > vmdefs.xml` along with the image
Can you explain a little bit more? when I run this command (vm's real name used instead of VMNAME), it shows error. Thanks!
 
1 members found this post helpful.
Old 08-02-2013, 11:02 PM   #4
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
pardon, it's `virsh dumpxml VMNAME` of course
 
Old 08-02-2013, 11:24 PM   #5
shfyang
Member
 
Registered: Jun 2013
Location: metro Detroit
Distribution: RHEL, SuSE
Posts: 54

Original Poster
Rep: Reputation: Disabled
Thanks, I figured out how to do the back up, it is simple, just copy the img file, then import it into kvm, very easy! Thanks!
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Keeping size of VM file down - QEMU/KVM guest running Centos 6, inside Centos 6 host rylan76 Linux - Virtualization and Cloud 2 01-24-2013 03:22 PM
KVM Guest network unable to connect to Host in CentOS-6.3 mglaris Linux - Virtualization and Cloud 5 10-05-2012 05:01 AM
Problem with libvirt and iptables on a CentOS 6 KVM physical host philx66 Linux - Virtualization and Cloud 1 10-03-2012 05:18 AM
Creating a custom CentOS VM image for KVM PeterSteele Linux - Virtualization and Cloud 14 09-18-2012 01:07 PM
Network issue KVM host centos michaelux Linux - Virtualization and Cloud 3 06-05-2010 11:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 07:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration