Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in or
create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision |
Your text |
Line 103: |
Line 103: |
|
| |
|
| == Quick VM installation == | | == Quick VM installation == |
|
| |
| === Gnome Boxes ===
| |
|
| |
| Just start Boxes, create a new VM and follow the guide.
| |
|
| |
| === virt-install ===
| |
|
| |
| <code>virt-install</code> can configure a VM for you including all the subtleties and even start an installation:
| |
| <pre>virt-install -c SESSION --name NAME --memory MEMORY [--cdrom CDROM|--location LOCATION] --os-variant OS [--disk DISKOPTS|--nodisks] --graphics spice --video qxl [--video qxl] --channel spicevmc --redirdev usb,type=spicevmc [--redirdev usb,type=spicevmc] </pre>
| |
| where:
| |
| * local '''SESSION''' is <code>qemu:///system</code> for system-wide session of <code>qemu:///session</code> for actual user session (this is what Boxes uses). Refer to [http://libvirt.org/remote.html libvirt documentation] if you wish to install VM on a different hypervisor
| |
| * '''NAME''' is VM name
| |
| * '''MEMORY''' is memory size in MB
| |
| * a VM can be installed either from '''CDROM''' or, for some distributions, '''LOCATION''' pointing to installation tree is supported
| |
| * '''OS''' is one of options returned by <code>virt-install --os-variant list</code>. It allows <code>virt-install</code> to better optimize the VM setup
| |
| * specify '''--nodisks''' for VMs running from live media. '''DISKOPTS''' is a comma-separated list of keys. For file-backed VM disk, you should be fine to specify just <code>path=path/to/file,size=size_in_GB</code>. If you wish to stick with gnome-boxes default VM image location, specify <code>path=~/.local/share/gnome-boxes/images/</code>
| |
| * specify up to four <code>--video qxl</code> stanzas in order to support multiple monitor on Windows VMs
| |
| * number of <code>--redirdev usb,type=spicevmc</code> stanzas limits number of USB devices that can be redirected to the guest OS
| |
| <code>virt-install</code> sets up the VM and starts installation. The installation itself is not automatic though.
| |
|
| |
|
| == Test Cases == | | == Test Cases == |