I have 2 systems running Ubuntu edgy eft with UML.  It is important that
you use the right version of guest kernel.  I also downloaded mine from
bb's site.  I am using "kernel32-2.6.18-bb1".  It was the most recent
version I could find as of a month or so ago that would work with my
config.  Most kernels posted there would not boot with a vanilla edgy
host.  Try using that version.  Also, it looks like you are telling the
guest that /dev/sde1 corresponds to /dev/ubd0 on the command line, but
that in your fstab, you are trying to mount /dev/ubda1.  I would suggest
using /dev/ubda in both locations.  You will need to make sure the
permissions and ownership are correct on your root image or /dev/sde1
depending on how you do it (and I would suggest the root image method,
as that is the way I know works).

A month or two ago I posted a howto on this list that you should find
helpful.  Look through the archives.

Jonas

n schembr wrote:
> I'm trying to consolidate hardware and uml looks like a better solution then 
> qemu.  Is this true?  (Flame shell up)
> 
> But, the bigger issue is related to real images of systems not booting on 
> user mode linux.
> 
> I have install a base system from ubuntu 6.10, ubuntu-6.10-server-i386.iso.
> 
> The image is 1GB is size and is located on /dev/sde1
> 
> qemu -hda /dev/sde1 boots. 
> real hardware boots.
> User mode linux halts.
> 
> host# sudu su
> ./vmlinux-2.6.16-bb1 \
>         umid=b \
>         con=pts con0=fd:0,fd:1\
>         ubd0=/dev/sde1 \
>         
> 
> UML# /etc/fstab
> proc            /proc           proc    defaults        0       0
> # /dev/sda
> /dev/ubda        /               ext3    defaults,errors=remount-ro 0       1
> #/dev/ubda1        /               ext3    defaults,errors=remount-ro 0       
> 1
> #/dev/ubda        /               ext3    defaults 0       1
> #/dev/ubda1       /               ext3    defaults 0       1
> 
> Checking that ptrace can change system call numbers...OK
> Checking syscall emulation patch for ptrace...OK
> Checking advanced syscall emulation patch for ptrace...OK
> Checking for tmpfs mount on /dev/shm...OK
> Checking PROT_EXEC mmap in /dev/shm/...OK
> Checking for the skas3 patch in the host:
>   - /proc/mm...not found
>   - PTRACE_FAULTINFO...not found
>   - PTRACE_LDT...not found
> UML running in SKAS0 mode
> Checking that ptrace can change system call numbers...OK
> Checking syscall emulation patch for ptrace...OK
> Checking advanced syscall emulation patch for ptrace...OK
> Linux version 2.6.18.1-bb2 ([EMAIL PROTECTED]) (gcc version 4.0.3 (Ubuntu 
> 4.0.3-1ubuntu5)) #1 Sat Oct 21 03:42:42 CEST 2006
> Built 1 zonelists.  Total pages: 8192
> Kernel command line: con=pts con0=fd:0,fd:1 ubd0=/dev/sde1 root=98:0
> PID hash table entries: 256 (order: 8, 1024 bytes)
> Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
> Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
> Memory: 28896k available
> Mount-cache hash table entries: 512
> Checking for host processor cmov support...Yes
> Checking for host processor xmm support...No
> Checking that host ptys support output SIGIO...Yes
> Checking that host ptys support SIGIO on close...No, enabling workaround
> Using 2.6 host AIO
> NET: Registered protocol family 16
> NET: Registered protocol family 2
> IP route cache hash table entries: 256 (order: -2, 1024 bytes)
> TCP established hash table entries: 1024 (order: 0, 4096 bytes)
> TCP bind hash table entries: 512 (order: -1, 2048 bytes)
> TCP: Hash tables configured (established 1024 bind 512)
> TCP reno registered
> Checking host MADV_REMOVE support...OK
> mconsole (version 2) initialized on /root/.uml/b/mconsole
> ubd: Synchronous mode
> Host TLS support detected
> Detected host type: i386
> VFS: Disk quotas dquot_6.5.1
> Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
> Initializing Cryptographic API
> io scheduler noop registered
> io scheduler anticipatory registered (default)
> io scheduler deadline registered
> io scheduler cfq registered
> loop: loaded (max 8 devices)
> TCP bic registered
> NET: Registered protocol family 1
> NET: Registered protocol family 17
> Initialized stdio console driver
> Console initialized on /dev/tty0
> Initializing software serial port version 1
>  ubda: unknown partition table
> VFS: Mounted root (ext2 filesystem) readonly.
> Warning: unable to open an initial console.
> 
> I have copied the disk to an image file and had the same output. 
> 
> host# sudo su
> mount /dev/sde1 ./mnt
> mount -o loop b.img ./img
> cd img
> rsync -aH ../mnt/ ./
> cd ..
> cp -r ./lib/* ./img/lib/
> 
> 
> 
> 
> I have also replaces the tried each of the following:
>  vmlinux-2.6.16.9-bs2
>  vmlinux-2.6.16-bb1
>  vmlinux-2.6.18.1-bb2
> 
> 
> I have been able to boot images I've created with debootstrap from the ubuntu 
> repositories but I need to be able to migrate to and from live systems. 
> 
> I've tried  everything I could find.  Can anyone point out the error.
> 
> 
> 
> Thank you for your time. 
> 
> 
> Nicholas A. Schembri
> State College PA USA
> 
> 
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> User-mode-linux-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to