XEN guest készítési probléma

Fórumok

Sziasztok!

Feldobtam egy VirtualBox-ba telepített debian 6.0.1-re a xen hypervisor-t.
A guest op.rendszer készítésekor elszáll a következő hibával:
Running command 'mount -t ext3 /home/xenstore/domains/xentest/disk.img /tmp/wtBDOg2NVn/ 2>&1' failed with exit code 8192.
Aborting
See /var/log/xen-tools/xentest.log for details

A log fájlba a következő van:
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 25 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
Done
mount: /home/xenstore/domains/xentest/disk.img is not a block device (maybe try `-o loop'?)
Running command 'mount -t ext3 /home/xenstore/domains/xentest/disk.img /tmp/wtBDOg2NVn/ 2>&1' failed with exit code 8192.
Aborting

Ha kézzel akarom mountolni, akkor is ezt a hibaüzenetet kapom. Ha a mount-ba beleteszem ezt a -o loop részt, akkor simán mountolja.

Tudja valaki, hogy lehet javítani ezt a hibát, vagy megmondani a xen-nek, hogy -o loop-pal próbálja mountolni?

Köszi.
Üdv.

Hozzászólások

A gép konfigjában ugye ott van hogy file:?
pl.:
disk = [ 'file:/home/xenstore/domains/xentest/disk.img,hda,w' ]

A dir meg van neki adva, hogy hova rakja a fájlt. Létre is hozza. Csak a mount parancs végrehajtásánál hibázik, mivel nem tudja felcsatolni, és így a virtuális host elkészítése megáll hibával. Ha kézzel (a -o loop paramétert manuálisan megadva) felcsatolom, akkor simán működik, és használható. Viszont automatikusan a -o loop-ot nem adja hozzá (Vajon kellene-e??? Ezekszerint igen).

Az a baj, hogy a gugliba ezzel kapcsolatos hibát nem találtam. Számíthat szerintetek valamit, hogy esetleg az alaprendszer virtuális gépen fut?

Köszi.
Üdv.

Ilyen sor nem szerepel a konfig fájlban.
Ez a teljes konfig állomány tartalma:
# Anything following a '#' character is ignored as a comment.
#
# Otherwise the format of this file "key = value". The value of
# any keys in this file may be constructed via the output of a command.
#
# For example:
#
# kernel = /boot/vmlinuz-`uname -r`
#
##

dir = /home/xenstore

#lvm = universal
lvm = vg0

install-method = debootstrap

size = 4Gb # Disk image size.
memory = 128Mb # Memory size
swap = 128Mb # Swap size
# noswap = 1 # Don't use swap at all for the new system.
fs = ext3 # use the EXT3 filesystem for the disk image.
dist = `xt-guess-suite-and-mirror --suite` # Default distribution to install.
image = sparse # Specify sparse vs. full disk images.

gateway = 10.250.125.1
netmask = 255.255.255.0
broadcast = 10.250.125.255

# dhcp = 1

nameserver = 10.250.125.1

#
# Setup bridge name for host vif. Usefull if you use bridged networking
# for guests.
#
# bridge = xendmz
#

##
# Misc options
##

#
# Uncomment the following line if you wish to disable the caching
# of downloaded .deb files when using debootstrap to install images.
#
# cache = no
#

#
# The default cachedir is, /var/cache/apt/archives/, however if it
# does not exist it will default to /var/cache/xen-tools/archives/
# Uncomment the line below to set it to something else.
#
# cachedir = /var/cache/xen-tools/archives/
#

#
# Uncomment the following line if you wish not to generate a new root
# password for the new guest.
#
# genpass = 0
#

#
# You can also change the password length by uncommenting and
# changing the line below
#
# genpass_len = 8
#

#
# You can yet change the hashing method to encrypt the generated
# password by changing the line below.
# Valid values : md5, sha256 and sha512.
#
# hash_method = sha256
#

#
# Uncomment the following line if you wish to interactively setup a
# new root password for images.
#
passwd = 1
#

#
# If you'd like all accounts on your host system which are not present
# on the guest system to be copied over then uncomment the following line.
#
# accounts = 1
#

#
# Default kernel and ramdisk to use for the virtual servers
#
kernel = /boot/vmlinuz-`uname -r`
initrd = /boot/initrd.img-`uname -r`

#
# The architecture to use when using debootstrap, rinse, or rpmstrap.
#
# This is most useful on 64 bit host machines, for other systems it
# doesn't need to be used.
#
# arch = [i386|amd64]
#

#
# The default mirror for debootstrap to install Debian-derived distributions
#
mirror = `xt-guess-suite-and-mirror --mirror`

#
# A mirror suitable for use when installing the Dapper release of Ubuntu.
#
# mirror = http://gb.archive.ubuntu.com/ubuntu/

#
# If you like you could use per-distribution mirrors, which will
# be more useful if you're working in an environment where you want
# to regularly use multiple distributions. The following are the
# default values used (for Debian the GeoIP feature is used, see
# http://wiki.debian.org/DebianGeoMirror):
#
# mirror_sarge = http://archive.debian.org/debian
# mirror_etch = http://archive.debian.org/debian
# mirror_lenny = http://cdn.debian.net/debian
# mirror_squeeze = http://cdn.debian.net/debian
# mirror_wheezy = http://cdn.debian.net/debian
# mirror_sid = http://cdn.debian.net/debian
# mirror_dapper = http://archive.ubuntu.com/ubuntu
# mirror_edgy = http://old-releases.ubuntu.com/ubuntu
# mirror_feisty = http://old-releases.ubuntu.com/ubuntu
# mirror_gutsy = http://old-releases.ubuntu.com/ubuntu
# mirror_hardy = http://archive.ubuntu.com/ubuntu
# mirror_intrepid = http://old-releases.ubuntu.com/ubuntu
# mirror_karmic = http://archive.ubuntu.com/ubuntu
# mirror_lucid = http://archive.ubuntu.com/ubuntu
mirror_maverick = http://archive.ubuntu.com/ubuntu
# mirror_natty = http://archive.ubuntu.com/ubuntu

#
# Filesystem options for the different filesystems we support.
#
ext3_options = noatime,nodiratime,errors=remount-ro
#ext2_options = noatime,nodiratime,errors=remount-ro
#xfs_options = defaults
#reiserfs_options = defaults
#btrfs_options = defaults

#ext3_options = defaults

#
# Uncomment if you wish newly created images to boot once they've been
# created.
#
# boot = 1

#
# If you're using the lenny or later version of the Xen guest kernel you will
# need to make sure that you use 'hvc0' for the guest serial device,
# and 'xvdX' instead of 'sdX' for serial devices.
#
# You may specify the things to use here:
#
# serial_device = hvc0 #default
# serial_device = tty1
#
# disk_device = xvda #default
# disk_device = sda
#

#
# Here we specify the output directory which the Xen configuration
# files will be written to, and the suffix to give them.
#
# Historically xen-tools have created configuration files in /etc/xen,
# and given each file the name $hostname.cfg. If you want to change
# that behaviour you may do so here.
#
#
# output = /etc/xen
# extension = .cfg
#

#
# Here you can control weather your dom0's /etc/hosts file should be
# appended with the new guest, and also if your dom0's /etc/hosts file
# should be copied to the new guest.
#
# Change the following options to 1 to set them
# nohosts - don't touch the dom0's /etc/hosts file
# copyhosts - copy the dom0's /etc/hosts to the guest
#
# by default new guests ARE added to the dom0's /etc/hosts file
# nohosts = 0 # default
#
# by default the dom0's /etc/hosts IS NOT copied
# copyhosts = 0 # default

gondolom az image tartalma egy fájlrendszer, nem egy partíció.

Feldobtam egy VirtualBox-ba telepített debian 6.0.1-re a xen hypervisor-t.

Hö? Egy virtualbox guestben akarsz hypervisort futtatni?
Ezt tényleg komolyan gondoltad?

Tedd fel a xen-tools csomagot, abban van olyan script ami mindent megold!

Újabb problémával szembesültem, amire persze nincs érthető magyarázat:

Telepíteni akarok egy windows xp-t a xen alá.

Disk-et megcsináltam dd-vel.
Kreáltam neki egy config fájlt, amibe látszólag minden rendben van.
De!
A következő van, amikor kreálni akarnám a gépet:

root@debian:/etc/xen# xm create win01.cfg
Using config file "./win01.cfg".
Error: Domain 'win01' does not exist.

xm new win01
parancsra meg egy rakás hibaüzenetet irogat:
root@debian:/etc/xen# xm new win01
Unexpected error:

Please report to xen-devel@lists.xensource.com
Traceback (most recent call last):
File "/usr/lib/xen-4.0/bin/xm", line 8, in
main.main(sys.argv)
File "/usr/lib/xen-4.0/lib/python/xen/xm/main.py", line 3620, in main
_, rc = _run_cmd(cmd, cmd_name, args)
File "/usr/lib/xen-4.0/lib/python/xen/xm/main.py", line 3644, in _run_cmd
return True, cmd(args)
File "", line 1, in
File "/usr/lib/xen-4.0/lib/python/xen/xm/main.py", line 1449, in xm_importcommand
cmd = __import__(command, globals(), locals(), 'xen.xm')
File "/usr/lib/xen-4.0/lib/python/xen/xm/new.py", line 26, in
from xen.xm.xenapi_create import *
File "/usr/lib/xen-4.0/lib/python/xen/xm/xenapi_create.py", line 22, in
from xml.parsers.xmlproc import xmlproc, xmlval, xmldtd
ImportError: No module named xmlproc

Utánanéztem a neten. Mindenhol azt írták, hogy a python-xml csomag kéne. Ámde debian 6-osba nem létezik ilyen csomag...

Valakinek ötlete?