I'm trying to get started with Xen and thought I'd do a simple install Fedora 18 as a DomU under a Fedora 18 Dom0. Unfortunately this is not working for me.
It appears to boot the kernel fine, but then complains that it can't find "/dev/root". I presume that this would be a specific root image for the Fedora installer?
The logs indicate that the kernel command line is empty. Apparently there should be something in there (maybe "root=/dev/xvda") but I am not sure how to achieve this. I would have expected virt-install to do this for me, though.
Can someone please let me know what I am doing wrong? (details of what I am trying are below).
Also, I had to manually start "xend" to get this far. Is this normal? It didn't appear in the services in /etc/rc.d/init.d
Thank you
I created a 20GB logical volume /dev/fedora_dhcp1/xen1 I mounted the Fedora 18 installation ISO into /mnt/install (-t iso9660 -o loop,ro) I created a bridge "brctl addbr br0" (I haven't added any interfaces to it yet, I plan to sort out the network after getting virtualisation working) I created the Xen DomU instance using the following command... [root@dhcp1 ~]# virt-install --paravirt --name xen1 --ram 256 --vcpus 1 -f /dev/fedora_dhcp1/xen1 --network bridge=br0 --location /mnt/install --graphics none
Starting install... Retrieving file .treeinfo... | 2.4 kB 00:00:00 !!! Retrieving file vmlinuz-PAE... | 9.3 MB 00:00:00 !!! Retrieving file initrd-PAE.img... | 52 MB 00:00:00 !!! Creating domain... | 0 B 00:00:01 Connected to domain xen1 Escape character is ^] [ 0.000000] Reserving virtual address space above 0xf5800000 [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 3.6.10-4.fc18.i686.PAE (mockbuild@) (gcc version 4.7.2 20121109 (Red Hat 4.7.2-8) (GCC) ) #1 SMP Tue Dec 11 18:15:08 UTC 2012 [ 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-0x00000000107fffff] usable [ 0.000000] NX (Execute Disable) protection: active [ 0.000000] DMI not present or invalid. [ 0.000000] e820: last_pfn = 0x10800 max_arch_pfn = 0x1000000 [ 0.000000] init_memory_mapping: [mem 0x00000000-0x107fffff] [ 0.000000] RAMDISK: [mem 0x0102f000-0x02a6cfff] [ 0.000000] 0MB HIGHMEM available. [ 0.000000] 264MB LOWMEM available. [ 0.000000] mapped low ram: 0 - 10800000 [ 0.000000] low ram: 0 - 10800000 [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x00010000-0x00ffffff] [ 0.000000] Normal [mem 0x01000000-0x107fffff] [ 0.000000] HighMem empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x00010000-0x0009ffff] [ 0.000000] node 0: [mem 0x00100000-0x107fffff] [ 0.000000] Using APIC driver default [ 0.000000] SFI: Simple Firmware Interface v0.81 http://simplefirmware.org [ 0.000000] smpboot: Allowing 1 CPUs, 0 hotplug CPUs [ 0.000000] Local APIC disabled by BIOS -- you can enable it with "lapic" [ 0.000000] APIC: disable apic facility [ 0.000000] APIC: switched to apic NOOP [ 0.000000] PM: Registered nosave memory: 00000000000a0000 - 0000000000100000 [ 0.000000] e820: [mem 0x10800000-0xffffffff] available for PCI devices [ 0.000000] Booting paravirtualized kernel on Xen [ 0.000000] Xen version: 4.2.2 (preserve-AD) [ 0.000000] setup_percpu: NR_CPUS:32 nr_cpumask_bits:32 nr_cpu_ids:1 nr_node_ids:1 [ 0.000000] PERCPU: Embedded 14 pages/cpu @cfdde000 s34880 r0 d22464 u57344 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 66944 [ 0.000000] Kernel command line: [ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) [ 0.000000] __ex_table already sorted, skipping sort [ 0.000000] Initializing CPU#0 [ 0.000000] allocated 540544 bytes of page_cgroup [ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups [ 0.000000] Initializing HighMem for node 0 (00000000:00000000) [ 0.000000] Memory: 220784k/270336k available (5639k kernel code, 49104k reserved, 2745k data, 656k init, 0k highmem) [ 0.000000] virtual kernel memory layout: [ 0.000000] fixmap : 0xf5296000 - 0xf57ff000 (5540 kB) [ 0.000000] pkmap : 0xf4e00000 - 0xf5000000 (2048 kB) [ 0.000000] vmalloc : 0xd1000000 - 0xf4dfe000 ( 573 MB) [ 0.000000] lowmem : 0xc0000000 - 0xd0800000 ( 264 MB) [ 0.000000] .init : 0xc0c31000 - 0xc0cd5000 ( 656 kB) [ 0.000000] .data : 0xc0981f81 - 0xc0c30640 (2745 kB) [ 0.000000] .text : 0xc0400000 - 0xc0981f81 (5639 kB) [ 0.000000] SLUB: Genslabs=15, HWalign=128, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] Hierarchical RCU implementation. [ 0.000000] RCU restricting CPUs from NR_CPUS=32 to nr_cpu_ids=1. [ 0.000000] NR_IRQS:2304 nr_irqs:256 16 [ 0.000000] Console: colour dummy device 80x25 [ 0.000000] console [tty0] enabled [ 0.000000] console [hvc0] enabled [ 0.000000] installing Xen timer for CPU 0 [ 0.000000] tsc: Detected 3192.140 MHz processor [ 0.000999] Calibrating delay loop (skipped), value calculated using timer frequency.. 6384.28 BogoMIPS (lpj=3192140) [ 0.000999] pid_max: default: 32768 minimum: 301 [ 0.000999] Security Framework initialized [ 0.000999] SELinux: Initializing. [ 0.000999] Mount-cache hash table entries: 512 [ 0.000999] Initializing cgroup subsys cpuacct [ 0.000999] Initializing cgroup subsys memory [ 0.000999] Initializing cgroup subsys devices [ 0.000999] Initializing cgroup subsys freezer [ 0.000999] Initializing cgroup subsys net_cls [ 0.000999] Initializing cgroup subsys blkio [ 0.000999] Initializing cgroup subsys perf_event [ 0.000999] CPU: Physical Processor ID: 0 [ 0.000999] CPU: Processor Core ID: 0 [ 0.000999] Last level iTLB entries: 4KB 64, 2MB 64, 4MB 64 [ 0.000999] Last level dTLB entries: 4KB 64, 2MB 0, 4MB 64 [ 0.000999] tlb_flushall_shift is 0x6 [ 0.001032] SMP alternatives: switching to UP code [ 0.081199] Freeing SMP alternatives: 24k freed [ 0.081250] ftrace: allocating 23058 entries in 46 pages [ 0.090144] Performance Events: unsupported Netburst CPU model 4 no PMU driver, software events only. [ 0.091214] NMI watchdog: disabled (cpu0): hardware events not enabled [ 0.091321] Brought up 1 CPUs [ 0.091630] devtmpfs: initialized [ 0.093188] atomic64 test passed for i586+ platform with CX8 and with SSE [ 0.093282] Grant tables using version 2 layout. [ 0.093359] Grant table initialized [ 0.111982] RTC time: 165:165:165, date: 165/165/65 [ 0.112096] NET: Registered protocol family 16 [ 0.113006] PCI: setting up Xen PCI frontend stub [ 0.114351] bio: create slab <bio-0> at 0 [ 0.114467] ACPI: Interpreter disabled. [ 0.114509] xen/balloon: Initialising balloon driver. [ 0.116027] xen-balloon: Initialising balloon driver. [ 0.116153] vgaarb: loaded [ 0.116362] SCSI subsystem initialized [ 0.116594] usbcore: registered new interface driver usbfs [ 0.116620] usbcore: registered new interface driver hub [ 0.117036] usbcore: registered new device driver usb [ 0.117254] PCI: System does not support PCI [ 0.117271] PCI: System does not support PCI [ 0.117461] NetLabel: Initializing [ 0.117473] NetLabel: domain hash size = 128 [ 0.117481] NetLabel: protocols = UNLABELED CIPSOv4 [ 0.117501] NetLabel: unlabeled traffic allowed by default [ 0.117528] Switching to clocksource xen [ 0.128867] pnp: PnP ACPI: disabled [ 0.131836] NET: Registered protocol family 2 [ 0.132040] TCP established hash table entries: 16384 (order: 5, 131072 bytes) [ 0.132148] TCP bind hash table entries: 16384 (order: 5, 131072 bytes) [ 0.132223] TCP: Hash tables configured (established 16384 bind 16384) [ 0.132256] TCP: reno registered [ 0.132266] UDP hash table entries: 256 (order: 1, 8192 bytes) [ 0.132280] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes) [ 0.132359] NET: Registered protocol family 1 [ 0.132609] Unpacking initramfs... [ 5.400424] Freeing initrd memory: 26872k freed [ 5.420100] platform rtc_cmos: registered platform RTC device (no PNP device found) [ 5.420423] apm: BIOS not found. [ 5.420790] Initialise module verification [ 5.420887] audit: initializing netlink socket (disabled) [ 5.420926] type=2000 audit(1381867979.607:1): initialized [ 5.443018] HugeTLB registered 2 MB page size, pre-allocated 0 pages [ 5.445007] VFS: Disk quotas dquot_6.5.2 [ 5.445162] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 5.445893] msgmni has been set to 483 [ 5.447183] alg: No test for stdrng (krng) [ 5.447213] NET: Registered protocol family 38 [ 5.447231] Key type asymmetric registered [ 5.447245] Asymmetric key parser 'x509' registered [ 5.447349] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) [ 5.447457] io scheduler noop registered [ 5.447476] io scheduler deadline registered [ 5.447512] io scheduler cfq registered (default) [ 5.447736] pci_hotplug: PCI Hot Plug PCI Core version: 0.5 [ 5.447789] pciehp: PCI Express Hot Plug Controller Driver version: 0.4 [ 5.447805] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5 [ 5.448701] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 5.449418] Non-volatile memory driver v1.3 [ 5.449436] Linux agpgart interface v0.103 [ 5.450770] loop: module loaded [ 5.451003] libphy: Fixed MDIO Bus: probed [ 5.451195] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 5.451245] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 5.451283] uhci_hcd: USB Universal Host Controller Interface driver [ 5.451406] usbcore: registered new interface driver usbserial [ 5.451447] usbcore: registered new interface driver usbserial_generic [ 5.451483] USB Serial support registered for generic [ 5.451500] usbserial: USB Serial Driver core [ 5.451563] i8042: PNP: No PS/2 controller found. Probing ports directly. [ 5.452551] mousedev: PS/2 mouse device common for all mice [ 5.512978] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0 [ 5.513129] rtc_cmos: probe of rtc_cmos failed with error -38 [ 5.513270] device-mapper: uevent: version 1.0.3 [ 5.513381] device-mapper: ioctl: 4.23.0-ioctl (2012-07-25) initialised: dm-devel@redhat.com [ 5.513464] EFI Variables Facility v0.08 2004-May-17 [ 5.513641] usbcore: registered new interface driver usbhid [ 5.513652] usbhid: USB HID core driver [ 5.513686] drop_monitor: Initializing network drop monitor service [ 5.513818] ip_tables: (C) 2000-2006 Netfilter Core Team [ 5.513897] TCP: cubic registered [ 5.513907] Initializing XFRM netlink socket [ 5.514097] NET: Registered protocol family 10 [ 5.514332] mip6: Mobile IPv6 [ 5.514343] NET: Registered protocol family 17 [ 5.514370] Using IPI No-Shortcut mode [ 5.514529] Loading module verification certificates [ 5.519112] MODSIGN: Loaded cert 'Fedora kernel signing key: de2965de66714570abd7e5852342fe03dd0c1ba7' [ 5.519152] registered taskstats version 1 [ 5.519178] XENBUS: Device with no driver: device/vbd/51712 [ 5.519189] XENBUS: Device with no driver: device/vif/0 [ 5.519272] Magic number: 1:252:3141 [ 5.519319] drivers/rtc/hctosys.c: unable to open rtc device (rtc0) [ 5.519873] Freeing unused kernel memory: 656k freed [ 5.523151] Write protecting the kernel text: 5640k [ 5.524299] Write protecting the kernel read-only data: 2212k [ 5.524315] NX-protecting the kernel data: 4600k [ 5.533912] systemd[1]: systemd 195 running in system mode. (+PAM +LIBWRAP +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ; fedora) [ 5.534049] systemd[1]: Running in initial RAM disk.
Welcome to Fedora 18 (Spherical Cow) dracut-024-18.git20130102.fc18 (Initramfs)!
[ 5.534462] systemd[1]: No hostname configured. [ 5.534488] systemd[1]: Set hostname to <localhost>. [ 5.534651] systemd[1]: Initializing machine ID from random generator. [ 5.561666] systemd[1]: Starting Encrypted Volumes. [ OK ] Reached target Encrypted Volumes. [ 5.601607] systemd[1]: Reached target Encrypted Volumes. [ 5.601835] systemd[1]: Starting udev Kernel Socket. [ OK ] Listening on udev Kernel Socket. [ 5.602206] systemd[1]: Listening on udev Kernel Socket. [ 5.602403] systemd[1]: Starting udev Control Socket. [ OK ] Listening on udev Control Socket. [ 5.602748] systemd[1]: Listening on udev Control Socket. [ 5.602819] systemd[1]: Starting Journal Socket. [ OK ] Listening on Journal Socket. [ 5.603217] systemd[1]: Listening on Journal Socket. [ 5.603297] systemd[1]: Starting dracut cmdline hook... Starting dracut cmdline hook... [ 5.605425] systemd[1]: Started Load Kernel Modules. [ 5.605554] systemd[1]: Starting Journal Service... Starting Journal Service... [ OK ] Started Journal Service. [ 5.648995] systemd[1]: Started Journal Service. [ 5.651273] systemd[1]: Starting Sockets. [ OK ] Reached target Sockets. [ 5.651494] systemd[1]: Reached target Sockets. [ 5.651570] systemd[1]: Starting Swap. [ OK ] Reached target Swap. [ 5.651769] systemd[1]: Reached target Swap. [ 5.651850] systemd[1]: Starting Local File Systems. [ OK ] Reached target Local File Systems. [ 5.652027] systemd[1]: Reached target Local File Systems. [ 6.009250] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found [ 6.009278] EDD information not available. [ OK ] Started dracut cmdline hook. Starting Setup Virtual Console... Starting dracut pre-udev hook... [ OK ] Started Setup Virtual Console. [ OK ] Reached target System Initialization. [ 6.726690] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 6.737807] Loading iSCSI transport class v2.0-870. [ 6.754446] iscsi: registered transport (tcp) [ 6.764264] alua: device handler registered [ 6.773860] emc: device handler registered [ 6.783584] hp_sw: device handler registered [ 6.793520] rdac: device handler registered [ 6.805629] Floppy drive(s): fd0 is unknown type 15 (usb?), fd1 is unknown type 15 (usb?) [ 6.805674] floppy0: Unable to grab IRQ6 for the floppy driver [ 6.816022] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found [ 6.816054] EDD information not available. [ 6.830877] No iBFT detected. [ 6.840605] md: raid0 personality registered for level 0 [ 6.852284] md: raid1 personality registered for level 1 [ 6.862087] async_tx: api initialized (async) [ 6.867605] xor: automatically using best checksumming function: [ 6.877077] pIII_sse : 1932.000 MB/sec [ 6.905090] raid6: mmxx1 1863 MB/s [ 6.922093] raid6: mmxx2 2136 MB/s [ 6.939094] raid6: sse1x1 1066 MB/s [ 6.956097] raid6: sse1x2 2078 MB/s [ 6.973082] raid6: sse2x1 2164 MB/s [ 6.990076] raid6: sse2x2 3160 MB/s [ 6.990093] raid6: using algorithm sse2x2 (3160 MB/s) [ 6.990109] raid6: using intx1 recovery algorithm [ 7.016396] md: raid6 personality registered for level 6 [ 7.016421] md: raid5 personality registered for level 5 [ 7.016438] md: raid4 personality registered for level 4 [ 7.037861] md: raid10 personality registered for level 10 [ 7.048264] md: linear personality registered for level -1 [ 7.076403] device-mapper: multipath: version 1.5.0 loaded [ 7.086880] device-mapper: multipath round-robin: version 1.0.0 loaded [ 7.229246] RPC: Registered named UNIX socket transport module. [ 7.229270] RPC: Registered udp transport module. [ 7.229279] RPC: Registered tcp transport module. [ 7.229287] RPC: Registered tcp NFSv4.1 backchannel transport module. [ OK ] Started dracut pre-udev hook. Starting udev Kernel Device Manager... [ OK ] Started udev Kernel Device Manager. Starting dracut pre-trigger hook... [ 7.560135] systemd-udevd[225]: starting version 195 [ OK ] Started dracut pre-trigger hook. Starting udev Coldplug all Devices... [ OK ] Started udev Coldplug all Devices. Starting Show Plymouth Boot Screen... Starting dracut initqueue hook... [ 8.228185] Disabling lock debugging due to kernel taint [ 8.230621] Initialising Xen virtual ethernet driver. [ 8.263474] blkfront: xvda: flush diskcache: enabled [ 8.293282] xvda: unknown partition table [ OK ] Started Show Plymouth Boot Screen. [ OK ] Reached target Basic System. dracut-initqueue[278]: Warning: Could not boot. [ OK ] Started Show Plymouth Boot Screen. [ OK ] Reached target Basic System. dracut-initqueue[278]: Warning: Could not boot. dracut-initqueue[278]: Warning: /dev/root does not exist
Entering emergency mode. Exit the shell to continue. Type "journalctl" to view system logs.
dracut:/# dracut:/# cat /proc/cmdline
dracut:/#
Entering emergency mode. Exit the shell to continue. Type "journalctl" to view system logs.
dracut:/#
On Wed, 16 Oct 2013, G Crowe wrote:
I'm trying to get started with Xen and thought I'd do a simple install Fedora 18 as a DomU under a Fedora 18 Dom0. Unfortunately this is not working for me.
It appears to boot the kernel fine, but then complains that it can't find "/dev/root". I presume that this would be a specific root image for the Fedora installer?
The logs indicate that the kernel command line is empty. Apparently there should be something in there (maybe "root=/dev/xvda") but I am not sure how to achieve this. I would have expected virt-install to do this for me, though.
Can someone please let me know what I am doing wrong? (details of what I am trying are below).
Also, I had to manually start "xend" to get this far. Is this normal? It didn't appear in the services in /etc/rc.d/init.d
In xen, xend is gradually being phased out in favour of the libxl interface, and it isn't started by default on Fedora. If you want to enable it on boot run systemd enable xend.service
I created a 20GB logical volume /dev/fedora_dhcp1/xen1 I mounted the Fedora 18 installation ISO into /mnt/install (-t iso9660 -o loop,ro) I created a bridge "brctl addbr br0" (I haven't added any interfaces to it yet, I plan to sort out the network after getting virtualisation working) I created the Xen DomU instance using the following command... [root@dhcp1 ~]# virt-install --paravirt --name xen1 --ram 256 --vcpus 1 -f /dev/fedora_dhcp1/xen1 --network bridge=br0 --location /mnt/install --graphics none
I am not an expert on using virt-install but I think you need to pass the install image to the guest as a disk as the --location option only fetches the kernel and initrd needed for the initial boot. You probably also need to add options to the boot line to tell the installer how to find the install image or stage2 file.
Michael Young