Fedora 安裝 virtualbox Vmware 的問題

virtualbox
#dnf update kernel*
#sudo dnf install kernel-devel dkms kernel-headers
#/usr/lib/virtualbox/vboxdrv.sh setup

Vmware Workstation
# dnf install kernel-headers kernel-devel gcc glibc-headers
安裝序號
VY1DU-2VXDH-08DVQ-PXZQZ-P2KV8
VF58R-28D9P-0882Z-5GX7G-NPUTF
YG7XR-4GYEJ-4894Y-VFMNZ-YA296
CZ3H8-4EY15-H81XZ-KPMZE-XGAFF
YF590-4WX8M-H81QZ-2YX59-XVAF6

Hyper-v 2016 Client 連接

管理網域外 (或沒有網域) 的 Hyper-V 主機

只有在連線到 Windows 10 或 Server 2016 Technical Preview 3 或更新版本的遠端主機時,才能使用此功能

#Server端, 以系統管理員身分,在要管理的 Hyper-V 主機上執行下列命令:
  1.Enable-PSRemoting
2.Enable-PSRemoting 會為私人網路區域建立必要的防火牆規則。 若要在公用區域上允許這項存取,您必須啟用 CredSSP 和 WinRM 的這條規則。
Enable-WSManCredSSP -Role server
#Client端, 在管理電腦上,以系統管理員身分執行下列命令:
  1.Enable-PSRemoting
2.Set-Item WSMan:\localhost\Client\TrustedHosts -Value "fqdn-of-hyper-v-host"
3.Enable-WSManCredSSP -Role client -DelegateComputer "fqdn-of-hyper-v-host"

PROXMOX 新增第二顆硬碟

SDA is the drive where the proxmox installation is running
SDB is the new drive that will be added to the proxmox.

Open the Proxmox Shell
With fdisk you can find your drives that you want to add, if you are not sure what the device name is for your hard drive that you want to add.

Type: fdisk -l

Find the “Disk" with no valid partition table. That will be probably your hard drive you want to add.

“Disk /dev/sdb doesn’t contain a valid partition table"
To make a partion on the new drive type the following:

Type: cfdisk /dev/sdb

Choose the following options:

New  –>  Primary  –>  Specify size in MB
Write
Quit

Now a physical volume has to be created.

Type: pvcreate /dev/sdb1

Create a volume group. The name “Data-Storage" is an example. You can name it anyway you want. Consider a logical name, because this is the name that will be used in the proxmox web interface:

Type: vgcreate Data-Storage /dev/sdb1

Add the storage in ProxMox
–       In the webinterface click on the directory Datacenter and then click on tab Storage.

–       Click Add – LVM Group

o    Type an ID Name for example data-storage

 

o    Base Storage: Existing Volume Groups

 

o    Volume Group: Data-Storage

 

o    Enabled: Checked
o    Other options should be adjusted accordenly to what you want with it.
Now the extra storage has been added in Proxmox and ready for use.

Debian 安裝 rsync Server

# apt install rsync
# nano /etc/rsyncd.conf

------------------------------------------------------------------------------------# sample rsyncd.conf configuration file

# GLOBAL OPTIONS

#motd file=/etc/motd
log file=/var/log/rsyncd.log
# for pid file, do not use /var/run/rsync.pid if
# you are going to run rsync out of the init.d script.
# The init.d script does its own pid file handling,
# so omit the "pid file" line completely in that case.
pid file=/var/run/rsyncd.pid
#syslog facility=daemon
#socket options=

# MODULE OPTIONS

[myrsync]

comment = public archive
path = /myrsync
use chroot = yes
# max connections=10
lock file = /var/lock/rsyncd
# the default for read only is yes...
read only = no
list = yes
uid = nobody
gid = nogroup
# exclude =
# exclude from =
# include =
# include from =
auth users =admin
secrets file = /etc/rsyncd.secrets
strict modes = yes
# hosts allow =
# hosts deny =
ignore errors = yes
ignore nonreadable = yes
transfer logging = yes
# log format = %t: host %h (%a) %o %f (%l bytes). Total %b bytes.
timeout = 600
refuse options = checksum dry-run
dont compress = *.gz *.tgz *.zip *.z *.rpm *.deb *.iso *.bz2 *.tbz
--------------------------------------------------------------
# nano /etc/rsyncd.secrets
# nano /etc/default/rsync
#chown root:root /etc/rsyncd.secrets
#chmod 600 /etc/rsyncd.secrets
#/etc/init.d/rsync start


在Linux client 到 Rsync Server:
rsync -avzrHS --delete /sftpserver/uploadrsync/ hotai@s2.ice.com.tw::uploadrsync

XENSERVER6.5 0 安裝 LINUX AGENT TOOLS

  • mount /dev/cdrom /mnt
  • bash /mnt/Linux/install.sh
  • umount /dev/cdrom

    1. The files required are present on the built-in xs-tools.iso CD image, or alternatively can be installed

by using the VM > Install XenServer Tools option in XenCenter.
2. Mount the image onto the guest by running the command:
mount -o ro,exec /dev/disk/by-label/XenServer\\x20Tools /mnt
Note:
If mounting the image fails, you can locate the image by running the following:
blkid -t LABEL="XenServer Tools"
3. Execute the installation script as the root user:
/mnt/Linux/install.sh
4. Unmount the image from the guest by running the command:
umount /mnt
5. If the kernel has been upgraded, or the VM was upgraded from a previous version, reboot the VM now.
Note:
CD-ROM drives and ISOs attached to Linux Virtual Machines appear as devices, such as /
dev/xvdd (or /dev/sdd in Ubuntu 10.10 and later) instead of as /dev/cdrom as you
might expect. This is because they are not true CD-ROM devices, but normal devices. When
the CD is ejected by either XenCenter or the CLI, it hot-unplugs the device from the VM
and the device disappears. This is different from Windows Virtual Machines, where the CD
remains in the VM in an empty state.