XenServer: Creating an ISO Partition on DOM0

Intro

I recently updated my lab machine to XenServer 6.0 and I wanted to create a local ISO repository on the DOM0 partition. I have 3 physical drives, one 250GB drive that holds the host partition and its backup and two 500GB drives that host VM’s. I know that only 8GB on the 250 GB drive are used for the host and its backup, so I wanted to create the local ISO repository in the remaining space.

Stop! Linux Time

Connect to the CLI of your XenServer.

fdisk –l shows my current partition tables

[root@MARLINSPIKE ~]# fdisk -l

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sda doesn't contain a valid partition table

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table

WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sdc: 250.0 GB, 250059350016 bytes
256 heads, 63 sectors/track, 30282 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes

Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           1       30283   244198583+  ee  EFI GPT

Dom0 contains 3 partitions. The first is where the XenServer host resides. The second is the host backup. The final partition is the rest of the unused space on the 250GB drive. In my file system, this is /dev/sdc3. The following commands will format and mount this space as an ISO partition.


[root@MARLINSPIKE ~]# mkfs.ext3 /dev/sdc3
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
29491200 inodes, 58952233 blocks
2947611 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
1800 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 32 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
[root@MARLINSPIKE]# mkdir /mnt/iso/
[root@MARLINSPIKE]# mount -t ext3 /dev/sdc3 /mnt/iso/
[root@MARLINSPIKE]# echo "/dev/sdc3 /mnt/iso ext3 defaults 1 1" >> /etc/fstab
[root@MARLINSPIKE]# xe-mount-iso-sr /mnt/iso -o bind

Now the new ISO partition shows up in my XenCenter console.

image

Sources:

Citrix Forums: Thread: Dom0 Partitions

Citrix Forums: Thread: xe sr-create, local ISO SR on larger drive

How to add an additional local disk to your XenServer 5.5 host

XenServer create local ISO Repository (LVM)

How To Re-partition a Xen Virtual Machine Using GParted LiveCD

LinuxQuestions.org: Having problems mounting hd. (mount: you must specify the filesystem type)

Thanks,
Alain

XenServer: Quickly install/update XenCenter

I finally upgraded my home lab to XenServer 5.6 SP2.  At the time I failed to grab an updated version of XenCenter.  If you ever need to install XenCenter and do not want to wait for an internet download, you can type the address of your XenServer into your web browser and download it.

Thanks,
Alain

It’s My Lab In a Box

lab-in-a-box
With apologies to Andy Samberg and Justin Timberlake

Last year I decided to set up a virtual lab machine at home.  My goals were to run XenServer with multiple 64-bit VM’s to simulate a XenApp farm running in a domain in a small portable desktop case.  Taking my $500.00 budget over to NewEgg, I came up with the following (prices are in U.S. dollars from June 2009).

Quantity Image Description Unit Price Total Price
1 clip_image001 APEVIA X-QPACK-BL/420 Black/Blue Aluminum MicroATX Desktop Computer Case 420W Power Supply $69.99 $69.99
1 clip_image002 ASRock A780GMH/128M AM2+/AM3 AMD 780G HDMI Micro ATX AMD Motherboard

$71.99 $71.99
1 clip_image003 AMD Phenom 8650 Toliman 2.3GHz Socket AM2+ 95W Triple-Core Processor HD8650WCGHBOX

$78.99 $78.99
2 clip_image004 G.SKILL 4GB (2 x 2GB) 240-Pin DDR2 SDRAM DDR2 1066 (PC2 8500) Dual Channel Kit Desktop Memory Model F2-8500CL5D-4GBPK

$54.99 $109.98
2 clip_image005 HITACHI Deskstar P7K500 HDP725050GLA360 (0A35415) 500GB 7200 RPM SATA 3.0Gb/s 3.5″ Internal Hard Drive -Bare Drive

$49.99 $99.98
1 clip_image006 LG 22X DVD±R DVD Burner Black SATA Model GH22NS30 – OEM

$27.99 $27.99
1 clip_image007 Rosewill RKV-2U 2 Port Slim Palmtop USB KVM Switch w/ Audio & Mic/ Black Shell

$19.99 $19.99
Total $478.91

Future posts will highlight configurations and environments I run from this system.

Thanks,
Alain