When you try to restart or start a service you got the following message ?
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Simple cd command such as cd or cd / will solve the problem
How to edit the resources of previously created VPS "test_vps" by KVM ?
# virsh dumpxml test_vps --> /tmp/test_vps.xml
# virsh undefine test_vps
# vim /tmp/test_vps.xml --> Edit what you want
i.e 2 GB RAM VPS with be increased to 4 GB as follow
memory 2097152 memory
currentMemory 2097152 currentMemory
currentMemory 2097152 currentMemory
4096 * 1024 = 4194304 Byte --> The value should be in bytes
memory 4194304 memory
currentMemory 4194304 currentMemory
currentMemory 4194304 currentMemory
# virsh define /tmp/test_vps.xml
How to enable and disable autostart feature in KVM of a given domain ?
# virsh autostart
# virsh autostart --disable
How to install HP printer driver in Linux ?
# yum install hplip hplip-gui cups system-config-printer
Note:- Make sure that your printer is connected properly
# hp-setup --> Follow the instructions
Note:- use system-config-printer command or Cups server "127.0.0.1:631" to tweak the configurations and settings of the printer and add it as default printer then restart the printer manually.
When Webalizer reads its config file you got the following error ?
# webalizer -c /etc/webalizer.conf
Warning: Truncating oversized username
Skipping bad record (3009)
Warning: Truncating oversized username
Skipping bad record (3010)
Warning: Truncating oversized username
Skipping bad record (3011)
No valid records found!
Check the following directives in /etc/webalizer.conf
LogFile /var/log/squid/access.log
LogType squid
Here webalizer will analyze the squid log so the LogType directive should be squid. The default is http clf "Common Log Format"
In kickstart installation if you got the following error
tried to use undefined partition pv.01...
Basically your problem is you are trying to make a volume group on a physical volume which does not exist
you have to add the following line in ks.cfg file "part pv.qmo1C9-71pg-1d5r-tNxU-khs2-xdQQ-10Ma2z --grow --size=1" beneath the clearpart line
or as my case the it existed but was miss placed and you have to move it right below clearpart line
Failed to Add Image in glance
Error
Failed to add image. Got error:
Failed to add image. Got error:
The request returned 500 Internal Server Error
Solution:
Fix the OS ENV variables (insert your values from your API configs.)
e.g.
Fix the OS ENV variables (insert your values from your API configs.)
e.g.
# vim ~/.bashrc
OS_AUTH_URL=”http://localhost:5000/v2.0/”
OS_PASSWORD=”password”
OS_TENANT_NAME=”admin”
OS_USERNAME=”admin”
# source ~/.bashrc
No comments:
Post a Comment