xenserver 7.0 based on centos 7.2

https://docs.citrix.com/content/dam/docs/en-us/xenserver/xenserver-7-0/downloads/xenserver-7-0-installation-guide.pdf states:

 The Control Domain: Also known as 'Domain0', or 'dom0', the Control Domain is a secure, privileged Linux VM (based on a CentOS 7.2 distribution) that runs the XenServer management toolstack. Besides providing XenServer management functions, the Control Domain also runs the driver stack that provides user created Virtual Machines (VMs) access to physical devices. 

apply xen server patches in bulk

download a bunch of the buggers


for file in XS*.zip;do foo=`basename -s .zip $file`; unzip $file; bar=`xe patch-upload file-name=${foo}.xsupdate`;xe patch-apply uuid=$bar host-uuid=YOUR_HOST_UUID;done

you’ll probably want to add an rm of the zip file and an rm of the xsupdate file (exercise for the reader)

This won’t work for XS70E002 and XS70E003 until you apply XS70E004 (read the release notes).

add iso partition to xenserver

link: https://adamscheller.com/systems-administration/xenserver-local-iso-storage-new-partition/

for posterity…

figure out the name of the volume group (something like name-uuid)

pvscan

 

create the new volume

lvcreate -L 150G -n ISOs name-uuid

 

find the volume you just created

 
lvscan |grep ISO

 

create the filesystem

mkfs.ext2 /dev/other-name-uuid/ISOs

 

make the mount point

mkdir /mnt/isos

 

create the repository

xe sr-create name-label=ISOs type=iso device-config:legacy_mode=true device-config:location=/mnt/isos content-type=iso

 

mount the disk

mount -t ext2 /dev/name-uuid/ISOs /mnt/isos

	

using vm-snapshot to clone a domU

CAUTION: with the following the system is up so you risk file loss, data loss, etc. — use at your own risk.

Ideally you would shutdown your domU and use vm-export rather than vm-snapshot.

make a snapshot

 xe vm-snapshot vm=name new-name-label=name-foo

this returns a uuid

  xe vm-export vm=UUID filename=|bzip2 > file.xva.bz2

move the file about

scp 192.168.1.2:file.xva.bz2 file.xva.bz2

import the snapshot

 cat file.xva.bz2 |ssh 192.168.1.1 "bunzip2|/opt/xensource/bin/xe vm-import filename=/dev/stdin"

then recreate the clone from the snapshot template under openxenmanager or other management tool.

para – virtualize to install from iso

http://www.xenlens.com/boot-a-guest-vm-from-cd-or-dvd-in-xenserver/ copied for posterity

In order to boot from cd or dvd you need to change the guest virtualization type from HVM (fully virtualized) to PV (paravirtualized).

xe vm-param-set HVM-boot-policy="BIOS order" uuid=[uuid of your vm]

After you have booted from dvd, change back to fully virtualized mode:

xe vm-param-set HVM-boot-policy="" uuid=[uuid of your vm]

motorola Surfboard 6141 making noise

I just want to say despite many nay-sayers posting responses to this on other threads there is something in my SB 6141 that vibrates with uploads. (correlated by noise during speed test).

These two links are have the identical report and then other people trying to argue that it’s not the cable modem. It is the cable modem! It happens with my the use of my phone over wifi, with my computer, laptop, with all the screens and speakers turned off, there are no headphones involved.

I can modulate the sound during an upload by twisting the case. Viewed from from the top of the case, if I twist the top clockwise and the base counter clockwise I can decrease and eliminate the sound.

Really annoying to have a fanless, ssd desktop and a noisy cable modem.

http://ask.metafilter.com/264261/Cable-Internet-Issues-bad-cable-modem

https://geekhack.org/index.php?topic=46563.0