[fedora-virt] Problem installing Fedora 20 cloud image

Richard W.M. Jones rjones at redhat.com
Wed Mar 19 16:15:39 UTC 2014


[Cross-posting to Fedora cloud development list]

On Tue, Mar 18, 2014 at 04:05:42PM -0400, Eric V. Smith wrote:
> I want to use the stock Fedora cloud image,
> Fedora-x86_64-20-20131211.1-sda.raw. Dom0 is also Fedora 20, running the
> Xen kernel. I've yum update'd everything.
> 
> I have downloaded a local copy of the .raw file.
> 
> I've created a user-data file containing:
> ==================
> #cloud-config
> password: fedora
> chpasswd: {expire: False}
> ssh_pwauth: True
> ==================
> 
> And a meta-data file containing:
> ==================
> instance-id: build-f20; local-hostname: build-f20
> ==================
> 
> I create an iso image of these with:
> # genisoimage -output build-f20-cidata.iso -volid cidata -joliet
> -rational-rock user-data meta-data
> 
> Then I try to install the image with:
> # virt-install --import --name build-f20 --ram 512 --vcpus 1 --disk
> path=./Fedora-x86_64-20-20131211.1-sda.raw,bus=scsi --disk
> build-f20-cidata.iso,device=cdrom,bus=scsi --network
> bridge=virbr0,model=virtio --graphics=none
> 
> After a number of output lines, I get the error:
> [    1.268756] VFS: Cannot open root device
> "UUID=e78f2b16-8836-4e6a-9e5e-fdc6c9d3cfc3" or unknown-block(0,0): error -6
> (Full --debug output at the end of the email).
> 
> I've verified that this error comes from the UUID that's in
> /boot/extlinux/extlinux.conf, but everything looks correct there. I've
> verified that this is the volume's UUID with
> 
> # guestfish -a Fedora-x86_64-20-20131211.1-sda.raw << EOF
> > run
> > vfs-uuid /dev/sda1
> > EOF
> e78f2b16-8836-4e6a-9e5e-fdc6c9d3cfc3
> 
> If I don't include the iso image, then after the VFS error line I get:
> Please append a correct "root=" boot option; here are the available
> partitions:
> with no partitions listed.
> 
> I'm at a loss as to what to try next. I suspect it has something to do
> with the /dev/sda1 vs. sda in the XML (which follows in the debug
> output), but I'm not sure what to do about it. Any suggestions?
> 
> I've been unable to find any documentation on how to use the stock F20
> image while running Dom0 as F20. Any pointers appreciated.
> 
> Thanks.
> Eric.
> 
> 
> 
> # virt-install --import --name build-f20 --ram 512 --vcpus 1 --disk
> path=./Fedora-x86_64-20-20131211.1-sda.raw,bus=scsi --disk
> build-f20-cidata.iso,device=cdrom,bus=scsi --network
> bridge=virbr0,model=virtio --graphics=none --debug
> [Tue, 18 Mar 2014 15:55:34 virt-install 25981] DEBUG (cli:187) Launched
> with command line: /usr/share/virt-manager/virt-install --import --name
> build-f20 --ram 512 --vcpus 1 --disk
> path=./Fedora-x86_64-20-20131211.1-sda.raw,bus=scsi --disk
> build-f20-cidata.iso,device=cdrom,bus=scsi --network
> bridge=virbr0,model=virtio --graphics=none --debug
> [Tue, 18 Mar 2014 15:55:34 virt-install 25981] DEBUG (cli:195)
> Requesting libvirt URI default
> [Tue, 18 Mar 2014 15:55:34 virt-install 25981] DEBUG (cli:199) Received
> libvirt URI xen:///
> [Tue, 18 Mar 2014 15:55:34 virt-install 25981] DEBUG (virt-install:193)
> Requesting virt method 'default', hv type 'default'.
> [Tue, 18 Mar 2014 15:55:34 virt-install 25981] DEBUG (virt-install:432)
> Received virt method 'xen'
> [Tue, 18 Mar 2014 15:55:34 virt-install 25981] DEBUG (virt-install:433)
> Hypervisor name is 'xen'
> [Tue, 18 Mar 2014 15:55:34 virt-install 25981] WARNING
> (virt-install:343) CDROM media does not print to the text console by
> default, so you likely will not see text install output. You might want
> to use --location.
> [Tue, 18 Mar 2014 15:55:34 virt-install 25981] DEBUG (virt-install:551)
> Guest.has_install_phase: False
> 
> Starting install...
> [Tue, 18 Mar 2014 15:55:34 virt-install 25981] DEBUG (guest:446)
> Generated install XML: None required
> [Tue, 18 Mar 2014 15:55:34 virt-install 25981] DEBUG (guest:447)
> Generated boot XML:
> <domain type="xen">
>   <name>build-f20</name>
>   <uuid>c8abc5af-d6e7-4710-bb69-869cbc59872a</uuid>
>   <memory>524288</memory>
>   <currentMemory>524288</currentMemory>
>   <vcpu>1</vcpu>
>   <bootloader>/usr/bin/pygrub</bootloader>
>   <on_poweroff>destroy</on_poweroff>
>   <on_reboot>restart</on_reboot>
>   <on_crash>restart</on_crash>
>   <devices>
>     <disk type="file" device="disk">
>       <source file="/root/Fedora-x86_64-20-20131211.1-sda.raw"/>
>       <target dev="sda" bus="scsi"/>
>     </disk>
>     <disk type="file" device="cdrom">
>       <source file="/root/build-f20-cidata.iso"/>
>       <target dev="sdb" bus="scsi"/>
>       <readonly/>
>     </disk>
>     <interface type="bridge">
>       <source bridge="virbr0"/>
>       <mac address="00:16:3e:df:98:ef"/>
>       <model type="virtio"/>
>     </interface>
>     <input type="mouse" bus="xen"/>
>   </devices>
> </domain>
> 
> Creating domain...
>                                      |    0 B  00:00:01
> [Tue, 18 Mar 2014 15:55:36 virt-install 25981] DEBUG (guest:477) XML
> fetched from libvirt object:
> <domain type='xen' id='55'>
>   <name>build-f20</name>
>   <uuid>c8abc5af-d6e7-4710-bb69-869cbc59872a</uuid>
>   <memory unit='KiB'>524288</memory>
>   <currentMemory unit='KiB'>524288</currentMemory>
>   <vcpu placement='static'>1</vcpu>
>   <bootloader>/usr/bin/pygrub</bootloader>
>   <os>
>     <type>linux</type>
>   </os>
>   <clock offset='utc' adjustment='reset'/>
>   <on_poweroff>destroy</on_poweroff>
>   <on_reboot>restart</on_reboot>
>   <on_crash>restart</on_crash>
>   <devices>
>     <disk type='file' device='disk'>
>       <driver name='file'/>
>       <source file='/root/Fedora-x86_64-20-20131211.1-sda.raw'/>
>       <target dev='sda' bus='scsi'/>
>     </disk>
>     <disk type='file' device='cdrom'>
>       <driver name='file'/>
>       <source file='/root/build-f20-cidata.iso'/>
>       <target dev='sdb' bus='scsi'/>
>       <readonly/>
>     </disk>
>     <interface type='bridge'>
>       <mac address='00:16:3e:df:98:ef'/>
>       <source bridge='virbr0'/>
>       <script path='/etc/xen/scripts/vif-bridge'/>
>       <target dev='vif55.0'/>
>       <model type='virtio'/>
>     </interface>
>     <console type='pty' tty='/dev/pts/4'>
>       <source path='/dev/pts/4'/>
>       <target type='xen' port='0'/>
>     </console>
>   </devices>
> </domain>
> 
> [Tue, 18 Mar 2014 15:55:36 virt-install 25981] DEBUG (cli:397)
> Connecting to text console
> [Tue, 18 Mar 2014 15:55:36 virt-install 25981] DEBUG (cli:344) Running:
> /usr/bin/virsh --connect xen:/// console build-f20
> Connected to domain build-f20
> Escape character is ^]
> [    0.000000] Initializing cgroup subsys cpuset
> [    0.000000] Initializing cgroup subsys cpu
> [    0.000000] Initializing cgroup subsys cpuacct
> [    0.000000] Linux version 3.11.10-301.fc20.x86_64
> (mockbuild at bkernel01.phx2.fedoraproject.org) (gcc version 4.8.2 20131017
> (Red Hat 4.8.2-1) (GCC) ) #1 SMP Thu Dec 5 14:01:17 UTC 2013
> [    0.000000] Command line: ro
> root=UUID=e78f2b16-8836-4e6a-9e5e-fdc6c9d3cfc3 console=tty1
> console=ttyS0,115200n8
> [    0.000000] ACPI in unprivileged domain disabled
> [    0.000000] e820: BIOS-provided physical RAM map:
> [    0.000000] Xen: [mem 0x0000000000000000-0x000000000009ffff] usable
> [    0.000000] Xen: [mem 0x00000000000a0000-0x00000000000fffff] reserved
> [    0.000000] Xen: [mem 0x0000000000100000-0x00000000207fffff] usable
> [    0.000000] NX (Execute Disable) protection: active
> [    0.000000] DMI not present or invalid.
> [    0.000000] No AGP bridge found
> [    0.000000] e820: last_pfn = 0x20800 max_arch_pfn = 0x400000000
> [    0.000000] init_memory_mapping: [mem 0x00000000-0x000fffff]
> [    0.000000] init_memory_mapping: [mem 0x1fe00000-0x1fffffff]
> [    0.000000] init_memory_mapping: [mem 0x1c000000-0x1fdfffff]
> [    0.000000] init_memory_mapping: [mem 0x00100000-0x1bffffff]
> [    0.000000] init_memory_mapping: [mem 0x20000000-0x207fffff]
> [    0.000000] NUMA turned off
> [    0.000000] Faking a node at [mem 0x0000000000000000-0x00000000207fffff]
> [    0.000000] Initmem setup node 0 [mem 0x00000000-0x207fffff]
> [    0.000000]   NODE_DATA [mem 0x1ff02000-0x1ff15fff]
> [    0.000000] Zone ranges:
> [    0.000000]   DMA      [mem 0x00001000-0x00ffffff]
> [    0.000000]   DMA32    [mem 0x01000000-0xffffffff]
> [    0.000000]   Normal   empty
> [    0.000000] Movable zone start for each node
> [    0.000000] Early memory node ranges
> [    0.000000]   node   0: [mem 0x00001000-0x0009ffff]
> [    0.000000]   node   0: [mem 0x00100000-0x207fffff]
> [    0.000000] SFI: Simple Firmware Interface v0.81
> http://simplefirmware.org
> [    0.000000] smpboot: Allowing 1 CPUs, 0 hotplug CPUs
> [    0.000000] No local APIC present
> [    0.000000] APIC: disable apic facility
> [    0.000000] APIC: switched to apic NOOP
> [    0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000fffff]
> [    0.000000] e820: [mem 0x20800000-0xffffffff] available for PCI devices
> [    0.000000] Booting paravirtualized kernel on Xen
> [    0.000000] Xen version: 4.3.2 (preserve-AD)
> [    0.000000] setup_percpu: NR_CPUS:128 nr_cpumask_bits:128
> nr_cpu_ids:1 nr_node_ids:1
> [    0.000000] PERCPU: Embedded 28 pages/cpu @ffff88001f800000 s85568
> r8192 d20928 u2097152
> [    0.000000] Built 1 zonelists in Node order, mobility grouping on.
> Total pages: 130922
> [    0.000000] Policy zone: DMA32
> [    0.000000] Kernel command line: ro
> root=UUID=e78f2b16-8836-4e6a-9e5e-fdc6c9d3cfc3 console=tty1
> console=ttyS0,115200n8
> [    0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
> [    0.000000] xsave: enabled xstate_bv 0x7, cntxt size 0x340
> [    0.000000] Checking aperture...
> [    0.000000] No AGP bridge found
> [    0.000000] Memory: 494892K/532092K available (6493K kernel code,
> 990K rwdata, 2864K rodata, 1424K init, 1544K bss, 37200K reserved)
> [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
> [    0.000000] Hierarchical RCU implementation.
> [    0.000000]  RCU restricting CPUs from NR_CPUS=128 to nr_cpu_ids=1.
> [    0.000000] NR_IRQS:8448 nr_irqs:256 16
> [    0.000000] Console: colour dummy device 80x25
> [    0.000000] console [tty0] enabled
> [    0.000000] console [hvc0] enabled
> [    0.000000] console [ttyS0] enabled
> [    0.000000] allocated 2621440 bytes of page_cgroup
> [    0.000000] please try 'cgroup_disable=memory' option if you don't
> want memory cgroups
> [    0.000000] installing Xen timer for CPU 0
> [    0.000000] tsc: Detected 3400.144 MHz processor
> [    0.001000] Calibrating delay loop (skipped), value calculated using
> timer frequency.. 6800.28 BogoMIPS (lpj=3400144)
> [    0.001000] pid_max: default: 32768 minimum: 301
> [    0.001000] Security Framework initialized
> [    0.001000] SELinux:  Initializing.
> [    0.001000] Dentry cache hash table entries: 65536 (order: 7, 524288
> bytes)
> [    0.001000] Inode-cache hash table entries: 32768 (order: 6, 262144
> bytes)
> [    0.001000] Mount-cache hash table entries: 256
> [    0.001000] Initializing cgroup subsys memory
> [    0.001000] Initializing cgroup subsys devices
> [    0.001000] Initializing cgroup subsys freezer
> [    0.001000] Initializing cgroup subsys net_cls
> [    0.001010] Initializing cgroup subsys blkio
> [    0.001046] Initializing cgroup subsys perf_event
> [    0.001090] Initializing cgroup subsys hugetlb
> [    0.001177] ENERGY_PERF_BIAS: Set to 'normal', was 'performance'
> [    0.001177] ENERGY_PERF_BIAS: View and update with
> x86_energy_perf_policy(8)
> [    0.001289] CPU: Physical Processor ID: 0
> [    0.001328] CPU: Processor Core ID: 0
> [    0.001631] Last level iTLB entries: 4KB 512, 2MB 0, 4MB 0
> [    0.001631] Last level dTLB entries: 4KB 512, 2MB 32, 4MB 32
> [    0.001631] tlb_flushall_shift: 1
> [    0.030632] Freeing SMP alternatives memory: 24K (ffffffff81e5d000 -
> ffffffff81e63000)
> [    0.032322] ftrace: allocating 25129 entries in 99 pages
> [    0.036101] Performance Events: unsupported p6 CPU model 58 no PMU
> driver, software events only.
> [    0.036902] Brought up 1 CPUs
> [    0.036953] NMI watchdog: disabled (cpu0): hardware events not enabled
> [    0.037005] devtmpfs: initialized
> [    0.037558] atomic64 test passed for x86-64 platform with CX8 and
> with SSE
> [    0.037624] xen:grant_table: Grant tables using version 2 layout
> [    0.037675] Grant table initialized
> [    0.056717] RTC time: 165:165:165, date: 165/165/65
> [    0.056820] NET: Registered protocol family 16
> [    0.057339] PCI: setting up Xen PCI frontend stub
> [    0.057796] bio: create slab <bio-0> at 0
> [    0.057886] ACPI: Interpreter disabled.
> [    0.057917] xen:balloon: Initialising balloon driver
> [    0.058023] xen_balloon: Initialising balloon driver
> [    0.058084] vgaarb: loaded
> [    0.058142] SCSI subsystem initialized
> [    0.058240] usbcore: registered new interface driver usbfs
> [    0.058290] usbcore: registered new interface driver hub
> [    0.058352] usbcore: registered new device driver usb
> [    0.058442] PCI: System does not support PCI
> [    0.058483] PCI: System does not support PCI
> [    0.059051] NetLabel: Initializing
> [    0.059077] NetLabel:  domain hash size = 128
> [    0.059107] NetLabel:  protocols = UNLABELED CIPSOv4
> [    0.059149] NetLabel:  unlabeled traffic allowed by default
> [    0.059212] Switched to clocksource xen
> [    0.061818] pnp: PnP ACPI: disabled
> [    0.062600] NET: Registered protocol family 2
> [    0.062711] TCP established hash table entries: 4096 (order: 4, 65536
> bytes)
> [    0.062778] TCP bind hash table entries: 4096 (order: 4, 65536 bytes)
> [    0.062833] TCP: Hash tables configured (established 4096 bind 4096)
> [    0.062884] TCP: reno registered
> [    0.062910] UDP hash table entries: 256 (order: 1, 8192 bytes)
> [    0.062953] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
> [    0.063024] NET: Registered protocol family 1
> [    0.063111] platform rtc_cmos: registered platform RTC device (no PNP
> device found)
> [    0.182976] alg: No test for __gcm-aes-aesni (__driver-gcm-aes-aesni)
> [    0.183175] Initialise system trusted keyring
> [    0.183239] audit: initializing netlink socket (disabled)
> [    0.183289] type=2000 audit(1395172536.673:1): initialized
> [    0.197775] HugeTLB registered 2 MB page size, pre-allocated 0 pages
> [    0.198334] zbud: loaded
> [    0.198457] VFS: Disk quotas dquot_6.5.2
> [    0.198522] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
> [    0.198782] msgmni has been set to 966
> [    0.198854] Key type big_key registered
> [    0.199217] alg: No test for stdrng (krng)
> [    0.199256] NET: Registered protocol family 38
> [    0.199297] Key type asymmetric registered
> [    0.199334] Asymmetric key parser 'x509' registered
> [    0.199401] Block layer SCSI generic (bsg) driver version 0.4 loaded
> (major 252)
> [    0.199476] io scheduler noop registered
> [    0.199509] io scheduler deadline registered
> [    0.199570] io scheduler cfq registered (default)
> [    0.199656] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
> [    0.199708] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
> [    0.199940] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
> [    0.200181] Non-volatile memory driver v1.3
> [    0.200214] Linux agpgart interface v0.103
> [    0.200323] libphy: Fixed MDIO Bus: probed
> [    0.200392] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
> [    0.200441] ehci-pci: EHCI PCI platform driver
> [    0.200486] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
> [    0.200537] ohci-pci: OHCI PCI platform driver
> [    0.200583] uhci_hcd: USB Universal Host Controller Interface driver
> [    0.200656] usbcore: registered new interface driver usbserial
> [    0.200703] usbcore: registered new interface driver usbserial_generic
> [    0.200752] usbserial: USB Serial support registered for generic
> [    0.200801] i8042: PNP: No PS/2 controller found. Probing ports directly.
> [    1.208821] mousedev: PS/2 mouse device common for all mice
> [    1.268983] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
> [    1.269076] rtc_cmos: probe of rtc_cmos failed with error -38
> [    1.269178] device-mapper: uevent: version 1.0.3
> [    1.269264] device-mapper: ioctl: 4.25.0-ioctl (2013-06-26)
> initialised: dm-devel at redhat.com
> [    1.269355] Intel P-state driver initializing.
> [    1.269424] hidraw: raw HID events driver (C) Jiri Kosina
> [    1.269525] usbcore: registered new interface driver usbhid
> [    1.269567] usbhid: USB HID core driver
> [    1.269619] drop_monitor: Initializing network drop monitor service
> [    1.269743] ip_tables: (C) 2000-2006 Netfilter Core Team
> [    1.269810] TCP: cubic registered
> [    1.269840] Initializing XFRM netlink socket
> [    1.269942] NET: Registered protocol family 10
> [    1.270100] mip6: Mobile IPv6
> [    1.270126] NET: Registered protocol family 17
> [    1.270235] Loading compiled-in X.509 certificates
> [    1.270831] Loaded X.509 cert 'Fedora kernel signing key:
> 03591dc57a690741401a1c202e2b3d9f4fed2a0e'
> [    1.270912] registered taskstats version 1
> [    1.270965] xenbus_probe_frontend: Device with no driver: device/vbd/2048
> [    1.271019] xenbus_probe_frontend: Device with no driver: device/vbd/2064
> [    1.271100] xenbus_probe_frontend: Device with no driver: device/vif/0
> [    1.271178]   Magic number: 1:252:3141
> [    1.271222] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
> [    1.271323] md: Waiting for all devices to be available before autodetect
> [    1.271373] md: If you don't use raid, use raid=noautodetect
> [    1.271504] md: Autodetecting RAID arrays.
> [    1.271536] md: Scanned 0 and added 0 devices.
> [    1.271576] md: autorun ...
> [    1.271604] md: ... autorun DONE.
> [    1.271671] VFS: Cannot open root device
> "UUID=e78f2b16-8836-4e6a-9e5e-fdc6c9d3cfc3" or unknown-block(0,0): error -6
> 
> Domain creation completed. You can restart your domain by running:
>   virsh --connect xen:/// start build-f20
> #
> _______________________________________________
> virt mailing list
> virt at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/virt

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org


More information about the cloud mailing list