locked
how to backup Microsoft Hyper-V Server 2008 R2 & VM created on it? RRS feed

  • Question

  • Hi, 

    i want to install Microsoft Hyper-V Server 2008 R2 on a new server & created 4 windows VM via Hyper-V Manager. how do i backup Hyper-V Server 2008 R2 & VMs? to external USB drive attached to new server or backup to network share drive on other server (\\servername\drive) 

    Thanks & Regards,

    Kelvin

    Saturday, November 27, 2010 5:19 PM

Answers

  • Hi 

    Windows Server Backup has a command-line version called Wbadmin.

    Type these commands at the Hyper-V Server command prompt to install it:

    1. Start PowerShell:

    powershell

    2. Import the server manager module so you have access to those PowerShell commands:

    import-module ServerManager

    3. Install Windows Server Backup Features:

    Add-WindowsFeature -Name Backup-Features -IncludeAllSubfeature

    4. Exitt PowerShell:

    exit

    5. Register the VSS writer for use with Windows Server Backup (see this TechNet article and MSKB 958662):

    reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\WindowsServerBackup\Application Support\{66841CD4-6DED-4F4B-8F17-FD23F8DDC3DE}"

    reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\WindowsServerBackup\Application Support\{66841CD4-6DED-4F4B-8F17-FD23F8DDC3DE}" /v "Application Identifier" /t REG_SZ /d Hyper-V

    6. Check the registration of VSS writer for use with Windows Server Backup:

    reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WindowsServerBackup\Application Support\{66841CD4-6DED-4F4B-8F17-FD23F8DDC3DE}" /s

    7. To get help about wbadmin

    Wbadmin -help
    Wbadmin Enable Backup -help

    8. Command to do a one-time backup of the system drive C: and the data drive D: to an external drive F:

    Wbadmin start backup -backupTarget:F: -include:C:,D: -systemState -allCritical

     

    For more info :

     

     

    http://technet.microsoft.com/en-us/library/cc742130(WS.10).aspx

     

    ype the following at the server command line:http://technet.microsoft.com/en-us/library/ee344835(WS.10).aspx
    http://go.microsoft.com/fwlink/?LinkID=101794
    If this post is helpful, please mark it as such
    ________________________________________
    Alessandro Cardoso
    MVP | Microsoft Heroes | MCT
    blog: http://virtualisationandmanagement.wordpress.com
    http://virtualizacaoegerenciamento.wordpress.com
    Sunday, November 28, 2010 11:22 PM
  • USB external device won't be picked up natively by a Hyper-V virtual machine, you can map a drive to any physical drive including an external USB drive.

    First is backing up a VM.  This consists of two parts, the VM configuration and the VHD file(s).  The VM configuration must be either exported or backed up using a Virtualization-aware backup system such as System Center Data Protection Manager.  Hyper-V cannot import a VM configuration that has properly exported.  Since this configuraiton information is largely static, you can export each VM once and from then on backup the VHD files.

    Backing up the VHD files is easy if you can turn the VMs off every night.  If not, then you need to do something else.  I would suggest running Windows backup and copying the backup files to the USB drives.  Note that you will have to run backup from inside each guest, not from the host.  If you want to rotate USB drives you will need to make your backup scripts rotation aware.  Identify which drive to use based on a day calculation or something similar.  Do not try and treat two drive as interchangable units.

    Similar thread

    http://social.technet.microsoft.com/Forums/en/winserverhyperv/thread/64afb48e-cd99-429c-8f50-4a26db272116

    http://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/51ce1028-1597-4bdd-9f8c-5e9f8ed02383

     

    • Marked as answer by kelvinng Monday, November 29, 2010 6:28 AM
    Saturday, November 27, 2010 6:10 PM
  • Hi

    You can use Windows Backup to Backup the Hyper-V Server and Vm's.

    Hyper-V provides VSS support that allows you to take a “zero downtime” backup of a virtual machines running Windows Server 2003 or Windows Server 2008/2008R2, however you need a backup program to take advantage of this.

    Take a look in the article that explain how to enable Windows Server Backup to use the VSS capabilities of Hyper-V : http://support.microsoft.com/kb/958662

    Be aware that :

    • If a virtual machine is not running W2003 or W2008/W2008R2 it will be put into a saved state to be backed up, so there will be down time for these virtual machines.
    • The steps outlined in the KB article enable Windows Server Backup to call into our VSS provider when backing up a volume.  It does not allow you to specifically select virtual machines to backup (you would need to purchase enterprise backup software for that kind of functionality).  What this allows you to do is to backup your entire system and ensure that virtual machines are backed up correctly as part of that.

    Find more here: http://blogs.technet.com/b/askcore/archive/2008/08/20/how-to-enable-windows-server-backup-support-for-the-hyper-v-vss-writer.aspx

    Another suggestion is to use System Center Data Protection Manager to backup the Hyper-V VM's to external USB drive attached to new server

     

     


    If this post is helpful, please mark it as such
    ________________________________________
    Alessandro Cardoso
    MVP | Microsoft Heroes | MCT
    blog: http://virtualisationandmanagement.wordpress.com
    http://virtualizacaoegerenciamento.wordpress.com
    • Marked as answer by kelvinng Monday, November 29, 2010 6:29 AM
    Sunday, November 28, 2010 12:39 AM
  • Hello,

    I would definately support using Windows Server Backup to backup the Hyper-V virtual machines in small deployments.  It has worked out as a great solution for me.  That said, you need to make sure you continue to backup the applications within the VM, such as Active Directory, Exchange, SQL, etc.  You can also consider applications like DPM, which provide centralized backup for Hyper-V as well as the applications.  This should provide some good information for you as well.

    http://blog.concurrency.com/infrastructure/back-me-up-im-going-in-hyper-v-and-backup/2010/07/14

    Nathan Lasnoski


    http://blog.concurrency.com/author/nlasnoski/
    • Marked as answer by kelvinng Monday, November 29, 2010 6:37 AM
    Monday, November 29, 2010 5:18 AM

All replies

  • USB external device won't be picked up natively by a Hyper-V virtual machine, you can map a drive to any physical drive including an external USB drive.

    First is backing up a VM.  This consists of two parts, the VM configuration and the VHD file(s).  The VM configuration must be either exported or backed up using a Virtualization-aware backup system such as System Center Data Protection Manager.  Hyper-V cannot import a VM configuration that has properly exported.  Since this configuraiton information is largely static, you can export each VM once and from then on backup the VHD files.

    Backing up the VHD files is easy if you can turn the VMs off every night.  If not, then you need to do something else.  I would suggest running Windows backup and copying the backup files to the USB drives.  Note that you will have to run backup from inside each guest, not from the host.  If you want to rotate USB drives you will need to make your backup scripts rotation aware.  Identify which drive to use based on a day calculation or something similar.  Do not try and treat two drive as interchangable units.

    Similar thread

    http://social.technet.microsoft.com/Forums/en/winserverhyperv/thread/64afb48e-cd99-429c-8f50-4a26db272116

    http://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/51ce1028-1597-4bdd-9f8c-5e9f8ed02383

     

    • Marked as answer by kelvinng Monday, November 29, 2010 6:28 AM
    Saturday, November 27, 2010 6:10 PM
  • Hi

    You can use Windows Backup to Backup the Hyper-V Server and Vm's.

    Hyper-V provides VSS support that allows you to take a “zero downtime” backup of a virtual machines running Windows Server 2003 or Windows Server 2008/2008R2, however you need a backup program to take advantage of this.

    Take a look in the article that explain how to enable Windows Server Backup to use the VSS capabilities of Hyper-V : http://support.microsoft.com/kb/958662

    Be aware that :

    • If a virtual machine is not running W2003 or W2008/W2008R2 it will be put into a saved state to be backed up, so there will be down time for these virtual machines.
    • The steps outlined in the KB article enable Windows Server Backup to call into our VSS provider when backing up a volume.  It does not allow you to specifically select virtual machines to backup (you would need to purchase enterprise backup software for that kind of functionality).  What this allows you to do is to backup your entire system and ensure that virtual machines are backed up correctly as part of that.

    Find more here: http://blogs.technet.com/b/askcore/archive/2008/08/20/how-to-enable-windows-server-backup-support-for-the-hyper-v-vss-writer.aspx

    Another suggestion is to use System Center Data Protection Manager to backup the Hyper-V VM's to external USB drive attached to new server

     

     


    If this post is helpful, please mark it as such
    ________________________________________
    Alessandro Cardoso
    MVP | Microsoft Heroes | MCT
    blog: http://virtualisationandmanagement.wordpress.com
    http://virtualizacaoegerenciamento.wordpress.com
    • Marked as answer by kelvinng Monday, November 29, 2010 6:29 AM
    Sunday, November 28, 2010 12:39 AM
  • Hi Alessandro,

    is that means i need to use Windows Server Backup on one existing Windows 2008 R2 server to backup Hyper-V Server 2008 R2 (note that this is standalone GUI-less hypervisor) + VMs that created on top of it?

    i install Hyper-V Server 2008 R2 on new server without OS, not Windows 2008 R2 Hyper-V on top server installed with Windows 2008 R2 server

    Thanks & Regards,

    Kelvin

    Sunday, November 28, 2010 11:06 AM
  • Hi 

    Windows Server Backup has a command-line version called Wbadmin.

    Type these commands at the Hyper-V Server command prompt to install it:

    1. Start PowerShell:

    powershell

    2. Import the server manager module so you have access to those PowerShell commands:

    import-module ServerManager

    3. Install Windows Server Backup Features:

    Add-WindowsFeature -Name Backup-Features -IncludeAllSubfeature

    4. Exitt PowerShell:

    exit

    5. Register the VSS writer for use with Windows Server Backup (see this TechNet article and MSKB 958662):

    reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\WindowsServerBackup\Application Support\{66841CD4-6DED-4F4B-8F17-FD23F8DDC3DE}"

    reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\WindowsServerBackup\Application Support\{66841CD4-6DED-4F4B-8F17-FD23F8DDC3DE}" /v "Application Identifier" /t REG_SZ /d Hyper-V

    6. Check the registration of VSS writer for use with Windows Server Backup:

    reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WindowsServerBackup\Application Support\{66841CD4-6DED-4F4B-8F17-FD23F8DDC3DE}" /s

    7. To get help about wbadmin

    Wbadmin -help
    Wbadmin Enable Backup -help

    8. Command to do a one-time backup of the system drive C: and the data drive D: to an external drive F:

    Wbadmin start backup -backupTarget:F: -include:C:,D: -systemState -allCritical

     

    For more info :

     

     

    http://technet.microsoft.com/en-us/library/cc742130(WS.10).aspx

     

    ype the following at the server command line:http://technet.microsoft.com/en-us/library/ee344835(WS.10).aspx
    http://go.microsoft.com/fwlink/?LinkID=101794
    If this post is helpful, please mark it as such
    ________________________________________
    Alessandro Cardoso
    MVP | Microsoft Heroes | MCT
    blog: http://virtualisationandmanagement.wordpress.com
    http://virtualizacaoegerenciamento.wordpress.com
    Sunday, November 28, 2010 11:22 PM
  • Hello,

    I would definately support using Windows Server Backup to backup the Hyper-V virtual machines in small deployments.  It has worked out as a great solution for me.  That said, you need to make sure you continue to backup the applications within the VM, such as Active Directory, Exchange, SQL, etc.  You can also consider applications like DPM, which provide centralized backup for Hyper-V as well as the applications.  This should provide some good information for you as well.

    http://blog.concurrency.com/infrastructure/back-me-up-im-going-in-hyper-v-and-backup/2010/07/14

    Nathan Lasnoski


    http://blog.concurrency.com/author/nlasnoski/
    • Marked as answer by kelvinng Monday, November 29, 2010 6:37 AM
    Monday, November 29, 2010 5:18 AM
  • Hi 

    Windows Server Backup has a command-line version called Wbadmin.

    Type these commands at the Hyper-V Server command prompt to install it:

    1. Start PowerShell:

    powershell

    2. Import the server manager module so you have access to those PowerShell commands:

    import-module ServerManager

    3. Install Windows Server Backup Features:

    Add-WindowsFeature -Name Backup-Features -IncludeAllSubfeature

    4. Exitt PowerShell:

    exit

    5. Register the VSS writer for use with Windows Server Backup (see this TechNet article and MSKB 958662):

    reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\WindowsServerBackup\Application Support\{66841CD4-6DED-4F4B-8F17-FD23F8DDC3DE}"

    reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\WindowsServerBackup\Application Support\{66841CD4-6DED-4F4B-8F17-FD23F8DDC3DE}" /v "Application Identifier" /t REG_SZ /d Hyper-V

    6. Check the registration of VSS writer for use with Windows Server Backup:

    reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WindowsServerBackup\Application Support\{66841CD4-6DED-4F4B-8F17-FD23F8DDC3DE}" /s

    7. To get help about wbadmin

    Wbadmin -help
    Wbadmin Enable Backup -help

    8. Command to do a one-time backup of the system drive C: and the data drive D: to an external drive F:

    Wbadmin start backup -backupTarget:F: -include:C:,D: -systemState -allCritical

     

    For more info :

     

     

    http://technet.microsoft.com/en-us/library/cc742130(WS.10).aspx

     

    ype the following at the server command line:http://technet.microsoft.com/en-us/library/ee344835(WS.10).aspx
    http://go.microsoft.com/fwlink/?LinkID=101794
    If this post is helpful, please mark it as such
    ________________________________________
    Alessandro Cardoso
    MVP | Microsoft Heroes | MCT
    blog: http://virtualisationandmanagement.wordpress.com
    http://virtualizacaoegerenciamento.wordpress.com

    Very nice.
    Saturday, October 19, 2013 10:34 AM