0

So I now I've installed KVM (and its associated tools and packages- libvirt, VMM etc.). On the GUI (i.e using the VMM), installation works as its supposed to. However, when I try to create a VM using the command line interface, the OS (I am working with CentOS 6.3) defaults to a Minimal Install instead of giving me options to choose from at the time of installation. I am trying to install using the following command:

virt-install    \
--connect qemu:///system \
--virt-type kvm  --name testVM2  \
--ram 512  --disk path=/var/lib/libvirt/images/testVM2.img,size=8 --vnc \
--cdrom /media/db18de8e-0853-49fb-80de-5c794d58a46f/CentOS-6.3- x86_64-bin-DVD1.iso   \
--network network=default  

Specifying the OS-type or the OS-variant parameters doesn't make a difference. Is there something that I am missing out on or some other parameter that I must specify?

Thanks in advance.

rahuL
  • 692
  • 3
  • 12
  • 31

2 Answers2

1

Can you connect to the VM using vnc? One thing I would try is to rise the ram amount, with 512MB centos will default to a text based installation, try using at least 768 and run a graphical installation, then connect to the vnc (it should happen automatically) and set up your VM as you prefer.

But, if you're trying to provision your VM in an automate way, you should use a kickstart file with the option -x "ks=/network/path/to/your/ks/file. A kickstart file will let you specify everything for your installation (hostname, ip, firewall configuration etc.) including which packages you want to install. If you don't know about kickstart you can read the documentation

slm
  • 7,615
  • 16
  • 56
  • 76
  • yes, that did the trick. while allotting higher memory, like say 768M or 1024M, it takes me to the GUI console to install and select the type of OS. Just wondering if there is a way to specify it at the time of virt-install..... (I am accepting this answer b'coz it answered my question). Thanks a lot Vilelm... – rahuL Jun 18 '13 at 15:53
-1
--vnc --vncport=xxx --vncclient=0.0.0.0 
slm
  • 7,615
  • 16
  • 56
  • 76
  • Welcome to server fault! While the code is nice, it's better if you use full sentences and explain what is needed. This is especially true in this case, where it's not clear why this answers the question. – Falcon Momot Nov 12 '13 at 04:30