Tabela de conteúdo |
Xen: Failed to find an unused loop device
xm create vm#.domain
But this resulted in following error:
Error: Device 5632 (vbd) could not be connected.
Failed to find an unused loop device
Solution:
Create /etc/modprobe.d/local-loop.conf with this content:
options loop max_loop=64
**** Turn off all DomUs, yes, bummer. You’ll need to reload the loop module which won’t work if Xen is still using them. xm list should only display Domain-0.
modprobe -r loop && modprobe loop
And restart all DomUs. You can now create 32 (64/2 ~= # of DomUs; increase if you need more) DomUs.
You can check (before & after) the difference in loop back devices: ls -ls /dev | grep loop | wc -l
Primeiro você deve solicitar uma nova licença AQUI
Procedimento para renovação da licença por linha de comando:
find / -iname \*license /etc/xensource/license cd /etc/xensource/ mv license /home/lupa/licenca/BKP_`date +%d-%m-%Y`.license cp /home/lupa/license.xslic ./license
yum repolist enabled
sed -i -e "s/enabled=0/enabled=1/" /etc/yum.repos.d/CentOS-Base.repo
Instalação
yum install net-snmp
Arquivo conf
########################################################################### # # snmpd.conf # # - created by the snmpconf configuration program # ########################################################################### # SECTION: Access Control Setup # # This section defines who is allowed to talk to your running # snmp agent. # rocommunity: a SNMPv1/SNMPv2c read-only access community name # arguments: community [default|hostname|network/bits] [oid] rocommunity <EMPRESA> # rwcommunity: a SNMPv1/SNMPv2c read-write access community name # arguments: community [default|hostname|network/bits] [oid] rwcommunity <EMPRESA> 192.168.0.0/24 com2sec mynet 192.168.0.0/24 <EMPRESA> com2sec lupa <Ip Liberado para consultar o SNMP> <EMPRESA> com2sec local localhost <EMPRESA> group MyROGroup v1 mynet group MyROGroup v2c mynet group MyROGroup usm mynet group MyRWGroup v1 local group MyRWGroup v2c local group MyRWGroup usm local group MyRWGroup v1 lupa group MyRWGroup v2c lupa group MyRWGroup usm lupa access MyROSystem "" any noauth exact system none none access MyROGroup "" any noauth exact all none none access MyRWGroup "" any noauth exact all all none ########################################################################### # SECTION: System Information Setup # # This section defines some of the information reported in # the "system" mib group in the mibII tree. # syslocation: The [typically physical] location of the system. # Note that setting this value here means that when trying to # perform an snmp SET operation to the sysLocation.0 variable will make # the agent return the "notWritable" error code. IE, including # this token in the snmpd.conf file will disable write access to # the variable. # arguments: location_string syslocation <EMPRESA> # syscontact: The contact information for the administrator # Note that setting this value here means that when trying to # perform an snmp SET operation to the sysContact.0 variable will make # the agent return the "notWritable" error code. IE, including # this token in the snmpd.conf file will disable write access to # the variable. # arguments: contact_string syscontact nome@seudominio.com.br # sysservices: The proper value for the sysServices object. # arguments: sysservices_number sysservices 76 view all included .1 80 proc mountd proc ntalkd 4 proc sendmail 10 1 disk / 10000 disk /var 5% includeAllDisks 10% load 12 14 14
Regras IPTABLES (Liberação da porta 161)
Arquivo:
/etc/sysconfig/iptables
Adicionar a regra:
-A RH-Firewall-1-INPUT -p udp --dport 161 -j ACCEPT
Execute o comando:
service iptables restart
xe vmexport vm=<novo_nome_vm> filename=/<diretorio_de_backup_nome-da-vm.xva
xe vm-import filename=/<diretorio_de_backup_nome-da-vm.xva