Welcome to Delicate template
Header
Just another WordPress site
Header

Prepare XenServer for DVS

abril 4th, 2012 | Posted by cristiansan in Appliance | DVs | XenServer - (0 Comments)

2 years ago (October 2012) I wrote in ctxdom.com about #Citrix Virtual Distributed Switch.

You can read this article on the Following linkctxdom.com

There is a very important little point in implementing DVS. -Enable it on XenServer.

To perform this task, we logon on XenServer and run the following command inCLI.

xe-switch-network-backend openvswitch

This is very important, and that redirects all internal traffic through DVS and allows the performance of various tasks such as:
ACLs and QoS Policies; NetFlow; Traffic mirroring, Port Bonding & Per VMtraffic policy.

More info: http://support.citrix.com/article/CTX129669

If you need Disable this funtionality, you need run this command:
(dvs use can cause certain problems of congestion in some environment)

xe-switch-backend network-bridge

It is important to know the procedure to run this configuration. These are the recommendations:

1.Disable HA (before Any maintenance).
2.Migrate VMs off of host.
3.Enable bridge mode via command line: xe-switch-backend-network [bridgeoption]
4.Reboot.
5.Migrate VMs back.
6.Enable HA.

¿Do you need help with your Citrix Enviroments?

Visit us at www.ctxdom.com or contract us at www.101-consulting.com

Hi to all, and welcome again to my stupid blog 😛

Today i write about how connect with your XenServer without pass key on the ssh connection. This tutorial is base on a Mac SO but is equal to do on a Linux/Unix SO.

First you need generate the PassKey on your Mac. For this try with:

 ssh-keygen

Follow the intructions. When you finish, it generate a file on /home/user/.ssh/ named id_rsa and a public key named id_rsa.pub.

The first is your identification and the second the public key.

Now, you only need copy the file id_rsa.pub and add the content file on the authorized_keys file on the XenServer.

For copy the key, i use the command SCP. For do it, put:

scp /home/USER/.shh/id_rsa.pub root@192.168.1.201:/tmp

and now, putt he content of id_rsa.pub to the file Authorized_keys with the command:

cat ./id_rsa.pub >> /root/.shh/authorized_keys

Now is time the connect without password on XenServer. See  the step by step process on the next video.

[youtube=http://www.youtube.com/watch?v=sOfan5_PfsA&rel=0]

XenServer: Create a VM from CLI

septiembre 29th, 2011 | Posted by cristiansan in CLI | XenServer - (0 Comments)

A Virtual Machine (VM) is a software computer that, like a physical computer, runs an operating system and applications. The VM is comprised of a set of specification and configuration files and is backed by the physical resources of a host. Every VM has virtual devices that provide the same functionality as physical hardware, and can have additional benefits in terms of portability, manageability, and security.

Citrix

I talk about XenServer CLI and how do things with the Shell. Now i talk about how create VMs on XS5.6.

Install a VM with XenCenter is easy. But, maybe is necessary create a VM across the Shell. How i do it?

Run the Shell on XenServer or connect across Putty or another SSH client and run the next commands.

Install VM from Template:

 xe vm-install new-name-label=<VM_NAME> template=<TEMPLATE NAME>

*This command return the UUID of the Machine

List the ISOs available:

 xe cd-list

Putt he ISO into the virtual CD drive

 xe vm-cd-ad vm=<VM_NAME> cd-name=<NAME_ISO.iso> device=3

Start and instal the OS:

 xe vm-start vm=<VM-NAME>

In this point is necessary the XenCenter Console, because the VM console isn’t see with the CLI on XenServer. See how to install a VM with CLI.

Yo can see a list of VM templates with the next command:

 xe template-list

we create the VM with a Template:

and XS return the UUID of the VM.

and i can see on XenCenter the new VM:

Now it’s moment to see the ISO available with the comand xe cd-list.

I use this ISO for install 2008R2. For this…

 you can use <tab> for autocomplete the ISO name or VM name 😉

 And now, it’s moment to Start de VM: