-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Just to confirm:
I tried with a file image and everything works fine. I am able to assign 4 interfaces to it. Next is to install my iscsitarget and then test from another client with an initiator, and see the 4 paths to it. So, I think it is a hostfs bug (which I think, because I wasn't able to chown files even though I was root in the guest). Please ping me if you need for information. Having hostfs for the root file system will be awesome. There'll be no storage space wastage. On 12/11/2010 09:11 PM, Ritesh Raj Sarraf wrote: > Hello, > > I'm trying to use hostfs for my root file system. > > I think providing hostfs access for root file system is great. It will > help especially for the near future because the current linux file > systems are still catching up on block discard. > > I have almost been able to finish my uml setup. But I have one major glitch. > > Warning: unable to open an initial console. > Not activating Mandatory Access Control now since /sbin/tomoyo-init > doesn't exist. > Failed to open console 0, err = -19 > Failed to open console 0, err = -19 > Failed to open console 0, err = -19 > Failed to open console 0, err = -19 > Failed to open console 0, err = -19 > IRQ 13/xterm: IRQF_DISABLED is not guaranteed on shared IRQs > IRQ 2/console: IRQF_DISABLED is not guaranteed on shared IRQs > IRQ 3/console-write: IRQF_DISABLED is not guaranteed on shared IRQs > IRQ 10/winch: IRQF_DISABLED is not guaranteed on shared IRQs > r...@champaran:~# dpkg --configure -a > dpkg: unable to sync directory '/var/lib/dpkg': Invalid argument > r...@champaran:~# cat /proc/cmdline > root=/dev/root rootflags=/var/tmp/chroot/uml-debian rootfstype=hostfs > mem=512m eth0=daemon eth1=daemon con0=fd0,fd1,fd2 con=xterm > > > In the snippet above, you can notice that the dpkg command fails. I am > not sure what is the real cause. > > r...@champaran:~# ls -l /var/lib/dpkg/ > total 476 > drwxr-xr-x 2 1000 1000 4096 Dec 11 12:12 alternatives > -rw-r--r-- 1 1000 1000 114163 Dec 11 12:12 available > -rw-r--r-- 1 1000 1000 114163 Dec 11 12:12 available-old > -rw-r--r-- 1 1000 1000 8 Dec 11 12:10 cmethopt > -rw-r--r-- 1 1000 1000 98 Dec 11 12:07 diversions > -rw-r--r-- 1 1000 1000 29 Dec 11 12:07 diversions-old > drwxr-xr-x 2 1000 1000 20480 Dec 11 12:12 info > -rw-r----- 1 1000 1000 0 Dec 11 12:12 lock > drwxr-xr-x 2 1000 1000 4096 Nov 25 06:32 parts > -rw-r--r-- 1 1000 1000 35 Dec 11 12:12 statoverride > -rw-r--r-- 1 1000 1000 0 Dec 11 12:06 statoverride-old > -rw-r--r-- 1 1000 1000 98944 Dec 11 15:30 status > -rw-r--r-- 1 1000 1000 98944 Dec 11 15:04 status-old > drwxr-xr-x 2 1000 1000 4096 Dec 11 12:12 triggers > drwxr-xr-x 2 1000 1000 4096 Dec 11 14:19 updates > > id 1000 maps to the user id on the host, that executed the uml application. > > I did this file ownership change because the guides mentioned it. I do > have read/write access to these files/directories, but dpkg fails to > proceed. It cannot install a package. `apt-get update` does work though. > > Here's the listing of: > r...@champaran:~# ls /var/lib/apt/lists/ -l > total 32660 > -rw-r--r-- 1 1000 1000 103733 Dec 11 08:10 > ftp.us.debian.org_debian_dists_sid_Release > -rw-r--r-- 1 1000 1000 33330762 Dec 11 08:02 > ftp.us.debian.org_debian_dists_sid_main_binary-amd64_Packages > drwxr-xr-x 2 1000 1000 4096 Dec 11 11:56 partial > > These files are written during the "apt-get update" operation. > > > Since the `apt-get update` operation succeeds, is this more of a dpkg > bug than UML's ? > > > PS: Even running UML as root does not help. I can log in, do apt-get > update, but as soon as I try to install, it fails. > Here's an apt-get install failure example: > > r...@champaran:~# apt-get install psmisc > Reading package lists... Done > Building dependency tree... Done > The following NEW packages will be installed: > psmisc > 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. > Need to get 0 B/124 kB of archives. > After this operation, 733 kB of additional disk space will be used. > WARNING: The following packages cannot be authenticated! > psmisc > Install these packages without verification [y/N]? y > tar: ./control: Cannot change ownership to uid 0, gid 0: Operation not > permitted > tar: ./md5sums: Cannot change ownership to uid 0, gid 0: Operation not > permitted > tar: ./postrm: Cannot change ownership to uid 0, gid 0: Operation not > permitted > tar: ./postinst: Cannot change ownership to uid 0, gid 0: Operation not > permitted > tar: .: Cannot change ownership to uid 0, gid 0: Operation not permitted > tar: Exiting with failure status due to previous errors > dpkg-deb: subprocess tar returned error exit status 2 > dpkg: error processing /var/cache/apt/archives/psmisc_22.13-1_amd64.deb > (--unpack): > subprocess dpkg-deb --control returned error exit status 2 > configured to not write apport reports > dpkg: unable to sync directory > '/var/lib/dpkg': Invalid argument > E: Sub-process /usr/bin/dpkg returned an error code (2) > > > > BTW, this is pretty interesting. I do have read/write access to these > files, but I can't change their ownership. > > r...@champaran:/var/lib/dpkg# ls -l > total 476 > drwxr-xr-x 2 1000 1000 4096 Dec 11 12:12 alternatives > -rw-r--r-- 1 1000 1000 114163 Dec 11 12:12 available > -rw-r--r-- 1 1000 1000 114163 Dec 11 12:12 available-old > -rw-r--r-- 1 1000 1000 8 Dec 11 12:10 cmethopt > -rw-r--r-- 1 1000 1000 98 Dec 11 12:07 diversions > -rw-r--r-- 1 1000 1000 29 Dec 11 12:07 diversions-old > drwxr-xr-x 2 1000 1000 20480 Dec 11 12:12 info > -rw-r----- 1 1000 1000 0 Dec 11 12:12 lock > drwxr-xr-x 2 1000 1000 4096 Nov 25 06:32 parts > -rw-r--r-- 1 1000 1000 35 Dec 11 12:12 statoverride > -rw-r--r-- 1 1000 1000 0 Dec 11 12:06 statoverride-old > -rw-r--r-- 1 1000 1000 98944 Dec 11 15:38 status > -rw-r--r-- 1 1000 1000 98944 Dec 11 15:38 status-old > drwxr-xr-x 2 1000 1000 4096 Dec 11 12:12 triggers > drwxr-xr-x 2 1000 1000 4096 Dec 11 14:19 updates > r...@champaran:/var/lib/dpkg# mv updates/ foo > r...@champaran:/var/lib/dpkg# mv foo updates > r...@champaran:/var/lib/dpkg# id > uid=0(root) gid=0(root) groups=0(root) > r...@champaran:/var/lib/dpkg# chown root * > chown: changing ownership of `alternatives': Operation not permitted > chown: changing ownership of `available': Operation not permitted > chown: changing ownership of `available-old': Operation not permitted > chown: changing ownership of `cmethopt': Operation not permitted > chown: changing ownership of `diversions': Operation not permitted > chown: changing ownership of `diversions-old': Operation not permitted > chown: changing ownership of `info': Operation not permitted > chown: changing ownership of `lock': Operation not permitted > chown: changing ownership of `parts': Operation not permitted > chown: changing ownership of `statoverride': Operation not permitted > chown: changing ownership of `statoverride-old': Operation not permitted > chown: changing ownership of `status': Operation not permitted > chown: changing ownership of `status-old': Operation not permitted > chown: changing ownership of `triggers': Operation not permitted > chown: changing ownership of `updates': Operation not permitted > - ------------------------------------------------------------------------------ Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, new data types, scalar functions, improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools, best practices and more. http://p.sf.net/sfu/oracle-sfdev2dev - -- Given the large number of mailing lists I follow, I request you to CC me in replies for quicker response -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBCgAGBQJNA7lfAAoJEKY6WKPy4XVpDEIP/24U1uh54I6NB76YFr4leTR3 IUaIwxoRGmxwtlPC7rZYagOkI20l2Pkc/2+dE/MvkFN+P6YiY+oilMZk2kGlMP8W nHuqjGBRB0wKTLy3Oz5sJxxe1oHGgUM9mutBoFkmx5NvJoxaCuPpe1MnVUZfipbZ 6YtYU5hgBQQ8vzUtHvWAXxxtPp0LNifLfiwtLzu3fruVJ/eia1Z4x+D5gWdCYoEG Xr0GE48OiNkD4IO9xdoANqhk/9JlzNZBbsyqG+APWJPsHyEgOj6tUs3rax/BUfUB YAXjCTStt0bV8/RkeahUH/iY7AMTNwd1WaieXtiNnSn4gr9rPOVrqbGdhvrw9wH+ GLdrVK7bIxNuoyhPnu6RHrHQpP55IPCs0tx2VtCVJYQeWzaCS1fMwivygrgtpQB6 FfrnuYjqsXXGxmeQVAKS8Xh3+rj6Fxkq2wTFaaveh8STEV0Y8PZ/Qdpsk03xNb00 eIiYDcgqvb0QE4i2esyc5QJ0no+9FEtCKDmG3UfgY7l8b7EtRta1RfwZCPAjz37U 5lFcxq+/C/42Tz5oRHo2mC58/vDyVHn9SlHhkGEl+MEMfviUGZH2CUW6t2y1loGe z5NijTu1OHHRMmKaT+/qbPlpbidyml+fZrW1NxTmEF3U2zVt8bKKEDrfNSVJ7Ujh y4pHadKUouvQI6hB6XQH =G/o3 -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL, new data types, scalar functions, improved concurrency, built-in packages, OCI, SQL*Plus, data movement tools, best practices and more. http://p.sf.net/sfu/oracle-sfdev2dev _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user