From: n s. <nsc...@ya...> - 2007-01-08 17:00:10
|
Thank you for the info. I searched for your name and could not find a how = to. =0A=0AFrom looking at howto's and the Book "User Mode Linux", I know th= at I can use any block device to boot from. =0A=0AI have a clean Install of= ubuntu 6.10 Edgy on /dev/sde1. I pulled the drive from a working system.= =0A=0AI need to copy the ./lib/modules/ to /dev/sde1 before I boot under U= ML.=0A=0AI need to create the ubd devices. =0A# cd /mnt/dev=0A# mknod --mod= e=3D660 ubda b 98 0=0A# mknod --mode=3D660 ubda1 b 98 1=0A=0AI need to edit= /etc/fstab=0Aproc /proc proc defaults 0 = 0=0A/dev/ubda1 / ext3 defaults,errors=3Dremount-= ro 0 1=0A=0AI should be able to boot User mode LINUX, UML I should u= se the following command line.=0A=0A./vmlinux-2.6.18.1-bb2 umid=3DUML con= =3Dpts con0=3Dfd:0,fd:1 ubda=3D/dev/sde1 =0A=0AChecking that ptrace can cha= nge system call numbers...OK=0AChecking syscall emulation patch for ptrace.= ..OK=0AChecking advanced syscall emulation patch for ptrace...OK=0AChecking= for tmpfs mount on /dev/shm...OK=0AChecking PROT_EXEC mmap in /dev/shm/...= OK=0AChecking for the skas3 patch in the host:=0A - /proc/mm...not found= =0A - PTRACE_FAULTINFO...not found=0A - PTRACE_LDT...not found=0AUML runn= ing in SKAS0 mode=0AChecking that ptrace can change system call numbers...O= K=0AChecking syscall emulation patch for ptrace...OK=0AChecking advanced sy= scall emulation patch for ptrace...OK=0ALinux version 2.6.18.1-bb2 (paolo@a= mericanbeauty.home.lan) (gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)) #1 Sat = Oct 21 03:42:42 CEST 2006=0ABuilt 1 zonelists. Total pages: 8192=0AKernel = command line: con=3Dpts con0=3Dfd:0,fd:1 ubda=3D/dev/sde1 root=3D/dev/ubda= =0APID hash table entries: 256 (order: 8, 1024 bytes)=0ADentry cache hash t= able entries: 4096 (order: 2, 16384 bytes)=0AInode-cache hash table entries= : 2048 (order: 1, 8192 bytes)=0AMemory: 28896k available=0AMount-cache hash= table entries: 512=0AChecking for host processor cmov support...Yes=0AChec= king for host processor xmm support...No=0AChecking that host ptys support = output SIGIO...Yes=0AChecking that host ptys support SIGIO on close...No, e= nabling workaround=0AUsing 2.6 host AIO=0ANET: Registered protocol family 1= 6=0ANET: Registered protocol family 2=0AIP route cache hash table entries: = 256 (order: -2, 1024 bytes)=0ATCP established hash table entries: 1024 (ord= er: 0, 4096 bytes)=0ATCP bind hash table entries: 512 (order: -1, 2048 byte= s)=0ATCP: Hash tables configured (established 1024 bind 512)=0ATCP reno reg= istered=0AChecking host MADV_REMOVE support...OK=0Amconsole (version 2) ini= tialized on /root/.uml/b/mconsole=0Aubd: Synchronous mode=0AHost TLS suppor= t detected=0ADetected host type: i386=0AVFS: Disk quotas dquot_6.5.1=0ADquo= t-cache hash table entries: 1024 (order 0, 4096 bytes)=0AInitializing Crypt= ographic API=0Aio scheduler noop registered=0Aio scheduler anticipatory reg= istered (default)=0Aio scheduler deadline registered=0Aio scheduler cfq reg= istered=0Aloop: loaded (max 8 devices)=0ATCP bic registered=0ANET: Register= ed protocol family 1=0ANET: Registered protocol family 17=0AInitialized std= io console driver=0AConsole initialized on /dev/tty0=0AInitializing softwar= e serial port version 1=0A ubda: unknown partition table=0AVFS: Mounted roo= t (ext2 filesystem) readonly.=0AWarning: unable to open an initial console.= =0A=0AAm I missing something?=0A=0ANicholas A. Schembri=0AState College PA = USA=0A=0A=0A----- Forwarded Message ----=0AFrom: Jonas Meyer <jmeyer@Alum.D= artmouth.ORG>=0ATo: n schembr <nsc...@ya...>=0ACc: user-mode-linux-us= er...@li...=0ASent: Friday, January 5, 2007 5:45:16 PM=0ASubje= ct: Re: [uml-user] Booting ubuntu 6.10 from a physical disk=0A=0AI have 2 s= ystems running Ubuntu edgy eft with UML. It is important that=0Ayou use th= e right version of guest kernel. I also downloaded mine from=0Abb's site. = I am using "kernel32-2.6.18-bb1". It was the most recent=0Aversion I coul= d find as of a month or so ago that would work with my=0Aconfig. Most kern= els posted there would not boot with a vanilla edgy=0Ahost. Try using that= version. Also, it looks like you are telling the=0Aguest that /dev/sde1 c= orresponds to /dev/ubd0 on the command line, but=0Athat in your fstab, you = are trying to mount /dev/ubda1. I would suggest=0Ausing /dev/ubda in both = locations. You will need to make sure the=0Apermissions and ownership are = correct on your root image or /dev/sde1=0Adepending on how you do it (and I= would suggest the root image method,=0Aas that is the way I know works).= =0A=0AA month or two ago I posted a howto on this list that you should find= =0Ahelpful. Look through the archives.=0A=0AJonas=0A=0An schembr wrote:=0A= > I'm trying to consolidate hardware and uml looks like a better solution t= hen qemu. Is this true? (Flame shell up)=0A> =0A> But, the bigger issue i= s related to real images of systems not booting on user mode linux.=0A> =0A= > I have install a base system from ubuntu 6.10, ubuntu-6.10-server-i386.is= o.=0A> =0A> The image is 1GB is size and is located on /dev/sde1=0A> =0A> q= emu -hda /dev/sde1 boots. =0A> real hardware boots.=0A> User mode linux hal= ts.=0A> =0A> host# sudu su=0A> ./vmlinux-2.6.16-bb1 \=0A> umid=3Db = \=0A> con=3Dpts con0=3Dfd:0,fd:1\=0A> ubd0=3D/dev/sde1 \=0A= > =0A> =0A> UML# /etc/fstab=0A> proc /proc pro= c defaults 0 0=0A> # /dev/sda=0A> /dev/ubda / = ext3 defaults,errors=3Dremount-ro 0 1=0A> #/dev/ubda1 = / ext3 defaults,errors=3Dremount-ro 0 1=0A> #/dev= /ubda / ext3 defaults 0 1=0A> #/dev/ubda1 = / ext3 defaults 0 1=0A> =0A> Checking that ptrace= can change system call numbers...OK=0A> Checking syscall emulation patch f= or ptrace...OK=0A> Checking advanced syscall emulation patch for ptrace...O= K=0A> Checking for tmpfs mount on /dev/shm...OK=0A> Checking PROT_EXEC mmap= in /dev/shm/...OK=0A> Checking for the skas3 patch in the host:=0A> - /p= roc/mm...not found=0A> - PTRACE_FAULTINFO...not found=0A> - PTRACE_LDT.= ..not found=0A> UML running in SKAS0 mode=0A> Checking that ptrace can chan= ge system call numbers...OK=0A> Checking syscall emulation patch for ptrace= ...OK=0A> Checking advanced syscall emulation patch for ptrace...OK=0A> Lin= ux version 2.6.18.1-bb2 (pa...@am...n) (gcc version 4.0.3 = (Ubuntu 4.0.3-1ubuntu5)) #1 Sat Oct 21 03:42:42 CEST 2006=0A> Built 1 zonel= ists. Total pages: 8192=0A> Kernel command line: con=3Dpts con0=3Dfd:0,fd:= 1 ubd0=3D/dev/sde1 root=3D98:0=0A> PID hash table entries: 256 (order: 8, 1= 024 bytes)=0A> Dentry cache hash table entries: 4096 (order: 2, 16384 bytes= )=0A> Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)=0A> Memor= y: 28896k available=0A> Mount-cache hash table entries: 512=0A> Checking fo= r host processor cmov support...Yes=0A> Checking for host processor xmm sup= port...No=0A> Checking that host ptys support output SIGIO...Yes=0A> Checki= ng that host ptys support SIGIO on close...No, enabling workaround=0A> Usin= g 2.6 host AIO=0A> NET: Registered protocol family 16=0A> NET: Registered p= rotocol family 2=0A> IP route cache hash table entries: 256 (order: -2, 102= 4 bytes)=0A> TCP established hash table entries: 1024 (order: 0, 4096 bytes= )=0A> TCP bind hash table entries: 512 (order: -1, 2048 bytes)=0A> TCP: Has= h tables configured (established 1024 bind 512)=0A> TCP reno registered=0A>= Checking host MADV_REMOVE support...OK=0A> mconsole (version 2) initialize= d on /root/.uml/b/mconsole=0A> ubd: Synchronous mode=0A> Host TLS support d= etected=0A> Detected host type: i386=0A> VFS: Disk quotas dquot_6.5.1=0A> D= quot-cache hash table entries: 1024 (order 0, 4096 bytes)=0A> Initializing = Cryptographic API=0A> io scheduler noop registered=0A> io scheduler anticip= atory registered (default)=0A> io scheduler deadline registered=0A> io sche= duler cfq registered=0A> loop: loaded (max 8 devices)=0A> TCP bic registere= d=0A> NET: Registered protocol family 1=0A> NET: Registered protocol family= 17=0A> Initialized stdio console driver=0A> Console initialized on /dev/tt= y0=0A> Initializing software serial port version 1=0A> ubda: unknown parti= tion table=0A> VFS: Mounted root (ext2 filesystem) readonly.=0A> Warning: u= nable to open an initial console.=0A> =0A> I have copied the disk to an ima= ge file and had the same output. =0A> =0A> host# sudo su=0A> mount /dev/sde= 1 ./mnt=0A> mount -o loop b.img ./img=0A> cd img=0A> rsync -aH ../mnt/ ./= =0A> cd ..=0A> cp -r ./lib/* ./img/lib/=0A> =0A> =0A> =0A> =0A> I have also= replaces the tried each of the following:=0A> vmlinux-2.6.16.9-bs2=0A> v= mlinux-2.6.16-bb1=0A> vmlinux-2.6.18.1-bb2=0A> =0A> =0A> I have been able = to boot images I've created with debootstrap from the ubuntu repositories b= ut I need to be able to migrate to and from live systems. =0A> =0A> I've tr= ied everything I could find. Can anyone point out the error.=0A> =0A> =0A= > =0A> Thank you for your time. =0A> =0A> =0A> Nicholas A. Schembri=0A> Sta= te College PA USA=0A> =0A> =0A> =0A> =0A> ---------------------------------= ----------------------------------------=0A> Take Surveys. Earn Cash. Influ= ence the Future of IT=0A> Join SourceForge.net's Techsay panel and you'll g= et the chance to share your=0A> opinions on IT & business topics through br= ief surveys - and earn cash=0A> http://www.techsay.com/default.php?page=3Dj= oin.php&p=3Dsourceforge&CID=3DDEVDEV=0A> __________________________________= _____________=0A> User-mode-linux-user mailing list=0A> User-mode-linux-use= r...@li...=0A> https://lists.sourceforge.net/lists/listinfo/us= er-mode-linux-user=0A=0A=0A |