profile for Gajendra D Ambi on Stack Exchange, a network of free, community-driven Q&A sites

Sunday, March 15, 2015

Windows Guest Report


So I was wondering how could I quickly check whether a Virtual machine is the way I want it to be when it comes to it's hardware, network and OS settings. Here is a little powershell script I made. 
Here is some thing for me to go back to when i need it.
http://stackoverflow.com/questions/29066021/powershell-hides-full-output

 

Sunday, March 8, 2015

How the Frakk to install NVIDIA [gtx980] drivers onto your linux [fedora 20] machine?

First of all I must say 'Nvidia is another disgraceful and thankless company which uses opensource to thrive but treats opensource OS like fedora like a step child'.
  1. download the .run driver from nvidia and save it somewhere you can easily find via command line
  2. boot the gnu/linux in run level 3
    during the boot when you see the linux kernel version or the linux OS press E to edit the grub
    then add 3 at the end of the vmlinuz line with a space.
    at the end of the screen it will have a key combination mentioned to start the system with the new modified kernel settings. just choose that.
  3. now you have booted into the runlevel 3 where the x server isnt alive.
  4. now navigate to the downloaded driver
  5. sh "nvidia-driver....xx...run
  6. Accept, agree, Yes. choose these options wherever you see them and once done, just reboot.

Wednesday, March 4, 2015

Automating vCenter Server Appliance 6 with ovftool 4

#Deploy vCSA without vCenter directly to the ESXi
#Type 1 : Full Install
#Variables
$ESXi = ""
$OvfFile = ""
$DC = ""
$SourceDatastore = ""
#If not using the file on the datastore then use the path to ova file and delete all the above parameters replace the below url with a path to the ova
$vCsaFile = "https://$ESXi/folder/$OvfFile/vcsa.ovf?dcPath=$DC&dsName=$SourceDatastore"
$vCsaConf = Get-OvfConfiguration $vCsaOva
$vCsaName = ""
$vCsaPG = "VM Network"
$AMPhost = ""
$Datastore = ""
$Network = Get-VirtualPortGroup -Name $vCsaPG -VMHost $AMPhost
$vCSAIP = ""
$DNS = ""
$SubnetPrefix = ""
$gateway = ""
$rootPASS = ""
$DNSsuffix = ""
$SiteName = ""
$vCSAssoPass = ""
$NTP1 = ""
$Format = ""

#Config
$vCsaConf.NetworkMapping.Network_1.value = "$vCsaPG"
$ovfconfig.DeploymentOption.value = "management-medium"
$ovfconfig.Common.guestinfo.cis.appliance.net.mode.value = "static"
$ovfconfig.IpAssignment.IpProtocol.value = "IPv4"
$ovfconfig.Common.guestinfo.cis.appliance.net.addr.family.value = "ipv4"
$ovfconfig.Common.guestinfo.cis.appliance.net.addr_1.value = "$vCSAIP"
$ovfconfig.Common.guestinfo.cis.appliance.net.pnid.value  = "$vCSAIP"
$ovfconfig.Common.guestinfo.cis.appliance.net.prefix.value = "$SubnetPrefix"
$ovfconfig.Common.guestinfo.cis.appliance.net.gateway.value = "$gateway"
$ovfconfig.Common.guestinfo.cis.appliance.net.dns.servers.value = "$DNS"
$ovfconfig.Common.guestinfo.cis.appliance.ssh.enabled.value = "True"
$ovfconfig.Common.guestinfo.cis.vmdir.domain_name.value = "$DNSsuffix"
$ovfconfig.Common.guestinfo.cis.vmdir.site_name.value = "$SiteName"
$ovfconfig.Common.guestinfo.cis.vmdir.password.value = "$vCSAssoPass"
$ovfconfig.Common.guestinfo.cis.appliance.root.passwd.value = "$rootPASS"
$ovfconfig.Common.guestinfo.cis.appliance.ntp.servers.value = "$NTP1"

#Deploy
Import-VApp -Source $vCsaFile -OvfConfiguration $vCsaConf -Name $vCsaName -VMHost $AMPhost -Datastore $Datastore -DiskStorageFormat $Format
#End Notes