To create a VM guest (here called postfix.example.com with an httpd install server at 192.168.1.5, a size of 5GB, 1GB of memory, and 1 vCPU), type:
# /usr/sbin/virt-install --virt-type kvm --name=postfix.example.com \ --disk path=/var/lib/libvirt/images/postfix.example.com.img,size=5 \ --ram=1024 --vcpus=1 --os-variant=rhel6 --accelerate --graphics vnc \ -v --location http://192.168.1.5/ --network network:default
In addition, if you want to configure the VM guest with a KICKSTART file, you will have to create this file (here ks_postfix.cfg) and add the following option:
-x ks=http://192.168.1.5/ks_postfix.cfg
For a deeper understanding on the subject, you can look at how to set up a lab.
Leave a Reply
You must be logged in to post a comment.