Add a virtual interface in FreeBSD

IP aliases are easy to add to Linux, and the process is pretty much the same from distribution to distribution.  Well, it’s a little more structured in FreeBSD.  One major thing to keep in mind is what while Linux doesn’t seem to care (usually) if you start at, for example, eth0:1 then have eth0:3 and eth0:5 even without an eth0:0, 0:2, 0:4, etc, FreeBSD must be done in order, starting from alias 0.  Here’s how it’s done:

  • From command line, type ‘ifconfig’ without the quotes to see what the current ethernet interface is.  You should see something like:
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU>
inet6 fe80::230:48ff:fe2c:fa74%em0 prefixlen 64 scopeid 0x1
inet 20X.2XX.240.77 netmask 0xfffffc00 broadcast 20X.2XX.24X.2XX
  • as root, configure the new IP as an alias:
ifconfig em0 20X.2XX.240.78 netmask 255.255.255.255 alias

Install and run Ubuntu server on a USB drive

asdf

How to install and run Xenserver from a usb drive

Prerequisites:

USB drive

Xenserver CD (get it here)

  • Physically disconnect all attached hard drives other than the UBS thumb drive.
  • Boot and install Xenserver to the USB drive as you normally would to a hard drive.
  • Once the install is complete, boot from the Xenserver CD again and hit F2 when you see the “Welcome to Xenserver” splash screen.
  • Type “shell” without the quotes and hit enter
  • Once booted, type “mkdir /tmp/sda” without the quotes and hit enter
  • Type “mount -t ext3 /dev/sda1 /tmp/sda” without quotes and hit enter
  • Type “chmod -R 644 /sys/block” without the quotes and hit enter
  • Next we need to copy some system files.  You’ll most likely get some I/O errors, you can ignore them.  Type “cp -R /sys/block/ /tmp/sda/sys/block/” without quotes and hit enter.
  • We need to chroot to the tmp folder on the usb drive, so type “chroot /tmp/sda”