Jump to content

Most Liked Content


#76 NoVNC support - This plugin is not supported

Posted by hremix on 05 January 2016 - 03:31 PM

Yes, do save a copy before overwriting the file or you can copy from another proxmox server.

 

On the client area page, there is a 'VNC' console logo and 'NoVNC' console logo. The 'VNC' console logo is always there and it does not work!

 

The 'NoVNC' logo should appear after applying the latest proxmox manager patch and enabled in the whmcs product/services  -> modules setting tab -> client area -> Extra console -> NoVNC(At least PVE 3.3).


  • Rob likes this


#57 set_network.sh

Posted by Mohamed Helmy on 24 August 2015 - 06:22 PM

Hi,

it should be showing now 02/12/2016


  • yoctobox likes this


#54 set_network.sh

Posted by Mohamed Helmy on 19 August 2015 - 11:28 AM

thank you, you been granted 4 months in return for your shared scripts, keep it coming for more.


  • yoctobox likes this


#53 set_network.sh

Posted by yoctobox on 18 August 2015 - 08:18 PM

This script supports multiple IP addresses, aka. IP aliasing. This scripts assumes the vm IP's are not in the same subnet as the host IP. The vms are routed via the eth0 of the host. 

 

Last update: August 22, 2015

#!/bin/bash


# This script serves the purpose to work with Modules Factory Proxmox module 
# for WHMCS to do the following things:
# 1. to set network, currently only for Debian & Redhat derivatives;


# Please note the following things before using this script:
# 1. This script assumes the KVM template image files are located at 
#    /var/lib/vz/images/xxx, where xxx is the numeric vmid;
# 2. This script assumes qemu-nbd is installed on the Proxmox host;
# 3. The virtual machine needs a reboot for the setup to be effective.


IN=$@


IFS=',' read varvmid varhostname varusername varpassword varmac varip varnode <<< "$IN";IFS='=' read var1 vmid <<< "$varvmid";IFS='=' read var2 hostname <<< "$varhostname";IFS='=' read var3 password <<< "$varpassword";IFS='=' read var4 username <<< "$varusername";IFS='=' read var5 macs <<< "$varmac";IFS='=' read var6 ips <<< "$varip";IFS='=' read var7 node <<< "$varnode"


mp=$((vmid%10))
cd "/var/lib/vz/images/${vmid}"
mkdir -p a
qemu-nbd -c /dev/nbd${mp} vm-${vmid}*
mount /dev/nbd${mp}p1 a
cd a


IFS=' ' read ip restip <<< $ips
IFS=' ' read mac restmac <<< $macs
gw=192.168.0.1
mask=255.255.255.255
ns1=8.8.8.8
ns2=8.8.4.4


# Debian & derivatives (Ubuntu, CrunchBang, SteamOS...)
if [ -f usr/bin/apt-get ]; then
cat > etc/network/interfaces << EOF
auto lo eth0
iface lo inet loopback
iface eth0 inet static
    address $ip
    netmask $mask
    broadcast $ip
    post-up route add $gw dev eth0
    post-up route add default gw $gw
    pre-down route del $gw dev eth0
    pre-down route del default gw $gw


EOF


IFS=' ' read -ra ip <<< $restip
for i in ${!ip[*]}; do
cat >> etc/network/interfaces <<- EOF
auto eth0:$i
iface eth0:$i inet static
   address ${ip[$i]}
   netmask $mask


EOF
done


IFS=' ' read -ra ip <<< $restip
for i in ${!ip[*]}; do
cat >> etc/network/interfaces <<- EOF
   post-up /sbin/ifconfig eth0:$i ${ip[$i]} netmask $mask broadcast ${ip[$i]}
   pre-down /sbin/ifconfig eth0:$i down


EOF
done


# DNS
cat > etc/resolv.conf << EOF
nameserver $ns1
nameserver $ns2
EOF
fi


# Set network
# Redhat & derivatives (CentOS, Scientific Linux, ClearOS...)
if [ -f usr/bin/yum ]; then
cat > etc/sysconfig/network-scripts/ifcfg-eth0 << EOF
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
IPV6INIT=no
PEERDNS=yes
TYPE=Ethernet
NETMASK=$mask
IPADDR=$ip
GATEWAY=$gw
ARP=yes
HWADDR=$mac
EOF


cat > etc/sysconfig/network-scripts/route-eth0 << EOF
$gw dev eth0
default via $gw dev eth0
EOF


IFS=' ' read -ra ip <<< $restip
for i in ${!ip[*]}; do
cat > etc/sysconfig/network-scripts/ifcfg-eth0:$i <<- EOF
DEVICE="eth0:$i"
ONBOOT="yes"
BOOTPROTO="none"
IPADDR="${ip[$i]}"
NETMASK="$mask"
BROADCAST="${ip[$i]}"
EOF
done


# DNS
cat > etc/resolv.conf << EOF
nameserver $ns1
nameserver $ns2
EOF
fi


cd ..
umount /dev/nbd${mp}p1
qemu-nbd -d /dev/nbd${mp}
rm -r a

  • Mohamed Helmy likes this


#37 Proxmox OpenVZ Quota UGID Limit

Posted by RĂ¡mon on 13 November 2014 - 07:03 PM

It would be nice if we can set the Quota UGID Limit for containers to enable second level quota's by default


  • mitgib likes this


#17 Proxmox OpenVZ cpuunits/cpulimit

Posted by bady on 07 May 2014 - 07:27 PM

Thumbs up for modulesfactory. Great support and great development.


  • Manar Sedik likes this


Check your Pings