Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Proxmox Cookbook

You're reading from   Proxmox Cookbook Over 60 hands-on recipes to perform server virtualization and manage virtualized server solutions with Proxmox

Arrow left icon
Product type Paperback
Published in Aug 2015
Publisher
ISBN-13 9781783980901
Length 318 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
 Ahmed Ahmed
Author Profile Icon Ahmed
Ahmed
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Proxmox Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Installing Proxmox FREE CHAPTER 2. Getting to Know the Proxmox GUI 3. Cluster and VM Management 4. Network Configurations 5. Firewall Configurations 6. Storage Configurations 7. Backup and Restore 8. Updating and Upgrading Proxmox 9. Monitoring Proxmox 10. Advanced Configurations for VMs 11. The CLI Command Reference Index

Restoring through the command line


Although the same vzdump command can be used to back up both KVM and OpenVZ VMs, there are separate commands to restore each of them:

  • qmrestore: This is to restore a KVM-based VM

  • vzrestore: This is to restore OpenVZ containers

How to do it...

The following command will restore KVM VMs through a command line:

# qmrestore <backup_file> <vmid> [options]

These options can be used with the qmrestore command:

Option

Function

-force

This has a boolean value of 0 or 1 to allow the overwriting of an existing VM.

-unique

This has a boolean value of 0 or 1 to assign a unique random Ethernet address.

-pool

This is the name of the pool to add the VM to.

-storage

This is the storage ID of the destination storage where a VM's disk image will be restored.

This command will restore OpenVZ containers through a command line:

# vzrestore <backup_file> <vmid> [options]

The following options can be used with the vzrestore command:

Option...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images