Creation and OS Installation of the VirtualMachine that will work as the Undercloud server.
you can use command line of virsh or also the virt-manager GUI to create a Virtual Machine.
I have already the CentOS7 Minimal Install media stored and known for the libvirt at /var/lib/libvirt/images on the KVM Host
For the undercloud, The VM created has 8 CPUs, 46GB RAM and 40 GB IDE HDD.
If you need the CLI here is the same.
virt-install --name pike1.sujitnet11.net --noautoconsole --virt-type qemu --memory 47102 --arch x86_64 --vcpus 8 --cpu host --location /var/lib/libvirt/images/CentOS-7-x86_64-Minimal-1611.iso --disk size=40,path=/var/lib/libvirt/images/pike1.sujitnet11.net,format=qcow2 --network network=nat
This installs the Virtual Machine with 46GB RAM, 8 CPUs, Mapping the CPU Host configuration to the VirtualMachine, with QEMU as the virtualization type. This uses the media (--location) /var/lib/libvirt/images/CentOS-7-x86_64-Minimal-1611.iso as the installation source. A Virtual disk of format qcow2, size 40GB gets created by this at the location /var/lib/libvirt/images/pike1.sujitnet11.net. Attachment of the Virtual Machine to the 'nat' network is done during this. The '--noautoconsole' says not to automatically connect to the console of the VirtualMachine after creation
root@win2k12r2 images]# virt-install --name pike1.sujitnet11.net --noautoconsole --virt-type qemu --memory 47102 --arch x86_64 --vcpus 8 --cpu host --location /var/lib/libvirt/images/CentOS-7-x86_64-Minimal-1611.iso --disk size=40,path=/var/lib/libvirt/images/pike1.sujitnet11.net,format=qcow2 --network network=nat
Starting install...
Retrieving file .treeinfo... | 366 B 00:00:00
Retrieving file vmlinuz... | 5.1 MB 00:00:00
Retrieving file initrd.img... | 41 MB 00:00:00
Allocating 'pike1.sujitnet11.net' | 40 GB 00:00:00
Domain installation still in progress. You can reconnect to
the console to complete the installation process.
[root@win2k12r2 images]#
Connect to the console for the installation part , I used the virt-manager to do so.
The Virtual Machinre reboots after the installation.
No comments:
Post a Comment