Results 1 to 10 of 10
  1. #1
    Join Date
    Dec 2004
    Location
    Missouri
    Posts
    34

    Help with User Mode Linux (UML)

    Could someone please tell me how I can fix the following:

    (I used the UML tutorial in the hosting section of Dedicated Servers)

    After running the command:
    [[email protected] uml]# /home/vds1/linux ubd0=root_fs root=/dev/ubd0 mem=128m

    I get:

    Checking for the skas3 patch in the host...not found
    Checking for /proc/mm...not found
    tracing thread pid = 7416
    Linux version 2.4.22-8um ([email protected]) (gcc version 3.3 (Debian)) #2 Fri Aug 29 21:13:01 EDT 2003
    On node 0 totalpages: 32768
    zone(0): 32768 pages.
    zone(1): 0 pages.
    zone(2): 0 pages.
    Kernel command line: ubd0=root_fs root=/dev/ubd0 mem=128m
    Calibrating delay loop... 3803.28 BogoMIPS
    Memory: 125076k available
    Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)
    Inode cache hash table entries: 8192 (order: 4, 65536 bytes)
    Mount cache hash table entries: 512 (order: 0, 4096 bytes)
    Buffer cache hash table entries: 4096 (order: 2, 16384 bytes)
    Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
    Checking for host processor cmov support...Yes
    Checking for host processor xmm support...No
    Checking that ptrace can change system call numbers...OK
    Checking that host ptys support output SIGIO...Yes
    Checking that host ptys support SIGIO on close...No, enabling workaround
    POSIX conformance testing by UNIFIX
    Linux NET4.0 for Linux 2.4
    Based upon Swansea University Computer Society NET3.039
    Initializing RT netlink socket
    Starting kswapd
    VFS: Disk quotas vdquot_6.5.1
    devfs: v1.12c (20020818) Richard Gooch ([email protected])
    devfs: boot_options: 0x1
    JFFS version 1.0, (C) 1999, 2000 Axis Communications AB
    JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
    pty: 256 Unix98 ptys configured
    SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256).
    RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
    loop: loaded (max 8 devices)
    PPP generic driver version 2.4.2
    Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky
    SCSI subsystem driver Revision: 1.00
    scsi0 : scsi_debug, Version: 0.61 (20020815), num_devs=1, dev_size_mb=8, opts=0x0
    Vendor: Linux Model: scsi_debug Rev: 0004
    Type: Direct-Access ANSI SCSI revision: 03
    blkmtd: error: missing `device' name

    Initializing software serial port version 1
    mconsole (version 2) initialized on /root/.uml/Q3qJsY/mconsole
    unable to open root_fs for validation
    UML Audio Relay (host dsp = /dev/sound/dsp, host mixer = /dev/sound/mixer)
    Initializing stdio console driver
    NET4: Linux TCP/IP 1.0 for NET4.0
    IP Protocols: ICMP, UDP, TCP
    IP: routing cache hash table of 512 buckets, 4Kbytes
    TCP: Hash tables configured (established 8192 bind 16384)
    NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
    VFS: Cannot open root device "ubd0" or 62:00
    Please append a correct "root=" boot option
    Kernel panic: VFS: Unable to mount root fs on 62:00

    [[email protected] uml]#

    how do I fix this?

  2. #2
    Join Date
    Mar 2005
    Posts
    30
    Did you create the /dev/ devices for the uml hard drives? udb0, udb1, etc. etc.

  3. #3
    Join Date
    Dec 2004
    Location
    Missouri
    Posts
    34
    where do I find the information to create these?

  4. #4
    Join Date
    May 2004
    Posts
    394
    It seems that you are a begginer with UML, which distro disk image are you using?

  5. #5
    Join Date
    Dec 2004
    Location
    Missouri
    Posts
    34
    root_fs.fc-3-base.pristine.20050605.bz2

  6. #6
    Join Date
    Jun 2003
    Location
    UK
    Posts
    6,601
    OK Firstly make sure you recompile the host kernel to enable SKAS mode as you've not got it turned on. Also try passing the cmdline paramater

    devfs=mount

    You might need to update /etc/fstab on the image to use /dev/ubda or /dev/ubd/0

    Rus
    Russ Foster - Industry Curmudgeon

  7. #7
    Join Date
    Jan 2005
    Location
    Scotland, UK
    Posts
    2,549

    Re: Help with User Mode Linux (UML)

    Login as the vps user and boot it.

    You are getting that error because you are trying to boot UML as root.

    -Scott
    Server Management - AdminGeekZ.com
    Infrastructure Management, Web Application Performance, mySQL DBA. System Automation.
    WordPress/Magento Performance, Apache to Nginx Conversion, Varnish Implimentation, DDoS Protection, Custom Nginx Modules
    Check our wordpress varnish plugin. Contact us for quote: [email protected]

  8. #8
    Join Date
    May 2004
    Posts
    394

    Re: Re: Help with User Mode Linux (UML)

    Originally posted by HostGeekZ
    Login as the vps user and boot it.

    You are getting that error because you are trying to boot UML as root.

    -Scott
    Its been always fine with me to boot UML as root.

  9. #9
    Join Date
    Jan 2005
    Location
    Scotland, UK
    Posts
    2,549
    Well, thats why that user is receving that error.

    [[email protected] uml]#

    ---

    Once they login as the normal user and boot it, it will work. Will just have to wait and see.

    -Scott
    Server Management - AdminGeekZ.com
    Infrastructure Management, Web Application Performance, mySQL DBA. System Automation.
    WordPress/Magento Performance, Apache to Nginx Conversion, Varnish Implimentation, DDoS Protection, Custom Nginx Modules
    Check our wordpress varnish plugin. Contact us for quote: [email protected]

  10. #10
    Join Date
    Jun 2003
    Location
    UK
    Posts
    6,601
    UML will run as root. Its going back to the prompt as the UML is crashing out as it can't open the root file system

    One thing to try is boot

    /home/vds1/linux ubd0=root_fs root=/dev/ubd0 mem=128m init=/bin/sh

    That should get you to single user then you can check out what /dev looks like

    Rus
    Russ Foster - Industry Curmudgeon

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •