[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Unaible to create DomU Guest


  • To: "xen-users@xxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxx>
  • From: Dorian <dechangydorian@xxxxxxxx>
  • Date: Tue, 30 Apr 2013 13:58:34 +0100 (BST)
  • Cc: Dorian de Changy <dechangydorian@xxxxxxxx>
  • Delivery-date: Tue, 30 Apr 2013 12:59:48 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type; b=v1eXWVwS8L1+QeJPEbQKt4BqRBt84oUUoNZlgQifyCK8545PWvRJh75QxbXA7Q1HBbj3c6wD+wtfseTiWYAN2gDMoLzd5JZ52F8sLOnFsEh9yiW+BtP+ltTV7y7UOHEkgYVINaTe0YBSNHQoCQZB1V4LzvNSlG9Ev8iGmxMeRys=;
  • List-id: Xen user discussion <xen-users.lists.xen.org>

Hello.

First of all I 'm pretty new to Linux and this is my first install of Xen. So don't mind me wrong if sometimes I don't know which command is appropriate to fetch results.

I'm running a new Debian Squeeze release 2.6.32-5-xen-amd64 with minimal components. I've been going through install of Xen as per the documentation for the 4.2.1 release and did so by source. However I installed (make install & make world) from within /user/Download/xen4.2.1, I don't know if that is a good/bad idea?
All dependancies were installed and the install showed no error  upon a few tries.
First weird behaviour, I ended up in/at grub with several Xen extensions.gz (xen 4.2.1, xen 4.2, xen 4.0, xen: no one of them able ton boot) so I had a Xen 4 with AMD64, which boots And I can see the DomU booted:

root@debian:/home/dorian# uname -a
Linux debian 2.6.32-5-xen-amd64 #1 SMP Mon Feb 25 02:51:39 UTC 2013 x86_64 GNU/Linux
root@debian:/home/dorian# xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  2830     2     r-----     30.5

I make LVM partitions on which to install the guests.
I have following logical volume created:
root@debian:/dev# lvdisplay
  --- Logical volume ---
  LV Name                /dev/Esp-Virt/Vol1
  VG Name                Esp-Virt
  LV UUID                4l5BVd-7vSV-W3vZ-or5i-KLjX-6MjC-JYGyEJ
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                24,00 GiB
  Current LE             6144
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:0
  
  --- Logical volume ---
  LV Name                /dev/Esp-Virt/Marie-DHCP-swap
  VG Name                Esp-Virt
  LV UUID                oJhOii-Ji2Z-ZwWe-YQ37-6MRd-kA1u-cCND34
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                256,00 MiB
  Current LE             64
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:1
  
  --- Logical volume ---
  LV Name                /dev/Esp-Virt/Marie-DHCP-disk
  VG Name                Esp-Virt
  LV UUID                dGA6fg-Py5q-QHZM-0CTL-N03s-v4KV-DrQ3f7
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                4,00 GiB
  Current LE             1024
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:2


Then I edited /etc/xen-tools/xen-tools.conf to suit my wishes:
root@debian:/dev# grep -E -v '^(#|$)' /etc/xen-tools/xen-tools.conf
lvm = Esp-Virt
install-method = debootstrap
size   = 4Gb      # Disk image size.
memory = 256Mb    # Memory size
swap   = 256Mb    # Swap size
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    = 192.168.1.1
netmask    = 255.255.255.0
broadcast  = 192.168.1.255
passwd = 1
accounts = 1
kernel = /boot/vmlinuz-`uname -r`
initrd = /boot/initrd.img-`uname -r`
mirror = `xt-guess-suite-and-mirror --mirror`
ext3_options     = noatime,nodiratime,errors=remount-ro
ext2_options     = noatime,nodiratime,errors=remount-ro
xfs_options      = defaults
reiserfs_options = defaults
btrfs_options    = defaults
serial_device = hvc0 #default
disk_device = xvda #default

I 've created my virtual machines :
root@debian:/home/dorian# xen-create-image --hostname=Marie-DHCP --ip=192.168.1.3 --passwd --force

General Information
--------------------
Hostname : Marie-DHCP
Distribution : squeeze
Mirror : ftp://ftp.fr.debian.org/debian/
Partitions : swap 256Mb (swap)
/ 4Gb (ext3)
Image type : full
Memory size : 256Mb
Kernel path : /boot/vmlinuz-2.6.32-5-xen-amd64
Initrd path : /boot/initrd.img-2.6.32-5-xen-amd64

Networking Information
----------------------
IP Address 1 : 192.168.1.3 [MAC: 00:16:3E:BF:18:50]
Netmask : 255.255.255.0
Broadcast : 192.168.1.255
Gateway : 192.168.1.1

Removing /dev/Esp-Virt/Marie-DHCP-swap - since we're forcing the install
Removing /dev/Esp-Virt/Marie-DHCP-disk - since we're forcing the install

Creating swap on /dev/Esp-Virt/Marie-DHCP-swap
Done

Creating ext3 filesystem on /dev/Esp-Virt/Marie-DHCP-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/Marie-DHCP.log

Installation Summary
---------------------
Hostname : Marie-DHCP
Distribution : squeeze
IP-Address(es) : 192.168.1.3
RSA Fingerprint : 25:46:6c:76:3a:39:fc:7a:bb:7b:31:33:9c:7f:30:09
Root Password : N/A

A # locate Marie shows:
root@debian:/home/dorian/Téléchargements/xen-4.2.1# locate Marie
/dev/.udev/links/Esp-Virt\x2fMarie-DHCP-disk
/dev/.udev/links/Esp-Virt\x2fMarie-DHCP-swap
/dev/.udev/links/disk\x2fby-id\x2fdm-name-Esp--Virt-Marie--DHCP--disk
/dev/.udev/links/disk\x2fby-id\x2fdm-name-Esp--Virt-Marie--DHCP--swap
/dev/.udev/links/mapper\x2fEsp--Virt-Marie--DHCP--disk
/dev/.udev/links/mapper\x2fEsp--Virt-Marie--DHCP--swap
/dev/.udev/links/Esp-Virt\x2fMarie-DHCP-disk/b254:2
/dev/.udev/links/Esp-Virt\x2fMarie-DHCP-swap/b254:1
/dev/.udev/links/disk\x2fby-id\x2fdm-name-Esp--Virt-Marie--DHCP--disk/b254:2
/dev/.udev/links/disk\x2fby-id\x2fdm-name-Esp--Virt-Marie--DHCP--swap/b254:1
/dev/.udev/links/mapper\x2fEsp--Virt-Marie--DHCP--disk/b254:2
/dev/.udev/links/mapper\x2fEsp--Virt-Marie--DHCP--swap/b254:1
/dev/Esp-Virt/Marie-DHCP-disk
/dev/Esp-Virt/Marie-DHCP-swap
/dev/disk/by-id/dm-name-Esp--Virt-Marie--DHCP--disk
/dev/disk/by-id/dm-name-Esp--Virt-Marie--DHCP--swap
/dev/mapper/Esp--Virt-M arie--DHCP--disk
/dev/mapper/Esp--Virt-Marie--DHCP--swap
/etc/xen/Marie-DHCP.cfg
/etc/xen/Marie-DHCP.cfg.ancien
/usr/share/zoneinfo/Europe/Mariehamn
/usr/share/zoneinfo/posix/Europe/Mariehamn
/usr/share/zoneinfo/right/Europe/Mariehamn
/var/log/xen-tools/Marie-DHCP.0.log
/var/log/xen-tools/Marie-DHCP.1.log
/var/log/xen-tools/Marie-DHCP.2.log
/var/log/xen-tools/Marie-DHCP.log
root@debian:/home/dorian/Téléchargements/xen-4.2.1# ls /dev/Esp-Virt/
Marie-DHCP-disk  Marie-DHCP-swap  Vol1

I did configure the /etc/network/interfaces file like this (conversaly xen-create image... indicated ip=192.168.1.3
# The loopback network interface
auto lo
iface lo inet loopback

auto xenbr0
iface xenbr0 inet dhcp
bridge_ports eth0
#bridge_stp on
#bridge_maxwait 0
#bridge_fd 0
whereas /// root@debian:/dev# grep -E -v '^(#|$)' /etc/xen/xend-config.sxp // NOT CONFIGURED AS PER THE DEBIAN SQUEEZE ADVICE
(vif-script vif-bridge)
(dom0-min-mem 196)
(enable-dom0-ballooning yes)
(total_available_memory 0)
(dom0-cpus 0)
(vncpasswd '')

So, I 've got this interfaces showing up.
Vif x.x should appear after xm create Virtual-guest.cfg, I guess (which in my case is MArie-DHCP)
root@debian:/home/dorian# brctl show
bridge name    bridge id        STP enabled    interfaces
pan0        8000.000000000000    no       
xenbr0        8000.002655c46159    no        eth0

Now, when I try to boot my DomU guest here is the error, which many research on the web didn't show up thje solution. however:
Step 1:
root@debian:/dev# xm create Marie-DHCP.cfg
Using config file "/etc/xen/Marie-DHCP.cfg".
Error: Device 0 (vif) could not be connected. Hotplug scripts not working.
>>>> I watched in the hotplug.log
root@debian:/dev# more /var/log/xen/xen-hotplug.log
xenstore-read: couldn't read path backend/vbd/2/51714/params
xenstore-write: could not write path backend/vbd/2/51714/hotplug-error
xenstore-read: couldn't read path backend/vbd/2/51713/params
xenstore-write: could not write path backend/vbd/2/51714/hotplug-error
xenstore-write: could not write path backend/vbd/2/51714/hotplug-error
xenstore-write: could not write path backend/vbd/2/51713/hotplug-error
xenstore-write: could not write path backend/vif/2/0/hotplug-error
In the meantime of weeks in searching how to get around. I found the following usefull information:
http://wiki.xen.org/wiki/XenCommonProblems#Xen_complains_about_.22hotplug_scripts_not_working.22

"This problem is often related to udev. Do you have udev installed? Is your udev the correct/supported version? "This error usually has more information in the end revealing the real reason.. for example:
Error: Device 0 (vif) could not be connected. Hotplug scripts not working.
"This problem is often caused by not having "xen-netback" driver loaded in dom0 kernel.
"The hotplug scripts are located in /etc/xen/scripts by default, and are labeled with the prefix vif-*. Those "scripts log to /var/log/xen/xen-hotplug.log, and more detailed information can be found there."
>>>>>>>>>I know I installed udev, prior to install xen from source since hotplug plugin doesn't exists/shows up.

I've been trying to locate xen-netback driver.
root@debian:/dev# cat /proc/modules | grep xen
xen_evtchn 4355 1 - Live 0xffffffffa04d7000
xenfs 9616 1 - Live 0xffffffffa04ce000
>>>>>>These modules seem .ok
The following modules may be required:STep 2
   xen-evtchn
xen-gntdev    >>> missing         >>>> I think the error comes from
xen-netback    >>>missing                this missing drivers
xen-blkback    >>>missing
xenfs
blktap        >>> missing |Are they missing from Xen 4.2.1 from source Or
did they don't install properly (something like exit with errors? I'm willing to re install
with detailed info if needed...).

On the same wiki-page are numerous important advices , but often I don't know where to look
for the files (which directory + name)and/or the commands to use to edit except using nano..

e.g. Git (what'is it , how use it?? but'i'll google through) I don't know from which directory input
I 've to make the substantial intalls provided by the last mentionned adress above.

What am i missing for going through Step 2, I mean be able to launch my virtual machine
where find it? Which command help out?

I hope I'v"e been clear. since too many research pull me with confused through all the topic/issue links.
So I summarize:
Will I be able to resolve the xm create vm.cfg which I encounter as an issue.
How do I get the xen- modules installed and running?
I appreciate your help in solving this issue. Also please provide me with the commands since from th elinks I cannot solve it and take a risk to break the system.
Sorry for the long thread!!
Many thanks in advance


Dorian Carpentier de Changy
dechangydorian@xxxxxxxx
0497/623 249
--------------------------
Rue Camille Lemonnier 22
1050 Bruxelles
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.