-
polarian
stupid question, but I couldn't find an answer to it, does zfs checksum zvols?
-
polarian
scrubbing the disk would find corrupt data within zvols right?
-
ivy
polarian: yes
-
polarian
cool! Just had to make sure, otherwise my plans would have been ruined :)
-
ivy
but (obviously) it can't identify individual files inside a zvol so if it's corrupt, that's it
-
ivy
also on the offhand you're using zvols for bhyve, be aware flat files are faster
-
polarian
ivy: zfs can still recover if there is spare copies of the blocks, or I believe I can also zfs send zvols to another machine and pull it if there is ever a need to recover?
-
polarian
ivy: I know flat files are faster, but zvols are easier :)
-
polarian
I actually discussed it at EuroBSDCon
-
ivy
polarian: yes it can recovery if there are other copies of the blocks
-
ivy
recover
-
polarian
in order to separate file disks for each different vm, you would need a separate dataset for each one, which is just a headache... but hey ho maybe I will try the faster way at some point :P
-
halcon
pkg can not be installed: "A pre-built version of pkg could not be found for your system."
-
xxy
when using "df -h" to view disk information, i noticed the sum of used isn't equal to sum of each used item, where does the disappear disk space go ?
paste.centos.org/view/c943170b
-
devnull
xxy you're on ZFS. OpenZFS have snapshots, compression, metadata...Normally the "sum" won't add up.
-
xxy
devnull: i didn't set any shapshot yet .
-
xxy
snapshot
-
devnull
xxy zfs list -t snapshot. But there is also compression and metadata. All of this can interfere. See: zfs get all zroot/ROOT/default
-
xxy
devnull: if freebsd as a desktop for daily use , then zfs isn't the best choise, is this right?
paste.centos.org/view/51d426e5
-
devnull
xxy at least I saw 3 properties: compressratio, compression and checksum activated, and it can cause the difference. This explain logicalused property value differ from used value. Also, you can use zfs list -o space to see more detailed information
-
devnull
xxy, and no. I use freebsd as desktop for daily use, and I use OpenZFS
-
devnull
It depends your needs
-
devnull
If you are not familiar with OpenZFS and the features it offers, choose the UFS file system.
-
mns
should there be a default route inside a jail?
-
devnull
mns vnet jail?
-
HER
learn ZFS
-
HER
it may take a while, but when it clicks, you will be happy you learned it
-
xxy
devnull: i love freebsd ,it's brand-new for me , i am contact with it only several days, and need times to get used to.
paste.centos.org/view/7e93a87a
-
HER
xxy: try bastille jail manager
-
HER
(thats what i recommend)
-
HER
vm-bhyve for virtual machines
-
HER
xxy: and good luck, freebsd is great.. hope you find your way
-
mns
devnull: I don't think its a vnet jail. I created it using bastille, but its just a regular thin jail.
-
devnull
mns your default router inside the jail needs to be the IP Address from your main network interface (em0/ena0), if your jail needs to communicate with internet. Otherwise, the jail will not reply to the main host packets sent.
-
HER
btw i just learned the other day that nintendo switch is also freebsd
-
devnull
mns netstat -rn to see the routes.
-
devnull
xxy, nothing wrong with your Z file system.
-
mns
devnull: netstat -rn does not give me a default route. the jail used to work under 13.4-RELEASE, but after upgrading to 14.1-RELEASE is no longer working.
-
devnull
mns, what specifically is not working?
-
mns
devnull: can not reach the outside world from inside the jail, hence pkg does not work inside the jail
-
devnull
mns, unless you use ipv4/ipv6 = inherited, you need to set defaultrouter. Generally it is defined in rc.conf, but I don't use bastille, so I don't have certainly if bastille define default router there.
-
rwp
-
mns
devnull: bastille does not define it there.
-
mns
I think its time to bite the bullet, move to creating jails using jail.conf.d
-
xxy
rwp: i get it , thanks.
-
rwp
xxy, There is also a standard customized zfs list for disk space. zfs list -o space
-
devnull
mns well, try to define default route inside de jail. jexec yourjail, route delete default, route add default IP_FROM_YOUR_MAIN_em0_INTERFACE. I don't use bastille, the things can be different.
-
devnull
I prefer Vanilla jails.
-
mns
devnull: I keep getting Operation not permitted messages when trying to delete or add the route.
-
devnull
mns, as root?
-
mns
as root inside the jail
-
mns
yeah I think I want to switch to vanilla jails, probably a good time to do so is now.
-
devnull
mns, can I see the flags for ls -lo /sbin/route ?
-
rwp
mns, Previously I read in the docs that bastille creates a VNET jail if you give it the -V option. Did you give it the -V option to create a VNET jail? You can only run route setup commands in VNET jails.
-
mns
devnull: in the jail?
-
rwp
Otherwise the network stack is shared with the host and it is up to the host to set up networking.
-
devnull
yes
-
mns
rwp: I don't believe I created the jail with -V. It was a year and half ago :-)
-
rwp
Getting errors like that in the jail indicates to me that it is not a vnet jail and in that case the networking is shared with the host and the route is set on the host.
-
mns
devnull: -r-xr-xr-x 1 root wheel uarch 56072 May 31 09:05 /sbin/route
-
devnull
Yes rwp, it makes sense.
-
mns
rwp: I'm pretty sure you're right, that its not a vnet jail. my bastille config isn't setup in a manner that would be needed for vnet
-
rwp
I am surprised that bastille didn't create the jail and also assign an IP address in a way that would Just Work.
-
rwp
I have fallen in love with vnet jails because it is one step further along in what appears as a virtual machine. And then there is no problem with port collisions.
-
rwp
But at the same time a vnet jail will pretty much require a full network administrator's knowledge to set it up properly.
-
mns
all of this happened after upgrading to 14.1-RELEASE from 13.4-RELEASE, which I did last week. Otherwise it did Just Work.
-
rwp
Hmm... When I upgraded from 13 to 14 I didn't notice any change in behavior for any of the jails.
-
mns
I upgraded host from 13.4 -> 14.1, then noticed errors for libssl from inside the jail, and started upgrading the jail from 13.2 to 14.1, and that is when I saw issue I'm having.
-
devnull
I have some jails with shared network with host (ipv4=inherited) and some vnet jails...In both cases I had no problems with the upgrade. I hope you did the zfs snapshot before upgrade? hehe
-
rwp
I just started up an older 12.3R non-vnet jail that hasn't been started since upgrade and it started and has no trouble with networking.
-
mns
I must have done something incorrect in my upgrade process
-
rwp
So a non-vnet jail simply uses the hosts' networking directly. With an additional IP address "alias" attached to the network. The default route of the host is the same default route as it is global.
-
rwp
Example from my system with the jail running now:
paste.debian.net/plain/1332317
-
rwp
That's the view from the host system. The main IP is 192.168.230.122 and after starting the jail it has an additional IP 192.168.230.48 alias associated. And then the route is really almost unchanged. It adds another host route entry for the 192.168.230.48 host-route.
-
rwp
This is what it looks like from inside the jail:
paste.debian.net/plain/1332318
-
rwp
You can ignore the vm-public because that's for vnet jails running from vm-bhyve and I should have deleted it from the paste so as not to confuse.
-
rwp
You very well might have an upgrade problem with the jail though. And that might have snarled things up now. I don't know.
-
mns
for me, bastille creates a bridge and that, along with pf rules, does the control of the traffic
-
rwp
I don't know anything about bastille so I don't know how it functions but what you say seems reasonable. My example I pasted is not using a bridge. But using a bridge seems reasonable too. We always use a bridge with vnet jails and with bhyve.
-
devnull
Yes, I don't know how bastille works. In vnet jails I create the bridge and epair interfaces.
-
devnull
mns , btw, how is your jail.conf entry?
-
mns
I'm creating one :-) I didn't have anything before as bastille handled it all
-
mns
bastille handles the creation of the bridge and epair interfaces
-
devnull
mns Does bastille take care of jail upgrade too?
-
mns
devnull: its supposed to, this is the first time I've done a major OS upgrade for it. Otherwise its just a minor upgrade
-
devnull
Someone saw koobs here?
-
yuripv
devnull: nickserv says seen 100 weeks ago
-
kevans
woof, hope he's alright
-
mns
devnull, rwp: do you use thin jails or classic thick jails?
-
rwp
Classic thick jails. So much easier to manage.
-
rwp
You don't need thin jails until you know you need thin jails. Because you have a thousand of them running for example.
-
mns
but I can also have thick and thin running side by side as well
-
rwp
Of course.
-
mns
can nullfs be used with thick jails?
-
rwp
Sure. Why not?
-
devnull
mns it depends. Mostly thick jails. But for development tests (new ports), thin jails. So I can clone many of them to spare disk space.
-
devnull
mns yes, you can
-
mns
I have things like certificates that I would want to use amongst the jails and some data directories that I would want to share between host and jails
-
mns
nullfs would come in handy for that.
-
mns
I have a vanilla 14.1-RELEASE jail up and running! yay!
-
rwp
\0/
-
mns
but no access to the outside world. I followed the handbook to create this. hmm seems like the bridge0 didn't get an ip address.
-
ek
mns: Sounds like you're using VNET? You'll likely need to set up some firewall rules to allow jails access out of the subnet from the bridge.
-
ek
-
xxy
i downloaded Netbeans binary file under ordinary directory "~/Netbeans". when running java program, it can't invoke console and terninal is invalid, it might a privilege issue, but i don't know how to do in detail
-
radhitya
mns, congrats :)
-
moviuro
rwp I successfully booted the mfsbsd ISO in qemu and attached to the disk (gpart show /dev/ada0). I don't have network connectivity from the VM but I believe this is not necessary. zpool-import(8) reports: cannot import 'zroot': pool was previously in use from another system. [...] The pool can be imported, use 'zpool import -f' to import the pool.
-
moviuro
-- not sure what happens now. -f would force the import, but how is that going to interfere with future mounting of the pool by the real™️ system once I fixed it all?
-
daemon
hey all, im creating some VIMAGE based jails because I want to use one to connect to an openvpn server. I want to this via the tun300 device (which is created via cloned_interfaces in the jails rc.conf) and in my devfs.rules I have:
dpaste.org/w9bqj in my jail startup I am of course doing: devfs_ruleset=11;
-
daemon
however when the jail is started tun300 cannot be seen in /dev or via ifconfig, but it does exist, if I do a 'ifconfig tun300' it is shown. What have I got wrong here?
-
yuripv
moviuro: if it's boot pool, it will be imported anyway by that real system
-
moviuro
so no worries in forcing the import?...
-
yuripv
moviuro: yep
-
moviuro
ok, so the pool is mounted on /mnt , what now? The server refuses to boot, but zfs-scrub(8) and smartctl(8) don't show anything wrong
-
moviuro
I have reinstalled the bootcode with gpart(8) . I'll try booting the system from qemu by passing the drive
-
moviuro
boot seems to take a very long time querying CDROM (there's none)
-
moviuro
but it does boot. Let's try rebooting to the drive for real™️
-
moviuro
yay, it worked
-
hjf
sweet, my 4-port serial card just arrived and it seems to be working great
-
daemon
nice :) cu time
-
hjf
chatting from my text terminal atm
-
tercal
Does '0' value for 'vfs.zfs.arc.max' and 'vfs.zfs.arc.min' means unlimited amount of RAM to be used, for both?
-
sfox
-
sfox
i found this. Is it accurate?
-
radhitya
what is `nameserver 8`. do you mean `nameserver 8.8.8.8`?
-
radhitya
ouch sorry, i scrolled too much
-
devnull
mns yes, I did something similar. I use nullfs to share certificate files from my xmpps erver to other xmpp server admins. So they can only have access to xmpp ceftificates, not other certificates: So in mount.fstab: /usr/local/etc/letsencrypt/archive/myxmppdomain /usr/local/jails/jxmpp/nullfs_certs nullfs ro 0 0
-
devnull
Of course I could use rsync in cron task...but...well, I prefer this way.
-
devnull
Nice step-by-step ek! (freebsd-jails-with-vnet-and-nat)
-
ivy
hjf: is that a PCI(e) card? did you happen to test if FreeBSD can use it as system console?
-
mns
devnull: is that a link to the step-by-step? didjn't come in as an URL
-
rwp
moviuro, Yay! Very good to hear you were able to recover it. Seems the root cause of the boot failure was needing to update the bootcode? That all makes sense then. And you recovered it all! Good! :-)
-
devnull
-
sfox
devnull, did you do that?
-
sfox
devnull, be careful with vnet. Any time you stop a vnet jail on freebsd there's a chance the whole kernel will panic
-
mzar
?
-
sfox
-
mzar
it could be true, but 10+ years ago sfox
-
sfox
mzar, no it's been back for the last couple of releases and still affects 14.1-RELEASE
-
mzar
OK, but I am not affected
-
mzar
sfox: are you ?
-
sfox
yes
-
sfox
any idea why you aren't affected?
-
mzar
I don't know
-
mzar
somehow my few vnet jails gained immunity
-
mzar
TBH I like jails without vnet more
-
sfox
yeah but jails without vnet will leak onto your management vlan
-
sfox
and use the hypervisor's ip address
-
sfox
-
mzar
I am not much worried about it
-
sfox
you have no network isolation whatsoever can jails can use ip addresses not even bound to it, including IP addresses from other jails and the hypervisors inside of different vlans
-
sfox
huge security hazard
-
mzar
it's rahter not a bug, BTW, it's more like a flaw in design
-
sfox
it's a class of security vulnerability called vlan-hopping
-
mzar
heh..
-
mzar
what about jail without IP address
-
sfox
I haven't tested that but I think it could still work
-
sfox
there's no security bounds check to make sure if you request to use ip, that the ip actually belongs to you
-
mzar
it's still useful, but you need new loopback interface for such a jail
-
sfox
so I don't think it would make a difference
-
mzar
100% safe, can spoofing IP address on loopback be abusive ?
-
mzar
sfox: BTW 270492 seems to be more like feature request than real bug
-
sfox
what about spoofing IP address on another jail or hypervisor's loopback?
-
sfox
I can see how that could be abused
-
mzar
the scope is limited, it will not brak things sfox
-
sfox
i disagree
-
mzar
by 270492 I meant PR 270492 on Bugzilla
-
mzar
the agreement is not required
-
devnull
sfox I'm not going to stop doing something simply because there was a bug once. Bugs must be fixed.
-
sfox
I hope so. I'm not sure what's taking so long to fix this one or what the problem is. Unfortunately I'm not skilled enough to fix it myself.
-
sfox
I'm just warning you about the kpanics
-
sfox
maybe you know what's wrong and how to fix it?
-
sfox
If it's just a matter of gathering more information I have a spare system set aside for testing
-
devnull
sfox I mean, many people says "I was able to reproduce this issue", but mostly is other issue. Most people do not have the knowledge to investigate further and confirm that it is the same issue. They just get a kernel panic and they say "hey, I have the same issue", but probably is different issue. The causes for a kernel panic, a coredump or page fault to occur can be varied.
-
mzar
yes, vnet jails are usable nowadays
-
sfox
Do you know who maintains the code that is failing?
-
sfox
-
sfox
I think reviews.freebsd.org is down too. I get error 502
-
sfox
maybe hold off until that ticket gets resolved.
-
moviuro
yup rwp. I would have had the certainty if I had just tried to boot the system from qemu first (I beelined to getting mfsbsd running instead)
-
rwp
moviuro, Ah! I hadn't thought of that direct qemu booting option. Well regardless you have gained a more general purpose skill that might help you in a different situation in the future.
-
rwp
And you saved your data and system. Even better! :-)
-
moviuro
"That debian rescue system isn't that useless after all" "don't forget about bootcode" "all hail mfsbsd"
-
moviuro
;)
-
hjf
ivy: yes PCIe card, no i haven't tried it as a system console. it appears as "cuau" (not cuaU)
-
hjf
uart3@pci0:3:0:1: class=0x070002 rev=0x00 hdr=0x00 vendor=0x125b device=0x9100 subvendor=0xa000 subdevice=0x1000, vendor = 'Asix Electronics Corporation', device = 'AX99100 PCIe to Multi I/O Controller', class = simple comms, subclass = UART
-
hjf
-
hjf
this is what it looks like
-
hjf
i like the octopus style cable
-
daemon
hey all has anyone got an example of nat firewall for ipfw or pf
-
daemon
that uses fibs
-
daemon
I have three external gateways em0/fib0 ng0/fib1 and ng1/fib2
-
daemon
all is fine for em0, but I cannot use ng0 or ng1 at all
-
daemon
I attempted to set it up just to use either with both firewalls and just cannot seem to get it to work
-
daemon
dpaste.org/vGEfp was the last attempt with ng0/fib 1
-
daemon
I can use setfib 0/1/2 ping 1.1.1.1 to send and receive via any of the interfaces
-
daemon
I also am not using setfib at all for natd, im not sure if I have to or not it seems to make no difference
-
sers
hey guys
-
daemon
sorry disconnected while messing with the firewall, if anyone responded please prod me :)
-
daemon
I imagine I will be bouncing on and off all night, so if I appear dead (this is a irc bouncer) could you please respond on
forums.freebsd.org/threads/pf-or-ip…-basic-nat-firewall-with-fibs.95355
-
daemon
time to try pf and rtables -_-
-
jmnbtsls1E
daemon: for ipfw, i don't think there should be much to change in your ruleset relative to a normal ipfw nat configuration. you will just need 3 ipfw nat config invocations, and your ipfw nat rules will need to be specific to interface
-
jmnbtsls1E
i might be misunderstanding your use of setfib though, since i haven't used it
-
daemon
got it working with pf :)
-
daemon
still no luck with ipfw and setfib / fib etc :(
-
jmnbtsls1E
OK
-
jmnbtsls1E
"setfib 1 ip from any to any out keep-state :default" looks suspicious, since if the packet is already out, i would think the routing decision has been made and the fib is no longer relevant
-
daemon
it seems inbound packets get the fib correctly but outbound do not even leave the firewall
-
daemon
0 matches in ipfw -a list
-
daemon
dpaste.org/dOdYx was what worked for pf
-
daemon
em0 for any jails or vms or the freebsd gateway its self
-
daemon
ng0 for the lan and ng1 for my system
-
jmnbtsls1E
hmm, i'll try this on ipfw some time and if i can get it to work, i'll contact you
-
daemon
cheers :) if possible please reply in the forum as there was quite a few posts with people looking for a solution involving fibs
-
daemon
im going to add my pf one to the thread
-
tuaris
I'm having trouble figuring out why llvm fails to build for me. Does the error shown mean I need to update TLS certs or the build requires network access?
-
tuaris
-
tuaris
why is a build even bothering with TLS certs in the first place. Seems like a bug IIMHO
-
BarnabasDK
expired cert?
-
tuaris
The jail I'm building in the 14.1-RELEASE-p5 and the ports tree is the latest master branch as of yesterday around this time
-
tuaris
I don't know if the host system's pkg's and OS matter much?
-
tuaris
but even that's no older than 3 -4 months
-
BarnabasDK
revoked then
-
tuaris
But that's not a problem on my end though?
-
BarnabasDK
IDK - so the source tree of what you compile contain any certs?
-
BarnabasDK
s/so/do/g
-
tuaris
-
BarnabasDK
there seems to be a branch cut for that every quarter - you could try to go back to an earlier one to see, if the error disappears
-
BarnabasDK
-
tm512
guess I'm gonna update to the latest 14-stable from the pkgbase repo to see if that makes any change regarding this issue with drm-61-kmod
-
tm512
though I'm almost wondering if there is some incompatibility between 14-stable and the binary of drm-61-kmod available from the repo, like if I should try compiling it from ports or something
-
tm512
VT: Driver priority 0 too low. Current 101 fbd0: not attached to vt(4) console; another device has precedence (err=17)
-
tm512
whoops, there should be a newline in there
-
tm512
but that's the error I'm getting when booting up, after which the screen just stays blank since the modesetting VT didn't initialize properly
-
» ober finds no way to mount an sdcard reader showing up as da0 instead of mmcs
-
tm512
I'm wondering how I can find out what this "other device" is that has precedence because there's only a single GPU in this laptop
-
tuaris
Ah, I didn't notice this before, but the problem appears to be related with sphinx-doc: "The full traceback has been saved in /tmp/sphinx-err-d77h61lg.log, if you want to report the issue to the developers."
-
tuaris
Still, the question is why would sphinx-doc be messing around with TLS certs during a build. hmmm
-
tuaris
yep, every port that's using py-sphinx is showing the same problem
-
BarnabasDK
-
BarnabasDK
"Sphinx uses requests as a HTTP library internally. If tls_cacerts is not set, Sphinx falls back to requests’ default behaviour. See SSL Cert Verification for further details."
-
BarnabasDK
seems to be an odd way of doing things, but it definitely does some TLS gymnastics