Virt-install --install

From wikieduonline
Jump to navigation Jump to search
virt-install --install ubuntu20.04 --memory 2048 --disk size=1
WARNING  KVM acceleration not available, using 'qemu'
Using ubuntu20.04 --location http://archive.ubuntu.com/ubuntu/dists/focal/main/installer-amd64
WARNING  Using legacy d-i based installer, that has been deprecated and will be removed in the future. 
https://discourse.ubuntu.com/c/server
Using default --name ubuntu20.04
WARNING  Graphics requested but DISPLAY is not set. Not running virt-viewer.
WARNING  No console to launch for the guest, defaulting to --wait -1

Starting install...
Retrieving file linux...                                                                          |  11 MB  00:03:17
Retrieving file initrd.gz...                                                                      |  49 MB  00:14:54
Allocating 'disk-1.qcow2'                                                                         | 1.0 GB  00:00:00
Domain installation still in progress.
Waiting for installation to complete.
.../...


With errors[edit]

No installation media[edit]

WARNING  KVM acceleration not available, using 'qemu'
WARNING  Requested memory 512 MiB is less than the recommended 2048 MiB for OS ubuntu20.04
WARNING  CDROM media does not print to the text console by default, so you likely will not see text install output. You might want to use --location. See the man page for examples of 
using --location with CDROM media
WARNING  KVM acceleration not available, using 'qemu'
Using ubuntu20.04 --location http://archive.ubuntu.com/ubuntu/dists/focal/main/installer-amd64
WARNING  Using legacy d-i based installer, that has been deprecated and will be removed in the future. https://discourse.ubuntu.com/c/server
Using default --name ubuntu20.04
WARNING  Requested memory 500 MiB is less than the recommended 2048 MiB for OS ubuntu20.04
WARNING  Graphics requested but DISPLAY is not set. Not running virt-viewer.
WARNING  No console to launch for the guest, defaulting to --wait -1


ERROR    Cannot get interface MTU on 'br0': No such device


virt-install --install ubuntu20.04 --memory 2048 --disk size=1 --extra-args='console=ttyS0'
WARNING  KVM acceleration not available, using 'qemu'
Using ubuntu20.04 --location http://archive.ubuntu.com/ubuntu/dists/focal/main/installer-amd64
WARNING  Using legacy d-i based installer, that has been deprecated and will be removed in the future. https://discourse.ubuntu.com/c/server
Using default --name ubuntu20.04-3
WARNING  Graphics requested but DISPLAY is not set. Not running virt-viewer.
WARNING  No console to launch for the guest, defaulting to --wait -1

Starting install...
Retrieving file linux...                                                                          |  11 MB  00:08:27
Retrieving file initrd.gz...                                                                      |  49 MB  00:19:58
Allocating 'disk-2.qcow2'                                                                         | 1.0 GB  00:00:00
ERROR    internal error: process exited while connecting to monitor: 2021-04-04T09:24:30.601481Z qemu-system-x86_64: cannot set up guest memory 'pc.ram': Cannot allocate memory
Removing disk 'disk-2.qcow2'                                                                      |    0 B  00:00:00
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
 virsh --connect qemu:///system start ubuntu20.04-3
otherwise, please restart your installation.

Related terms[edit]

See also[edit]

Advertising: