nach dem ich seit jahren mit vmware arbeite wollte ich mal xen (opensource) ausprobieren.
doch leider ohne erfolg!!!
kann mir jemand bitte mal einen schubs geben!!!
meine vorgehensweise:
nach einer basisinstallation von lenny auf einer passenden kiste (4GB HSP/ 500GB HDD, Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz) habe ich via
Code: Alles auswählen
cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz
stepping : 6
cpu MHz : 3000.001
cache size : 6144 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 lahf_lm
bogomips : 6004.49
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz
stepping : 6
cpu MHz : 3000.001
cache size : 6144 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 lahf_lm
bogomips : 6000.06
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
nach der installation, anpassungen und reboot
Code: Alles auswählen
aptitude install linux-image-2.6.26-2-xen-amd64 linux-modules-2.6.26-2-xen-amd64 xen-hypervisor-3.2-1-amd64 xen-utils-3.2-1 xen-utils-common xen-tools xen-docs-3.2 less
vi /etc/modules
...
loop max_loop=64
...
vi /etc/xen/xend-config.sxp
...
(logfile /var/log/xen/xend.log)
(loglevel DEBUG)
(xend-http-server yes)
(network-script 'network-bridge netdev=eth0')
(vif-script vif-bridge)
(dom0-min-mem 196)
(dom0-cpus 0)
(vnc-listen '0.0.0.0')
(vncpasswd 'xen')
...
reboot
Code: Alles auswählen
uname -a
Linux xen001 2.6.26-2-xen-amd64 #1 SMP Mon Oct 19 04:39:01 UTC 2009 x86_64 GNU/Linux
cat /proc/cpuinfo | grep "flags"
flags : fpu de tsc msr pae cx8 apic sep mtrr cmov pat clflush acpi mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good pni ssse3 cx16 sse4_1 lahf_lm
flags : fpu de tsc msr pae cx8 apic sep mtrr cmov pat clflush acpi mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good pni ssse3 cx16 sse4_1 lahf_lm
xm info
host : xen001
release : 2.6.26-2-xen-amd64
version : #1 SMP Mon Oct 19 04:39:01 UTC 2009
machine : x86_64
nr_cpus : 2
nr_nodes : 1
cores_per_socket : 2
threads_per_core : 1
cpu_mhz : 3000
hw_caps : bfebfbff:20100800:00000000:00000140:0008e3fd:00000000:00000001
total_memory : 4094
free_memory : 128
node_to_cpu : node0:0-1
xen_major : 3
xen_minor : 2
xen_extra : -1
xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler : credit
xen_pagesize : 4096
platform_params : virt_start=0xffff800000000000
xen_changeset : unavailable
cc_compiler : gcc version 4.3.1 (Debian 4.3.1-2)
cc_compile_by : waldi
cc_compile_domain : debian.org
cc_compile_date : Sat Jun 28 09:32:18 UTC 2008
xend_config_format : 4
auch wenn ich etwas beunruhigt bin dass plötzlich kein vmx flag mehr beim prozessor steht.
nach der anpassung der xen-tools-configuration versuche ich nun eine lenny-gastsystem zu installieren.
Code: Alles auswählen
vi /etc/xen-tools/xen-tools.conf
...
dir = /vmx
install-method = debootstrap
size = 4Gb # Disk image size.
memory = 128Mb # Memory size
swap = 256Mb # Swap size
fs = ext3 # use the EXT3 filesystem for the disk image.
dist = lenny # Default distribution to install.
image = sparse # Specify sparse vs. full disk images.
dhcp = 1
passwd = 1
kernel = /boot/vmlinuz-`uname -r`
initrd = /boot/initrd.img-`uname -r`
mirror = http://ftp.de.debian.org/debian/
ext3_options = noatime,nodiratime,errors=remount-ro
ext2_options = noatime,nodiratime,errors=remount-ro
xfs_options = defaults
reiser_options = defaults
boot = 1
...
xen-create-image --verbose --force --hostname=lenny --dhcp --role=udev
General Information
--------------------
Hostname : lenny
Distribution : lenny
Partitions : swap 256Mb (swap)
/ 4Gb (ext3)
Image type : sparse
Memory size : 128Mb
Kernel path : /boot/vmlinuz-2.6.26-2-xen-amd64
Initrd path : /boot/initrd.img-2.6.26-2-xen-amd64
Networking Information
----------------------
IP Address : DHCP [MAC: 00:16:3E:76:05:9F]
Creating partition image: /vmx/domains/lenny/swap.img
Creating sparse image
Executing : dd if=/dev/zero of=/vmx/domains/lenny/swap.img bs=256k count=0 seek=1024
Finished : dd if=/dev/zero of=/vmx/domains/lenny/swap.img bs=256k count=0 seek=1024 2>&1 | tee --append /var/log/xen-tools/lenny.log
Done
Creating swap on /vmx/domains/lenny/swap.img
Executing : mkswap /vmx/domains/lenny/swap.img
Finished : mkswap /vmx/domains/lenny/swap.img 2>&1 | tee --append /var/log/xen-tools/lenny.log
Done
Creating partition image: /vmx/domains/lenny/disk.img
Creating sparse image
Executing : dd if=/dev/zero of=/vmx/domains/lenny/disk.img bs=4096k count=0 seek=1024
Finished : dd if=/dev/zero of=/vmx/domains/lenny/disk.img bs=4096k count=0 seek=1024 2>&1 | tee --append /var/log/xen-tools/lenny.log
Done
Creating ext3 filesystem on /vmx/domains/lenny/disk.img
Executing : mkfs.ext3 -F /vmx/domains/lenny/disk.img
Finished : mkfs.ext3 -F /vmx/domains/lenny/disk.img 2>&1 | tee --append /var/log/xen-tools/lenny.log
Done
Executing : mount -t ext3 -o loop /vmx/domains/lenny/disk.img /tmp/YKnVA3qhz2/
Finished : mount -t ext3 -o loop /vmx/domains/lenny/disk.img /tmp/YKnVA3qhz2/ 2>&1 | tee --append /var/log/xen-tools/lenny.log
Installation method: debootstrap
Executing : xt-install-image --hostname=lenny --location=/tmp/YKnVA3qhz2 --dist=lenny --install-method=debootstrap --mirror=http://ftp.de.debian.org/debian/ --cache=yes --verbose
Finished : xt-install-image --hostname=lenny --location=/tmp/YKnVA3qhz2 --dist=lenny --install-method=debootstrap --mirror=http://ftp.de.debian.org/debian/ --cache=yes --verbose 2>&1 | tee --append /var/log/xen-tools/lenny.log
Done
Executing : mount -o bind /proc /tmp/YKnVA3qhz2/proc
Finished : mount -o bind /proc /tmp/YKnVA3qhz2/proc 2>&1 | tee --append /var/log/xen-tools/lenny.log
Customization Script Environment:
---------------------------------
'HOME' = '/root'
'LANG' = 'de_DE.UTF-8'
'LC_ALL' = 'C'
'LOGNAME' = 'root'
'MAIL' = '/var/mail/root'
'NUMPARTITIONS' = '2'
'PARTITION1' = 'swap:256Mb:swap:::file::/vmx/domains/lenny/swap.img'
'PARTITION2' = 'disk:4Gb:ext3:/:noatime,nodiratime,errors=remount-ro:file::/vmx/domains/lenny/disk.img'
'PATH' = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
'PS1' = '\h:\w\$ '
'PWD' = '/root'
'SHELL' = '/bin/bash'
'SHLVL' = '1'
'SSH_CLIENT' = '192.168.200.135 41600 22'
'SSH_CONNECTION' = '192.168.200.135 41600 192.168.200.80 22'
'SSH_TTY' = '/dev/pts/2'
'TERM' = 'xterm'
'USER' = 'root'
'_' = '/usr/bin/xen-create-image'
'arch' = ''
'boot' = '1'
'cache' = 'yes'
'dhcp' = '1'
'dir' = '/vmx'
'dist' = 'lenny'
'ext2_options' = 'noatime,nodiratime,errors=remount-ro'
'ext3_options' = 'noatime,nodiratime,errors=remount-ro'
'extension' = '.cfg'
'force' = '1'
'fs' = 'ext3'
'hooks' = '1'
'hostname' = 'lenny'
'image' = 'sparse'
'initrd' = '/boot/initrd.img-2.6.26-2-xen-amd64'
'install' = '1'
'install-method' = 'debootstrap'
'ip_count' = '0'
'ipfile' = '/etc/xen-tools/ips.txt'
'kernel' = '/boot/vmlinuz-2.6.26-2-xen-amd64'
'mac' = '00:16:3E:76:05:9F'
'make_fs_ext2' = 'mkfs.ext2 -F '
'make_fs_ext3' = 'mkfs.ext3 -F '
'make_fs_reiserfs' = 'mkfs.reiserfs -f -q '
'make_fs_xfs' = 'mkfs.xfs -f -d name='
'memory' = '128Mb'
'mirror' = 'http://ftp.de.debian.org/debian/'
'modules' = ''
'mount_fs_ext2' = '-t ext2'
'mount_fs_ext3' = '-t ext3'
'mount_fs_reiserfs' = '-t reiserfs'
'mount_fs_xfs' = '-t xfs'
'output' = '/etc/xen'
'partitions' = ''
'partitionsdir' = '/etc/xen-tools/partitions.d'
'passwd' = '1'
'pid' = '0'
'reiser_options' = 'defaults'
'role' = 'udev'
'roledir' = '/etc/xen-tools/role.d'
'size' = '4Gb'
'swap' = '256Mb'
'template' = ''
'verbose' = '1'
'xfs_options' = 'defaults'
'xm' = '/usr/sbin/xm'
Running hooks
Executing : xt-customize-image --dist=lenny --location=/tmp/YKnVA3qhz2 --verbose
Finished : xt-customize-image --dist=lenny --location=/tmp/YKnVA3qhz2 --verbose 2>&1 | tee --append /var/log/xen-tools/lenny.log
Done
Executing : umount /tmp/YKnVA3qhz2/proc
Finished : umount /tmp/YKnVA3qhz2/proc 2>&1 | tee --append /var/log/xen-tools/lenny.log
Role: udev
File: /etc/xen-tools/role.d/udev
Executing : /etc/xen-tools/role.d/udev /tmp/YKnVA3qhz2
Finished : /etc/xen-tools/role.d/udev /tmp/YKnVA3qhz2 2>&1 | tee --append /var/log/xen-tools/lenny.log
Role script completed.
Creating Xen configuration file
Executing : xt-create-xen-config --output=/etc/xen --extension=.cfg
Finished : xt-create-xen-config --output=/etc/xen --extension=.cfg 2>&1 | tee --append /var/log/xen-tools/lenny.log
Done
Setting up root password
Enter new UNIX password:
Retype new UNIX password:
Sorry, passwords do not match
passwd: Authentication information cannot be recovered
passwd: password unchanged
All done
Unmounting : /tmp/YKnVA3qhz2
Executing : umount /tmp/YKnVA3qhz2
Finished : umount /tmp/YKnVA3qhz2 2>&1 | tee --append /var/log/xen-tools/lenny.log
xen001:~# Started new Xen guest: lenny [/etc/xen/lenny.cfg]
Logfile produced at:
/var/log/xen-tools/lenny.log
also versuche ich auf die maschine zuzugreifen und sehe das sie hängt.
Code: Alles auswählen
xm console lenny
[ 0.748115] Mount-cache hash table entries: 256
[ 0.748220] Initializing cgroup subsys ns
[ 0.748227] Initializing cgroup subsys cpuacct
[ 0.748232] Initializing cgroup subsys devices
[ 0.748259] CPU: L1 I cache: 32K, L1 D cache: 32K
[ 0.748266] CPU: L2 cache: 6144K
[ 0.748273] CPU: Physical Processor ID: 0
[ 0.748276] CPU: Processor Core ID: 1
[ 0.748287] SMP alternatives: switching to UP code
[ 0.755155] Freeing SMP alternatives: 21k freed
[ 0.755245] Brought up 1 CPUs
[ 0.757479] net_namespace: 1224 bytes
[ 0.757621] NET: Registered protocol family 16
[ 0.758549] Brought up 1 CPUs
[ 0.758562] PCI: Fatal: No config space access function found
[ 0.758567] PCI: setting up Xen PCI frontend stub
[ 0.760061] ACPI: Interpreter disabled.
[ 0.760067] Linux Plug and Play Support v0.97 (c) Adam Belay
[ 0.760099] pnp: PnP ACPI: disabled
[ 0.760268] suspend: event channel 7
[ 0.760611] xen_mem: Initialising balloon driver.
[ 0.761645] usbcore: registered new interface driver usbfs
[ 0.761703] usbcore: registered new interface driver hub
[ 0.761744] usbcore: registered new device driver usb
[ 0.761890] PCI: System does not support PCI
[ 0.761896] PCI: System does not support PCI
[ 0.768422] NET: Registered protocol family 2
[ 0.804058] IP route cache hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.804204] TCP established hash table entries: 8192 (order: 5, 131072 bytes)
[ 0.804243] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
[ 0.804280] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.804285] TCP reno registered
[ 0.816061] NET: Registered protocol family 1
[ 0.816133] checking if image is initramfs... it is
[ 0.829823] Freeing initrd memory: 19424k freed
[ 0.835093] platform rtc_cmos: registered platform RTC device (no PNP device found)
[ 0.835377] audit: initializing netlink socket (disabled)
[ 0.835394] type=2000 audit(1256402121.837:1): initialized
[ 0.835540] VFS: Disk quotas dquot_6.5.1
[ 0.835563] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.835586] msgmni has been set to 293
[ 0.835664] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[ 0.835672] io scheduler noop registered
[ 0.835676] io scheduler anticipatory registered
[ 0.835680] io scheduler deadline registered
[ 0.835688] io scheduler cfq registered (default)
[ 0.837718] Linux agpgart interface v0.103
[ 0.837756] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
[ 0.839015] brd: module loaded
[ 0.839070] input: Macintosh mouse button emulation as /class/input/input0
[ 0.839130] Xen virtual console successfully installed as hvc0
[ 0.839171] Event-channel device installed.
[ 0.847004] netfront: Initialising virtual ethernet driver.
[ 0.850233] PNP: No PS/2 controller found. Probing ports directly.
[ 0.851060] i8042.c: No controller found.
[ 0.851434] xen-vbd: registered block device major 8
[ 0.851449] blkfront: sda1: barriers enabled
[ 0.856157] blkfront: sda2: barriers enabled
[ 0.856246] mice: PS/2 mouse device common for all mice
[ 0.856420] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[ 0.856591] No iBFT detected.
[ 0.856928] TCP cubic registered
[ 0.856933] NET: Registered protocol family 17
[ 0.857067] registered taskstats version 1
[ 0.857092] XENBUS: Device with no driver: device/console/0
[ 0.857097] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 0.857105] Freeing unused kernel memory: 216k freed
Loading, please wait...
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... FATAL: Error inserting fan (/lib/modules/2.6.26-2-xen-amd64/kernel/drivers/acpi/fan.ko): No such device
WARNING: Error inserting processor (/lib/modules/2.6.26-2-xen-amd64/kernel/drivers/acpi/processor.ko): No such device
[ 0.980722] thermal: Unknown symbol acpi_processor_set_thermal_limit
FATAL: Error inserting thermal (/lib/modules/2.6.26-2-xen-amd64/kernel/drivers/acpi/thermal.ko): Unknown symbol in module, or unknown parameter (see dmesg)
done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
[ 1.288617] kjournald starting. Commit interval 5 seconds
[ 1.288630] EXT3-fs: mounted filesystem with ordered data mode.
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.86 booting
Starting the hotplug events dispatcher: udevd[ 1.496252] udevd version 125 started
.
Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...done.
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: Sat Oct 24 16:35:22 UTC 2009 (warning).
Activating swap...[ 2.016269] Adding 262136k swap on /dev/sda1. Priority:-1 extents:1 across:262136k
done.
Checking root file system...fsck 1.41.3 (12-Oct-2008)
/dev/sda2: clean, 12221/262144 files, 125610/1048576 blocks
done.
[ 2.035229] EXT3 FS on sda2, internal journal
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: Sat Oct 24 16:35:23 UTC 2009 (warning).
Cleaning up ifupdown....
Loading kernel modules...done.
Checking file systems...fsck 1.41.3 (12-Oct-2008)
done.
Setting kernel variables (/etc/sysctl.conf)...done.
Mounting local filesystems...done.
Activating swapfile swap...done.
Setting up networking....
Configuring network interfaces...Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on LPF/eth0/00:16:3e:76:05:9f
Sending on LPF/eth0/00:16:3e:76:05:9f
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPOFFER from 192.168.200.2
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.200.2
bound to 192.168.200.109 -- renewal in 1144 seconds.
done.
INIT: Entering runlevel: 2
Starting enhanced syslogd: rsyslogd.
Starting OpenBSD Secure Shell server: sshd[ 6.432905] NET: Registered protocol family 10
[ 6.433192] lo: Disabled Privacy Extensions
.
Starting periodic command scheduler: crond.
mfg
-ip-