Issue link: https://read.uberflip.com/i/1334488
Chapter 2 51 5. Create a single partition for the / (root) partition and ensure you use all available space. 6. When asked to continue, you will be presented with a warning regarding not specifying a swap partition. It is safe to continue by answering Yes. 7. After a while, your installation will complete. When it says rebooting system, press CTRL + C in the terminal running kvm to power this machine off. We can now relaunch directly into our new image to configure this: sudo kvm -m 1024 -drive file=CentOS-6.2-i386- filesystem.img,if=scsi,index=0,boot=on -boot c -net nic -net user -nographic -vnc :0 -no-acpi 8. When it has booted, log in as root with the password you set during your installation. We first need to get the network interface up and running, followed by a system update. dhclient eth0 yum -y update 9. After the update, remove the network persistence udev rules, to ensure that our only required interface remains as eth0, and then power the instance off as follows: rm -rf /etc/udev/rules.d/70-persistent-net.rules cat > /etc/sysconfig/network-scripts/ifcfg-eth0 << EOF DEVICE=eth0 BOOTPROTO=dhcp ONBOOT=yes EOF poweroff 10. Launch the instance again by repeating the command in step 5 and log in as root again. This reboot is to ensure our image is fully functional after our system update. We're now ready to customize our instance, depending on our requirements. For the purpose of this section, we'll just ensure SSH is running. chkconfig sshd on poweroff www.it-ebooks.info

