Compare commits
2 Commits
feat/rebui
...
fix/pxe_in
| Author | SHA1 | Date | |
|---|---|---|---|
| 3f7c2cd46d | |||
| b626d40fcd |
@@ -122,6 +122,7 @@ EOF
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Creating OPNsense VM using serial image..."
|
echo "Creating OPNsense VM using serial image..."
|
||||||
|
|
||||||
virt-install \
|
virt-install \
|
||||||
--connect "${CONNECT_URI}" \
|
--connect "${CONNECT_URI}" \
|
||||||
--name "${VM_OPN}" \
|
--name "${VM_OPN}" \
|
||||||
@@ -131,11 +132,12 @@ EOF
|
|||||||
--os-variant "${OS_VARIANT_OPN}" \
|
--os-variant "${OS_VARIANT_OPN}" \
|
||||||
--graphics none \
|
--graphics none \
|
||||||
--noautoconsole \
|
--noautoconsole \
|
||||||
--disk path="${disk_opn}",device=disk,bus=virtio,boot.order=1 \
|
--import \
|
||||||
--disk path="${OPN_IMG_PATH}",device=disk,bus=usb,readonly=on,boot.order=2 \
|
--disk path="${OPN_IMG_PATH}",device=disk,bus=sata,boot.order=1 \
|
||||||
|
--disk path="${disk_opn}",device=disk,bus=virtio,boot.order=2 \
|
||||||
--network network=default,model=virtio \
|
--network network=default,model=virtio \
|
||||||
--network network="${NET_HARMONYLAN}",model=virtio \
|
--network network="${NET_HARMONYLAN}",model=virtio \
|
||||||
--boot uefi,menu=on
|
--boot hd,menu=on
|
||||||
|
|
||||||
echo "OPNsense VM created. Connect with: sudo virsh console ${VM_OPN}"
|
echo "OPNsense VM created. Connect with: sudo virsh console ${VM_OPN}"
|
||||||
echo "The VM will boot from the serial installation image."
|
echo "The VM will boot from the serial installation image."
|
||||||
|
|||||||
Reference in New Issue
Block a user