Hi,
I have a non vRack dedicated server with latest Proxmox 4.0 beta2, and I want to create at least one LXC container with some public IPs. The (mandatory?) gateway for bridged VM network configuration on (non vRack) OVH dedicated servers is [First three host IP's octets].254 (for example 188.165.1.1 would be 188.165.1.254), and 255.255.255.255 netmask. I am not very networking knowledgeable (yet) but after some investigation I found this output at (succesful) CT creation:
and the recently created CT isn't able to start, this is the log (got it by manually starting the container with --logfile):
/etc/pve/lxc/199.conf is properly created but /var/lib/lxc/199/config isn't at all, but it gets immediately created after deleting the network device from Proxmox GUI (no need for any action, just delete the device and "ls /var/lib/lxc/199/" show it's there).
Re-adding the network device from the GUI gets the "IP address" and "Gateway" fields empty just after clicking "Apply". Manually adding the "lxc.network.ipv4" and "lxc.network.ipv4.gateway" on /var/lib/lxc/199/config also gets them empty (and deleted from the /var/lib/lxc/199/config file) at CT start.
I think this should be a relatively very easy fix in the parser part, but please, if possible, show me a hacky workaround (even using another networking scheme - unless it's too complicated/undocumented for a beginner).
I'd greatly appreaciate some help just to get it working ASAP and after that I don't mind giving server access to devs for testing of potential permanent solutions for the problem (unless it requires a reboot or very high CPU/IO/RAM, I'm okay with whatever).
Thank you very much in advance.
PS: if it matters, I've got a /27 and several /32, but the ideal thing is to be able to use some of the addresses of the /27 for the main LXC container, and leave some others for another containers and VMs.
I have a non vRack dedicated server with latest Proxmox 4.0 beta2, and I want to create at least one LXC container with some public IPs. The (mandatory?) gateway for bridged VM network configuration on (non vRack) OVH dedicated servers is [First three host IP's octets].254 (for example 188.165.1.1 would be 188.165.1.254), and 255.255.255.255 netmask. I am not very networking knowledgeable (yet) but after some investigation I found this output at (succesful) CT creation:
Code:
[COLOR=#000000][FONT=tahoma]extracting archive '/var/lib/vz/template/cache/ubuntu-14.04-standard_14.04-1_amd64.tar.gz'[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]Total bytes read: 437422080 (418MiB, 147MiB/s)[/FONT][/COLOR]
[COLOR=#000000][FONT=tahoma]Detected container architecture: amd64[/FONT][/COLOR]
[U][COLOR=#ff0000][FONT=tahoma]unable to parse ipv4 address/mask[/FONT][/COLOR][/U]
[COLOR=#000000][FONT=tahoma]TASK OK[/FONT][/COLOR]
and the recently created CT isn't able to start, this is the log (got it by manually starting the container with --logfile):
Code:
lxc-start 1442719037.698 ERROR lxc_conf - conf.c:run_buffer:336 - Script exited with status 2
lxc-start 1442719037.698 ERROR lxc_conf - conf.c:lxc_setup:3827 - failed to run mount hooks for container '199'.
lxc-start 1442719037.698 ERROR lxc_start - start.c:do_start:702 - failed to setup the container
lxc-start 1442719037.698 ERROR lxc_sync - sync.c:__sync_wait:51 - invalid sequence number 1. expected 2
lxc-start 1442719037.728 ERROR lxc_start - start.c:__lxc_start:1172 - failed to spawn '199'
lxc-start 1442719042.935 ERROR lxc_start_ui - lxc_start.c:main:344 - The container failed to start.
lxc-start 1442719042.935 ERROR lxc_start_ui - lxc_start.c:main:346 - To get more details, run the container in foreground mode.
lxc-start 1442719042.935 ERROR lxc_start_ui - lxc_start.c:main:348 - Additional information can be obtained by setting the --logfile and --logpriority options.
/etc/pve/lxc/199.conf is properly created but /var/lib/lxc/199/config isn't at all, but it gets immediately created after deleting the network device from Proxmox GUI (no need for any action, just delete the device and "ls /var/lib/lxc/199/" show it's there).
Re-adding the network device from the GUI gets the "IP address" and "Gateway" fields empty just after clicking "Apply". Manually adding the "lxc.network.ipv4" and "lxc.network.ipv4.gateway" on /var/lib/lxc/199/config also gets them empty (and deleted from the /var/lib/lxc/199/config file) at CT start.
I think this should be a relatively very easy fix in the parser part, but please, if possible, show me a hacky workaround (even using another networking scheme - unless it's too complicated/undocumented for a beginner).
I'd greatly appreaciate some help just to get it working ASAP and after that I don't mind giving server access to devs for testing of potential permanent solutions for the problem (unless it requires a reboot or very high CPU/IO/RAM, I'm okay with whatever).
Thank you very much in advance.
PS: if it matters, I've got a /27 and several /32, but the ideal thing is to be able to use some of the addresses of the /27 for the main LXC container, and leave some others for another containers and VMs.
Last edited: