Pages

Showing posts with label Citrix. Show all posts
Showing posts with label Citrix. Show all posts

Wednesday, September 28, 2011

Force shutdown of one Linux guest xenserver 5.6

Webmaster@dawnet.net wrote:

===================
I've found the resolution through my other thread. Here's what you need to do.

1 - "xe vm-list" to get the uuid of the VM that is hung

2 - "list_domains" to list the domain uuid's so you can determine
the domain # of the VM above by matching the uuids from this output with
the uuid for your VM from the previous command.

3 - "/opt/xensource/debug/destroy_domain -domid XX" where XX is the domain number from the previous command

4 - "xe vm-reboot uuid=XXXX --force" where XXXX is the uuid from the first vm-list command for your VM. (name-label may work but didn't work this time for me so I used the uuid)

Your VM will be back up running now in most cases. (I use this for my HVMs that hang so I don't have to reboot the host server)
=====================

Tuesday, May 24, 2011

Delete Local Storage Repository on xenServer

While this can be done by XenCenter (see XenCenter's help section), there are other way to do it:

1. First, you have to determine the Storage-Repository-UUID:

xe sr-list

-> write down / take note of SR-UUID of the SR to delete

2. Find the corresponding Physical Block Device (PBD):

xe pbd-list sr-uuid=your-SR-uuid

-> write down / take note of PBD-UUID of the PBD to unplug and delete

3. Unplug the PBD:

xe pbd-unplug uuid=your-PBD-uuid

4. Delete PBD:

xe pbd-destroy uuid=your-PBD-uuid

5. Delete the association of your SR and the PBD:

xe sr-forget uuid=your-SR-uuid

Thursday, March 31, 2011

Citrix XenServer in VirtualBox

If you just like to test out and evaluate XenServer but do not have hardware to install it on, an easy way is to just install it as a VirtualBox VM. Granted there will be no hardware virtualization support so you will not be able to build any real VMs in XenServer, but you will still be able to use XenCenter and get a feel managing a XenServer pool.

To install XenServer as a VBox VM, the VM needs to have adequate resources. I successfully tested installing XenServer 5.5u2 on a VM using Linux 2.6 template with 1GB RAM and 20GB hdd. Anything less than that will screw up the installation.

Edit: Tried to install XenServer 5.6FP1 in a VBox VM but failed miserably, installation will always hang at bootloader even though I tried with different VM memory and hdd configurations. Would like to know if anyone has better luck than me.

Edit: Finally got it installed in VBox successfully. I realized that the problem is with the console device when the installation starts and then got hung. So what I have to do is to enter "menu.c32" at the welcome screen, which shows the install options. Select "install" and press tab to edit the option.

> mboot.c32 /boot/xen.gz dom0_mem=752M com1=115200,8n1 console=com1,vga ---
/boot/vmlinuz xencons=hvc console=hvc0 console=tty0 --- install.img
The above is the original command. What I have to do is to change "console=com1,vga" to "console=tty0".
> mboot.c32 /boot/xen.gz dom0_mem=752M com1=115200,8n1 console=tty0 ---
/boot/vmlinuz xencons=hvc console=hvc0 console=tty0 --- install.img
Source: http://community.citrix.com/display/ocb/2011/01/23/XenServer+in+VirtualBox
Citrix Installation Guide: http://www.citrix.com/site/resources/dynamic/salesdocs/XenServer_Quick_Installation_Guide.pdf