From: Ian C. B. <ia...@bl...> - 2004-02-02 15:55:53
|
On Mon, Feb 02, 2004 at 09:16:06AM -0600, Richard Goodwin wrote: > > Example: Windows 2003, "real" NIC has ip of 192.168.123.100; TAP has an IP > of [0.1 for ICS, or 123.101(?) for bridged?]. If I ran an sshd in coLinux, > would I be able to connect to it from another box? Which IP would I need to > connect to? You would connect to the IP of the image (192.168.1.40 by default - just edit the /etc/network/interfaces file). > Couple of other questions: > 1) Any way to resize the Debian image? Or can someone put up an image that > is like a 2gb or 4gb compressed filesystem? Using Unix tools, this is easy: $ dd if=/dev/zero of=Debian-3.0r0.ext3.1gb bs=0 seek=4G This will grow the file to 4G by seeking into the file and writing nothing. Moreover, on a true Unix filesystem, this file would be a "sparse file" taking up no disk space until the coLinux image writes a block to the cobd device. AFAIK, NTFS does not support sparse files in this way. The bs=0 trick really means "write 0 bytes, but treat seeks/reads as 1". Then you must resize the filesystem. With ext2/ext3 it's simple: $ resize2fs Debian-3.0r0.ext3.1gb `du Debian-3.0r0.ext3.1gb | awk '{print $1}'` Other filesystems, like Reiserfs and XFS, support other methods of growing the filesystem (resize_reiserfs, xfs_growfs). Here's an old post of mine to the User-Mode-Linux list that might help (note, I was not aware of the bs=0 seek trick at the time) http://smtp.linux-sxs.org/pipermail/linux-users/2002-November/010762.html > 2) I really need a kernel with smbfs (to interop with Windows) at this > point. Given that I don't nkow if I can find a clean build system and setup > any cross compilation, what are my options? SMBFS is slow for production use. Painfully so. I would recommend running Samba 3.0 and mapping the other direction if at all possible. Alternatively, try Microsoft's now free Services For Unix and NFS if you really wish to mount the other way. > Thanks! I'm spreading the coLInux religion to my cohorts at work (Dell) > today :-) And so it begins. - Ian C. Blenke <ia...@bl...> |