Setup Intrepid Server PV DomU via xen-image-create&debootstrap at Xen 3.3.0 Intrepid Server Dom0 with Novell’s Xen-ified kernel 2.6.27-5

I would also name this post xen-image-create&debootstrap vs python-vm-builder in regards of pre-building Xen Guests at Ubuntu Intrepid Server.View Bug #311943 at https://bugs.launchpad.net/ubuntu for details. Install Intrepid Server Dom0 with Novell’s Xen-ified kernel, enabling Dom0 and DomU support at a time.



View [1],[2] for details.Tune xen-tools scripts per [1] and create Intrepid PV DomU. Actually, images been created via xen-create-image allow to upgrade DomU to real Intrepid Server PV DomU.
I mean to perform at originally loaded DomU :-

# apt-get upgrade
# apt-get install linux-image-server

and switch DomU’s kernel to vmlinuz-2.6.27-9-server.
Afterward images may be scp’ed to any Xen 3.3.X Linux Dom0(64-bit) and corresponding Intrepid Server PV DomU loaded for instance at Xen 3.3.1-RC4 CentOS 5.2 Dom0 (64-bit).So, xen-image-create appears to be responsible to prebuild Xen Guest instead of the most recent release of python-vm-builder.
[root@ServerXen31 root]# cat createImage

xen-create-image --force --hostname=IntrepidPVS \
--size=6Gb --swap=1Gb --ide --memory=2Gb \
--arch=amd64 \
--dir=/etc/xen/images \
--kernel=/boot/vmlinuz-2.6.27.5 \
--initrd=/boot/initrd-2.6.27.5.img \
--install-method=debootstrap \
--dist=intrepid \
--mirror=http://archive.ubuntu.com/ubuntu/ \
--passwd --accounts=root --dhcp

Load DomU via profile:-

kernel = '/boot/vmlinuz-2.6.27.5'
ramdisk = '/boot/initrd-2.6.27.5.img'
memory = '2048'
#
# Disk device(s).
#
root = '/dev/hda2 ro'
disk = [
'file:/etc/xen/images/domains/IntrepidPVS/swap.img,hda1,w',
'file:/etc/xen/images/domains/IntrepidPVS/disk.img,hda2,w',
]
#
# Hostname
#
name = 'IntrepidPVS'
#
# Networking
#
dhcp = 'dhcp'
vif = [ 'mac=00:16:3E:7D:DB:85' ]
#
# Behaviour
#
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
console='xvc0'

Run at DomU:-

# apt-get upgrade
# apt-get install linux-image-server
# shutdown -P now

Now load DomU via profile :-

kernel = '/etc/xen/vmlinuz-2.6.27-9-server'
ramdisk = '/etc/xen/initrd.img-2.6.27-9-server'
memory = '1024'
root = '/dev/xvda2 ro'
disk = [
'file:/etc/xen/images/domains/IntrepidPVS/swap.img,xvda1,w',
'file:/etc/xen/images/domains/IntrepidPVS/disk.img,xvda2,w',
]
name = 'IntrepidPVS'
vif = [ 'bridge=br0' ]
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
console='hvc0'

At DomU ran tasksel to install Basic Intrepid Server,opensshserver,Ubuntu Desktop
Now scp image files to remote Xen 3.3.1-RC4 CentOS 5.2 Dom0 and attempt to load DomU:-
[root@dhcppc0 xen]# cat IntrepidPVSRV-9.cfg

kernel = '/etc/xen/vmlinuz-2.6.27-9-server'
ramdisk = '/etc/xen/initrd.img-2.6.27-9-server'
memory = '4096'
root = '/dev/xvda2 ro'
disk = [
'file:/etc/xen/images/domains/IntrepidPVS/swap.img,xvda1,w',
'file:/etc/xen/images/domains/IntrepidPVS/disk.img,xvda2,w',
]
name = 'IntrepidPVS'
vif = [ 'bridge=eth0' ]
# dhcp = 'dhcp'
# vif = [ 'mac=00:16:3E:7D:DB:85' ]
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
console='hvc0'

[root@dhcppc0 xen]# xm create -c IntrepidPVSRV-9.cfg

Using config file "./IntrepidPVSRV-9.cfg".
Started domain IntrepidPVS
-> 0x00100000
[ 0.000000] SMP: Allowing 1 CPUs, 0 hotplug CPUs
[ 0.000000] No local APIC present
[ 0.000000] PM: Registered nosave memory: 00000000000a0000 - 0000000000100000
[ 0.000000] PM: Registered nosave memory: 0000000002049000 - 000000000284c000
[ 0.000000] PCI: Warning: Cannot find a gap in the 32bit address range
[ 0.000000] PCI: Unassigned devices with 32bit resource registers may break!
[ 0.000000] Allocating PCI resources starting at 100200000 (gap: 100100000:400000)
[ 0.000000] PERCPU: Allocating 64928 bytes of per cpu data
[ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 1028322
[ 0.000000] Policy zone: DMA32
[ 0.000000] Kernel command line: root=/dev/xvda2 ro
[ 0.000000] Initializing CPU#0
[ 0.000000] PID hash table entries: 4096 (order: 12, 32768 bytes)
[ 0.000000] Detected 3005.554 MHz processor.
[ 0.010000] Console: colour dummy device 80x25
[ 0.010000] console [tty0] enabled
[ 0.010000] console [hvc0] enabled
[ 0.010000] Checking aperture...
[ 0.010000] No AGP bridge found
[ 0.010000] Memory: 4080548k/4194304k available (3111k kernel code, 105168k reserved, 1577k data, 536k init)
[ 0.010000] SLUB: Genslabs=13, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.010000] installing Xen timer for CPU 0
[ 0.010000] Calibrating delay loop (skipped), value calculated using timer frequency.. 6011.10 BogoMIPS (lpj=30055540)
[ 0.010000] Security Framework initialized
[ 0.010000] SELinux: Disabled at boot.
[ 0.010000] AppArmor: AppArmor initialized
[ 0.010000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
[ 0.010000] Inode-cache hash table entries: 262144 (order: 9, 2097152 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] CPU: L1 I cache: 32K, L1 D cache: 32K
[ 0.010000] CPU: L2 cache: 6144K
[ 0.010000] CPU 0/0 -> Node 0
[ 0.010000] CPU: Physical Processor ID: 0
[ 0.010000] CPU: Processor Core ID: 0
[ 0.010000] SMP alternatives: switching to UP code
[ 0.016801] Freeing SMP alternatives: 24k freed
[ 0.016852] cpu 0 spinlock event irq 1
[ 0.016912] Brought up 1 CPUs
[ 0.017170] net_namespace: 1552 bytes
[ 0.017177] Booting paravirtualized kernel on Xen
[ 0.017180] Xen version: 3.3.1-rc4 (preserve-AD)
[ 0.017279] Grant table initialized
[ 0.037303] Time: 165:165:165 Date: 165/165/65
[ 0.037325] NET: Registered protocol family 16
[ 0.037545] PCI: Fatal: No config space access function found
[ 0.037545] ACPI: Interpreter disabled.
[ 0.037545] Linux Plug and Play Support v0.97 (c) Adam Belay
[ 0.037545] pnp: PnP ACPI: disabled
[ 0.037545] xen_balloon: Initialising balloon driver.
[ 0.037545] PCI: System does not support PCI
[ 0.037545] PCI: System does not support PCI
[ 0.070043] NET: Registered protocol family 8
[ 0.070048] NET: Registered protocol family 20
[ 0.070080] NetLabel: Initializing
[ 0.070083] NetLabel: domain hash size = 128
[ 0.070086] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.070098] NetLabel: unlabeled traffic allowed by default
[ 0.070104] PCI-GART: No AMD northbridge found.
[ 0.070427] tracer: 1286 pages allocated for 65536 entries of 80 bytes
[ 0.070432] actual entries 65586
[ 0.070500] AppArmor: AppArmor Filesystem Enabled
[ 0.070887] NET: Registered protocol family 2
[ 0.160164] IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.161321] TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
[ 0.163810] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[ 0.164268] TCP: Hash tables configured (established 524288 bind 65536)
[ 0.164274] TCP reno registered
[ 0.190084] NET: Registered protocol family 1
[ 0.190167] checking if image is initramfs... it is
[ 0.206315] Freeing initrd memory: 24128k freed
[ 0.213559] platform rtc_cmos: registered platform RTC device (no PNP device found)
[ 0.213981] audit: initializing netlink socket (disabled)
[ 0.213996] type=2000 audit(1231157812.989:1): initialized
[ 0.218247] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.220119] VFS: Disk quotas dquot_6.5.1
[ 0.220198] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.220291] msgmni has been set to 8239
[ 0.220389] io scheduler noop registered
[ 0.220393] io scheduler anticipatory registered
[ 0.220396] io scheduler deadline registered (default)
[ 0.220514] io scheduler cfq registered
[ 0.248088] Linux agpgart interface v0.103
[ 0.248099] Serial: 8250/16550 driver4 ports, IRQ sharing enabled
[ 0.249604] brd: module loaded
[ 0.249658] input: Macintosh mouse button emulation as /devices/virtual/input/input0
[ 0.249786] PNP: No PS/2 controller found. Probing ports directly.
[ 0.250640] i8042.c: No controller found.
[ 0.270514] mice: PS/2 mouse device common for all mice
[ 0.270562] rtc_cmos: probe of rtc_cmos failed with error -16
[ 0.270637] cpuidle: using governor ladder
[ 0.270641] cpuidle: using governor menu
[ 0.270882] TCP cubic registered
[ 0.270898] IO APIC resources could be not be allocated.
[ 0.271066] registered taskstats version 1
[ 0.271076] XENBUS: Device with no driver: device/vbd/51713
[ 0.271080] XENBUS: Device with no driver: device/vbd/51714
[ 0.271083] XENBUS: Device with no driver: device/vif/0
[ 0.271087] XENBUS: Device with no driver: device/console/0
[ 0.271097] Magic number: 1:252:3141
[ 0.271168] /build/buildd/linux-2.6.27/drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 0.271174] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[ 0.271178] EDD information not available.
[ 0.271194] Freeing unused kernel memory: 536k freed
[ 0.271337] Write protecting the kernel read-only data: 4348k
Loading, please wait...
Couldnt get a file descriptor referring to the console
Begin: Loading essential drivers... ...
[ 0.360925] thermal: Unknown symbol acpi_processor_set_thermal_limit
Done.
Begin: Running /scripts/init-premount ...
Done.
Begin: Mounting root file system... ...
Begin: Running /scripts/local-top ...
Done.
Begin: Waiting for root file system... ...
[ 1.101218] blkfront: xvda1: barriers enabled
[ 1.103431] blkfront: xvda2: barriers enabled
Done.
Begin: Running /scripts/local-premount ...
Done.
[ 1.235535] kjournald starting. Commit interval 5 seconds
[ 1.235547] EXT3-fs: mounted filesystem with ordered data mode.
Begin: Running /scripts/local-bottom ...
Done.
Done.
Begin: Running /scripts/init-bottom ...
Done.
* Reading files needed to boot... [ OK ]
* Setting preliminary keymap... [ OK ]
* Setting the system clock
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details of our search for an access method.
* Unable to set System Clock to: Mon Jan 5 12:16:54 UTC 2009
* Starting basic networking... [ OK ]
* Starting kernel event manager... [ 1.553792] udevd version 124 started
[ OK ]
* Loading hardware drivers... [ 2.080152] input: PC Speaker as /devices/platform/pcspkr/input/input1
[ 2.081879] Initialising Xen virtual ethernet driver.
[ OK ]
* Loading kernel modules... * Loading manual drivers... [ OK ]
* Setting kernel variables (/etc/sysctl.conf)... [ OK ]
* Setting kernel variables (/etc/sysctl.d/10-console-messages.conf)... [ OK ]
* Setting kernel variables (/etc/sysctl.d/10-network-security.conf)... [ OK ]
* Setting kernel variables (/etc/sysctl.d/10-process-security.conf)... [ OK ]
* Setting kernel variables (/etc/sysctl.d/30-tracker.conf)... [ OK ]
* Activating swap... [ OK ]
* Checking root file system... fsck 1.41.3 (12-Oct-2008)
/lib/init/rw/rootdev: clean, 123776/393216 files, 935684/1572864 blocks
[ OK ]
* Checking file systems... fsck 1.41.3 (12-Oct-2008)
[ OK ]
* Mounting local filesystems... [ OK ]
* Activating swapfile swap... [ OK ]
* Configuring network interfaces... [ OK ]
* Setting up console font and keymap... [ OK ]
* Starting system log daemon... [ OK ]
* Doing Wacom setup... cat: */id: No such file or directory
[ OK ]
* Starting kernel log daemon... [ OK ]
* Starting system message bus dbus [ OK ]
* Starting Avahi mDNS/DNS-SD Daemon avahi-daemon [ OK ]
* Starting OpenBSD Secure Shell server sshd [ OK ]
* Starting Common Unix Printing System: cupsd [ OK ]
* Starting powernowd... * CPU frequency scaling not supported... [ OK ]
* Starting internet superserver xinetd [ OK ]
* Starting Hardware abstraction layer hald [ OK ]
* Starting bluetooth [ OK ]
[ 13.740883] pan0: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.
* Starting NetworkManager... [ OK ]
* Starting GNOME Display Manager... [ OK ]
* Starting System Tools Backends system-tools-backends [ OK ]
* Starting anac(h)ronistic cron anacron [ OK ]
* Starting periodic command scheduler crond [ OK ]
* Enabling additional executable binary formats binfmt-support [ OK ]
* Checking battery state... [ OK ]

Ubuntu 8.10 IntrepidPVS hvc0

IntrepidPVS login: root
Password:
Last login: Mon Jan 5 12:15:15 UTC 2009 on hvc0
Linux IntrepidPVS 2.6.27-9-server #1 SMP Thu Nov 20 22:56:07 UTC 2008 x86_64

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To access official Ubuntu documentation, please visit:

http://help.ubuntu.com/

root@IntrepidPVS:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:05:8c:08
inet addr:192.168.1.36 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::216:3eff:fe05:8c08/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20 errors:0 dropped:0 overruns:0 frame:0
TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4214 (4.2 KB) TX bytes:5023 (5.0 KB)
Interrupt:10

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

root@IntrepidPVS:~# ssh root@192.168.1.33

The authenticity of host '192.168.1.33 (192.168.1.33)' can't be established.
RSA key fingerprint is dc:a3:69:28:70:15:3e:20:28:72:76:d9:be:52:2d:04.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.33' (RSA) to the list of known hosts.
root@192.168.1.33's password:
Last login: Mon Jan 5 15:06:34 2009
[root@dhcppc0 ~]# uname -a
Linux dhcppc0 2.6.18.8-xen #1 SMP Wed Dec 31 16:02:18 MSK 2008 x86_64 x86_64 x86_64 GNU/Linux
[root@dhcppc0 ~]# xm list
Name ID Mem VCPUs State Time(s)
Domain-0 0 3937 2 r----- 93.5
IntrepidPVS 2 4096 1 -b---- 5.2
[root@dhcppc0 ~]# xm list -l IntrepidPVS
(domain
(domid 2)
(on_crash restart)
(uuid f8e08677-6be0-a0f1-3eb8-008ebe067ca7)
(bootloader_args )
(vcpus 1)
(name IntrepidPVS)
(on_poweroff destroy)
(on_reboot restart)
(bootloader )
(maxmem 4096)
(memory 4096)
(shadow_memory 0)
(features )
(on_xend_start ignore)
(on_xend_stop ignore)
(start_time 1231157812.3)
(cpu_time 5.192158245)
(online_vcpus 1)
(image
(linux
(kernel /etc/xen/vmlinuz-2.6.27-9-server)
(ramdisk /etc/xen/initrd.img-2.6.27-9-server)
(args 'root=/dev/xvda2 ro ')
(notes
(HV_START_LOW 18446603336221196288)
(FEATURES '!writable_page_tables|pae_pgdir_above_4gb')
(VIRT_BASE 18446744071562067968)
(GUEST_VERSION 2.6)
(PADDR_OFFSET 0)
(GUEST_OS linux)
(HYPERCALL_PAGE 18446744071564201984)
(LOADER generic)
(SUSPEND_CANCEL 1)
(PAE_MODE yes)
(ENTRY 18446744071569539584)
(XEN_VERSION xen-3.0)
)
)
)
(status 2)
(state -b----)
(store_mfn 2100105)
(console_mfn 2100104)
(device
(vif
(bridge eth0)
(mac 00:16:3e:05:8c:08)
(script /etc/xen/scripts/vif-bridge)
(uuid 832e9f38-cce2-7548-58bf-8a38555570d3)
(backend 0)
)
)
(device
(vbd
(protocol x86_64-abi)
(uuid 225490e4-b0e0-52c2-38a1-e784a1fad52c)
(dev xvda1:disk)
(uname file:/etc/xen/images/domains/IntrepidPVS/swap.img)
(mode w)
(backend 0)
(bootable 1)
(VDI )
)
)
(device
(vbd
(protocol x86_64-abi)
(uuid 1a365784-08de-d739-7242-818c0f0ebfb8)
(dev xvda2:disk)
(uname file:/etc/xen/images/domains/IntrepidPVS/disk.img)
(mode w)
(backend 0)
(bootable 0)
(VDI )
)
)
(device
(console
(protocol vt100)
(location 2)
(uuid 0c2289cb-8a3b-8ffd-a827-04f0b1eb2369)
)
)
)

Setup VNC at DomU and enjoy graphical interface:-




References
1.Howto Ubuntu Intrepid Ibex 8.10 Xen Dom0
2.Setup Xen 3.3.0 Ubuntu Intrepid Server Dom0 via build xen-kernel based on http://xenbits.xensource.com/ext/linux-2.6.27-xen.hg
3.Failure to create Ubuntu Intrepid Server Xen PV DomU via vmbuilder

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: