xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* How does pvops create loop device for initrd to support Xen live image?
@ 2010-06-17  1:07 Wang, Shane
  2010-06-17 10:02 ` [Xen-devel] " Jeremy Fitzhardinge
  0 siblings, 1 reply; 3+ messages in thread
From: Wang, Shane @ 2010-06-17  1:07 UTC (permalink / raw)
  To: 'xen-users@lists.xensource.com',
	'xen-devel@lists.xensource.com'

[-- Attachment #1: Type: text/plain, Size: 979 bytes --]

Hi,

I want to create a Xen live image based on fedora project (http://fedoraproject.org/wiki/FedoraLiveCD/USBHowTo).
Since the root fs is packed as a squashfs image, initrd will have script to mount it and switch root into it.
But now I get the errors after booting up xen and pvops. (see log attached)
It complains pvops is not aware of any loop device. I compile pvops with BLK_DEV_LOOP=y.

...
losetup: Could not find any loop device. Maybe this kernel does not know
       about the loop device? (If so, recompile or `modprobe loop'.)
loop: can't get info on device /osmin.img: Inappropriate ioctl for device
Usage: mount -V                 : print version
       mount -h                 : print this help
       mount                    : list mounted filesystems
       mount -l                 : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
...

Thanks.
Shane

[-- Attachment #2: loopdevice.txt --]
[-- Type: text/plain, Size: 18281 bytes --]

[    4.167633] uhci_hcd 0000:00:1d.2: PCI INT D -> GSI 16 (level, low) -> IRQ 16
[    4.167633] uhci_hcd 0000:00:1d.2: UHCI Host Controller
[    4.174682] uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus numbe
r 8
[    4.176978] uhci_hcd 0000:00:1d.2: detected 2 ports
[    4.178027] uhci_hcd 0000:00:1d.2: irq 16, io base 0x0000d000
[    4.179663] usb usb8: New USB device found, idVendor=1d6b, idProduct=0001
[    4.180587] usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=
1
[    4.180587] usb usb8: Product: UHCI Host Controller
[    4.180587] usb usb8: Manufacturer: Linux 2.6.30-rc3-tip uhci_hcd
[    4.180587] usb usb8: SerialNumber: 0000:00:1d.2
[    4.186112] usb usb8: configuration #1 chosen from 1 choice
[    4.187610] hub 8-0:1.0: USB hub found
[    4.188407] hub 8-0:1.0: 2 ports detected
[    4.189516] usbcore: registered new interface driver usblp
[    4.190502] Initializing USB Mass Storage driver...
[    4.193649] usbcore: registered new interface driver usb-storage
[    4.194636] USB Mass Storage support registered.
[    4.195963] usbcore: registered new interface driver libusual
[    4.197310] PNP: No PS/2 controller found. Probing ports directly.
[    4.202494] serio: i8042 KBD port at 0x60,0x64 irq 1
[    4.203260] serio: i8042 AUX port at 0x60,0x64 irq 12
[    4.206193] mice: PS/2 mouse device common for all mice
[    4.208395] rtc_cmos 00:03: RTC can wake from S4
[    4.210069] rtc_cmos 00:03: rtc core: registered rtc_cmos as rtc0
[    4.211590] rtc0: alarms up to one month, y3k, 114 bytes nvram
[    4.212842] xen_allocate_pirq: returning irq 18 for gsi 18
[    4.213798] xen_set_ioapic_routing: irq 18 gsi 18 vector 18 ioapic 0 pin 18 t
riggering 1 polarity 1
(XEN) ioapic_guest_write: apic=0, pin=18, irq=18
(XEN) ioapic_guest_write: new_entry=0001a9c8
(XEN) ioapic_guest_write: old_entry=0000a9c8 pirq=18
(XEN) ioapic_guest_write: Attempt to modify IO-APIC pin for in-use IRQ!
[    4.213798] i801_smbus 0000:00:1f.3: PCI INT C -> GSI 18 (level, low) -> IRQ
18
[    4.218195] device-mapper: ioctl: 4.14.0-ioctl (2008-04-23) initialised: dm-d
evel@redhat.com
[    4.221855] cpuidle: using governor ladder
[    4.222839] cpuidle: using governor menu
[    4.226406] usbcore: registered new interface driver hiddev
[    4.227821] usbcore: registered new interface driver usbhid
[    4.228808] usbhid: v2.6:USB HID core driver
[    4.230139] Advanced Linux Sound Architecture Driver Version 1.0.19.
[    4.236664] xen_set_ioapic_routing: irq 22 gsi 22 vector 22 ioapic 0 pin 22 t
riggering 1 polarity 1
[    4.237352] HDA Intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 2
2
[    4.348371] input: HDA Intel Line In at Ext Rear Jack as /devices/pci0000:00/
0000:00:1b.0/input/input3
[    4.351493] input: HDA Intel Mic at Ext Front Jack as /devices/pci0000:00/000
0:00:1b.0/input/input4
[    4.354517] input: HDA Intel Mic at Ext Rear Jack as /devices/pci0000:00/0000
:00:1b.0/input/input5
[    4.358568] input: HDA Intel Line Out at Ext Rear Jack as /devices/pci0000:00
/0000:00:1b.0/input/input6
[    4.361663] input: HDA Intel Line Out at Ext Rear Jack as /devices/pci0000:00
/0000:00:1b.0/input/input7
[    4.366012] input: HDA Intel Line Out at Ext Rear Jack as /devices/pci0000:00
/0000:00:1b.0/input/input8
[    4.369175] input: HDA Intel Line Out at Ext Rear Jack as /devices/pci0000:00
/0000:00:1b.0/input/input9
[    4.372298] input: HDA Intel HP Out at Ext Front Jack as /devices/pci0000:00/
0000:00:1b.0/input/input10
[    4.387374] ALSA device list:
[    4.388357]   #0: HDA Intel at 0xffa70000 irq 22
[    4.390040] Netfilter messages via NETLINK v0.30.
[    4.391035] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[    4.392672] ctnetlink v0.93: registering with nfnetlink.
[    4.395988] ip_tables: (C) 2000-2006 Netfilter Core Team
[    4.406047] TCP cubic registered
[    4.407016] Initializing XFRM netlink socket
[    4.408701] NET: Registered protocol family 10
[    4.413230] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    4.420162] IPv6 over IPv4 tunneling driver
[    4.423136] NET: Registered protocol family 17
[    4.425958] RPC: Registered udp transport module.
[    4.426695] RPC: Registered tcp transport module.
[    4.428580] IO APIC resources couldn't be allocated.
[    4.430309] registered taskstats version 1
[    4.431226]   Magic number: 14:280:108
[    4.432116] usbmon usbmon4: hash matches
[    4.433660] Freeing unused kernel memory: 528k freed
[    4.434500] Write protecting the kernel read-only data: 7900k
[    4.470072] usb 7-1: new low speed USB device using uhci_hcd and address 2
[    4.635680] usb 7-1: New USB device found, idVendor=0603, idProduct=00f2
[    4.636645] usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    4.636645] usb 7-1: Product: USB Keyboard
[    4.636645] usb 7-1: Manufacturer: NOVATEK
[    4.641016] usb 7-1: configuration #1 chosen from 1 choice
[    4.660085] input: NOVATEK USB Keyboard as /devices/pci0000:00/0000:00:1d.1/u
sb7/7-1/7-1:1.0/input/input11
[    4.662615] generic-usb 0003:0603:00F2.0001: input,hidraw0: USB HID v1.10 Key
board [NOVATEK USB Keyboard] on usb-0000:00:1d.1-1/input0
[    4.699756] input: NOVATEK USB Keyboard as /devices/pci0000:00/0000:00:1d.1/u
sb7/7-1/7-1:1.1/input/input12
[    4.702418] generic-usb 0003:0603:00F2.0002: input,hiddev96,hidraw1: USB HID
v1.10 Device [NOVATEK USB Keyboard] on usb-0000:00:1d.1-1/input1
[    4.866595] ehci_hcd: version magic '2.6.31.12 SMP mod_unload ' should be '2.
6.30-rc3-tip SMP mod_unload '
[    4.870773] ohci_hcd: version magic '2.6.31.12 SMP mod_unload ' should be '2.
6.30-rc3-tip SMP mod_unload '
[    4.875282] uhci_hcd: version magic '2.6.31.12 SMP mod_unload ' should be '2.
6.30-rc3-tip SMP mod_unload '
[    4.892417] scsi_mod: version magic '2.6.31.12 SMP mod_unload ' should be '2.
6.30-rc3-tip SMP mod_unload '
[    4.896594] sd_mod: version magic '2.6.31.12 SMP mod_unload ' should be '2.6.
30-rc3-tip SMP mod_unload '
[    4.902025] libata: version magic '2.6.31.12 SMP mod_unload ' should be '2.6.
30-rc3-tip SMP mod_unload '
[    4.907591] pata_acpi: version magic '2.6.31.12 SMP mod_unload ' should be '2
.6.30-rc3-tip SMP mod_unload '
[    7.413066] ata_piix: version magic '2.6.31.12 SMP mod_unload ' should be '2.
6.30-rc3-tip SMP mod_unload '
[    9.919044] ata_generic: version magic '2.6.31.12 SMP mod_unload ' should be
'2.6.30-rc3-tip SMP mod_unload '
[    9.924079] ahci: version magic '2.6.31.12 SMP mod_unload ' should be '2.6.30
-rc3-tip SMP mod_unload '
[   12.430218] scsi_wait_scan: version magic '2.6.31.12 SMP mod_unload ' should
be '2.6.30-rc3-tip SMP mod_unload '
[   12.479117] kjournald starting.  Commit interval 5 seconds
[   12.479138] EXT3-fs: mounted filesystem with writeback data mode.

losetup: Could not find any loop device. Maybe this kernel does not know
       about the loop device? (If so, recompile or `modprobe loop'.)
loop: can't get info on device /osmin.img: Inappropriate ioctl for device
Usage: mount -V                 : print version
       mount -h                 : print this help
       mount                    : list mounted filesystems
       mount -l                 : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
       mount -a [-t|-O] ...     : mount all stuff from /etc/fstab
       mount device             : mount device at the known place
       mount directory          : mount known device here
       mount -t type dev dir    : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
       mount --bind olddir newdir
or move a subtree:
       mount --move olddir newdir
One can change the type of mount containing the directory dir:
       mount --make-shared dir
       mount --make-slave dir
       mount --make-private dir
       mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
       mount --make-rshared dir
       mount --make-rslave dir
       mount --make-rprivate dir
       mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using  -L label  or by uuid, using  -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say  man 8 mount .
losetup: Could not find any loop device. Maybe this kernel does not know
       about the loop device? (If so, recompile or `modprobe loop'.)
loop: can't open device /squashfs.osmin/osmin: No such file or directory
umount: /squashfs.osmin: not mounted
losetup: Could not find any loop device. Maybe this kernel does not know
       about the loop device? (If so, recompile or `modprobe loop'.)
loop: can't get info on device /sysroot/LiveOS/squashfs.img: Inappropriate ioctl
 for device
Usage: mount -V                 : print version
       mount -h                 : print this help
       mount                    : list mounted filesystems
       mount -l                 : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
       mount -a [-t|-O] ...     : mount all stuff from /etc/fstab
       mount device             : mount device at the known place
       mount directory          : mount known device here
       mount -t type dev dir    : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
       mount --bind olddir newdir
or move a subtree:
       mount --move olddir newdir
One can change the type of mount containing the directory dir:
       mount --make-shared dir
       mount --make-slave dir
       mount --make-private dir
       mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
       mount --make-rshared dir
       mount --make-rslave dir
       mount --make-rprivate dir
       mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using  -L label  or by uuid, using  -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say  man 8 mount .
losetup: Could not find any loop device. Maybe this kernel does not know
       about the loop device? (If so, recompile or `modprobe loop'.)
loop: can't open device /squashfs/LiveOS/ext3fs.img: No such file or directory
umount: /squashfs: not mounted
losetup: Could not find any loop device. Maybe this kernel does not know
       about the loop device? (If so, recompile or `modprobe loop'.)
loop: can't get info on device /overlay: Inappropriate ioctl for device

Usage:
  blockdev -V
  blockdev --report [devices]
  blockdev [-v|-q] commands devices

Available commands:
        --getsz                        get size in 512-byte sectors
        --setro                        set read-only
        --setrw                        set read-write
        --getro                        get read-only
        --getss                        get logical block (sector) size
        --getpbsz                      get physical block (sector) size
        --getiomin                     get minimum I/O size
        --getioopt                     get optimal I/O size
        --getalignoff                  get alignment offset
        --getmaxsect                   get max sectors per request
        --getbsz                       get blocksize
        --setbsz BLOCKSIZE             set blocksize
        --getsize                      get 32-bit sector count
        --getsize64                    get size in bytes
        --setra READAHEAD              set readahead
        --getra                        get readahead
        --setfra FSREADAHEAD           set filesystem readahead
        --getfra                       get filesystem readahead
        --flushbufs                    flush buffers
        --rereadpt                     reread partition table

Invalid format on line 1 of table on stdin
Command failed


No root device found
losetup: Could not find any loop device. Maybe this kernel does not know
       about the loop device? (If so, recompile or `modprobe loop'.)
loop: can't get info on device /osmin.img: Inappropriate ioctl for device
Usage: mount -V                 : print version
       mount -h                 : print this help
       mount                    : list mounted filesystems
       mount -l                 : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
       mount -a [-t|-O] ...     : mount all stuff from /etc/fstab
       mount device             : mount device at the known place
       mount directory          : mount known device here
       mount -t type dev dir    : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
       mount --bind olddir newdir
or move a subtree:
       mount --move olddir newdir
One can change the type of mount containing the directory dir:
       mount --make-shared dir
       mount --make-slave dir
       mount --make-private dir
       mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
       mount --make-rshared dir
       mount --make-rslave dir
       mount --make-rprivate dir
       mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using  -L label  or by uuid, using  -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say  man 8 mount .
losetup: Could not find any loop device. Maybe this kernel does not know
       about the loop device? (If so, recompile or `modprobe loop'.)
loop: can't open device /squashfs.osmin/osmin: No such file or directory
umount: /squashfs.osmin: not mounted
losetup: Could not find any loop device. Maybe this kernel does not know
       about the loop device? (If so, recompile or `modprobe loop'.)
loop: can't get info on device /sysroot/LiveOS/squashfs.img: Inappropriate ioctl
 for device
Usage: mount -V                 : print version
       mount -h                 : print this help
       mount                    : list mounted filesystems
       mount -l                 : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
       mount -a [-t|-O] ...     : mount all stuff from /etc/fstab
       mount device             : mount device at the known place
       mount directory          : mount known device here
       mount -t type dev dir    : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
       mount --bind olddir newdir
or move a subtree:
       mount --move olddir newdir
One can change the type of mount containing the directory dir:
       mount --make-shared dir
       mount --make-slave dir
       mount --make-private dir
       mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
       mount --make-rshared dir
       mount --make-rslave dir
       mount --make-rprivate dir
       mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using  -L label  or by uuid, using  -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say  man 8 mount .
losetup: Could not find any loop device. Maybe this kernel does not know
       about the loop device? (If so, recompile or `modprobe loop'.)
loop: can't open device /squashfs/LiveOS/ext3fs.img: No such file or directory
umount: /squashfs: not mounted
losetup: Could not find any loop device. Maybe this kernel does not know
       about the loop device? (If so, recompile or `modprobe loop'.)
loop: can't get info on device /overlay: Inappropriate ioctl for device

Usage:
  blockdev -V
  blockdev --report [devices]
  blockdev [-v|-q] commands devices

Available commands:
        --getsz                        get size in 512-byte sectors
        --setro                        set read-only
        --setrw                        set read-write
        --getro                        get read-only
        --getss                        get logical block (sector) size
        --getpbsz                      get physical block (sector) size
        --getiomin                     get minimum I/O size
        --getioopt                     get optimal I/O size
        --getalignoff                  get alignment offset
        --getmaxsect                   get max sectors per request
        --getbsz                       get blocksize
        --setbsz BLOCKSIZE             set blocksize
        --getsize                      get 32-bit sector count
        --getsize64                    get size in bytes
        --setra READAHEAD              set readahead
        --getra                        get readahead
        --setfra FSREADAHEAD           set filesystem readahead
        --getfra                       get filesystem readahead
        --flushbufs                    flush buffers
        --rereadpt                     reread partition table

Invalid format on line 1 of table on stdin
Command failed


No root device found

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-06-17 20:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-17  1:07 How does pvops create loop device for initrd to support Xen live image? Wang, Shane
2010-06-17 10:02 ` [Xen-devel] " Jeremy Fitzhardinge
2010-06-17 20:59   ` [Xen-users] " Martinx - ジェームズ

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).