premepen / pen-others

渗透过程中其他的相关说明。
0 stars 0 forks source link

KVM + VNC 安装实例 #3

Open xx-zhang opened 5 years ago

xx-zhang commented 5 years ago
virt-install -n kali -r 2048 \
--disk /data/vms/kali.qcow2,format=qcow2,size=40 \
--network bridge=br0 --os-type=linux --os-variant=rhel7.5 \
--cdrom /data/iso/kali-linux-e17-2019.1-amd64.iso \
--vnc --vncport=5908 --vnclisten=0.0.0.0 --video vga

virt-install \
--name windows2016 \
--os-type=windows \
--ram=2048 --vcpus=2 \
--disk /data/vms/win2016.qcow2,bus=virtio,size=50 \
--disk /data/iso/virtio-win-0.1.171_amd64.vfd,device=floppy \
--cdrom=/data/iso/cn_windows_server_2016_x64_dvd_9327743.iso  \
--network bridge=br0,model=virtio \
--graphic vnc,listen=0.0.0.0,port=5905 \
--virt-type kvm

virt-install -n dxf -r 2048 \
--disk /data/vms/dxf.qcow2,format=qcow2,size=30 \
--network bridge=br0 --os-type=linux --os-variant=rhel7.5 \
--cdrom /data/iso/CentOS-5.8-x86_64-bin-DVD-1of2.iso \
--vnc --vncport=5911 --vnclisten=0.0.0.0 --video vga
xx-zhang commented 5 years ago

http://vault.centos.org/5.11/isos/x86_64/

https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.171-1/virtio-win-0.1.171_amd64.vfd

xx-zhang commented 5 years ago
virt-install -n ub1904 -r 2048 \
--disk /data/vms/ub1904.qcow2,format=qcow2,size=30 \
--network bridge=br0 --os-type=linux --os-variant=rhel7.5 \
--cdrom /data/iso/ubuntu-19.04-live-server-amd64.iso \
--vnc --vncport=5914 --vnclisten=0.0.0.0 --video vga
xx-zhang commented 5 years ago

sed -i "s/cn.archive.ubuntu.com/mirrors.163.com/g" /etc/apt/sources.list