Difference between revisions of "VmMrtSrv08 FTP"
From MohidWiki
Davidbrito (talk | contribs) |
Davidbrito (talk | contribs) |
||
Line 7: | Line 7: | ||
First mounted the Windows OS folder from kepler (192.168.20.131) so that can be used for virtual machine OS install (Windows 2008 Server): | First mounted the Windows OS 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 | + | >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 |
===Created a new Logical Volume (LV) === | ===Created a new Logical Volume (LV) === | ||
It was created a LV with 200GB (50 for OS). | 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 |
===Created a new config file=== | ===Created a new config file=== | ||
Line 23: | Line 23: | ||
===Created the Virtual Machine (VM) and started it === | ===Created the Virtual Machine (VM) and started it === | ||
in /home/maretec/xen_configs the config file was used to create the VM | 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 |
Name ID Mem VCPUs State Time(s) | Name ID Mem VCPUs State Time(s) | ||
VMMRTSRV02 87 1024 1 r----- 111349.5 | VMMRTSRV02 87 1024 1 r----- 111349.5 | ||
Line 33: | Line 33: | ||
− | sudo /usr/sbin/xm start vmmrtsrv08_FTP | + | >sudo /usr/sbin/xm start vmmrtsrv08_FTP |
− | + | >sudo /usr/sbin/xm list | |
− | sudo /usr/sbin/xm list | ||
− | |||
Name ID Mem VCPUs State Time(s) | Name ID Mem VCPUs State Time(s) | ||
Domain-0 0 2048 2 r----- 749124.7 | Domain-0 0 2048 2 r----- 749124.7 | ||
Line 47: | Line 45: | ||
===Checked port for VNC connection=== | ===Checked port for VNC connection=== | ||
− | sudo /usr/sbin/xm list -l VMMRTSRV08_FTP | + | >sudo /usr/sbin/xm list -l VMMRTSRV08_FTP |
see in location localhost: 5904 | see in location localhost: 5904 | ||
Line 55: | Line 53: | ||
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 Installation=== | + | ===OS Installation - in the console=== |
See instructions in [[How_to_Install_Windows_on_a_new_computer|How to Install Windows on a new machine]] | See instructions in [[How_to_Install_Windows_on_a_new_computer|How to Install Windows on a new machine]] | ||
These steps include network definition, windows updates, antivirus installation, format of non system partition, enable remote desktop. | These steps include network definition, windows updates, antivirus installation, format of non system partition, enable remote desktop. | ||
− | ===IP changed=== | + | ===IP changed - in the console=== |
IP changed to fixed IP: | IP changed to fixed IP: | ||
IP:'''192.168.20.30''' | IP:'''192.168.20.30''' | ||
Line 72: | Line 70: | ||
===Changing the bridging between the LAN and the DMZ=== | ===Changing the bridging between the LAN and the DMZ=== | ||
− | ====Switching from LAN(eth0) to DMZ(eth1)==== | + | ====Switching from LAN(eth0) to DMZ(eth1) - in the Xen Server==== |
> sudo /usr/sbin/xm shutdown VMMRTSRV08_FTP (shutdown machine) | > sudo /usr/sbin/xm shutdown VMMRTSRV08_FTP (shutdown machine) | ||
> sudo /usr/sbin/xm list -l VMMRTSRV08_FTP > xen_configs/VMMRTSRV08_1.cfg (see actual config) | > sudo /usr/sbin/xm list -l VMMRTSRV08_FTP > xen_configs/VMMRTSRV08_1.cfg (see actual config) | ||
Line 87: | Line 85: | ||
> sudo /usr/sbin/xm start VMMRTSRV08_FTP (start new machine) | > sudo /usr/sbin/xm start VMMRTSRV08_FTP (start new machine) | ||
+ | ====IP change - in the console ==== | ||
Then, use [[TighVNC]] to enter the domain through console access as '''user''': | Then, use [[TighVNC]] to enter the domain through console access as '''user''': | ||
*System--> Administration--> Network--> New. It will open a wizard. | *System--> Administration--> Network--> New. It will open a wizard. | ||
Line 94: | Line 93: | ||
*Gateway--> '''192.168.21.1''' | *Gateway--> '''192.168.21.1''' | ||
*Save. | *Save. | ||
+ | |||
+ | |||
+ | ?????? | ||
> su | > su | ||
> /sbin/service network restart | > /sbin/service network restart | ||
Line 99: | Line 101: | ||
> /sbin/route -n | > /sbin/route -n | ||
+ | ???? | ||
+ | |||
+ | ====Open Ports==== | ||
Finally, you need to ask Marco Reis from [[Conexa]] to configure the router firewall so it links the ports between the LAN firewall and the DMZ firewall (''reverse tunneling'', ''height port''). | Finally, you need to ask Marco Reis from [[Conexa]] to configure the router firewall so it links the ports between the LAN firewall and the DMZ firewall (''reverse tunneling'', ''height port''). | ||
You might as well ask also to open up '''ports 21, 20, 80, 443 and 8080'''. | You might as well ask also to open up '''ports 21, 20, 80, 443 and 8080'''. |
Revision as of 12:55, 13 January 2010
Contents
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:
Mounted a ISO
First mounted the Windows OS 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
Created 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
Created a new 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
Created the Virtual Machine (VM) and started 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
Checked 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.
Accessed 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 Installation - in the console
See instructions in How to Install Windows on a new machine These steps include network definition, windows updates, antivirus installation, format of non system partition, enable remote desktop.
IP changed - in the console
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
Changing the bridging between the LAN and the DMZ
Switching from LAN(eth0) to DMZ(eth1) - in the Xen Server
> sudo /usr/sbin/xm shutdown VMMRTSRV08_FTP (shutdown machine) > sudo /usr/sbin/xm list -l VMMRTSRV08_FTP > xen_configs/VMMRTSRV08_1.cfg (see actual config) > sudo /usr/sbin/xm delete VMMRTSRV08_FTP (delete machine) > cp xen_configs/VMMRTSRV08_1.cfg xen_configs/VMMRTSRV08_2.cfg (create new config - 2) > vim xen_configs/VMMRTSRV08_2.cfg (start edit config - 2) 08_2.cfg> remove all lines with uuid, status, long serial numbers, mac adresses ... (remove garbage - it will be saved to config - 2) > cp xen_configs/VMMRTSRV08_2.cfg xen_configs/VMMRTSRV08_3.cfg (create new config - 3) > vim xen_configs/VMMRTSRV08_3.cfg (start edit config - 3) 08_3.cfg> (bridge eth1) 08_3.cfg> :w 08_3.cfg> :q > sudo /usr/sbin/xm new -F vmmrtsrv08_3.cfg (create new machine) > sudo /usr/sbin/xm start VMMRTSRV08_FTP (start new machine)
IP change - in the console
Then, use TighVNC to enter the domain through console access as user:
- System--> Administration--> Network--> New. It will open a wizard.
- Ethernet connection--> Realtek (eth1)
- Static ip-->192.168.21.40
- Subnet mask-->255.255.255.0
- Gateway--> 192.168.21.1
- Save.
??????
> su > /sbin/service network restart > /sbin/ifconfig > /sbin/route -n
????
Open Ports
Finally, you need to ask Marco Reis from Conexa to configure the router firewall so it links the ports between the LAN firewall and the DMZ firewall (reverse tunneling, height port). You might as well ask also to open up ports 21, 20, 80, 443 and 8080.