|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-devel
[Xen-devel] Newbie question: Error creating domain
 
When trying to create a new domain I get the following error:
root@chekov:~# xm create vmid=1
Using config file /etc/xen/xmdefaults
Error: Error creating domain: [Failure instance:
Traceback:xen.xend.XendDomainInfo.VmError, vbd: Segments not
foundXXXXXX:uname=phy:hda3
If I do a dry-run:
root@chekov:~# xm create -n vmid=1
Using config file xmdefaults
(vm
    (name 'This is VM 1')
    (memory '64')
    (cpu '1')
    (image
        (linux
            (kernel /boot/vmlinuz-2.4.26-xenU)
            (ip :1.2.3.4::::eth0:dhcp)
            (root '/dev/sda1 ro')
        )
    )
    (device (vbd (uname phy:hda3) (dev sda1) (mode w)))
    (device (vbd (uname phy:hda4) (dev sda2) (mode w)))
    (device (vif (mac aa:0:0:2e:29:6c)))
)
I have created a Slackware filesystem pretty much the same way I used to do
under UML, the most important steps are shown below:
# I have created 2 partitions for my guest os, hda3 and hda4
root@chekov:~# fdisk -l /dev/hda
Disk /dev/hda: 8455 MB, 8455200768 bytes
255 heads, 63 sectors/track, 1027 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         697     5598621   83  Linux
/dev/hda2             698         742      361462+  82  Linux swap
/dev/hda3             743         865      987997+  83  Linux
/dev/hda4             866         882      136552+  82  Linux swap
# I created filesystems on both of them:
root@chekov:~# mkfs -t ext3 /dev/hda3
root@chekov:~# mkswap /dev/hda4
# I mounted my new guest root filesystem:
root@chekov:~# mount /dev/hda3 /build/root
# I edited all the tagfiles so they only had ADD or SKP selections and
installed my choice of packages:
root@chekov:/build/slackware# /sbin/installpkg -root /build/root a/*.tgz
ap/*.tgz d/*.tgz l/*.tgz n/*.tgz
# I created a new fstab:
/dev/sda1        /                ext3        defaults         1   1
/dev/sda2        swap             swap        defaults         0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
# And finally, I unmounted /dev/hda3 before trying to create the new domain
Any help is appreciated,
Fredrik Dahlberg
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel
 |   
 
| <Prev in Thread] | 
Current Thread | 
[Next in Thread>
 |  
- [Xen-devel] Newbie question: Error creating domain,
Fredrik Dahlberg <=
 
 
 |  
  
 | 
    | 
  
  
    |   | 
    |