edit /boot/loader.conf, but won't boot

hi,

i made a typo in my /boot/loader.conf file and rebooted the machine. now it won't boot. how can i edit this file now that it won't boot?


thanks,
 
Just curious: what typo is in there? When I put "sdlkjflksdj" on top of loader.conf the system just ignores it and runs over it.
 
kern.hz=5 or kern.hz=1 can't remember but on of those...

and i meant to try 50 but i'm finding 10 works best in my vm environment. i've been trying to tweak my freebsd machines so that their network performance is better. right now i'm only getting 30 to 40 mbits a second transfer with iperf. if i run the same test on the host system (centOS) to my pfsense firewall i get 95mbits a second. i understand that there is some overhead with vmware but i would expect better than 30 - 40 mbits.

at any rate, i tried the unload, load kernel, boot thing but it just tries to boot again and it dies. where do i get the fix it cd? is that not on the regular install iso?
 
Can your HDD write faster thatn 30-40MB/s?
That is the question....

I doubt you need to tweak FreeBSD, it's already tweaked
 
well, the host system has the same hard drive and it will do 95. obviously, i don't think it's a freebsd issue but a vmware issue. or more so, how vmware works with freebsd.

do you know any tools that i can test hard drive performance with?
 
Code:
dd if=/dev/random of=/tmp/test bs=8m
and in other terminal run gstat as root


This method has some issues, but i find it good enough to check if my disks write as fast as they should (aprox)
 
phospher said:
kern.hz=5 or kern.hz=1 can't remember but on of those...

and i meant to try 50 but i'm finding 10 works best in my vm environment. i've been trying to tweak my freebsd machines so that their network performance is better. right now i'm only getting 30 to 40 mbits a second transfer with iperf. if i run the same test on the host system (centOS) to my pfsense firewall i get 95mbits a second. i understand that there is some overhead with vmware but i would expect better than 30 - 40 mbits.

at any rate, i tried the unload, load kernel, boot thing but it just tries to boot again and it dies. where do i get the fix it cd? is that not on the regular install iso?

Ah, sysctl settings, I see. Apparently they are not skipped.
Maybe it can be changed with the set and unset commands on the loader prompt?
A set kern.hz=5 results in panic with reboot here.
Otherwise, I would do it with a live cd like DesktopBSD or Freesbie. Never used Fixit.
 
fixit cd is simple FreeBSD cd with sysinstall, in sysinstall you select fixit mode, then select cd/dvd as source, and FreeBSD shell will be started, form there you can do many things
 
It's called livefs.iso these days, I think.
I'm gonna try it with Qemu. (have nothing to do :pP)
 
MG said:
have nothing to do :pP
Ah, in that case, you should try Bochs instead! Qemu has native execution for userland code, unlike Bochs.
devel.gif
 
Which virtual NIC chipset are you using?

The default lnc(4) if quite horrible. As is the rl(4) chipset. You'll want to switch to using the em(4) driver, using the e1000 virtual NIC. Then you should be able to get close to 100 Mbps throughput, along with support for gigabit networking.
 
i' ve figured out that it doesn't slow down until i start adding virtual switches. if i just bridge my FreeBSD server to the hosts nic i get the expected speeds of a 100mbit network. but once i add a virtual switch and connect directly to it, it slows.....

what i've built is a virtual network with 5 vyatta routers and 3 FreeBSD servers. the virtual server then connects to a hardware switch and then to my pfsense firewall.

i'm thinking i might try esxi instead of vmware server 2...

weird thing is, i also have another vmware environment at work running vmware esx and the same thing happens. i'm loosing confidence in vmware..

maybe i'll head over to the vmware forums..
 
Back
Top