K karunakaran m s New Member Mar 22, 2021 3 0 1 37 Apr 1, 2021 #1 i am developing API , i need NoVNC code to run anybody can help me
Moayad Proxmox Staff Member Staff member Jan 2, 2020 3,342 324 108 31 Vienna shop.proxmox.com Apr 1, 2021 #2 sorry, I didn't clearly understand your request, what do you need exactly? as I understood you need the NoVNC code - if so, you can find it here [0] [0] https://git.proxmox.com/?p=novnc-pve.git;a=summary
sorry, I didn't clearly understand your request, what do you need exactly? as I understood you need the NoVNC code - if so, you can find it here [0] [0] https://git.proxmox.com/?p=novnc-pve.git;a=summary
K karunakaran m s New Member Mar 22, 2021 3 0 1 37 Apr 1, 2021 #3 i am php developer i want to run VNC Console this is my code when i run this code its getting timeout <?php require("pve2_api.class.php"); $pve2 = new PVE2_API("103.108.117.173", "root", "pam", "xyzzz"); if ($pve2->login()) { $node = 'host172'; $vmid = 1115; $pve2->setCookie(); $new_container_settings = array(); $config = $pve2->post("/nodes/".$node."/qemu/".$vmid."/vncproxy",$new_container_settings); $websock =$pve2->get('/nodes/host172/qemu/1115/vncwebsocket', [ 'vncticket' => $config['ticket'], 'port' => $config['port'] ]); $posttt=$config['port']; $ticket=$config['ticket']; $fvvv="api2/json/nodes/host172/kvm/1115/vncwebsocket?port=".$posttt."&vncticket=".$ticket; echo $fvvvff= 'https://103.108.117.173:8006/?conso...on/nodes/host172/qemu/1115/vncwebsocket?port=' . $posttt . '&vncticket=' . $ticket; echo $fvv='https://kanaka.github.io/noVNC/noVNC/vnc_auto.html?host=103.108.117.172&port=5900&password=xyzzz&encrypt=1&true_color=1&shared=1&view_only=0&path='.urlencode($fvvv).''; ?> <iframe src="<?php echo $fvv;?>" frameborder="0" scrolling="no" width="1024px" height="100%"></iframe> <iframe src="<?php echo $fvvvff;?>" frameborder="0" scrolling="no" width="1024px" height="100%"></iframe>
i am php developer i want to run VNC Console this is my code when i run this code its getting timeout <?php require("pve2_api.class.php"); $pve2 = new PVE2_API("103.108.117.173", "root", "pam", "xyzzz"); if ($pve2->login()) { $node = 'host172'; $vmid = 1115; $pve2->setCookie(); $new_container_settings = array(); $config = $pve2->post("/nodes/".$node."/qemu/".$vmid."/vncproxy",$new_container_settings); $websock =$pve2->get('/nodes/host172/qemu/1115/vncwebsocket', [ 'vncticket' => $config['ticket'], 'port' => $config['port'] ]); $posttt=$config['port']; $ticket=$config['ticket']; $fvvv="api2/json/nodes/host172/kvm/1115/vncwebsocket?port=".$posttt."&vncticket=".$ticket; echo $fvvvff= 'https://103.108.117.173:8006/?conso...on/nodes/host172/qemu/1115/vncwebsocket?port=' . $posttt . '&vncticket=' . $ticket; echo $fvv='https://kanaka.github.io/noVNC/noVNC/vnc_auto.html?host=103.108.117.172&port=5900&password=xyzzz&encrypt=1&true_color=1&shared=1&view_only=0&path='.urlencode($fvvv).''; ?> <iframe src="<?php echo $fvv;?>" frameborder="0" scrolling="no" width="1024px" height="100%"></iframe> <iframe src="<?php echo $fvvvff;?>" frameborder="0" scrolling="no" width="1024px" height="100%"></iframe>