2 ms·
virt-install with kickstart or preseed files and VMs attached to the serial console, like virt-install -n centos -r 1024 --cpu=host -l http://mirror.cogentco.c
by ofrzeta 6y ago
virt-install with kickstart or preseed files and VMs attached to the serial console, like
virt-install -n centos -r 1024 --cpu=host -l http://mirror.cogentco.com/pub/linux/centos/6/os/x86_64/ http://mirror.cogentco.com/pub/linux/centos/6/os/x86_64/ --disk path=/var/lib/libvirt/images/centos.img,size=10,bus=virtio --boot kernel_args="console=/dev/ttyS0" -w network=internal,model=virtio --initrd-inject=centos.ks -x "ks=file:/centos.ks console=ttyS0" --graphics none
Setting up the serial console requires some configuration on the host part, too, unfortunately, depending on the OS.