From the course: Linux System Engineer: Network Bonding, IPv6, Routing, and Virtual Systems

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Install Linux unattended in a guest VM

Install Linux unattended in a guest VM

From the course: Linux System Engineer: Network Bonding, IPv6, Routing, and Virtual Systems

Start my 1-month free trial

Install Linux unattended in a guest VM

- For this exercise, we'll be doing a non-interactive automated install of CentOS 7 into a guest VM using a downloaded .iso image and a Kickstart file. We will use the same CentOS 7 .iso image that we downloaded earlier in the course, as well as the Kickstart file from the exercise files .zip archive that we extracted. The complete command line for installing CentOS 7 via Kickstart is long, so let's discuss it. We have to elevate privileges to create a VM, so we prefix the line with sudo. The second highlighted section sets the name of the VM to centos7-ks to remind us we installed it with a Kickstart file. This is the amount of RAM for our guest VM, and this is the disk image that we will install into. Virt-install creates this for us. We could also use qemu-img to create the disk image ahead of time, which could give us more flexibility. We're setting the disk image format to qcow2, which provides file system snapshots, within provisioning. The size option sets the disk image size…

Contents