yum install rhevm-cli
rhevm-shell
[RHEVM shell (connected)] # show vm --name
[RHEVM shell (connected)] # shell ls -altr
[RHEVM shell (connected)] # list vms --show-all
[RHEVM shell (connected)] # show vm --name desktop_vms
[RHEVM shell (connected)] # help show
[RHEVM shell (connected)] # list datacenters
[RHEVM shell (connected)] # list clusters
[RHEVM shell (connected)] # list networks --show-all
[RHEVM shell (connected)] # add host --name Host12345 --address host12345.company.com --root_password <password>
[RHEVM shell (connected)] # action host Host12345 activate
[RHEVM shell (connected)] # add storagedomain --name DataStorage --host-name Host12345 --type data --storage-type nfs --format v1 --storage-address '<IP-address>' --storage-path /exports/data --datacenter-identifier Default
[RHEVM shell (connected)] # action storagedomain DataStorage
[RHEVM shell (connected)] # add vm --name VM12345 --cluster-name Default --template-name Blank --memory 33554432 --os-boot-dev hd
[RHEVM shell (connected)] # add nic --vm-identifier VM12345 --name nic1 --network-name rhevm --bootable true
[RHEVM shell (connected)] # add disk --vm-identifier VM12345 --provisioned_size 8589934592 --interface virtio --format cow
[RHEVM shell (connected)] # console VM12345
[RHEVM shell (connected)] # list vms
[RHEVM shell (connected)] # list vms --show-all
[RHEVM shell (connected)] # list vms --query "status=up"
[RHEVM shell (connected)] # list vms --query "name=VM12345"
[RHEVM shell (connected)] # show vm fdcab281-9c42-4a0e-bcd4-92cdef76ab3c
[RHEVM shell (connected)] # show vm VM12345
[RHEVM shell (connected)] # status
[RHEVM shell (connected)] # summary
cat /var/log/vdsm/mom.log for the Memory Overcommit Manager log.
vi /etc/sysconfig/network and
vi /etc/sysconfig/network-scripts/ifcfg-rhevm for configuring the network interface.
service network restart for RHEL 6
ifconfig rhevm for RHEL 6
systemctl restart network.service for RHEL 7
ip addr show rhevm for RHEL 7
hostnamectl set-hostname <FQDN>
/etc/ovirt-engine/ovirt-fence-kdump-listener.conf.d : Location for creating a new listener file
service ovirt-fence-kdump-listener restart
service ovirt-engine restart
Configuring NFS
---------------------
yum install nfs-utils
chkconfig --add rpcbind
chkconfig --add nfs
chkconfig rpcbind on
chkconfig nfs on
service rpcbind start
service nfs start
mkdir -p /exports/<data>
mkdir -p /exports/<export>
exportfs -r
service nfs reload
groupadd kvm -g 36
useradd vdsm -u 36 -g 36
chown -R 36:36 /exports/<data>
chown -R 36:36 /exports/<export>
chown 0755 /exports/<data>
chown 0755 /exports/<export>
Remote Viewer on Linux
-------------------------------
yum install spice-xpi
rpm -q virt-viewer
yum install virt-viewer
Restart your browser.
General commands
-----------------------
ksmctl --> Kernel Same Page Merging
ksmctl info
ksmctl start <n pages>
ksmctl stop
ntpdate <server>
hwclock -w
hwclock --systohc
service ovirt-engine status
service ovirt-engine restart
rhevm-config
guestfish
virt-v2v
virt-sysprep --list-operations
rhevm-manage-domains -action=list
rhevm-log-collector list
rhevm-log-collector collect
rhevm-setup
rhevm-upgrade
rhevm-reports-setup
rhevm-shell -h
service NetworkManager start/stop/status
chkconfig NetworkManager on/off
service network restart
chkconfig network on
vdsClient list
vdsClient getAllVmStats
vdsClient getVdsStats
vdsClient getVdsCapabilities
vdsClient activateStorageDomain
vdsClient changeCD
vdsClient desktopLogoff
vdsClient getAllTasksInfo
vdsClient clearTask
vdsClient getIsoList
vdsClient getStorageDomainInfo
ip addr show
yum repolist
rhevm-dwh-setup
ip addr show dev rhevm
cat /etc/sysconfig/rhn/systemid
No comments:
Post a Comment