Thank you, @_gabriel -- I've updated to timeout 3, that seems very sensible!
I would enjoy seeing others' fstab configurations as examples if anyone would like to share :-) thanks all
Hi, I'm having an issue with ensuring the physical drives on my proxmox hosts mount reliably after a reboot. Right now my /etc/fstab looks like this:
LABEL=SSD1 /mnt/SSD1 ext4 rw,noatime,nofail,x-systemd.device-timeout=1,errors=remount-ro 0 2
LABEL=SSD2 /mnt/SSD2 ext4...
It must have been something like that.. I can't remember the exact configuration. But it was bad enough that I want a bit of reassurance that bind mounts can be rw mounted on multiple containers without conflict :-)
A quick validation question for the gurus here:
Is it possible to bind mount a host directory to multiple LXC containers and not run into disk write conflicts?
Let's say there is a folder [or entire drive] on the host at /mnt/ssd/myfolder. And I have multiple unprivileged LXC containers, say...
Just in case someone comes across this post, this worked for me:
https://forum.proxmox.com/threads/prevent-access-to-local-network-from-vm.116799/post-505458
Thank you for your response @oguz
root@pve:~# cat /etc/pve/firewall/cluster.fw
[group ssh-in]
IN SSH(ACCEPT) -log nolog
[group windows-lock]
OUT DROP -log nolog
root@pve:~# cat /etc/pve/firewall/100.fw
[RULES]
OUT DROP -i net0 -dest 192.168.1.0/24 -log nolog
I'm experimenting with the Security Group feature for the first time. I've read the documentation but can't quite put my finger on it...
I have a KVM running LMDE and want it to be able to access the internet, but not any devices on the LAN. The use case is to give users linux virtual machines...
Hi all- I'm just curious how often you all reboot your hosts? I suppose it's the same as a more general question of how often to reboot a fairly plain debian box. But I'm just curious, anecdotally what sort of frequency you do so.
I use unattended-upgrades and it sends me an email whenever an...
Thank you @dcsapak. Here is the result of my smartctl investigation:
# smartctl -t short /dev/sdc
# smartctl -a /dev/sdc
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.11.22-2-pve] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION...
Not sure if this is a proxmox 7 thing or not, but I thought I would post it here. What does it mean when the Wearout indicator is a negative number? I haven't seen that before. Running VE version 7.0-10
Right now it has a PCIe SSD which is the boot drive. And after I removed a PCIe card (Sonnet Tempo Pro card that holds two 2.5" SSDs) last night, it only has SATA drives now (all ext4, no RAID, no ZFS or anything modern/fancy like that). And there are no thumb drives or external drives.
I have...
Thank you, Thomas! I tried systemctl list-units --failed and it froze the system. Very strange. I had to reboot it with CTRL-ALT-DELETE:
The host is challenging to reboot. It often doesn't boot, and I have to hold the power button down for a shutdown. Then boot. It only boots successfully...
I had what I thought was a hard drive failure, so I pulled the drive and put it into a different host, but the drive is fine. The Host is wonky though.
I only have remote access through a not-so-nice lantronix spider KVM.
But I can get to the console and log in as root.
pct list shows the...
Very good point about the reason for unprivileged container use... Thank you. Perhaps I should just give ownership of my mounted disk to user 100000 and call it a day. (At this point, this is just a theoretical exercise to help me better understand mappings. and perhaps some future readers)
(By...
Thank you very much - I gave it a shot but when trying to start the container, I get:
lxc_map_ids: 2878 newuidmap failed to write mapping "newuidmap: uid range [1-65566) -> [100001-165566) not allowed": newuidmap 20329 0 0 1 1 100001 65565
lxc_spawn: 1726 Failed to set up id mapping...
I'm loathe to post this asking for help because there are already several threads about uid/gid mapping for an unprivileged LXC container (believe me, I've read and re-read them all!), and there's even @DougD's python script to automate the process.. so I feel really dumb... but I've been trying...
On second thought, I think it's better to solve it generically (cobbled together from a stackoverflow post):
# Install postfix only if not already installed:
if [ $(dpkg-query -W -f='${Status}' postfix 2>/dev/null | grep -c "ok installed") -eq 0 ];
then
DEBIAN_FRONTEND=noninteractive apt-get...
Stoiko, thank you so much for the information! I didn't realize that postfix was installed in the LXC template. I'll report back if any issues - thank you for taking the time to help :-)
Just a strange thing I found when installing postfix on kvm vs lxc. I tested this with debian 10 and ubuntu 20.04, installed using the container templates, and bare bones installations using the ISOs on KVM.
When installing postfix, on the KVM it runs the reconfigure script, but on LXC it...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.