Tag Archives: ubuntu

Linux KVM host to guest connectivity

If you’re experience a lack of connectivity between your KVM host and your guests please see below. The instructions below will only directly work on Debian and/or Ubuntu. They will also require your guests to use macvlan or macvtap. This will also work if you’re using LXC.

Add the following to your

/etc/network/interfaces

configuration file. You need to adjust the network portion of the example below according to your own setup.

auto macvlan0
iface macvlan0 inet dhcp
    # as eth0 and macvlan0 are on the same LAN, we must drop default route and LAN route
    pre-up route del default
    pre-up route del -net 192.168.0.0 netmask 255.255.255.0
    pre-up ip link add link eth0 name macvlan0 type macvlan mode bridge

Now, either reboot or run

ifup macvlan0

as root.

// CrashMAG

Disable the filesystem check (fsck) at boot time

There’s several ways of accomplishing this. I will list all the methods beneath, just pick the one that fits the situation/you.

  • Filesystem tunable
  • Grub boot parameter
  • Placing command files on your root device
  • Active reboot without FSCK

Filesystem tunable

Use the tune2fs command to tell your filesystem to have a max count of mounts before a check to 0 to disable it.

# tune2fs -c 0 /dev/sda1

Parameter reference:

-c max-mount-counts
 Adjust the number of mounts after which the filesystem will be  checked  by  e2fsck(8).   If max-mount-counts  is  0  or -1, the number of times the filesystem is mounted will be disregarded by e2fsck(8) and the kernel.

Grub boot parameter

Add the following at the end of your grub boot linux line.

fastboot

This can be done by editing “grub.conf” or by editing the boot command via the grub menu at boot.

Placing command files on your root device

To disable the filesystem check on boot.

# touch /fastboot

To enable a filesystem check on boot.

# touch /forcefsck

Active reboot without FSCK

# shutdown -rf

Parameter reference:

-r     Reboot after shutdown.
-f     Skip fsck on reboot.

// CrashMAG

Setting up and configuring the Deluge 1.3 web interface on a headless server

This is a continuation of my previous article which goes through setting up and configuring the Deluge daemon. In my example I use Arch Linux. You may have another distribution and the commands to install the software will differ. Arch Linux separates the web interface out in a package. Your distribution may or may not. Most do however leave the Deluge web component out. See beneath for details for Debian, Ubuntu & Fedora.

We want to set up the very slick web interface. See beneath for the screenshot.

In addition to the software we already installed there’s more to go to get the web interface working. These are not installed by default so to do so, simply run the following.

Arch Linux

# pacman -S deluge

Debian/Ubuntu

# apt-get install deluge-webui

Fedora

# yum install deluge-web

Install dependencies for deluge-web.

# pacman -S python-mako

This will also install the following dependencies

Targets (3): python-markupsafe-0.9.2-1 python-beaker-1.5.4-1 python-mako-0.3.4-3

Start the Deluge web client.

# /etc/rc.d/deluge-web start

Connect to the web client using your browser.

http://server name or IP:8112

NB: You will not be able to do the initial configuration using Google Chrome. But you can use the interface in general with Google Chrome.

Configure the password.

You can now monitor Deluge as you prefer using a web interface. If it’s set up properly you can access this from anywhere.

// CrashMAG