def do_install():
info('Starting up VM for unattended install')
vm_proc = sh_spawn(
'bhyve -m ${MEMSIZE} -c ${CORES} -A -H -P',
'-s 3:0,ahci-hd,${destdir}/boot.img',
'-s 4:0,ahci-hd,${destdir}/hd1.img',
'-s 5:0,ahci-hd,${destdir}/hd2.img',
'-s 6:0,ahci-cd,${isopath}',
'-s 7:0,virtio-net,${tapdev}',
'-s 8:0,fbuf,tcp=5900,w=1024,h=768',
'-s 31,lpc',
'-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd',
'${VM_NAME}'
)
try:
vm_proc.wait(timeout=3600)
except subprocess.TimeoutExpired:
fail('Install timed out after 1 hour')
评论列表
文章目录