Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Ubuntu 20.04 Essentials

You're reading from   Ubuntu 20.04 Essentials A guide to Ubuntu 20.04 desktop and server editions

Arrow left icon
Product type Paperback
Published in Aug 2020
Publisher Packt
ISBN-13 9781800568525
Length 328 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Neil Smyth Neil Smyth
Author Profile Icon Neil Smyth
Neil Smyth
Arrow right icon
View More author details
Toc

Table of Contents (38) Chapters Close

1. Introduction 2. A Brief History of Linux FREE CHAPTER 3. Installing Ubuntu on a Clean Disk Drive 4. Installing Ubuntu with the Network Installer 5. Dual Booting Ubuntu with Windows 6. Allocating Windows Disk Partitions to Ubuntu 7. A Guided Tour of the GNOME 3 Desktop 8. An Overview of the Ubuntu Cockpit Web Interface 9. Using the Bash Shell on Ubuntu 10. Managing Ubuntu Users and Groups 11. Managing Ubuntu systemd Units 12. Ubuntu Software Package Management and Updates 13. Ubuntu Snap Package Management 14. Ubuntu Network Management 15. Ubuntu Firewall Basics 16. Using gufw and ufw to Configure an Ubuntu Firewall 17. Basic Ubuntu Firewall Configuration with firewalld 18. Configuring SSH Key-based Authentication on Ubuntu 19. Ubuntu Remote Desktop Access with Vino 20. Ubuntu Remote Desktop Access with VNC 21. Displaying Ubuntu Applications Remotely (X11 Forwarding) 22. Using NFS to Share Ubuntu Files with Remote Systems 23. Sharing Files between Ubuntu and Windows Systems with Samba 24. An Overview of Virtualization Techniques 25. Installing KVM Virtualization on Ubuntu 26. Creating KVM Virtual Machines using Cockpit and virt-manager 27. Creating KVM Virtual Machines with virt-install and virsh 28. Creating an Ubuntu KVM Networked Bridge Interface 29. Managing KVM using the virsh Command-Line Tool 30. An Introduction to Linux Containers 31. Working with Containers on Ubuntu 32. Setting Up an Ubuntu Web Server 33. Configuring an Ubuntu Postfix Email Server 34. Adding a New Disk Drive to an Ubuntu System 35. Adding a New Disk to an Ubuntu Volume Group and Logical Volume 36. Adding and Managing Ubuntu Swap Space 37. Ubuntu System and Process Monitoring Index

27.4 Creating a Virtual Machine from a Configuration File

The virsh create command can take as an argument the name of a configuration file on which to base the creation of a new virtual machine. The configuration file uses XML format. Arguably the easiest way to create a configuration file is to dump out the configuration of an existing virtual machine and modify it for the new one. This can be achieved using the virsh dumpxml command. The following command outputs the configuration data for a virtual machine domain named MyFedora to a file named MyFedora.xml:

# virsh dumpxml MyFedora > MyFedora.xml

Once the file has been generated, load it into an editor to review and change the settings for the new virtual machine.

At the very least, the <name>, <uuid> and image file path <source file> must be changed in order to avoid conflict with the virtual machine from which the configuration was taken. In the case of the UUID, this line can simply be deleted from...

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 $19.99/month. Cancel anytime