apr 19 update
This commit is contained in:
@ -13,6 +13,8 @@
|
||||
# clean cached state
|
||||
bhyvectl --destroy --vm=cvm-a
|
||||
|
||||
exit
|
||||
|
||||
while true
|
||||
do
|
||||
|
||||
|
@ -13,6 +13,8 @@
|
||||
# clean cached state
|
||||
bhyvectl --destroy --vm=cvm-b
|
||||
|
||||
exit
|
||||
|
||||
while true
|
||||
do
|
||||
|
||||
|
@ -8,21 +8,21 @@
|
||||
#
|
||||
#
|
||||
|
||||
# ./kali.sh under tmux
|
||||
# ./gns3.sh under tmux
|
||||
|
||||
# disabled for now
|
||||
exit
|
||||
#exit
|
||||
|
||||
# clean cached state
|
||||
bhyvectl --destroy --vm=kali
|
||||
bhyvectl --destroy --vm=gns3
|
||||
|
||||
while true
|
||||
do
|
||||
|
||||
bhyve -c 2 -m 4G -A -H -P \
|
||||
bhyve -c 4 -m 16G -A -H -P \
|
||||
-s 0,hostbridge \
|
||||
-s 3,ahci-cd \
|
||||
-s 4,virtio-blk,/dev/zvol/ship/raw/kali \
|
||||
-s 4,virtio-blk,/dev/zvol/ship/raw/gns3 \
|
||||
-s 5,virtio-net,tap86,mac=00:0A:0B:0C:0D:86 \
|
||||
-s 7,virtio-net,tap4886,mac=00:0A:0B:0C:8D:86 \
|
||||
-s 8,virtio-net,tap1086,mac=00:0A:0B:0C:8D:86 \
|
||||
@ -31,7 +31,7 @@ bhyve -c 2 -m 4G -A -H -P \
|
||||
-s 30,xhci,tablet \
|
||||
-s 31,lpc -l com1,/dev/nmdm86A \
|
||||
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
|
||||
kali
|
||||
gns3
|
||||
|
||||
bhyve_exit=$?
|
||||
# bhyve returns the following status codes:
|
||||
@ -45,28 +45,27 @@ if [ $bhyve_exit = 1 ] || [ $bhyve_exit = 2 ]
|
||||
then
|
||||
break
|
||||
fi
|
||||
echo `date` - restarting kali in 5 seconds - press ctrl-c to stop
|
||||
echo `date` - restarting gns3 in 5 seconds - press ctrl-c to stop
|
||||
sleep 5
|
||||
|
||||
done
|
||||
|
||||
exit $?
|
||||
|
||||
#-s 3,ahci-cd,/mnt/linux/kali-linux-2020.4-installer-amd64.iso \
|
||||
##-s 6,virtio-blk,/dev/zvol/ship/raw/kali_data \
|
||||
#-s 3,ahci-cd,/mnt/linux/ubuntu-20.04.1-live-server-amd64.iso \
|
||||
##-s 6,virtio-blk,/dev/zvol/ship/raw/gns3_data \
|
||||
|
||||
# bhyvectl --get-all --vm=kali
|
||||
# bhyvectl --get-all --vm=gns3
|
||||
|
||||
# cu -l /dev/nmdm86B
|
||||
# (This uses cu() so press ~+Ctrl-D to exit)
|
||||
|
||||
#on base system:
|
||||
#zfs create -V 128G -o refreservation=none ship/raw/kali
|
||||
##zfs create -V 128G -o refreservation=none ship/raw/kali_data
|
||||
#zfs create -V 128G -o refreservation=none ship/raw/gns3
|
||||
|
||||
# Install VNC
|
||||
# curl -o turbovnc_2.2.5_amd64.deb https://sourceforge.net/projects/turbovnc/files/2.2.5/turbovnc_2.2.5_amd64.deb/download#
|
||||
# sudo apt install gdebi-core
|
||||
# sudo gdebi turbovnc_2.2.5_amd64.deb
|
||||
# sudo killall Xvnc; /opt/TurboVNC/bin/vncserver -name kali -geometry 1920x1080 :4
|
||||
# sudo killall Xvnc; /opt/TurboVNC/bin/vncserver -name gns3 -geometry 1920x1080 :4
|
||||
# systemctl enable ssh.service; service ssh start
|
@ -13,10 +13,12 @@
|
||||
# clean cached state
|
||||
bhyvectl --destroy --vm=pbx
|
||||
|
||||
#exit
|
||||
|
||||
while true
|
||||
do
|
||||
|
||||
bhyve -c 2 -m 4G -A -H -P \
|
||||
bhyve -c 4 -m 4G -A -H -P \
|
||||
-s 0,hostbridge \
|
||||
-s 3,ahci-cd \
|
||||
-s 4,virtio-blk,/dev/zvol/ship/raw/pbx \
|
||||
|
6
jails/config/vm/pkg-list-details.txt
Normal file
6
jails/config/vm/pkg-list-details.txt
Normal file
@ -0,0 +1,6 @@
|
||||
pkgp-freebsd-pkg____bash-5.1.16
|
||||
pkgp-freebsd-pkg____bash-completion-2.11_1,2
|
||||
pkgp-freebsd-pkg____bhyve-firmware-1.0_1
|
||||
pkgp-freebsd-pkg____nano-6.0
|
||||
pkgp-freebsd-pkg____pkg-1.17.5_1
|
||||
pkgp-freebsd-pkg____tmux-3.2a
|
1
jails/config/vm/pkg-list.txt
Normal file
1
jails/config/vm/pkg-list.txt
Normal file
@ -0,0 +1 @@
|
||||
bash bash-completion bhyve-firmware nano pkg tmux
|
@ -8,14 +8,13 @@
|
||||
#
|
||||
#
|
||||
|
||||
# ./r-windows.sh under tmux
|
||||
|
||||
# disabled for now
|
||||
exit
|
||||
# ./r-windows.sh LTSC 1809 N under tmux
|
||||
|
||||
# clean cached state
|
||||
bhyvectl --destroy --vm=r-windows
|
||||
|
||||
exit
|
||||
|
||||
while true
|
||||
do
|
||||
|
||||
|
@ -43,10 +43,10 @@ tmux new-window -t $session:5 -n r-windows
|
||||
tmux selectp -t 1
|
||||
tmux send-keys "cd /mnt/config;./r-windows.sh" C-m
|
||||
|
||||
# create a new window kali
|
||||
tmux new-window -t $session:6 -n kali
|
||||
# create a new window gns3
|
||||
tmux new-window -t $session:6 -n gns3
|
||||
tmux selectp -t 1
|
||||
tmux send-keys "cd /mnt/config;./kali.sh" C-m
|
||||
tmux send-keys "cd /mnt/config;./gns3.sh" C-m
|
||||
|
||||
# create a new window cvm-a
|
||||
tmux new-window -t $session:7 -n cvm-a
|
||||
|
@ -8,7 +8,7 @@
|
||||
#
|
||||
#
|
||||
|
||||
# ./w2019.sh under tmux
|
||||
# ./w2019.sh DC 1809 under tmux
|
||||
|
||||
# clean cached state
|
||||
bhyvectl --destroy --vm=w2019
|
||||
|
@ -8,11 +8,13 @@
|
||||
#
|
||||
#
|
||||
|
||||
# ./windows.sh under tmux
|
||||
# ./windows.sh LTSC 1809 N under tmux
|
||||
|
||||
# clean cached state
|
||||
bhyvectl --destroy --vm=windows
|
||||
|
||||
exit
|
||||
|
||||
while true
|
||||
do
|
||||
|
||||
|
Reference in New Issue
Block a user