Personal tools

Difference between revisions of "VmMrtSrv08 FTP"

From MohidWiki

Jump to: navigation, search
Line 2: Line 2:
  
 
== Creation ==
 
== Creation ==
From the '''maretec''' user at the MrtXnSrv, '''192.168.20.125''' with putty:
+
From the '''maretec''' user at the MrtXnSrv, '''192.168.20.125''' with putty was created a virtual machine to handle FTP site:
  
 
===Mount a ISO===
 
===Mount a ISO===
First mount the Windows folder from kepler so that can be used for virtual machine OS install:
+
First mounted the Windows folder from kepler (192.168.20.131) so that can be used for virtual machine OS install (Windows 2008 Server):
ex: sudo /bin/mount -t cifs -o [credentials] [Folder Origin location] [Folder Destination location]
+
>ex: sudo /bin/mount -t cifs -o [credentials] [Folder Origin location] [Folder Destination location]
 
  sudo /bin/mount -t cifs -o username=Administrator,password=XXXXX,workspace=MARETEC //192.168.20.131/Software/Windows_2008_Server_32bits /home/maretec/mnt/ISO
 
  sudo /bin/mount -t cifs -o username=Administrator,password=XXXXX,workspace=MARETEC //192.168.20.131/Software/Windows_2008_Server_32bits /home/maretec/mnt/ISO
  
 
===Create a new Logical Volume (LV) ===
 
===Create a new Logical Volume (LV) ===
ex: sudo /sbin/lvcreate -n [Name of LV] -L [size of LV] [Volume group where LV will be]
+
It was created a LV with 200GB (50 for OS).
 +
>ex: sudo /sbin/lvcreate -n [Name of LV] -L [size of LV] [Volume group where LV will be]
 
  sudo /sbin/lvcreate -n vmmrtsrv08_FTP -L 200GB dados01
 
  sudo /sbin/lvcreate -n vmmrtsrv08_FTP -L 200GB dados01
  
 
===Create a config file===
 
===Create a config file===
It was created a config file based on [[VmMrtSrv06-1.0|vmmrtsrv06-1.0.cfg]]
+
It was created a config file based on [[VmMrtSrv06-1.0|vmmrtsrv06-1.0.cfg]] and adapted to ISO file and LV created.
 
*[[VmMrtSrv08_1|vmmrtsrv08_1.cfg]]
 
*[[VmMrtSrv08_1|vmmrtsrv08_1.cfg]]
 
It was used command vi to edit the file
 
It was used command vi to edit the file
  
===Create the Virtual Machine and start it ===
+
===Create the Virtual Machine (VM) and start it ===
in /home/maretec/xen_configs
+
in /home/maretec/xen_configs the config file was used to create the VM
 
  sudo /usr/sbin/xm new -F VMMRTSRV08_1.cfg
 
  sudo /usr/sbin/xm new -F VMMRTSRV08_1.cfg
 
  sudo /usr/sbin/xm list
 
  sudo /usr/sbin/xm list
Line 42: Line 43:
 
  VMMRTSRV08_FTP                              92  1024    2    -b----    119.9
 
  VMMRTSRV08_FTP                              92  1024    2    -b----    119.9
  
===Check port for VNC===
+
===Check port for VNC connection===
  
 
  sudo /usr/sbin/xm list -l VMMRTSRV08_FTP
 
  sudo /usr/sbin/xm list -l VMMRTSRV08_FTP
  see location localhost: 5904
+
  see in location localhost: 5904
  
 
== Configuration ==
 
== Configuration ==
 
+
The VM was first installed the OS and then configured.
 
===Accessing the domain via a console with VNC===
 
===Accessing the domain via a console with VNC===
 
Access the domain with a [[VNC]] client, such as <goto>TightVNC</goto>. The domain console access port with VNC is '''192.168.20.125:5904'''.  
 
Access the domain with a [[VNC]] client, such as <goto>TightVNC</goto>. The domain console access port with VNC is '''192.168.20.125:5904'''.  
 +
 +
===OS Install===
 
See instructions in [[How_to_Install_Windows_on_a_new_computer|How_to_Install_Windows_on_a_new_computer]]
 
See instructions in [[How_to_Install_Windows_on_a_new_computer|How_to_Install_Windows_on_a_new_computer]]
 +
These steps include network definition, windows updates, antivirus installation, format of non system partition, enable remote desktop.
 +
 +
===IP change===
 +
IP changed to fixed IP:
 +
IP:'''192.168.20.30'''
 +
SubNet Mask  : '''255.255.255.0'''
 +
Default Gateway  : '''192.168.20.1'''
 +
Preferred DNS Server: '''192.168.20.1'''
 +
 +
===FTP configuration===

Revision as of 20:36, 12 January 2010

Logs/notes

Creation

From the maretec user at the MrtXnSrv, 192.168.20.125 with putty was created a virtual machine to handle FTP site:

Mount a ISO

First mounted the Windows folder from kepler (192.168.20.131) so that can be used for virtual machine OS install (Windows 2008 Server): >ex: sudo /bin/mount -t cifs -o [credentials] [Folder Origin location] [Folder Destination location]

sudo /bin/mount -t cifs -o username=Administrator,password=XXXXX,workspace=MARETEC //192.168.20.131/Software/Windows_2008_Server_32bits /home/maretec/mnt/ISO

Create a new Logical Volume (LV)

It was created a LV with 200GB (50 for OS). >ex: sudo /sbin/lvcreate -n [Name of LV] -L [size of LV] [Volume group where LV will be]

sudo /sbin/lvcreate -n vmmrtsrv08_FTP -L 200GB dados01

Create a config file

It was created a config file based on vmmrtsrv06-1.0.cfg and adapted to ISO file and LV created.

It was used command vi to edit the file

Create the Virtual Machine (VM) and start it

in /home/maretec/xen_configs the config file was used to create the VM

sudo /usr/sbin/xm new -F VMMRTSRV08_1.cfg
sudo /usr/sbin/xm list
Name                                        ID   Mem VCPUs      State   Time(s)
VMMRTSRV02                                  87  1024     1     r----- 111349.5
VMMRTSRV04                                  89  1024     2     -b----     91.5
VMMRTSRV06                                  85  1024     2     -b----   2483.9
VMMRTSRV07_EINSTEIN                         88  1024     2     -b----  14978.5
VMMRTSRV08_FTP                              92  1024     2     ------    


sudo /usr/sbin/xm start vmmrtsrv08_FTP
sudo /usr/sbin/xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  2048     2     r----- 749124.7
VMMRTSRV02                                  87  1024     1     r----- 111349.5
VMMRTSRV04                                  89  1024     2     -b----     91.5
VMMRTSRV06                                  85  1024     2     -b----   2483.9
VMMRTSRV07_EINSTEIN                         88  1024     2     -b----  14978.5
VMMRTSRV08_FTP                              92  1024     2     -b----    119.9

Check port for VNC connection

sudo /usr/sbin/xm list -l VMMRTSRV08_FTP
see in location localhost: 5904

Configuration

The VM was first installed the OS and then configured.

Accessing the domain via a console with VNC

Access the domain with a VNC client, such as <goto>TightVNC</goto>. The domain console access port with VNC is 192.168.20.125:5904.

OS Install

See instructions in How_to_Install_Windows_on_a_new_computer These steps include network definition, windows updates, antivirus installation, format of non system partition, enable remote desktop.

IP change

IP changed to fixed IP: IP:192.168.20.30 SubNet Mask  : 255.255.255.0 Default Gateway  : 192.168.20.1 Preferred DNS Server: 192.168.20.1

FTP configuration