KVM: Difference between revisions

815 bytes added ,  5 July 2018
→‎Configure bridged networking: create and set up a storage pool
Line 118: Line 118:
# virsh pool-start libvirt-images
# virsh pool-start libvirt-images
Pool libvirt-images started
Pool libvirt-images started
</source>
== Create a VM ==
This example creates an Ubuntu VM:
<source lang="bash">
# virt-install --virt-type=kvm --name ubuntu1 --memory 4096  --vcpus 2 --os-variant ubuntu17.04 --os-type Linux --cdrom=/var/lib/libvirt/boot/ubuntu-18.04-desktop-amd64.iso --network bridge=br0,model=virtio --graphics vnc --disk path=/var/lib/libvirt/images/ubuntu1.qcow2,size=40,bus=virtio,format=qcow2
WARNING  Unable to connect to graphical console: virt-viewer not installed. Please install the 'virt-viewer' package.
WARNING  No console to launch for the guest, defaulting to --wait -1
Starting install...
Allocating 'ubuntu1.qcow2'                                                                                              |  40 GB  00:00:00
Domain installation still in progress. Waiting for installation to complete.
</source>
</source>