
arch=ARCH Request a non-native CPU architecture for the guest virtual machine.
CONSTRUCT 3 COMMAND LINE OPTIONS FREE
If the hypervisor does not have enough free memory, it is usual for it to automatically take memory away from the host operating system to satisfy this allocation. r MEMORY, -ram=MEMORY Memory to allocate for guest instance in megabytes. To re-define an existing guest, use the virsh(1) tool to shut it down (’virsh shutdown’) & delete (’virsh undefine’) it prior to running "virt-install". This must be unique amongst all guests known to the hypervisor on the connection, including those not currently active. n NAME, -name=NAME Name of the new guest virtual machine instance. A summary of these arguments is outlined in the following table:ĭescription -h, -help Show the help message and exit -connect=CONNECT Connect to a non-default hypervisor. Some of these command-line options are mandatory (specifically name, ram and disk storage must be provided) while others are optional. Virt-install must be run as root and accepts a wide range of command-line arguments that are used to provide configuration information related to the virtual machine being created. Report this ad Running virt-install to Build the KVM Guest System For details on these requirements read Installing and Configuring Fedora KVM Virtualization. This chapter assumes that the necessary KVM tools are installed and that the system was rebooted after these were installed. Whilst most users will probably stay with the graphical virt-mamager tool, virt-install has the advantage that virtual machines can be created when access to a graphical desktop is not available, or when creation needs to be automated in a script.

The virt-install tool is supplied to allow new virtual machines to be created by providing a list of command-line options.


In this chapter we will turn our attention to the creation of KVM guest operating system using the virt-install command-line tool. In the previous chapter we explored the creation and management of KVM guest operating systems using the virt-manager graphical tool. Take your Fedora Linux Skills to the Next Levelįedora 31 Essentials book is now available in Print ($36.99) and eBook ($24.99) editions.
