WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Running ChromiumOS64 with Integrated Xen Virtualization Supp

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Running ChromiumOS64 with Integrated Xen Virtualization Support as a Xen PV DomU
From: "Mr. Teo En Ming (Zhang Enming)" <space.time.universe@xxxxxxxxx>
Date: Sat, 12 Dec 2009 03:12:22 +0800
Cc: space.time.universe@xxxxxxxxx
Delivery-date: Fri, 11 Dec 2009 11:13:11 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type; bh=+sVGdsr3hwhNqCZSU72ql9n+nyBi1eWp1oEKq335NLs=; b=mGOwecY54iGXNnqzxmm5ZXykBF+k/C9mzsxZH18dLbVkBtOCn+qWySFcGOjXxpX9+y uEs9ZSp/5USS50cyMWj7SB+tiekm9hAWMDIBgCHSKD0oSG0Zcio7g2FNajHlSXRXfj26 cI0FVQJf5oMP+07iZijiQdu/W4vahcbFHXQOg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=ju8LXCGWPyA0cC2tn0Jbue+HCX2T0Cf55oXIRSKpcVP1dGUb3Iemu43ChJoyzi1mZf U66cXo4uZUKvdlbhb1SeFnSTkM1uMHWoDw75Rgnh51Q6F2b+iQ+4OPM4+hjs3DWclQZR MB1zTWDRbZ1+3u9sTtVeTes3aUmDUwc894Akg=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
There seems to be a problem running ChromiumOS64 as a PV guest.

Convert the ChromiumOS64 vmdk image to raw harddisk image.

# qemu-img convert -f vmdk chromiumos64-xen.vmdk -O raw chromiumos64-xen.img

Start ChromiumOS64 as a Xen HVM domU.

kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory = 2048

name = "chromiumos64-xen-hvm"
vif = [ 'type=ioemu,mac=<MAC ADDRESS>,bridge=eth0,model=e1000' ]
acpi = 1
apic = 1
disk = [ 'file:/media/windows/chromiumos64-xen-build-enming.teo-3dec2009-0420hrs-sgt.img,hda,w' ]

device_model = 'qemu-dm'

boot="cd"
sdl=0
vnc=1
vnclisten="127.0.0.1"
vncdisplay=0
vncunused=1
vncconsole=1
vncpasswd=''

vcpus=2
# No passthrough
gfx_passthru=0

# Compulsory option. If stdvga is not set, display will be garbled.
stdvga=1

After signing in, press CTRL+ALT+T to get to the terminal.

Mount the root filesystem in read-write mode.

$ sudo mount -o remount,rw /

$ sudo mkdir -p /var/cache/apt/archives/partial

$ sudo mkdir -p /var/log/apt

Install GRUB.

$ sudo apt-get install grub

$ cd /usr/lib/grub/x86_64-pc

$ sudo cp * /boot/grub

$ sudo grub

grub> root (hd0,2)

grub> setup (hd0)

grub> quit

$ cd /boot/grub

Create the GRUB boot menu.

$ sudo vi menu.lst

default=0
timeout=30
title The ChromiumOS64 Project by Teo En Ming (Zhang Enming)
        root (hd0,2)
        kernel /boot/vmlinuz ro root=LABEL=C-ROOT console=hvc0
        initrd /boot/initrd.img

Shutdown ChromiumOS64.

Start ChromiumOS64 as a Xen PV domU.

name="chromiumos64-xen-pv"
memory=2048
disk = ['file:/media/windows/chromiumos64-xen-build-enming.teo-3dec2009-0420hrs-sgt.img,xvda,w' ]
vif = [ 'mac=<MAC ADDRESS>,bridge=eth0' ]
vfb = [ 'vnc=1,vncunused=1,vncdisplay=0,vnclisten=127.0.0.1,vncpasswd=' ]
vncconsole=1
bootloader = "/usr/bin/pygrub"
vcpus=2
> >
Xen hypervisor virtual console (hvc0) output:

[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 2.6.31.6-teo.en.ming-zhang.enming (enming@ubuntu-910-amd64) (gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8) ) #1 SMP Tue Dec 1 19:15:27 UTC 2009
[    0.000000] Command line: ro root=LABEL=C-ROOT console=hvc0
[    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] BIOS-provided physical RAM map:
[    0.000000]  Xen: 0000000000000000 - 00000000000a0000 (usable)
[    0.000000]  Xen: 00000000000a0000 - 0000000000100000 (reserved)
[    0.000000]  Xen: 0000000000100000 - 0000000080000000 (usable)
[    0.000000] DMI not present or invalid.
[    0.000000] last_pfn = 0x80000 max_arch_pfn = 0x400000000
[    0.000000] Scanning 1 areas for low memory corruption
[    0.000000] modified physical RAM map:
[    0.000000]  modified: 0000000000000000 - 0000000000001000 (usable)
[    0.000000]  modified: 0000000000001000 - 0000000000006000 (reserved)
[    0.000000]  modified: 0000000000006000 - 00000000000a0000 (usable)
[    0.000000]  modified: 00000000000a0000 - 0000000000100000 (reserved)
[    0.000000]  modified: 0000000000100000 - 0000000080000000 (usable)
[    0.000000] init_memory_mapping: 0000000000000000-0000000080000000
[    0.000000] RAMDISK: 01a10000 - 0c8f4000
[    0.000000] No NUMA configuration found
[    0.000000] Faking a node at 0000000000000000-0000000080000000
[    0.000000] Bootmem setup node 0 0000000000000000-0000000080000000
[    0.000000]   NODE_DATA [0000000000008000 - 000000000000cfff]
[    0.000000]   bootmap [000000000000d000 -  000000000001cfff] pages 10
[    0.000000] (7 early reservations) ==> bootmem [0000000000 - 0080000000]
[    0.000000]   #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
[    0.000000]   #1 [000ccf7000 - 000cd62000]   XEN PAGETABLES ==> [000ccf7000 - 000cd62000]
[    0.000000]   #2 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
[    0.000000]   #3 [0001000000 - 00019ef10c]    TEXT DATA BSS ==> [0001000000 - 00019ef10c]
[    0.000000]   #4 [0001a10000 - 000c8f4000]          RAMDISK ==> [0001a10000 - 000c8f4000]
[    0.000000]   #5 [000c8f4000 - 000ccf7000]   XEN START INFO ==> [000c8f4000 - 000ccf7000]
[    0.000000]   #6 [0000100000 - 0000495000]          PGTABLE ==> [0000100000 - 0000495000]
[    0.000000] Zone PFN ranges:
[    0.000000]   DMA      0x00000000 -> 0x00001000
[    0.000000]   DMA32    0x00001000 -> 0x00100000
[    0.000000]   Normal   0x00100000 -> 0x00100000
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[3] active PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00000001
[    0.000000]     0: 0x00000006 -> 0x000000a0
[    0.000000]     0: 0x00000100 -> 0x00080000
[    0.000000] SMP: Allowing 2 CPUs, 0 hotplug CPUs
[    0.000000] No local APIC present
[    0.000000] APIC: disable apic facility
[    0.000000] PM: Registered nosave memory: 0000000000001000 - 0000000000006000
[    0.000000] PM: Registered nosave memory: 00000000000a0000 - 0000000000100000
[    0.000000] Allocating PCI resources starting at 80000000 (gap: 80000000:80000000)
[    0.000000] NR_CPUS:64 nr_cpumask_bits:64 nr_cpu_ids:2 nr_node_ids:1
[    0.000000] PERCPU: Allocated 23 4k pages, static data 90720 bytes
[    0.000000] Xen: using vcpu_info placement
[    0.000000] Built 1 zonelists in Node order, mobility grouping on.  Total pages: 516099
[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line: ro root=LABEL=C-ROOT console=hvc0
[    0.000000] PID hash table entries: 4096 (order: 12, 32768 bytes)
[    0.000000] Initializing CPU#0
[    0.000000] PCI-DMA: Using Xen software bounce buffering for IO (Xen-SWIOTLB)
[    0.000000] Placing 64MB Xen software IO TLB between ffff88000ed73000 - ffff880012d73000
[    0.000000] Xen software IO TLB at phys 0xed73000 - 0x12d73000
[    0.000000] Memory: 1804232k/2097152k available (5349k kernel code, 404k absent, 292516k reserved, 2971k data, 676k init)
[    0.000000] SLUB: Genslabs=14, HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] NR_IRQS:4352 nr_irqs:288
[    0.000000] Detected 2800.100 MHz processor.
[    0.010000] Console: colour dummy device 80x25
[    0.010000] console [tty0] enabled
[    0.010000] console [hvc0] enabled
[    0.010000] allocated 20971520 bytes of page_cgroup
[    0.010000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.010000] installing Xen timer for CPU 0
[    0.010000] xen: vcpu_time_info placement not supported
[    0.010000] Calibrating delay loop (skipped), value calculated using timer frequency.. 5600.20 BogoMIPS (lpj=28001000)
[    0.010000] Security Framework initialized
[    0.010000] SELinux:  Disabled at boot.
[    0.010000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[    0.010000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.010000] Mount-cache hash table entries: 256
[    0.010000] Initializing cgroup subsys ns
[    0.010000] Initializing cgroup subsys cpuacct
[    0.010000] Initializing cgroup subsys memory
[    0.010000] Initializing cgroup subsys freezer
[    0.010000] Initializing cgroup subsys net_cls
[    0.010000] CPU: L1 I cache: 32K, L1 D cache: 32K
[    0.010000] CPU: L2 cache: 2048K
[    0.010000] CPU 0/0x0 -> Node 0
[    0.010000] CPU: Physical Processor ID: 0
[    0.010000] CPU: Processor Core ID: 0
[    0.010000] Performance Counters: unsupported p6 CPU model 23 no PMU driver, software counters only.
[    0.010000] SMP alternatives: switching to UP code
[    0.010098] cpu 0 spinlock event irq 286
[    0.010370] installing Xen timer for CPU 1
[    0.010397] cpu 1 spinlock event irq 280
[    0.010426] SMP alternatives: switching to SMP code
[    0.000005] Initializing CPU#1
[    0.000044] CPU: L1 I cache: 32K, L1 D cache: 32K
[    0.000048] CPU: L2 cache: 2048K
[    0.000051] CPU 1/0x0 -> Node 0
[    0.000054] CPU: Physical Processor ID: 0
[    0.000056] CPU: Processor Core ID: 0
[    0.020070] Brought up 2 CPUs
[    0.020597] Booting paravirtualized kernel on Xen
[    0.020606] Xen version: 3.5-unstable (preserve-AD)
[    0.020811] Using legacy V1 grant tables; upgrade to a newer version of Xen.
[    0.020829] Grant table initialized
[    0.020834] regulator: core version 0.5
[    0.041166] Time: 165:165:165  Date: 165/165/65
[    0.041290] NET: Registered protocol family 16
[    0.041501] xenbus_probe wake_waiting
[    0.041512] xenbus_probe_init ok
[    0.041625] PCI: setting up Xen PCI frontend stub
[    0.041874] bio: create slab <bio-0> at 0
[    0.041989] ACPI: Interpreter disabled.
[    0.042018] xenbus_probe_backend_init bus registered ok
[    0.042018] xenbus_probe_devices backend
[    0.042018] xenbus_probe_devices failed xenbus_directory
[    0.042018] backend_probe_and_watch devices probed ok
[    0.042018] backend_probe_and_watch watch add ok ok
[    0.042018] backend_probe_and_watch all done
[    0.042018] xenbus_probe_frontend_init bus registered ok
[    0.042018] xenbus_probe_devices device
[    0.042018] xenbus_probe_devices 1/5 vkbd
[    0.042018] xenbus_probe_device_type type vkbd
[    0.042018] xenbus_probe_device_type 1/1 0
[    0.042018] xenbus_probe_device_type done
[    0.042018] xenbus_probe_devices 2/5 vfb
[    0.042018] xenbus_probe_device_type type vfb
[    0.042018] xenbus_probe_device_type 1/1 0
[    0.042018] xenbus_probe_device_type done
[    0.042018] xenbus_probe_devices 3/5 vbd
[    0.042018] xenbus_probe_device_type type vbd
[    0.042018] xenbus_probe_device_type 1/1 51712
[    0.042018] xenbus_probe_device_type done
[    0.042018] xenbus_probe_devices 4/5 vif
[    0.042018] xenbus_probe_device_type type vif
[    0.042018] xenbus_probe_device_type 1/1 0
[    0.042018] xenbus_probe_device_type done
[    0.042018] xenbus_probe_devices 5/5 console
[    0.042018] xenbus_probe_device_type type console
[    0.042018] xenbus_probe_device_type 1/1 0
[    0.042018] xenbus_probe_device_type done
[    0.042018] xenbus_probe_devices done
[    0.042018] frontend_probe_and_watch devices probed ok
[    0.042018] frontend_probe_and_watch watch add ok ok
[    0.042018] frontend_probe_and_watch all done
[    0.042018] xen_balloon: Initialising balloon driver with page order 0.
[    0.042018] SCSI subsystem initialized
[    0.042018] usbcore: registered new interface driver usbfs
[    0.042018] usbcore: registered new interface driver hub
[    0.042018] usbcore: registered new device driver usb
[    0.042018] PCI: System does not support PCI
[    0.050000] PCI: System does not support PCI
[    0.110024] Bluetooth: Core ver 2.15
[    0.110078] NET: Registered protocol family 31
[    0.110078] Bluetooth: HCI device and connection manager initialized
[    0.110078] Bluetooth: HCI socket layer initialized
[    0.110078] NetLabel: Initializing
[    0.110078] NetLabel:  domain hash size = 128
[    0.110078] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.110081] NetLabel:  unlabeled traffic allowed by default
[    0.112940] pnp: PnP ACPI: disabled
[    0.113202] NET: Registered protocol family 2
[    0.113472] IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.114909] TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
[    0.117446] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[    0.118177] TCP: Hash tables configured (established 262144 bind 65536)
[    0.118186] TCP reno registered
[    0.118334] NET: Registered protocol family 1
[    0.118421] Trying to unpack rootfs image as initramfs...
[    0.320107] Freeing initrd memory: 179088k freed
[    0.406608] platform rtc_cmos: registered platform RTC device (no PNP device found)
[    0.406822] Scanning for low memory corruption every 60 seconds
[    0.407023] audit: initializing netlink socket (disabled)
[    0.407045] type=2000 audit(1260586773.125:1): initialized
[    0.414002] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    0.415893] VFS: Disk quotas dquot_6.5.2
[    0.415990] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.416740] fuse init (API version 7.12)
[    0.416859] msgmni has been set to 3873
[    0.417229] alg: No test for stdrng (krng)
[    0.417255] io scheduler noop registered
[    0.417261] io scheduler anticipatory registered
[    0.417267] io scheduler deadline registered
[    0.417318] io scheduler cfq registered (default)
[    0.417370] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[    0.417405] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[    0.423340] Event-channel device installed.
[    0.426570] registering netback
[    0.428282] Linux agpgart interface v0.103
[    0.428292] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.429783] brd: module loaded
[    0.430415] loop: module loaded
[    0.432924] input: Macintosh mouse button emulation as /devices/virtual/input/input0
[    0.433867] Fixed MDIO Bus: probed
[    0.433911] PPP generic driver version 2.4.2
[    0.434085] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.434108] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.434125] uhci_hcd: USB Universal Host Controller Interface driver
[    0.434245] PNP: No PS/2 controller found. Probing ports directly.
[    0.435071] i8042.c: No controller found.
[    0.435128] mice: PS/2 mouse device common for all mice
[    0.435987] input: Xen Virtual Keyboard as /devices/virtual/input/input1
[    0.436062] input: Xen Virtual Pointer as /devices/virtual/input/input2
[    0.446925] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[    0.447162] device-mapper: uevent: version 1.0.3
[    0.447300] device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@xxxxxxxxxx
[    0.447432] device-mapper: multipath: version 1.1.0 loaded
[    0.447440] device-mapper: multipath round-robin: version 1.0.0 loaded
[    0.447710] cpuidle: using governor ladder
[    0.447717] cpuidle: using governor menu
[    0.448352] TCP cubic registered
[    0.448507] NET: Registered protocol family 10
[    0.449251] lo: Disabled Privacy Extensions
[    0.449821] NET: Registered protocol family 17
[    0.449847] Bluetooth: L2CAP ver 2.13
[    0.449852] Bluetooth: L2CAP socket layer initialized
[    0.449858] Bluetooth: SCO (Voice Link) ver 0.6
[    0.449864] Bluetooth: SCO socket layer initialized
[    0.449920] Bluetooth: RFCOMM TTY layer initialized
[    0.449927] Bluetooth: RFCOMM socket layer initialized
[    0.449933] Bluetooth: RFCOMM ver 1.11
[    0.450065] registered taskstats version 1
[    0.451459] blkfront: xvda: barriers enabled
[    0.452110]  xvda: xvda1 xvda2 xvda3
[    0.540055] XENBUS: Device with no driver: device/vif/0
[    0.540069] XENBUS: Device with no driver: device/console/0
[    0.540090]   Magic number: 1:252:3141
[    0.540137] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    0.540144] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[    0.540150] EDD information not available.
[    0.540308] Freeing unused kernel memory: 676k freed
[    0.540527] Write protecting the kernel read-only data: 7584k
Loading, please wait...
Couldn't get a file descriptor referring to the console
Begin: Loading essential drivers... ...
Done.
Begin: Running /scripts/init-premount ...
Done.
Begin: Mounting root file system... ...
Begin: Running /scripts/local-top ...
Done.
Begin: Waiting for root file system... ...
Done.
Begin: Running /scripts/local-premount ...
Done.
[    1.404208] kjournald starting.  Commit interval 5 seconds
[    1.404224] EXT3-fs: mounted filesystem with writeback data mode.
Begin: Running /scripts/local-bottom ...
Done.
Done.
Begin: Running /scripts/init-bottom ...
Done.
[    2.274968] kjournald starting.  Commit interval 5 seconds
[    2.275223] EXT3 FS on xvda1, internal journal
[    2.275233] EXT3-fs: recovery complete.
[    2.275604] EXT3-fs: mounted filesystem with writeback data mode.


--
Mr. Teo En Ming (Zhang Enming) Dip(Mechatronics) BEng(Hons)(Mechanical Engineering)
Alma Maters:
(1) Singapore Polytechnic
(2) National University of Singapore
My Primary Blog: http://teo-en-ming-aka-zhang-enming.blogspot.com
My Secondary Blog: http://enmingteo.wordpress.com
My Youtube videos: http://www.youtube.com/user/enmingteo
Email: space.time.universe@xxxxxxxxx
Mobile Phone (Starhub Prepaid): +65-8369-2618
Street: Bedok Reservoir Road
Country: Singapore
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Running ChromiumOS64 with Integrated Xen Virtualization Support as a Xen PV DomU, Mr. Teo En Ming (Zhang Enming) <=