Bonjour,
A partir d’un domO debian
root@xen:/# uname -r
2.6.32-5-xen-686
xend-config.sxp
(logfile /var/log/xen/xend.log)
(loglevel DEBUG)
(xsm_module_name dummy)
(xen-api-server ((unix)))
(xend-http-server yes)
(xend-port 8000)
(xend-address '')
(network-script network-bridge)
(network-script 'network-bridge netdev=peth0')
(vif-script vif-bridge)
(dom0-min-mem 196)
(enable-dom0-ballooning yes)
(total_available_memory 0)
(dom0-cpus 1)
(vnc-listen '127.0.0.1')
(vncpasswd '')
(keymap 'fr')
Je crée un domU en utilisant xen-tools
xen-tools.conf
lvm = vg
install-method = debootstrap
size = 40Gb # Disk image size.
memory = 1024Mb # Memory size
swap = 1024Mb # Swap size
fs = ext3 # use the EXT3 filesystem for the disk image.
dist = squeeze # Default distribution to install.
image = sparse # Specify sparse vs. full disk images.
gateway = 172.20.0.254
netmask = 255.255.0.0
broadcast = 172.20.255.255
bridge = eth0
passwd = 1
kernel = /boot/vmlinuz-2.6.32-5-xen-686
initrd = /boot/initrd.img-2.6.32-5-xen-686
mirror = ftp://ftp.debian.org/debian/
ext3_options = noatime,nodiratime,errors=remount-ro
btrfs_options = defaults
serial_device = hvc0 #default
disk_device = xvda #default
Je lance la création (xen-create)
[code]xen-create-image --hostname webserv2 -ip 172.20.199.202
General Information
Hostname : webserv2
Distribution : squeeze
Mirror : ftp://ftp.debian.org/debian/
Partitions : swap 1024Mb (swap)
/ 40Gb (ext3)
Image type : full
Memory size : 1024Mb
Kernel path : /boot/vmlinuz-2.6.32-5-xen-686
Initrd path : /boot/initrd.img-2.6.32-5-xen-686
Networking Information
IP Address 1 : 172.20.199.202 [MAC: 00:16:3E:86:AC:66]
Netmask : 255.255.0.0
Broadcast : 172.20.255.255
Gateway : 172.20.0.254
Creating swap on /dev/vg/webserv2-swap
Done
Creating ext3 filesystem on /dev/vg/webserv2-disk
Done
Installation method: debootstrap
Done
Running hooks
Done
No role scripts were specified. Skipping
Creating Xen configuration file
Done
Setting up root password
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
All done
Logfile produced at:
/var/log/xen-tools/webserv2.log
Installation Summary
Hostname : webserv2
Distribution : squeeze
IP-Address(es) : 172.20.199.202
RSA Fingerprint : b6:ab:0b:91:8b:0a:ff:d3:43:c4:92:2f:5d:eb:9e:30
Root Password : N/A
[/code]
Puis xm create
[code]root@xen:/etc/xen# xm create webserv2.cfg
Using config file “./webserv2.cfg”.
Started domain webserv2 (id=13)
root@xen:/etc/xen# xm list
Name ID Mem VCPUs State Time(s)
Domain-0 0 3006 1 r----- 2775.5
webserv2 13 1024 1 -b---- 1.2
[/code]
Voilà ce que me donne les partitions
[code]root@xen:/etc/xen# parted --list
Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/vg-webserv1–disk: 42,9GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number Start End Size File system Flags
1 0,00B 42,9GB 42,9GB ext3
Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/vg-webserv1–swap: 1074MB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number Start End Size File system Flags
1 0,00B 1074MB 1074MB linux-swap(v1)
Model: Compaq Smart Array (cpqarray)
Disk /dev/cciss/c0d0: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17,4kB 1018kB 1000kB bios_grub
2 1018kB 132GB 132GB ext3 boot
4 132GB 1994GB 1863GB
3 1994GB 2000GB 6214MB linux-swap(v1)
[/code]
Là, je veux lancer la vm dans une console et je rencontre le problème suivant
[color=#FF4000][ 0.216151] udev[47]: starting version 164
Begin: Loading essential drivers … [ 0.358326] SCSI subsystem initialized
[ 0.361653] HP CISS Driver (v 3.6.20)
[ 0.371444] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[ 0.373804] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
done.
Begin: Running /scripts/init-premount … done.
Begin: Mounting root file system … Begin: Running /scripts/local-top … [ 0.393811] device-mapper: uevent: version 1.0.3
[ 0.394752] device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
done.
Begin: Waiting for root file system … done.
Gave up waiting for root device. Common problems:
- Boot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Check root= (did the system wait for the right device?)
- Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/xvda2 does not exist. Dropping to a shell!
BusyBox v1.17.1 (Debian 1:1.17.1-8) built-in shell (ash)
Enter ‘help’ for a list of built-in commands.
/bin/sh: can’t access tty; job control turned off
(initramfs)
[/color]
et là, à part faire halt !! 
J’ai a priori un problème de reconnaissance de xvda ?
Quelqu’un a une idée ?
Merci par avance !
