This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"builders": [ | |
{ | |
"type": "hyperv-iso", | |
"output_directory": "./output-{{ user `os_name` }}-base-hyperv/", | |
"temp_path": "C:\\ClusterStorage\\HYPData01\\PackerTemplates\\temp", | |
"vm_name": "{{ user `os_name` }}-base", | |
"iso_url": "{{ user `iso_url` }}", | |
"iso_checksum": "{{ user `iso_checksum` }}", | |
"iso_checksum_type": "sha1", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lsblk | |
fdisk /dev/sdb | |
lsblk | |
pvcreate /dev/sdb1 | |
vgextend fedora /dev/sdb1 | |
lvextend -l +100%FREE /dev/fedora/root | |
#lvextend -l +100%FREE /dev/rhel/root | |
resize2fs /dev/fedora/root | |
#xfs_growfs /dev/rhel/root | |
lsblk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ovftool.exe "C:\Your\Path\metasploitable-linux-2.0.0\Metasploitable2-Linux\Metasploitable.vmx" "C:\Your\Path\metasploitable\metasploitable.ovf" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -f $HISTFILE && unset HISTFILE && exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script that import VMware images (ovf based) to Proxmox VE | |
# Your VM_NAME needs to be the same for: VM_NAME (directory) and VM_NAME.ovf | |
PROXMOX_USER=root | |
PROXMOX_PASS=ch4ng3m3! | |
PROXMOX_HOST=1.2.3.4 | |
PROXMOX_PORT=22 | |
PROXMOX_STORAGE=local-lvm | |
VM_PATH=/mnt/hgfs/shared/VM-Backup/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: hosts | |
connection: local | |
name: Configure Server Power Setting | |
gather_facts: False | |
tasks: | |
- name: Configure Server Power Setting | |
dellemc_change_power_state: | |
idrac_ip: "{{ idrac_ip }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# power server off | |
racadm serveraction powerdown | |
# power server on | |
racadm serveraction powerup | |
# perform server power cycle | |
racadm serveraction powercycle | |
# force hard server power reset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lsblk | |
fdisk /dev/sde | |
fdisk /dev/sdf | |
mkfs.ext4 /dev/sde1 | |
mkfs.ext4 /dev/sdf1 | |
reboot | |
lsblk | |
vgdisplay | |
pvcreate /dev/sde1 | |
vgextend pve /dev/sde1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# VNC multi-user/multiple access generator | |
# CentOS-7 tested | |
# account: user-1:user-1, user-2_user-2, etc | |
#useradd/passwd loop | |
for i in {1..5}; do useradd user-$i; done; | |
for i in {1..5}; do echo user-$i | passwd user-$i --stdin; done; | |
# xvnc configurations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# stop and disable fwd 4 systemd linux host | |
systemctl stop firewalld | |
systemctl disable firewalld | |
# accept, flush and delete all iptables rules and chains | |
iptables -P INPUT ACCEPT | |
iptables -P FORWARD ACCEPT | |
iptables -P OUTPUT ACCEPT |
NewerOlder