tteck / Proxmox

Proxmox VE Helper-Scripts
https://Helper-Scripts.com
MIT License
14.43k stars 2.37k forks source link

Script to make a OpenWrt VM fails #3600

Closed winbo-yml-exe closed 2 months ago

winbo-yml-exe commented 2 months ago

Please verify that you have read and understood the guidelines.

yes

A clear and concise description of the issue.

When trying to make a OpenWrt VM on Proxmox Virtual Enviroment 8.2.4, it fails with error [ERROR] in line 472: exit code 5: while executing command pvesm alloc $STORAGE $VMID $DISK0 4M >&/dev/null.

Giving the VM more RAM and cores makes it work, but later on errors with [ERROR] in line 130: exit code 255: while executing command qm sendkey $VMID "$character".

What settings are you currently utilizing?

Default Settings

Which Linux distribution are you employing?

Debian 12

If relevant, including screenshots or a code block can be helpful in clarifying the issue.

No response

Please provide detailed steps to reproduce the issue.

  1. Open Proxmox VE shell
  2. Run the script with default settings
tteck commented 2 months ago

🏁 The script runs without any problems from this end.

   ____                 _       __     __
  / __ \____  ___  ____| |     / /____/ /_
 / / / / __ \/ _ \/ __ \ | /| / / ___/ __/
/ /_/ / /_/ /  __/ / / / |/ |/ / /  / /_
\____/ .___/\___/_/ /_/|__/|__/_/   \__/
    /_/ W I R E L E S S   F R E E D O M

Using Advanced Settings
Virtual Machine ID: 111
Using Hostname: openwrt
Allocated Cores: 1
Allocated RAM: 256
Using WAN Bridge: vmbr0
Using LAN Bridge: vmbr0
Using LAN IP ADDRESS: 192.168.1.1
Using LAN NETMASK: 255.255.255.0
Using WAN MAC Address: 02:BD:B2:C2:77:8B
Using LAN MAC Address: 02:44:C4:EA:58:5D
Using WAN Vlan: Default
Using LAN Vlan: 999
Using Interface MTU Size: Default
Start VM when completed: no
Creating a OpenWrt VM using the above advanced settings
 ✓ Using thin-pool for Storage Location.
 ✓ Virtual Machine ID is 111.
 ✓ https://downloads.openwrt.org/releases/23.05.4/targets/x86/64/openwrt-23.05.4-x86-64-generic-ext4-combined.img.gz
 ✓ Downloaded openwrt-23.05.4-x86-64-generic-ext4-combined.img.gz
 ✓ Extracted & Resized OpenWrt Disk Image openwrt-23.05.4-x86-64-generic-ext4-combined.img
 ✓ Created OpenWrt VM (openwrt)
 ✓ Network interfaces are being configured as OpenWrt initiates.
Sending line: 
Sending line: uci delete network.@device[0]
Sending line: uci set network.wan=interface
Sending line: uci set network.wan.device=eth1
Sending line: uci set network.wan.proto=dhcp
Sending line: uci delete network.lan
Sending line: uci set network.lan=interface
Sending line: uci set network.lan.device=eth0
Sending line: uci set network.lan.proto=static
Sending line: uci set network.lan.ipaddr=192.168.1.1
Sending line: uci set network.lan.netmask=255.255.255.0
Sending line: uci set firewall.@zone[1].input='ACCEPT'
Sending line: uci set firewall.@zone[1].forward='ACCEPT'
Sending line: uci commit
Sending line: halt
 ✓ Network interfaces have been successfully configured.
 ✓ Bridge interfaces have been successfully added.
 ✓ Completed Successfully!

🧐 As this issue is unrelated to the script, it is considered closed.

winbo-yml-exe commented 2 months ago

Yeah i just found out the problem was it doesn't work on 8.2.4.

tteck commented 2 months ago

Not true, I'm on 8.2.4

root@server:~# pveversion
pve-manager/8.2.4/faa83925c9641325 (running kernel: 6.8.12-1-pve)
winbo-yml-exe commented 2 months ago

In that case, i don't really know.

tteck commented 2 months ago

Are you using SSH?