LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-13-2018, 03:36 AM   #1
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Rep: Reputation: 43
Backup KVM guest machine config? (the right way)


What is the right way to backup kvm guest machine config?
Should it that be over: virsh dumpxml [GuestMachne] > GuestMachne.xml (while the vm is up and running)

OR

copy following from kvm hypervisor (once GuestMachne is down)
/etc/libvirt/qemu/[GuestMachne].xml

OR it does not matter (both are OK/contains this same content)?
 
Old 09-13-2018, 04:11 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,976

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
I get the feeling that the xml could be copied at any stage. Guess I'd have to test that.

Not a lot going on with the config file. Most machines are not that technical. I guess if you have a number of mac addresses and unique stuff that will mean you'd want to save it.

Last edited by jefro; 09-13-2018 at 04:13 PM.
 
Old 09-13-2018, 10:58 PM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
virsh dumpxml and virsh edit work in all circumstances. Poking around in system files always carries the risk that files might be at unexpected locations.
 
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
Kernel-based Virtual Machine (KVM): Switching from KVM guest to host (e.g. Linux Mint) & maximize guest screen fanoflq Linux - Newbie 2 07-13-2016 06:10 PM
KVM guest unable to ping and access internet from the Physical host machine manuce Linux - Newbie 1 05-28-2013 02:48 AM
How to get snapshot backup the KVM Virtual Guest ? splinux Linux - Virtualization and Cloud 0 06-30-2012 01:06 AM
Hot Backup KVM machine yeayu Linux - Virtualization and Cloud 10 10-20-2011 02:36 PM
how to restore backup from an LVM Guest OS on KVM Lucid tkmsr Linux - Virtualization and Cloud 2 09-29-2010 06:12 AM

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

All times are GMT -5. The time now is 05:23 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