Re: Understanding the use of virt-install from the CLI (Linux)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Thu, 7 Nov 2019, jonetsu wrote:
And it reports:

'Size must be specified for non existent volume 'arch01.qcow2''

But the size is already specified as one of the options.

At least the following works on Debian 10:

virt-install \
 --connect "qemu:///session" \
 --name "debian10virt-install" \
 --ram "1024" \
 --vcpus "1" \
 --disk "size=20,path=$HOME/.local/share/libvirt/images/debian10virt-install.qcow2,bus=scsi,cache=none,discard=unmap" \
 --controller "type=scsi,model=virtio-scsi" \
 --initrd-inject "preseed.cfg" \
 --initrd-inject "late_command.sh" \
 --location "http://deb.debian.org/debian/dists/buster/main/installer-amd64/"; \
 --os-type "linux" \
 --os-variant "debian9" \
 --virt-type "kvm" \
 --controller "usb,model=none" \
 --graphics "none" \
 --network "user,model=virtio" \
 --noreboot \
 --extra-args "auto=true hostname=debian domain= console=ttyS0,115200n8 serial"

Source: https://lindi.iki.fi/lindi/debian10/virt-install/install.bash


-Timo

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users




[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux