Skip to content

Instantly share code, notes, and snippets.

@caroman
Created June 30, 2015 12:40
Show Gist options
  • Save caroman/337236ca34acc0fcb958 to your computer and use it in GitHub Desktop.
Save caroman/337236ca34acc0fcb958 to your computer and use it in GitHub Desktop.
Configuation file for Open Virtuozzo VM
#!/bin/bash
# If one of these files does not exist then something
# is really broken
[ -f /etc/vz/vz.conf ] || exit 1
[ -f $VE_CONFFILE ] || exit 1
# Source both files. Note the order is important.
. /etc/vz/vz.conf
. $VE_CONFFILE
SRC=/mnt/disk
DST=/mnt/disk
echo "mount -n -t simfs $SRC ${VE_ROOT}${DST} -o $SRC"
mount -n -t simfs $SRC ${VE_ROOT}${DST} -o $SRC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment