GCE does not boot the ViciBox ISO like a laptop hypervisor. The path that worked was: install ViciBox 12 in a lab, export the disk, import it to GCE, repair virtio and the boot chain, finish the VICIdial application, then prove NAT, certificates, carrier SIP, agent phones, and campaign traffic before handover.
This is a first-person build log from one environment. Partition layouts, interface names, installer workarounds, versions, permissions, and paths are environment-specific. Use them as evidence of what to check, not as universal values to paste.
What this build proves
It proves that a ViciBox 12 / VICIdial stack can run on Google Compute Engine[1] with web admin and agent interfaces, Asterisk, MariaDB, agent softphones, and carrier SIP trunks handling live traffic. It does not prove that every ViciBox 12 build is supportable, current, or secure today.
Choose your path: start with prerequisites if you are planning a lab import; go to the build sequence for the phases; or use the virtio checklist if an imported disk will not boot. For scope and handover, review the VICIdial installation service in Indonesia.
Installed boot disk. Install in the lab, then export the disk for GCE. See disk import.
Bootable VM. A working GRUB screen is not proof that Linux can see its root disk. The virtio check verifies the initramfs before the next boot.
Verified calls. After Express and edge configuration, require persistence and two-way audio checks, not merely a registered phone or a ring.
What made it difficult
The hard parts were not a single command. They were the boundaries between the lab appliance, Google’s disk and firmware model, the VICIdial installer, and the carrier network.
- Boot: GRUB can look healthy while dracut never finds the root filesystem. Fix virtio in the initramfs, not only the bootloader.
- Lab baggage: VirtualBox NIC rules and guest tools can survive the import and break DHCP, SSH, or system services.
- Application: SSH is not a dialer. Express must land the VICIdial application tree, permissions, and services.
- Installer edges: on our 12.x copy, the
--skipexternalpath called undefineddebugoutput. Patch only a temporary copy, never the packaged installer in place. - Cloud telephony: the external IP and NAT story must match sip/pjsip and VICIdial database rows; carrier caller ID and firewall rules must be proven with a real call.
Prepare the lab and GCE target
- A ViciBox 12 lab install you can export, with a documented disk layout and a recovery snapshot.
- A GCE project, a dedicated VPC, and a target region near agents and carriers.
- A rescue VM path for boot repair and a custom-image workflow.[2]
- A maintenance window and a rollback copy before any disk or installer mutation.
- A public DNS name, certificate plan, carrier details, and one test softphone.
Use the official VICIdial project and current ViciBox release documentation for downloads.[3] Do not treat an old ISO link or a marketplace shortcut as a current supported baseline.
Define go-live gates before touching the disk
Disk: the imported disk survives stop/start and reaches a real root filesystem.
Application: VICIdial web, Asterisk, MariaDB, and required services survive a reboot.
Edge: the planned FQDN and TLS path work; temporary IP access is not the handover state.
Carrier: a controlled originate succeeds with the correct caller ID.
Agent: a real softphone registers and completes a manual call.
Floor: a campaign runs under supervision with lists and prefixes that match the carrier dial pattern.
Run the build sequence
The phases below are ordered. Do not jump to carrier testing because the console looks healthy.
Phase A: Disk onto GCE
Install ViciBox 12 in the lab, export the boot disk, and import it into GCE as a custom image or disk. Do not expect a cloud DVD wizard. Early imports taught us that GRUB can look healthy while the guest never reaches a real root filesystem.
Phase B: Boot repair
Stop the broken VM, attach the boot disk to a rescue VM in the same zone, mount root and EFI (our working case: root part4, EFI part2), chroot, add virtio drivers to dracut, rebuild initrds, and regenerate GRUB. UEFI_COMPATIBLE helps firmware/GRUB; it does not replace virtio in the initramfs.
Read-only check: from the rescue chroot, run lsinitrd /boot/initrd-<target-kernel-version> | grep virtio on the imported system’s rebuilt initramfs. Substitute the kernel selected in its GRUB entry, not the rescue VM’s running kernel. Verify the required storage driver is present before detaching the disk; this check does not prove that the VM boots.
State-changing boot repairRun in a rescue chroot
add_drivers+=" virtio virtio_pci virtio_pci_modern_dev virtio_pci_legacy_dev virtio_ring virtio_scsi virtio_blk virtio_net scsi_mod sd_mod "
console=tty0 console=ttyS0,38400n8 net.ifnames=0 biosdevname=0 plymouth.enable=0
Phase C: Network and first production-shaped VM
Serial login without SSH usually means VirtualBox NIC rules still own the story. Delete /etc/udev/rules.d/70-persistent-net.rules, write DHCP ifcfg for eth0/eth1/ens4, bake a UEFI custom image, and launch the production host on a dedicated VPC with a static external IP and tight firewall tags.
State-changing network repairConfirm interface names first
rm -f /etc/udev/rules.d/70-persistent-net.rules
for iface in eth0 eth1 ens4; do
printf 'STARTMODE=auto\nBOOTPROTO=dhcp\n' > /etc/sysconfig/network/ifcfg-$iface
done
Phase D: Express (VICIdial application)
Snapshot the disk, then run Express from a temporary copy of the installer with --skipexternal so cloud NAT is under your control. On our 12.x tree the skipexternal path called undefined debugoutput; a no-op on the copy fixed it. Never edit the packaged installer in place.
State-changing application installSnapshot and use a temporary copy
sub debugoutput { return; }
# Copy the installer tree to a temp workdir first, then:
printf 'y\n' | perl /root/vicibox-install-tmp/vicibox-install.pl \
--vicibox-express \
--skipexternal \
> /root/vicibox-install-tmp/express.stdout \
2> /root/vicibox-install-tmp/express.stderr
If the admin UI returns 500, /etc/astguiclient.conf must be readable by Apache (640 root:www on this stack). Agent UI 200 and an admin login challenge mean the application is alive. Rotate the default high-level admin before the host is treated as production.
State-changing permission repairVerify ownership on your stack
chgrp www /etc/astguiclient.conf
chmod 640 /etc/astguiclient.conf
systemctl reload apache2 || systemctl restart apache2
Phase E: NAT, edge, and certificates
vicibox-externipwith the static external IP.sip.conf/pjsip.confexternal addresses and localnet for the VPC CIDR. See the Asterisk SIP documentation for the concepts.[4]- Database server rows aligned to the same external identity.
- Firewall: SSH restricted; web controlled; SIP/RTP only as the carrier design requires. Never open everything to debug.
- FQDN and certificates for HTTPS and any SIP-TLS trunks. On our host, Let’s Encrypt material was wired for the public name; Apache and Asterisk can need separate install paths.
http://<ip>/ may return 403 while /agc/vicidial.php and /vicidial/admin.php are the real surfaces. Treat that as a routing check, not proof that the host is ready.
Phase F: Carrier SIP and production floor
- Define carriers in VICIdial with dialplan patterns that match how you build numbers. A campaign prefix plus national mobile form must hit the real trunk string; never invent a string the dialplan does not own.
- Carrier caller ID rules matter. Bare originates without caller ID can fail even when the trunk is healthy.
- Agent phones: UDP SIP registration to the host; the registration password is not always the same field as the agent UI login password.
- Campaigns, lists, hopper or owner-dial rules, and local call-time/GMT must match where agents and customers actually are.
- Inbound DIDs and secondary trunks only after the primary PSTN path is proven.
- Day-2 operations: dead-call cleanup, list reset hygiene, monitoring. Production is a living system, not one green check.
Prove go-live with a trunk qualify/register, a controlled originate with correct caller ID, a registered agent softphone, a manual dial that rings a real handset, and then campaign traffic under supervision. Freeze a post-cutover snapshot and UEFI custom image once that holds across stop/start.
Once the installation passes those gates, use the VICIdial optimization checklist to investigate lead supply, hopper fill, agent state, transfers, and reporting before deciding to rebuild. For hands-on diagnosis of an existing floor, see the VICIdial optimization service. Adding WhatsApp calling is a separate integration, not a shortcut around carrier testing; the WhatsApp SIP implementation pattern covers permission checks, TLS, routing, and acceptance tests.
Observed results
These are the results on our build, not a promise about another environment.
| Platform | GCE, region near agents/carriers, 4 vCPU class, dedicated VPC |
|---|---|
| OS / app | openSUSE Leap 15.6, ViciBox 12, PHP 8.2, Apache |
| Telephony core | Asterisk 18 (vici build), MariaDB 10.11, asterisk database populated |
| Web | Agent and admin UIs live; production FQDN/TLS in operation |
| Connectivity | Static external IP, NAT set, carrier SIP trunks in production use |
| Floor | Agent softphones, campaigns/lists, outbound and configured inbound traffic live |
| Continuity | Stop/start persistence, snapshots, reusable UEFI custom image |
Rebuild path: launch a new instance from the golden image with UEFI guest OS features, the same VPC and network tags, and a static IP as needed. Restore carrier secrets from your vault, never from this article. Confirm the trunk and one agent phone before opening the floor.
Verify before handover
Persistence: the instance reaches the app after a full stop/start, not only a reboot.
FQDN/TLS: the planned public name and certificate work; temporary IP access is retired.
Carrier: a controlled originate succeeds with the correct caller ID, and inbound works if in scope.
Agent: one real softphone registers and completes a manual dial with two-way audio.
Records: the test call produces the expected lead, disposition, report entry, and recording policy.
Security: installer defaults are rotated, secrets are outside the repo, and the current web-runtime advisory has been reviewed.
Use the go-live gates as the source of truth. A trunk that says “registered” without a successful originate and caller ID is not proven. An agent account without a real call is not proven. A campaign before lists and prefixes match the carrier dial pattern is not proven.
Limits and current status
This is a historical build record. ViciBox 13.1 is the current stable release, and ViciBox 12 required security fixes that are outside the scope of this installation log.[5] Partition layouts, interface names, installer workarounds, versions, permissions, and paths are environment-specific. The article does not establish that ViciBox 12 is supported, secure, or the right baseline for a new deployment.
If you are planning a new build, start from current vendor documentation and the current security advisory. Keep recovery available: snapshots, a tested restore path, carrier credentials in a vault, and a rollback owner.
Quick answers
Short answers for the questions this build log already answers. Details remain in the phases above.
How much does ViciBox on GCE cost?
Budget a steady VM, disk and snapshot storage, and usually a static external IP. Carrier minutes and operator time dominate once agents are live. The cost shape above is an example, not a quote.
Why not a marketplace appliance or “cloud ISO” install?
There is no trustworthy one-click DVD path for this build. Importing a lab disk and repairing virtio, NAT, Express, and carrier routing is the path that worked. See the build sequence.
Virtio / boot repair checklist
Attach the disk to a rescue VM in the same zone; mount and
chroot.Add virtio block/SCSI drivers to dracut and rebuild the initramfs.
Verify with
lsinitrdthat virtio modules are present.Fix GRUB serial or legacy NIC naming baggage from the lab hypervisor when needed.
Build a
UEFI_COMPATIBLEcustom image and confirm SSH after stop/start.Only then run Express and application configuration. Full narrative: Phase B.
SIP/RTP ports and NAT on public cloud
Treat the dialer as a public-cloud PBX: one consistent external IP/NAT story, tight firewall tags, and carrier-shaped SIP/RTP. Keep SSH restricted, web controlled, and SIP/RTP limited to the trunk design. See Phase E.
Agent softphone path
Prove one phone end-to-end before campaigns. On our build, agent phones registered over UDP SIP while trunks followed the carrier path. Create the phone, register the softphone, place a manual dial with the correct caller ID, and hear the far end. Pick WebRTC or UDP and document it; do not mix casually.
Go-live gates and “not proven” list
- Not proven: import without stop/start persistence.
- Not proven: UI only on a temporary IP without the planned FQDN/TLS path.
- Not proven: a trunk “registered” without a successful originate and correct caller ID.
- Not proven: an agent account that has never placed a real call.
- Not proven: campaign traffic before lists and prefixes match the carrier dial pattern.
FAQ
Can you install ViciBox 12 on Google Compute Engine?
Yes, as a historical build path: install in a lab, import the disk, repair virtio and boot, then run Express. This is not a current recommendation for a new production deployment. Review ViciBox 13.1 and the security advisory first.
Why does an imported ViciBox disk hang at boot on GCE?
The usual cause is missing virtio drivers in the initramfs. Attach the disk to a rescue VM, mount and chroot, add virtio to dracut, rebuild the initramfs, and verify with lsinitrd.
How much does it cost to run ViciBox on GCE?
Budget a steady Compute Engine VM, disk and snapshot storage, and usually a static external IP. Carrier minutes, DIDs, and operator time sit outside the Google invoice. This article gives an example shape, not a quote.
What SIP/RTP ports should be open?
Only what the carrier design requires, on a dedicated VPC and firewall tags. Keep SSH restricted and web access controlled. Never open every port to debug.
What counts as production go-live?
A successful carrier originate with the correct caller ID, a registered agent phone, a real test call, and services that survive stop/start. SSH and a green Apache page are not enough.
Is ViciBox 12 still the current baseline?
No. ViciBox 13.1 is the current stable release announced on 23 November 2026. ViciBox 12 also required the PHP2Shell fix; check the current security advisory before reusing this build.
Summary
Possible on Google Cloud? Yes, as a historical ViciBox 12 build. The hard parts were the disk import and virtio boot repair, cleaning lab NIC baggage, finishing Express correctly, and then the real work of NAT, certificates, carrier SIP, agent registration, and campaign math.
What to repeat: a dedicated VPC, snapshots before Express and trunk cutover, temporary installer patches only, UI proof before trunks, trunk proof before the floor, and a frozen UEFI image after stop/start holds.
What “done” means here: a production dialer on GCE with carrier SIP and agents placing real calls, built from a documented import path rather than a fictional one-click ISO install.
Sources and evidence notes
Source references are retained from the build record. Review current Google Cloud, ViciBox, VICIdial, and Asterisk documentation before reuse. The build results are firsthand evidence from one environment; they are not a universal compatibility matrix, and this article does not revalidate ViciBox 12 as a current secure baseline.
- Google Compute Engine cloud.google.com
- Import an existing image cloud.google.com
- VICIdial vicidial.org
- Asterisk SIP configuration docs.asterisk.org
- ViciBox v.13.1.0 released vicibox.com