[kernel-xen] Installing Debian using Xen 4.2.0

Joseph Fialkowski joe at zoomcloud.net
Mon Oct 1 06:35:06 EST 2012


On 30 Sep 2012, at 12:13, Steven Haigh wrote:

> I downloaded your ubuntu-12.04-x86_64.tar.gz then extracted it to a 
> new LV. I modified the grub boot though to have root=/dev/xvda instead 
> of /dev/xvda1 as I did an entire LV, not partitioned.
>
> Booted fine.
>
> Started domain debtest.vm (id=39)
>                              [    0.000000] Initializing cgroup subsys 
> cpuset
> [    0.000000] Initializing cgroup subsys cpu
> [    0.000000] Linux version 3.2.0-29-virtual (buildd at allspice) (gcc 
> version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #46-Ubuntu SMP Fri Jul 
> 27 17:23:50 UTC 2012 (Ubuntu 3.2.0-29.46-virtual 3.2.24)
> [    0.000000] Command line: root=/dev/xvda console=hvc0 ro
> [    0.000000] KERNEL supported cpus:
> [    0.000000]   Intel GenuineIntel
> [    0.000000]   AMD AuthenticAMD
> [    0.000000]   Centaur CentaurHauls
> [    0.000000] ACPI in unprivileged domain disabled
> [    0.000000] Released 0 pages of unused memory
> [    0.000000] Set 0 page(s) to 1-1 mapping
> [    0.000000] BIOS-provided physical RAM map:
> [    0.000000]  Xen: 0000000000000000 - 00000000000a0000 (usable)
> [    0.000000]  Xen: 00000000000a0000 - 0000000000100000 (reserved)
> [    0.000000]  Xen: 0000000000100000 - 0000000040800000 (usable)
> [    0.000000] Notice: NX (Execute Disable) protection missing in CPU!
> [    0.000000] DMI not present or invalid.
> [    0.000000] No AGP bridge found
> [    0.000000] last_pfn = 0x40800 max_arch_pfn = 0x400000000
> [    0.000000] init_memory_mapping: 0000000000000000-0000000040800000
> [    0.000000] RAMDISK: 02057000 - 02ecc000
> [    0.000000] No NUMA configuration found
> [    0.000000] Faking a node at 0000000000000000-0000000040800000
> [    0.000000] Initmem setup node 0 0000000000000000-0000000040800000
> [    0.000000]   NODE_DATA [000000003fffb000 - 000000003fffffff]
> [    0.000000] Zone PFN ranges:
> [    0.000000]   DMA      0x00000010 -> 0x00001000
> [    0.000000]   DMA32    0x00001000 -> 0x00100000
> [    0.000000]   Normal   empty
> [    0.000000] Movable zone start PFN for each node
> [    0.000000] early_node_map[2] active PFN ranges
> [    0.000000]     0: 0x00000010 -> 0x000000a0
> [    0.000000]     0: 0x00000100 -> 0x00040800
> [    0.000000] SFI: Simple Firmware Interface v0.81 
> http://simplefirmware.org
> [    0.000000] SMP: Allowing 2 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: 00000000000a0000 - 
> 0000000000100000
> [    0.000000] Allocating PCI resources starting at 40800000 (gap: 
> 40800000:bf800000)
> [    0.000000] Booting paravirtualized kernel on Xen
> [    0.000000] Xen version: 4.2.0 (preserve-AD)
> [    0.000000] setup_percpu: NR_CPUS:64 nr_cpumask_bits:64 
> nr_cpu_ids:2 nr_node_ids:1
> [    0.000000] PERCPU: Embedded 28 pages/cpu @ffff88003fc00000 s82816 
> r8192 d23680 u1048576
> [    0.000000] Built 1 zonelists in Node order, mobility grouping on. 
> Total pages: 259460
> [    0.000000] Policy zone: DMA32
> [    0.000000] Kernel command line: root=/dev/xvda console=hvc0 ro
> [    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
> [    0.000000] Checking aperture...
> [    0.000000] No AGP bridge found
> [    0.000000] Memory: 994644k/1056768k available (6527k kernel code, 
> 448k absent, 61676k reserved, 6663k data, 920k init)
> [    0.000000] SLUB: Genslabs=15, HWalign=64, Order=0-3, MinObjects=0, 
> CPUs=2, Nodes=1
> [    0.000000] Hierarchical RCU implementation.
> [    0.000000]  RCU dyntick-idle grace-period acceleration is enabled.
> [    0.000000] NR_IRQS:4352 nr_irqs:288 16
> [    0.000000] Console: colour dummy device 80x25
> [    0.000000] console [tty0] enabled
> [    0.000000] console [hvc0] enabled
> [    0.000000] allocated 9437184 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] Detected 2327.542 MHz processor.
> [    0.004000] Calibrating delay loop (skipped), value calculated 
> using timer frequency.. 4655.08 BogoMIPS (lpj=9310168)
> [    0.004000] pid_max: default: 32768 minimum: 301
> [    0.004000] Security Framework initialized
> [    0.004000] AppArmor: AppArmor initialized
> [    0.004000] Yama: becoming mindful.
> [    0.004000] Dentry cache hash table entries: 131072 (order: 8, 
> 1048576 bytes)
> [    0.004000] Inode-cache hash table entries: 65536 (order: 7, 524288 
> bytes)
> [    0.004000] Mount-cache hash table entries: 256
> [    0.004000] Initializing cgroup subsys cpuacct
> [    0.004000] Initializing cgroup subsys memory
> [    0.004000] Initializing cgroup subsys devices
> [    0.004000] Initializing cgroup subsys freezer
> [    0.004000] Initializing cgroup subsys blkio
> [    0.004000] Initializing cgroup subsys perf_event
> [    0.004000] CPU: Physical Processor ID: 0
> [    0.004000] CPU: Processor Core ID: 0
> [    0.004000] SMP alternatives: switching to UP code
> [    0.041627] ftrace: allocating 26992 entries in 106 pages
> [    0.044108] cpu 0 spinlock event irq 17
> [    0.044152] Performance Events: unsupported p6 CPU model 15 no PMU 
> driver, software events only.
> [    0.044398] NMI watchdog disabled (cpu0): hardware events not 
> enabled
> [    0.044538] installing Xen timer for CPU 1
> [    0.044559] cpu 1 spinlock event irq 23
> [    0.044630] SMP alternatives: switching to SMP code
> [    0.080825] NMI watchdog disabled (cpu1): hardware events not 
> enabled
> [    0.080902] Brought up 2 CPUs
> [    0.081014] devtmpfs: initialized
> [    0.081014] EVM: security.selinux
> [    0.081014] EVM: security.SMACK64
> [    0.081014] EVM: security.capability
> [    0.081014] Grant table initialized
> [    0.081014] print_constraints: dummy:
> [    0.102806] RTC time: 165:165:165, date: 165/165/65
> [    0.102882] NET: Registered protocol family 16
> [    0.103130] Trying to unpack rootfs image as initramfs...
> [    0.108595] PCI: setting up Xen PCI frontend stub
> [    0.110425] bio: create slab <bio-0> at 0
> [    0.110563] ACPI: Interpreter disabled.
> [    0.110826] xen/balloon: Initialising balloon driver.
> [    0.111886] xen-balloon: Initialising balloon driver.
> [    0.112047] vgaarb: loaded
> [    0.112047] i2c-core: driver [aat2870] using legacy suspend method
> [    0.112047] i2c-core: driver [aat2870] using legacy resume method
> [    0.112047] SCSI subsystem initialized
> [    0.112467] usbcore: registered new interface driver usbfs
> [    0.112467] usbcore: registered new interface driver hub
> [    0.112541] usbcore: registered new device driver usb
> [    0.112748] PCI: System does not support PCI
> [    0.112748] PCI: System does not support PCI
> [    0.112748] NetLabel: Initializing
> [    0.112748] NetLabel:  domain hash size = 128
> [    0.112748] NetLabel:  protocols = UNLABELED CIPSOv4
> [    0.112748] NetLabel:  unlabeled traffic allowed by default
> [    0.112748] Switching to clocksource xen
> [    0.122962] AppArmor: AppArmor Filesystem Enabled
> [    0.123011] pnp: PnP ACPI: disabled
> [    0.125754] Freeing initrd memory: 14804k freed
> [    0.125889] NET: Registered protocol family 2
> [    0.126133] IP route cache hash table entries: 32768 (order: 6, 
> 262144 bytes)
> [    0.127258] TCP established hash table entries: 131072 (order: 9, 
> 2097152 bytes)
> [    0.129191] TCP bind hash table entries: 65536 (order: 8, 1048576 
> bytes)
> [    0.129990] TCP: Hash tables configured (established 131072 bind 
> 65536)
> [    0.129997] TCP reno registered
> [    0.130018] UDP hash table entries: 512 (order: 2, 16384 bytes)
> [    0.130054] UDP-Lite hash table entries: 512 (order: 2, 16384 
> bytes)
> [    0.184888] NET: Registered protocol family 1
> [    0.184991] platform rtc_cmos: registered platform RTC device (no 
> PNP device found)
> [    0.185378] audit: initializing netlink socket (disabled)
> [    0.185397] type=2000 audit(1349021499.325:1): initialized
> [    0.211196] HugeTLB registered 2 MB page size, pre-allocated 0 
> pages
> [    0.213565] VFS: Disk quotas dquot_6.5.2
> [    0.213639] Dquot-cache hash table entries: 512 (order 0, 4096 
> bytes)
> [    0.214379] fuse init (API version 7.17)
> [    0.214557] msgmni has been set to 1971
> [    0.215411] Block layer SCSI generic (bsg) driver version 0.4 
> loaded (major 253)
> [    0.215496] io scheduler noop registered
> [    0.215508] io scheduler deadline registered (default)
> [    0.215560] io scheduler cfq registered
> [    0.215656] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
> [    0.215685] pciehp: PCI Express Hot Plug Controller Driver version: 
> 0.4
> [    0.216295] Serial: 8250/16550 driver, 32 ports, IRQ sharing 
> enabled
> [    0.348321] Linux agpgart interface v0.103
> [    0.350028] brd: module loaded
> [    0.350893] loop: module loaded
> [    0.353505] blkfront device/vbd/51712 num-ring-pages 1 nr_ents 32.
> [    0.354333] Fixed MDIO Bus: probed
> [    0.354362] tun: Universal TUN/TAP device driver, 1.6
> [    0.354369] tun: (C) 1999-2004 Max Krasnyansky <maxk at qualcomm.com>
> [    0.354440] PPP generic driver version 2.4.2
> [    0.354499] Initialising Xen virtual ethernet driver.
> [    0.359151] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) 
> Driver
> [    0.359184] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
> [    0.359202] uhci_hcd: USB Universal Host Controller Interface 
> driver
> [    0.359266] usbcore: registered new interface driver libusual
> [    0.359295] i8042: PNP: No PS/2 controller found. Probing ports 
> directly.
> [    0.360150] i8042: No controller found
> [    0.360263] mousedev: PS/2 mouse device common for all mice
> [    0.377945] blkfront: xvda: barrier or flush: disabled
> [    0.382662]  xvda: unknown partition table
> [    0.400266] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as 
> rtc0
> [    0.400348] rtc_cmos: probe of rtc_cmos failed with error -38
> [    0.400462] device-mapper: uevent: version 1.0.3
> [    0.400563] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) 
> initialised: dm-devel at redhat.com
> [    0.400578] EFI Variables Facility v0.08 2004-May-17
> [    0.400876] TCP cubic registered
> [    0.401010] NET: Registered protocol family 10
> [    0.401799] NET: Registered protocol family 17
> [    0.401810] Registering the dns_resolver key type
> [    0.401979] registered taskstats version 1
> [    0.413254] XENBUS: Device with no driver: device/console/0
> [    0.413274]   Magic number: 1:252:3141
> [    0.413325] /build/buildd/linux-3.2.0/drivers/rtc/hctosys.c: unable 
> to open rtc device (rtc0)
> [    0.413363] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
> [    0.413370] EDD information not available.
> [    0.413692] Freeing unused kernel memory: 920k freed
> [    0.414089] Write protecting the kernel read-only data: 12288k
> [    0.419497] Freeing unused kernel memory: 1648k freed
> [    0.420745] Freeing unused kernel memory: 1204k freed
> Loading, please wait...
> [    0.470454] udevd[87]: starting version 175
> Begin: Loading essential drivers ... done.
> Begin: Running /scripts/init-premount ... done.
> Begin: Mounting root file system ... Begin: Running /scripts/local-top 
> ... done.
> Begin: Running /scripts/local-premount ... done.
> [    1.820837] kjournald starting.  Commit interval 5 seconds
> [    1.820876] EXT3-fs (xvda): mounted filesystem with ordered data 
> mode
> Begin: Running /scripts/local-bottom ... done.
> done.
> Begin: Running /scripts/init-bottom ... done.
> fsck from util-linux 2.20.1
> /dev/xvda: clean, 25037/655360 files, 216474/2621440 blocks
> * Starting Mount network filesystems   [ OK ]
> * Starting configure network device   [ OK ]
> * Stopping Failsafe Boot Delay   [ OK ]
> * Stopping enable remaining boot-time encrypted block devices   [ OK ]
> * Starting System V initialisation compatibility   [ OK ]
> * Stopping Mount network filesystems   [ OK ]
> * Stopping System V initialisation compatibility   [ OK ]
> * Starting System V runlevel compatibility   [ OK ]
> * Starting regular background program processing daemon   [ OK ]
> * Starting ACPI daemon   [ OK ]
> * Starting anac(h)ronistic cron   [ OK ]
> * Starting save kernel messages   [ OK ]
> * Starting deferred execution scheduler   [ OK ]
> * Stopping save kernel messages   [ OK ]
> * Stopping System V runlevel compatibility   [ OK ]
>
> Ubuntu 12.04.1 LTS localhost.localdomain hvc0
>
> localhost login: mountall: Disconnected from Plymouth
>
> Still can't find any faults.
>
> -- 
> Steven Haigh
>
> Email: netwiz at crc.id.au
> Web: http://www.crc.id.au
> Phone: (03) 9001 6090 - 0412 935 897
> Fax: (03) 8338 0299
>
> On 30/09/2012 11:55 PM, Joseph Fialkowski wrote:
>> On 29 Sep 2012, at 22:24, Steven Haigh wrote:
>>
>>> If you strip it down to what I had as my config file, does it work?
>>>
>>> --
>>> Steven Haigh
>>>
>>> Email: netwiz at crc.id.au
>>> Web: http://www.crc.id.au
>>> Phone: (03) 9001 6090 - 0412 935 897
>>> Fax: (03) 8338 0299
>>>
>>> On 30/09/2012 4:00 AM, Joe Fialkowski wrote:
>>>> Here is the cfg I am using with the templates from stack let. This
>>>> config works with 4.1.3 but not 4.2. Maybe its pygrub?
>>>>
>>>> ## This configuration file was automatically generated
>>>> ## by SolusVM on Sat Sep 29 09:57:58 2012
>>>>
>>>> ## Cfg type: XEN-PV-LOCAL-STORAGE
>>>>
>>>> #kernel     = '/boot/vmlinuz-2.6.38-8-generic'
>>>> #ramdisk    = '/boot/initrd.img-2.6.38-8-generic'
>>>> bootloader = '/usr/bin/pygrub'
>>>> extra      = ''
>>>> memory     = 512
>>>> hostname   = 'ubuntu-x86_64-vm'
>>>> cpu_weight = 256
>>>> name       = 'vm1025'
>>>> vif        = ['ip=199.231.190.23, vifname=vifvm1025.0,
>>>> mac=00:16:3e:94:3d:48, rate=128KB/s, bridge=br0, model=e1000']
>>>> vnc        = 0
>>>> vcpus      = 1
>>>> vncviewer  = 0
>>>> serial     = 'pty'
>>>> disk       = ['phy:/dev/vg_xm3/vm1025_img,xvda1,w',
>>>> 'phy:/dev/vg_xm3/vm1025_swap,xvda2,w']
>>>> #root       = '/dev/xvda1 ro'
>>>>
>>>> --
>>>> Joe Fialkowski
>>>> ZoomCloud.net
>>>>
>>>> On Saturday, September 29, 2012 at 1:07 AM, Steven Haigh wrote:
>>>>
>>>>> Ok, so I'm still getting used to how Debian works... however, I've
>>>>> installed Debian successfully by using the following DomU config:
>>>>>
>>>>> name = "debtest.vm"
>>>>> memory = 1024
>>>>> vcpus = 2
>>>>> cpus = "1-7"
>>>>> on_poweroff = 'destroy'
>>>>> on_reboot = 'restart'
>>>>> on_crash = 'restart'
>>>>>
>>>>> kernel = "/root/debian/vmlinuz"
>>>>> ramdisk = "/root/debian/initrd.gz"
>>>>> extra = "debian-installer/exit/always_halt=true -- console=hvc0"
>>>>>
>>>>> localtime = 0
>>>>> disk = [ 'phy:/dev/vg_hosting/debtest.vm,xvda,w' ]
>>>>>
>>>>> vif = [ 'mac=20:34:01:36:00:99,bridge=br0' ]
>>>>>
>>>>> I obtained the vmlinuz and initrd.gz files from:
>>>>> http://cdn.debian.net/debian/dists/squeeze/main/installer-amd64/current/images/netboot/xen/
>>>>>
>>>>>
>>>>> While this will probably have to be modified for whoever else 
>>>>> wants to
>>>>> use this, the install seems to be working correctly so far. I 
>>>>> think my
>>>>> previous errors were simply me not having a clue about the Debian
>>>>> installer.
>>>>>
>>>>> I ran through the installer by creating the DomU:
>>>>> xm create debtest.vm -c
>>>>>
>>>>> Then followed the prompts. I installed as a whole disk install and 
>>>>> just
>>>>> let the installer take care of the rest for me... It took ~5 
>>>>> minutes to
>>>>> download 1132 packages and then about the same to install them 
>>>>> all.
>>>>>
>>>>> After this was done, I edited the xen config file to as follows:
>>>>>
>>>>> name = "debtest.vm"
>>>>> memory = 1024
>>>>> vcpus = 2
>>>>> cpus = "1-7"
>>>>> on_poweroff = 'destroy'
>>>>> on_reboot = 'restart'
>>>>> on_crash = 'restart'
>>>>>
>>>>> bootloader = "pygrub"
>>>>>
>>>>> localtime = 0
>>>>> disk = [ 'phy:/dev/vg_hosting/debtest.vm,xvda,w' ]
>>>>>
>>>>> vif = [ 'mac=20:34:01:36:00:99,bridge=br0' ]
>>>>>
>>>>> I then fired up the DomU using:
>>>>> xm create debtest.vm
>>>>>
>>>>> Up it booted. Seems everything boots and works as it should. All
>>>>> packages seem to be at their latest:
>>>>>
>>>>> root at debian:~# apt-get upgrade
>>>>> Reading package lists... Done
>>>>> Building dependency tree
>>>>> Reading state information... Done
>>>>> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
>>>>> root at debian:~# cat /etc/debian_version
>>>>> 6.0.5
>>>>> root at debian:~#
>>>>>
>>>>> So, this leaves me to wonder what issues people are having?
>>>>>
>>>>> --
>>>>> Steven Haigh
>>>>>
>>>>> Email: netwiz at crc.id.au <mailto:netwiz at crc.id.au>
>>>>> Web: http://www.crc.id.au
>>>>> Phone: (03) 9001 6090 - 0412 935 897
>>>>> Fax: (03) 8338 0299
>>>>> _______________________________________________
>>>>> kernel-xen mailing list
>>>>> kernel-xen at lists.wireless.org.au
>>>>> <mailto:kernel-xen at lists.wireless.org.au>
>>>>> https://lists.wireless.org.au/mailman/listinfo/kernel-xen
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> kernel-xen mailing list
>>>> kernel-xen at lists.wireless.org.au
>>>> https://lists.wireless.org.au/mailman/listinfo/kernel-xen
>>>>
>>> _______________________________________________
>>> kernel-xen mailing list
>>> kernel-xen at lists.wireless.org.au
>>> https://lists.wireless.org.au/mailman/listinfo/kernel-xen
>>
>> Steven,
>>
>> If you want to try these images I have published them here:
>>
>> http://mirror.zoomcloud.net/SolusVM-Templates/XEN-PV/
>>
>> Joe
>> _______________________________________________
>> kernel-xen mailing list
>> kernel-xen at lists.wireless.org.au
>> https://lists.wireless.org.au/mailman/listinfo/kernel-xen
> _______________________________________________
> kernel-xen mailing list
> kernel-xen at lists.wireless.org.au
> https://lists.wireless.org.au/mailman/listinfo/kernel-xen

Thanks for giving it a try. This doesn't make much sense. It works fine 
on old version of Xen with no modifications. But if I upgrade to 4.2 I 
need to edit all the config files of my Fedora and Ubuntu DomU's.

I don't think its the partitioning, as It works in 4.1 the same way its 
configured with xvda1 and xvda2.

Joe


More information about the kernel-xen mailing list