Meu nome é Lucas Ariel Lehnen ("Lenen", com H mudo).
Aqui você vai encontrar meus repositórios de testes e aprendizados. Talvez queira me seguir na Twitch, quando sobra um tempinho, fico online compartilhando meus aprendizados e projetos que faço.
Template Packer para instalação do ESXi
Problema:
Durante a instalação do ESXi, o mesmo não reinicia, fica trancado em "Shuting down device drivers..."
Não consegui fazer a adaptação dos parâmetros que o libvirt utiliza para evitar o problema via qemuargs do provider do Packer.
Detalhes
O seguinte código com libvirt funciona:
virt-install --name=ESXi --cpu host-passthrough --ram 12000 --vcpus=8 --os-type linux --os-variant=generic --cdrom /var/www/isos/VMware-VMvisor-Installer-7.0U3-18644231.x86_64.iso --network bridge=br0,model=e1000e --graphics vnc,listen=0.0.0.0 --video qxl --disk pool=default,size=20,bus=sata,format=qcow2 --disk pool=default,size=60,bus=sata,format=qcow2 --boot cdrom,hd --noautoconsole --force --feature kvm_hidden=on --machine q35
Esse comando gera uma chamada complexa no qemu:
/usr/bin/qemu-system-x86_64 -name guest=teste,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-2-teste/master-key.aes -machine pc-q35-5.2,accel=kvm,usb=off,dump-guest-core=off,memory-backend=pc.ram -cpu host,migratable=on,kvm=off -m 12000 -object memory-backend-ram,id=pc.ram,size=12582912000 -overcommit mem-lock=off -smp 8,sockets=8,cores=1,threads=1 -uuid fb3fac9d-d2e7-44f0-886a-86b8f53fe906 -no-user-config -nodefaults -chardev socket,id=charmonitor,fd=34,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=delay -no-hpet -no-shutdown -global ICH9-LPC.disable_s3=1 -global ICH9-LPC.disable_s4=1 -boot strict=on -device pcie-root-port,port=0x10,chassis=1,id=pci.1,bus=pcie.0,multifunction=on,addr=0x2 -device pcie-root-port,port=0x11,chassis=2,id=pci.2,bus=pcie.0,addr=0x2.0x1 -device pcie-root-port,port=0x12,chassis=3,id=pci.3,bus=pcie.0,addr=0x2.0x2 -device ich9-usb-ehci1,id=usb,bus=pcie.0,addr=0x1d.0x7 -device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pcie.0,multifunction=on,addr=0x1d -device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pcie.0,addr=0x1d.0x1 -device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pcie.0,addr=0x1d.0x2 -blockdev {"driver":"file","filename":"/var/lib/libvirt/images/teste-6.qcow2","node-name":"libvirt-2-storage","auto-read-only":true,"discard":"unmap"} -blockdev {"node-name":"libvirt-2-format","read-only":false,"driver":"qcow2","file":"libvirt-2-storage","backing":null} -device ide-hd,bus=ide.0,drive=libvirt-2-format,id=sata0-0-0,bootindex=2 -blockdev {"driver":"file","filename":"/var/lib/libvirt/images/teste-7.qcow2","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"} -blockdev {"node-name":"libvirt-1-format","read-only":false,"driver":"qcow2","file":"libvirt-1-storage","backing":null} -device ide-hd,bus=ide.1,drive=libvirt-1-format,id=sata0-0-1 -netdev tap,fd=36,id=hostnet0 -device e1000e,netdev=hostnet0,id=net0,mac=52:54:00:40:83:e3,bus=pci.1,addr=0x0 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -device usb-tablet,id=input0,bus=usb.0,port=1 -vnc 0.0.0.0:0 -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pcie.0,addr=0x1 -device virtio-balloon-pci,id=balloon0,bus=pci.2,addr=0x0 -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny -msg timestamp=on
Bem diferente do comando do Packer:
/usr/bin/qemu-system-x86_64 -machine pc-q35-5.2,accel=kvm,usb=off -vnc 0.0.0.0:34 -device e1000e,netdev=user.0 -qmp unix:build/esxi-boot.qcow2.monitor,server,nowait -cpu host,migratable=on,kvm=off -netdev bridge,id=user.0,br=br0 -m 14848M -smp cpus=8,sockets=8 -drive file=build/esxi-boot.qcow2,if=ide,cache=writeback,discard=ignore,format=qcow2 -drive file=/root/.cache/packer/f68f85decef8c2ba7d516d6f46ff8b0b3932f65c.iso,media=cdrom -boot once=d -name esxi-boot.qcow2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.