Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 iventoy in lxc Container (proxmox)
#1
Hi, I want to test iventoy in a lxc container in proxmox 8. Headless (without Desktop)

so far everything is ok

Code:
root@iventoy:~/iventoy-1.0.02# bash iventoy.sh start
iventoy.sh: line 26: warning: command substitution: ignored null byte in input
iventoy start SUCCESS PID=325

Please open your browser and visit http://127.0.0.1:26000

root@iventoy:~/iventoy-1.0.02# bash iventoy.sh status
iventoy.sh: line 26: warning: command substitution: ignored null byte in input
iventoy is running, PID=325

Please open your browser and visit http://127.0.0.1:26000


If I now try to access the webinterface with the assigned lxc ip address, e.g. http://192.168.178.207:26000 the website is not reachable.
Can you help me?


thx Chris

edit: same problem in Proxmox Host. In a LinuxMintVM no Problem
edit2:

logfile lxc unpriviliged:
Code:
2023/06/25 13:09:15.835 [PXE]  ==========================================================
2023/06/25 13:09:15.835 [PXE]  ##########################################################
2023/06/25 13:09:15.835 [PXE]  ##################### IVENTOY RUN ########################
2023/06/25 13:09:15.835 [PXE]  ##########################################################
2023/06/25 13:09:15.835 [PXE]  ==========================================================
2023/06/25 13:09:15.836 [UTIL] Failed to open file <./data/sys/class/dmi/id/product_uuid> errno:13
2023/06/25 13:09:15.836 [UTIL] read sys directory failed, errno:13
2023/06/25 13:09:15.836 [PXE]  iVentoy entering main loop ...

logfile lxc priviliged
Code:
2023/06/25 13:17:19.238 [PXE]  ==========================================================
2023/06/25 13:17:19.238 [PXE]  ##########################################################
2023/06/25 13:17:19.238 [PXE]  ##################### IVENTOY RUN ########################
2023/06/25 13:17:19.238 [PXE]  ##########################################################
2023/06/25 13:17:19.238 [PXE]  ==========================================================
2023/06/25 13:17:19.244 [PXE]  Module <Log> init start ...
2023/06/25 13:17:19.244 [PXE]  Module <Log> init OK ...
2023/06/25 13:17:19.244 [PXE]  Module <Plat> init start ...
2023/06/25 13:17:19.244 [UTIL] Old system max open files: [1024    1048576]
2023/06/25 13:17:19.244 [UTIL] New system max open files: [32768    32768]
2023/06/25 13:17:19.244 [PXE]  Module <Plat> init OK ...
2023/06/25 13:17:19.244 [PXE]  Module <Cfg> init start ...
2023/06/25 13:17:19.245 [PXE]  Module <Cfg> init OK ...
2023/06/25 13:17:19.245 [PXE]  Module <MAC> init start ...
2023/06/25 13:17:19.245 [PXE]  mac addr db init ...
2023/06/25 13:17:19.420 [PXE]  mac addr db init OK, total 49002 records
2023/06/25 13:17:19.420 [PXE]  Module <MAC> init OK ...
2023/06/25 13:17:19.420 [PXE]  Module <Tarfs> init start ...
2023/06/25 13:17:19.464 [PXE]  iventoy.dat <6669936> <13465600> <4c9dc329>
2023/06/25 13:17:19.855 [PXE]  Extract iventoy.dat success.
2023/06/25 13:17:19.855 [PXE]  ======= iVentoy 1.0.03 ========
2023/06/25 13:17:19.856 [PXE]  tarfs find 159 files
2023/06/25 13:17:19.856 [PXE]  Module <Tarfs> init OK ...
2023/06/25 13:17:19.856 [PXE]  Module <OS> init start ...
2023/06/25 13:17:19.856 [PXE]  cpio buf:0x7f50a6661210 len:3397632 fixoff:0
2023/06/25 13:17:19.857 [PXE]  Module <OS> init OK ...
2023/06/25 13:17:19.857 [PXE]  Module <IMG> init start ...
2023/06/25 13:17:19.857 [PXE]  Scan iso directory for all image files ...
2023/06/25 13:17:19.857 [PXE]  ================= PXE IMG DUMP =================
2023/06/25 13:17:19.857 [PXE]  ================================================
2023/06/25 13:17:19.857 [PXE]  Module <IMG> init OK ...
2023/06/25 13:17:19.857 [PXE]  Module <DHCP> init start ...
2023/06/25 13:17:19.857 [PXE]  Module <DHCP> init OK ...
2023/06/25 13:17:19.857 [PXE]  Module <TFTP> init start ...
2023/06/25 13:17:19.857 [PXE]  Module <TFTP> init OK ...
2023/06/25 13:17:19.857 [PXE]  Module <HTTP> init start ...
2023/06/25 13:17:19.861 [HTTP] HTTP API service is running on 127.0.0.1:26000 ...
2023/06/25 13:17:19.911 [PXE]  Module <HTTP> init OK ...
2023/06/25 13:17:19.911 [PXE]  Module <NBD> init start ...
2023/06/25 13:17:19.912 [PXE]  Module <NBD> init OK ...
2023/06/25 13:17:19.912 [PXE]  <535735305a57776f55696b67513256735a584a76626968534b53424b4e4445774e53424455465567514341784c6a557752306836>
2023/06/25 13:17:19.912 [PXE]  <596a557a4d574d314f47557a4f4463304d54466c595467344e6d5930597a55794e6a4a695954466c5957453d>
2023/06/25 13:17:19.912 [PXE]  e762bdb6e0055459272f7b2b0eda25fe429c27966cec5aa71041111be150c00a
2023/06/25 13:17:19.912 [PXE]  license file not exist.
2023/06/25 13:17:19.912 [PXE]  ====================== SYSTEM IP LIST ===================================
2023/06/25 13:17:19.912 [PXE]  [1] 192.168.178.207  255.255.255.0    192.168.178.1    eth0
2023/06/25 13:17:19.912 [PXE]  =========================================================================
2023/06/25 13:17:19.912 [PXE]  PXE cofigure recovery ...
2023/06/25 13:17:19.912 [PXE]  data/config.dat not found, no need for recovery.
2023/06/25 13:17:19.912 [PXE]  iVentoy entering main loop ...

logfile test in host
Code:
2023/06/25 13:12:04.043 [PXE]  ==========================================================
2023/06/25 13:12:04.043 [PXE]  ##########################################################
2023/06/25 13:12:04.043 [PXE]  ##################### IVENTOY RUN ########################
2023/06/25 13:12:04.043 [PXE]  ##########################################################
2023/06/25 13:12:04.044 [PXE]  ==========================================================
2023/06/25 13:12:04.048 [PXE]  Module <Log> init start ...
2023/06/25 13:12:04.048 [PXE]  Module <Log> init OK ...
2023/06/25 13:12:04.048 [PXE]  Module <Plat> init start ...
2023/06/25 13:12:04.049 [UTIL] Old system max open files: [1024    1048576]
2023/06/25 13:12:04.049 [UTIL] New system max open files: [32768    32768]
2023/06/25 13:12:04.049 [PXE]  Module <Plat> init OK ...
2023/06/25 13:12:04.049 [PXE]  Module <Cfg> init start ...
2023/06/25 13:12:04.049 [PXE]  Module <Cfg> init OK ...
2023/06/25 13:12:04.049 [PXE]  Module <MAC> init start ...
2023/06/25 13:12:04.049 [PXE]  mac addr db init ...
2023/06/25 13:12:04.209 [PXE]  mac addr db init OK, total 49002 records
2023/06/25 13:12:04.209 [PXE]  Module <MAC> init OK ...
2023/06/25 13:12:04.209 [PXE]  Module <Tarfs> init start ...
2023/06/25 13:12:04.244 [PXE]  iventoy.dat <6669936> <13465600> <4c9dc329>
2023/06/25 13:12:04.635 [PXE]  Extract iventoy.dat success.
2023/06/25 13:12:04.636 [PXE]  ======= iVentoy 1.0.03 ========
2023/06/25 13:12:04.636 [PXE]  tarfs find 159 files
2023/06/25 13:12:04.636 [PXE]  Module <Tarfs> init OK ...
2023/06/25 13:12:04.636 [PXE]  Module <OS> init start ...
2023/06/25 13:12:04.636 [PXE]  cpio buf:0x7fe00f663210 len:3397632 fixoff:0
2023/06/25 13:12:04.636 [PXE]  Module <OS> init OK ...
2023/06/25 13:12:04.636 [PXE]  Module <IMG> init start ...
2023/06/25 13:12:04.636 [PXE]  Scan iso directory for all image files ...
2023/06/25 13:12:04.636 [PXE]  ================= PXE IMG DUMP =================
2023/06/25 13:12:04.636 [PXE]  ================================================
2023/06/25 13:12:04.636 [PXE]  Module <IMG> init OK ...
2023/06/25 13:12:04.636 [PXE]  Module <DHCP> init start ...
2023/06/25 13:12:04.636 [PXE]  Module <DHCP> init OK ...
2023/06/25 13:12:04.636 [PXE]  Module <TFTP> init start ...
2023/06/25 13:12:04.636 [PXE]  Module <TFTP> init OK ...
2023/06/25 13:12:04.636 [PXE]  Module <HTTP> init start ...
2023/06/25 13:12:04.637 [HTTP] HTTP API service is running on 127.0.0.1:26000 ...
2023/06/25 13:12:04.687 [PXE]  Module <HTTP> init OK ...
2023/06/25 13:12:04.687 [PXE]  Module <NBD> init start ...
2023/06/25 13:12:04.688 [PXE]  Module <NBD> init OK ...
2023/06/25 13:12:04.688 [PXE]  <535735305a57776f55696b67513256735a584a76626968534b53424b4e4445774e53424455465567514341784c6a557752306836>
2023/06/25 13:12:04.688 [PXE]  <596a557a4d574d314f47557a4f4463304d54466c595467344e6d5930597a55794e6a4a695954466c5957453d>
2023/06/25 13:12:04.688 [PXE]  e762bdb6e0055459272f7b2b0eda25fe429c27966cec5aa71041111be150c00a
2023/06/25 13:12:04.688 [PXE]  license file not exist.
2023/06/25 13:12:04.688 [PXE]  ====================== SYSTEM IP LIST ===================================
2023/06/25 13:12:04.688 [PXE]  [1] 192.168.178.4    255.255.255.0    192.168.178.1    vmbr0
2023/06/25 13:12:04.688 [PXE]  =========================================================================
2023/06/25 13:12:04.688 [PXE]  PXE cofigure recovery ...
2023/06/25 13:12:04.688 [PXE]  data/config.dat not found, no need for recovery.
2023/06/25 13:12:04.688 [PXE]  iVentoy entering main loop ...
Reply
#2
Try  sudo  bash  iventoy.sh  -A  start

With -A option it will listen 0.0.0.0:26000,  maybe it still print message with 127.0.0.1, but actually it should listen on 0.0.0.0, you can check with  netstat -anp
Reply
#3
I am getting same issue inside ubuntu20.04 LXC container on Proxmox 7.4-3.

LXC container config:
Code:
arch: amd64
cores: 1
features: nesting=1
hostname: iventoy
memory: 512
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=16:09:AE:A0:DE:F1,ip=dhcp,type=veth
net1: name=eth1,bridge=vmbr1,firewall=1,hwaddr=6A:E3:0A:55:5F:CE,ip=10.10.100.2/24,type=veth
ostype: ubuntu
rootfs: local-lvm:vm-902-disk-0,size=8G
swap: 0
unprivileged: 1
Reply
#4
@Longpanda: Thanks for the fast support. -A works!!!

@schickes:
write in the lxc.conf:
"unprivileged: 0"
(change the paths) "mp0: /tank/daten/Projekte/iVentoy/iso,mp=/root/iventoy/iso" you can map the ISO directory on a other place on the proxmox node

Than "bash iventoy.sh -A start"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)