مشکل در دسترس نبودن /dev/kvm در قسمت AVD
sudo apt install qemu-kvm
sudo usermod -a -G kvm my_username
مشکل در دسترس نبودن /dev/kvm در قسمت AVD
sudo apt install qemu-kvm
sudo usermod -a -G kvm my_username
# For desktop: apt-get install open-vm-tools open-vm-tools-desktop # For server and headless installations: apt-get install open-vm-tools
ابتدا لازم است تا سرویس های SSH روی هر دو ماشین فعال شده و سپس دستورات زیر به منظور انتقال استفاده شوند. همچنین پس از انجام انتقال، تغییرات به حالت قبل برگردند.
esxcli network firewall ruleset list --ruleset-id sshClient
esxcli network firewall ruleset set --ruleset-id sshClient --enabled=true
scp -r sourceFolder root@xyz.xyz.xyz.xyz:/vmfs/volumes/destDataStore
دستورات زیر را اجرا می کنیم:
$ sudo lvmdiskscan
/dev/loop0 [ <90.99 MiB]
/dev/ubuntu-vg/ubuntu-lv [ <49.00 GiB]
/dev/loop1 [ <211.76 MiB]
/dev/loop2 [ <88.68 MiB]
/dev/sda2 [ 1.00 GiB]
/dev/sda3 [ <49.00 GiB] LVM physical volume
/dev/sdb [ 1.00 TiB]
2 disks
4 partitions
0 LVM physical volume whole disks
1 LVM physical volume
$ sudo pvscan
PV /dev/sda3 VG ubuntu-vg lvm2 [<49.00 GiB / 0 free]
Total: 1 [<49.00 GiB] / in use: 1 [<49.00 GiB] / in no VG: 0 [0 ]
$ sudo vgscan
Reading volume groups from cache.
Found volume group "ubuntu-vg" using metadata type lvm2
$ sudo pvcreate /dev/sdb
Physical volume "/dev/sdb" successfully created.
$ sudo vgextend ubuntu-vg /dev/sdb
Volume group "ubuntu-vg" successfully extended
$ sudo lvscan
ACTIVE '/dev/ubuntu-vg/ubuntu-lv' [<49.00 GiB] inherit
yum install net-snmp-utils snmp snmpd
/etc/snmp/snmpd.conf
rocommunity publicString
com2sec local localhost 192.168.192.202
com2sec network_l 192.168.192.0/24
group MyROGroup_1 v2c local
group MyROGroup_1 v2c network_1
view all-mibs included .1 80
access MyROGroup_1 .. v1 noauth exact all-mibs none none
access MyROGroup_2 .. v2c noauth exact all-mibs none none
/etc/init.d/snmpd start
chkconfig snmpd on
snmpwalk -v 1 -c publicString -O e 127.0.0.1
nano /etc/firewalld/services/snmp.xml
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>SNMP</short>
<description>SNMP protocol</description>
<port protocol="udp" port="161"/>
</service>
firewall-cmd --reload
firewall-cmd --new-zone=special --permanent
firewall-cmd --reload
firewall-cmd --zone=special --add-source=xyz.xyz.xyz.xyz/32
firewall-cmd --zone=special --add-service snmp --permanent
firewall-cmd --reload
snmp.set --communities COMMUNITY_STR
snmp.set --targets IP_ADDRESS@PORT/COMMUNITY_STR,IP_ADDRESS@PORT/COMMUNITY_STR
snmp.set --loglevel warning
snmp.enable
snmp.get
تغییر IP در سرور Centos
ifconfig ens33 xyz.xyz.xyz.xyz netmask 255.255.255.0 up
و بعد هم تعیین default gateway
route add default gw 192.168.192.254
sudo apt-get install scsitools
sudo rescan-scsi-bus.sh
cat /proc/partitions
# Partition and format your disks
sudo fdisk /dev/<newdevice>
sudo mkfs -t ext3 /dev/<newdevice><partitionnumber>
# Add the devices to /dev/disk/by-uuid/
sudo partprobe
sudo blkid /dev/<newdevice><partitionnumber>
# Note the UUID : Add the new mount to /etc/fstab, and mount the filesystem
vi /etc/fstab
mount -a
مرجع