You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// unused[n] // Reference to unused volumes. This is used internally, and should not be modified manually.
752
+
}
753
+
754
+
typeUpdateLxcRequeststruct {
755
+
Nodestring// The cluster node name.
756
+
VMIDint// The (unique) ID of the VM.
757
+
ArchLxcArch// OS architecture type.
758
+
CModeLxcConsoleMode// Console mode. By default, the console command tries to open a connection to one of the available tty devices. By setting cmode to 'console' it tries to attach to /dev/console instead. If you set cmode to 'shell', it simply invokes a shell inside the container (no login).
759
+
Consolebool// Attach a console device (/dev/console) to the container.
760
+
Coresint// The number of cores assigned to the container. A container can use all available cores by default.
761
+
CPULimitint// Limit of CPU usage. NOTE: If the computer has 2 CPUs, it has a total of '2' CPU time. Value '0' indicates no CPU limit.
762
+
CPUUnitsint// CPU weight for a container. Argument is used in the kernel fair scheduler. The larger the number is, the more CPU time this container gets. Number is relative to the weights of all the other running guests.
763
+
Debugbool// Try to be more verbose. For now this only enables debug log-level on start.
764
+
Descstring// Description for the Container. Shown in the web-interface CT's summary. This is saved as comment inside the configuration file.
765
+
FeaturesLXCFeatures// Allow containers access to advanced features.
766
+
Hookscriptstring// Script that will be exectued during various steps in the containers lifetime.
767
+
Hostnamestring// Set a host name for the container.
768
+
LockLxcLock// Lock/unlock the container.
769
+
Memoryint// Amount of RAM for the container in MB.
770
+
Nameserverstring// Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.
771
+
Net []LxcNet// Specifies network interfaces for the container.
772
+
OnBootbool// Specifies whether a container will be started during system bootup.
773
+
OSTypestring// OS type. This is used to setup configuration inside the container, and corresponds to lxc setup scripts in /usr/share/lxc/config/<ostype>.common.conf. Value 'unmanaged' can be used to skip and OS specific setup. debian | devuan | ubuntu | centos | fedora | opensuse | archlinux | alpine | gentoo | nixos | unmanaged
774
+
Protectionbool// Sets the protection flag of the container. This will prevent the CT or CT's disk remove/update operation.
775
+
RootFSstring// Use volume as container root (in format "{STORAGE_ID}:{SIZE_IN_GIGS}", i.e. "local-lvm:8", if value not specified it defaults to "local-lvm:8", TODO: make this a struct).
776
+
Searchdomainstring// Sets DNS search domains for a container. Create will automatically use the setting from the host if you neither set searchdomain nor nameserver.
777
+
Startupstring// make this a struct Startup and shutdown behavior. Order is a non-negative number defining the general startup order. Shutdown in done with reverse ordering. Additionally you can set the 'up' or 'down' delay in seconds, which specifies a delay to wait before the next VM is started or stopped.
778
+
Swapint// Amount of SWAP for the container in MB.
779
+
Tagsstring// Tags of the Container. This is only meta information.
780
+
Templatebool// Enable/disable Template.
781
+
Timezonestring// Time zone to use in the container. If option isn't set, then nothing will be done. Can be set to 'host' to match the host time zone, or an arbitrary time zone option from /usr/share/zoneinfo/zone.tab
782
+
TTYint// Specify the number of tty available to the container.
783
+
Unprivilegedbool// Makes the container run as unprivileged user. (Should not be modified manually.)
784
+
// unused[n] // Reference to unused volumes. This is used internally, and should not be modified manually.
785
+
// dev[n] string Device to pass through to the container
786
+
//mp Use volume as container mount point. Use the special syntax STORAGE_ID:SIZE_IN_GiB to allocate a new volume.
787
+
}
788
+
789
+
// Update updates an existing LXC container.
790
+
//
791
+
// PUT /nodes/{node}/lxc/{vmid}/config requires VM.Config.Disk, VM.Config.CPU, VM.Config.Memory, VM.Config.Network, VM.Config.Options permissions.
0 commit comments