gumball60
asked on
Red Hat Linux VM
New linux administrator to an established Red hat 5 VM on a Windows Server 2008 system.
What are some useful commands(commandline) to assess what Red hat VM I currently have and configured? I am now the single administrator to maintain and possibly expand it. I am trying understand what I have. I have a Solaris Administration background.
What are some useful commands(commandline) to assess what Red hat VM I currently have and configured? I am now the single administrator to maintain and possibly expand it. I am trying understand what I have. I have a Solaris Administration background.
What version of hyperV are you running?
dear gumball60,
case1)
the commandline options that you have depends on the hyper-v version that you have on the server .
a) if you have windows 2008 - you have hyper-V version 1 installed most probably and there is little support of powershell verion2.0 -and it supported suselinux natively .
b) if you have windows 2008 R2 - you have hyper-v version2 installed most probabaly and there is windows power shell2 .0 version ,so you have many commnad lets to mange the Hyper-V from the commandline ...for example your redhat linux Vm .
basic going is what administrative tasks can we do wih a hyper-V Vm ?
a) monitor the vm -example here redhat -Vm
b)create the vm- for installation og redhat linux .
c)delete the Vm -after work is over .
d)backup the Vm - for restoration .
e)clone the Vm -- Copies it
f) move the Vm to another host --- process varies .
so on
For all these tasks the powershell ver2.0 commands are there and the command lets are very large in number to master .
my suggestion: get a book on powershell 2.0 and learn few caommandlet a day and you will get started . i wont be going with specific commandlets here .
becasue they vary with powershell versions 1,2,3 that you have .
Case 2:
I am assuming that you want to administer the redhalinux operting sytem from the windows host mahine with hyper-v ..?
then , just use any ssh client like putty and go to shell and administer the redhat linux operating system using the same coomands as you use in the terminal of redhat linux system.
you can use winscp client software to transfer files between your redhat linux operaing system to you windows host using the protocols such as ftp,scp,sftp,so on .
Thanks,
s.deviprasad.
case1)
the commandline options that you have depends on the hyper-v version that you have on the server .
a) if you have windows 2008 - you have hyper-V version 1 installed most probably and there is little support of powershell verion2.0 -and it supported suselinux natively .
b) if you have windows 2008 R2 - you have hyper-v version2 installed most probabaly and there is windows power shell2 .0 version ,so you have many commnad lets to mange the Hyper-V from the commandline ...for example your redhat linux Vm .
basic going is what administrative tasks can we do wih a hyper-V Vm ?
a) monitor the vm -example here redhat -Vm
b)create the vm- for installation og redhat linux .
c)delete the Vm -after work is over .
d)backup the Vm - for restoration .
e)clone the Vm -- Copies it
f) move the Vm to another host --- process varies .
so on
For all these tasks the powershell ver2.0 commands are there and the command lets are very large in number to master .
my suggestion: get a book on powershell 2.0 and learn few caommandlet a day and you will get started . i wont be going with specific commandlets here .
becasue they vary with powershell versions 1,2,3 that you have .
Case 2:
I am assuming that you want to administer the redhalinux operting sytem from the windows host mahine with hyper-v ..?
then , just use any ssh client like putty and go to shell and administer the redhat linux operating system using the same coomands as you use in the terminal of redhat linux system.
you can use winscp client software to transfer files between your redhat linux operaing system to you windows host using the protocols such as ftp,scp,sftp,so on .
Thanks,
s.deviprasad.
ASKER
I will be have to determine what version of hyper v is running and get that powershell book.
to determine the version of powershell you are using
#cmd
#powershell -version 1.0 --will allow version 1. commands
#powershell -version 2.0 --will allow version 2.0 commands
# powershell -version 3.0 -will allow version 3.0 cmdlets ... ..
my suggestion is dont buy a book,on power shell ...
unless you want to administer the windows 2008R2 ,windows 2012 and windows 2012 r2
by yourself .
if you do , go for version 3,
of powershell its has got arounf 2000+ commandlets ,and it simplifies the administration a lot ,for automating things .
just for manging the hyper -V Virtual machines 5 vms :
just learn the some cmd-lets : withlinks provide by above authors ,
and learn them thats all.
if you dont use powershell in future why learn the all cmd lets .
as far as version of hyper -v you are using is concerned ,
hyper-v 3 debuted with windows 2012 and windows 2012 r2
since you are using hyper-v 1.0 incase of windows 2008
or hyper-v2 incase of windows 2008 r2
check onthis more
thank you ,
s.deviprasad
#cmd
#powershell -version 1.0 --will allow version 1. commands
#powershell -version 2.0 --will allow version 2.0 commands
# powershell -version 3.0 -will allow version 3.0 cmdlets ... ..
my suggestion is dont buy a book,on power shell ...
unless you want to administer the windows 2008R2 ,windows 2012 and windows 2012 r2
by yourself .
if you do , go for version 3,
of powershell its has got arounf 2000+ commandlets ,and it simplifies the administration a lot ,for automating things .
just for manging the hyper -V Virtual machines 5 vms :
just learn the some cmd-lets : withlinks provide by above authors ,
and learn them thats all.
if you dont use powershell in future why learn the all cmd lets .
as far as version of hyper -v you are using is concerned ,
hyper-v 3 debuted with windows 2012 and windows 2012 r2
since you are using hyper-v 1.0 incase of windows 2008
or hyper-v2 incase of windows 2008 r2
check onthis more
thank you ,
s.deviprasad
ASKER
The windows server is windows 2008 r2
You can use get-vm to find out pretty much all info you need. For example -
http://blogs.technet.com/b/heyscriptingguy/archive/2013/04/24/use-powershell-to-get-name-and-ip-address-of-all-hyper-v-vm-s.aspx
get-vm -name vm1| select *
Take a look of the following for sample commands - http://blogs.technet.com/b/heyscriptingguy/archive/2013/04/24/use-powershell-to-get-name-and-ip-address-of-all-hyper-v-vm-s.aspx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I have learned that the Red Hat Enterprise Linux(now) 6.4 is created via VMWare on the Windows 2008 server. All your previous answers was/is very helpful. I just need to learn how virtual servers differ from old style?
Check link below;
http://blogs.technet.com/b/heyscriptingguy/archive/2013/05/10/get-a-list-of-virtual-machines-by-using-powershell.aspx
http://blog.basefarm.com/blog/2013/01/25/basic-inventory-of-hyperv-virtual-machines-using-powershell/