Gerard Lally | 1 Jan 2011 20:08
Picon
Favicon

Linux domU disk questions

NetBSD 5.1 amd64
Xen 3.3.2 from pkgsrc-2010Q3

I want to install a Slackware domU under my NetBSD dom0. I am following
the Xen howto guide at NetBSD and the Xen wiki tutorial cached at
aydogan.

I have two 36GB SCSI disks - the first is for the dom0 and a number of
NetBSD domUs.

I want to use the second for a Slackware 13.1 i386 domU.

Do I fdisk and disklabel this second disk in NetBSD or just leave it
blank for Slackware's fdisk to partition?

If I then put an ext4 or xfs filesystem on the Slackware partition will
the NetBSD dom0 be able to export this physical disk in the domU
configuration file?

And lastly, is it OK to perform a standard installation of Slackware on
the second disk, and then compile a vanilla kernel with the Xen options
enabled? When I reboot into Xen the Slackware domU will start as a PV
guest? Are there other options in the Linux kernel configuration I
should enable in order to run Slackware as a domU in a NetBSD dom0?

I hope this is the right place for such questions. I think they pertain
more to NetBSD than Xen - at least the first question does.

--

-- 
Gerard Lally
(Continue reading)

Pierre-Philipp Braun | 1 Jan 2011 20:20
Gravatar

Re: Linux domU disk questions

Hi Gerard,

> Do I fdisk and disklabel this second disk in NetBSD or just leave it
> blank for Slackware's fdisk to partition?

Leave it blank if you want to use phy:.  I myself only use file or lvm 
based vdisks.

> If I then put an ext4 or xfs filesystem on the Slackware partition will
> the NetBSD dom0 be able to export this physical disk in the domU
> configuration file?

If you're using phy:, I guess so!  There's basically three ways of 
sending a vdisk to a guest: physical, lv or file-based.  Note, the 
latter can't be sparse on a netbsd dom0 (vnconfig limitation).

> And lastly, is it OK to perform a standard installation of Slackware on
> the second disk, and then compile a vanilla kernel with the Xen options
> enabled? When I reboot into Xen the Slackware domU will start as a PV

It should be possible, but way more complicated than needed!

> guest? Are there other options in the Linux kernel configuration I
> should enable in order to run Slackware as a domU in a NetBSD dom0?

Here's a little guide I wrote.  It's assuming a linux dom0 but there 
shouldn't be much difference.  Don't use seek= (sparse files) with dd.
http://pbraun.nethence.com/doc/sysutils_xen/guest_slackware.html

//Pierre-Philipp
(Continue reading)

David Young | 1 Jan 2011 21:44
Picon
Favicon

SNMP control of switches on NetBSD?

Has any NetBSD user had any luck controlling 3Com and Cisco/Linksys
switches via SNMP, especially SNMPv3?  I'm not looking to monitor the
switches (although that would be nice, too), but I want to change ports'
VLAN membership, turn tagging on & off, et cetera.

Dave

--

-- 
David Young             OJC Technologies
dyoung <at> ojctech.com      Urbana, IL * (217) 278-3933

Gerard Lally | 1 Jan 2011 22:03
Picon
Favicon

Re: Linux domU disk questions

On Sat, 01 Jan 2011 20:20:16 +0100
Pierre-Philipp Braun <pbraun <at> nethence.com> wrote:

> Hi Gerard,
> 
> > Do I fdisk and disklabel this second disk in NetBSD or just leave it
> > blank for Slackware's fdisk to partition?
> 
> Leave it blank if you want to use phy:.  I myself only use file or
> lvm based vdisks.

Thank you Pierre-Philipp; I have found your other guides very useful
as well.

Is LVM-backed domU as fast as domU on physical disk?
--

-- 
Gerard Lally
Sad Clouds | 1 Jan 2011 22:35

Memory leaks/bugs verification

Are there any frameworks used by NetBSD developers to verify that
userlevel programs are free of memory leaks? I'm thinking about
something like dmalloc, or Solaris libumem, etc.

If currently there are no such frameworks, would it be useful to have
them? Do occasional memory leaks and buffer overruns present an issue
for programs in base system, or do they not even occur? 

IT geek 31 | 1 Jan 2011 23:34

Re: System-wide PATH

I see it can be defined it /etc/login.conf (but the system path is
commented out).

I still don't understand where the path is currently set on a NetBSD
5.1 system, as by default it can't be login.conf....

On 29 December 2010 03:58, Vlad D.Markov <markov <at> freeshell.org> wrote:
> On Fri, Dec 24, 2010 at 03:59:36PM -0500, matthew sporleder wrote:
>> Bash is also an sh (bourne) shell.
>>
>> On Fri, Dec 24, 2010 at 3:39 PM, IT geek 31 <itgeek31 <at> googlemail.com> wrote:
>> > I forgot to mention that my shell is Bash, compiled from source (into
>> > /usr/local/bin/bash).
>> >
>> >
>> >
>> > On 24 December 2010 20:28, matthew sporleder <msporleder <at> gmail.com> wrote:
>> >> On Fri, Dec 24, 2010 at 3:08 PM, IT geek 31 <itgeek31 <at> googlemail.com> wrote:
>> >>> Hi,
>> >>>
>> >>> I need to modify the system-wide PATH, mainly to ensure /usr/pkg/bin
>> >>> and /usr/pkg/sbin are used first.
>> >>>
>> >>> Where do I do this? ?I STFW'd and came up with nothing conclusive :-(
>> >>>
>> >>> Many thanks
>> >>>
>> >>
>> >> For sh and ksh you might want to do a few things:
>> >>
(Continue reading)

Gary Duzan | 1 Jan 2011 23:39
Favicon

Re: System-wide PATH

In Message <AANLkTinQrUE-RFicBFb5DuZ2xcDBTnj+LtxUyqqgiGEQ <at> mail.gmail.com>,
   IT geek 31 <itgeek31 <at> googlemail.com>wrote:

=>I see it can be defined it /etc/login.conf (but the system path is
=>commented out).
=>
=>I still don't understand where the path is currently set on a NetBSD
=>5.1 system, as by default it can't be login.conf....

   Looks like it is hardcoded in sbin/init/init.c and include/paths.h

					Gary Duzan

Gerard Lally | 1 Jan 2011 23:46
Picon
Favicon

Re: Linux domU disk questions

On Sat, 01 Jan 2011 20:20:16 +0100
Pierre-Philipp Braun <pbraun <at> nethence.com> wrote:

> Hi Gerard,
>   
> > Do I fdisk and disklabel this second disk in NetBSD or just leave it
> > blank for Slackware's fdisk to partition?  
> 
> Leave it blank if you want to use phy:.  I myself only use file or
> lvm based vdisks.  

[apologies - I replied to this privately by mistake]

Thank you Pierre-Philipp; I have found your other guides very useful
as well.

Is LVM-backed domU as fast as domU on physical disk?

--

-- 
Gerard Lally
Jonathan A. Kollasch | 2 Jan 2011 02:41
Gravatar

Re: SNMP control of switches on NetBSD?

On Sat, Jan 01, 2011 at 02:44:38PM -0600, David Young wrote:
> Has any NetBSD user had any luck controlling 3Com and Cisco/Linksys
> switches via SNMP, especially SNMPv3?  I'm not looking to monitor the
> switches (although that would be nice, too), but I want to change ports'
> VLAN membership, turn tagging on & off, et cetera.

Assuming the switch can do that, I'd guess net-snmp would be the thing
to look at.  AFAIK it's the kitchen-sink SNMP implementation.

	Jonathan Kollasch

bch | 2 Jan 2011 02:47
Gravatar

Re: SNMP control of switches on NetBSD?

On Sun, Jan 02, 2011 at 01:41:58AM +0000, Jonathan A. Kollasch wrote:
> On Sat, Jan 01, 2011 at 02:44:38PM -0600, David Young wrote:
> > Has any NetBSD user had any luck controlling 3Com and Cisco/Linksys
> > switches via SNMP, especially SNMPv3?  I'm not looking to monitor the
> > switches (although that would be nice, too), but I want to change ports'
> > VLAN membership, turn tagging on & off, et cetera.

See also: net/tcl-scotty

-bch

> Assuming the switch can do that, I'd guess net-snmp would be the thing
> to look at.  AFAIK it's the kitchen-sink SNMP implementation.
> 
> 	Jonathan Kollasch

--

-- 
Brad Harder
Method Logic Digital Consulting
http://methodlogic.net
http://twitter.com/bcharder


Gmane