Hi I''ve just installed xen on FC4 T1. When I run xm create -c rawhide I get the following: Using config file "/etc/xen/rawhide". Error: Error creating domain: (12, ''Cannot allocate memory'') Can anybody please help. Here''s my config files: /etc/xen/rawhide: kernel ="/boot/vmlinuz-2.6.11-1.1225_FC4xenU" memory = 9 name = "rawhide" nics = 1 disk = [''file:/root/fedora.img,/dev/mapper/VolGroup00-LogVol00,w''] root = "/dev/mapper/VolGroup00-LogVol00 ro" /mnt/xen/etc/fstab: /dev/mapper/VolGroup00-LogVol00 / ext3 defaults 1 1 none /dev/pts devpts gid=5,mode=620 0 0 none /dev/shm tmpfs defaults 0 0 none /proc proc defaults 0 0 none /sys sysfs defaults 0 0 /etc/fstab of host server: /dev/VolGroup00/LogVol00 / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 /dev/devpts /dev/pts devpts gid=5,mode=620 0 0 /dev/shm /dev/shm tmpfs defaults 0 0 /dev/proc /proc proc defaults 0 0 /dev/sys /sys sysfs defaults 0 0 /dev/VolGroup00/LogVol01 swap swap defaults 0 0 /dev/hdc /media/cdrom auto pamconsole,exec,noauto,fscontext=system_u:object_r:removable_t,managed 0 0 I''m running the following kernel: 2.6.11-1.1225_FC4xen0 SMP total used free shared buffers cached Mem: 482 288 193 0 7 214 -/+ buffers/cache: 66 416 Swap: 1023 0 1023 xm list Name Id Mem(MB) CPU State Time(s) Console Domain-0 0 486 0 r---- 63030.3 Many Thanks Shaz Chase de Vere Financial Solutions plc operates under the trading names of Chase de Vere Private Clients, Chase de Vere Employee Benefits and Moneyextra. Chase de Vere Financial Solutions plc is an independent financial adviser and is authorised and regulated by the Financial Services Authority. Registered Office: 1 King Street, Manchester M2 6AW. Registered in England No: 1723284 VAT No: 503 374571 A wholly owned subsidiary of AWD Group plc. AWD Group plc is a member of AWD Holding AG, Europe''s premier independent financial services group. *************************************************************************** This message is intended for the named recipient only and is confidential and no other person can place any reliance upon it. The recipient acknowledges that transmissions made via the Internet can be corrupted and therefore Chase de Vere Financial Solutions plc does not give any warranty as to the quality or accuracy of any information contained in this message or assumes any liability for it or for its transmission, reception or storage. This footnote also confirms that this e-mail message has been swept for the presence of computer viruses. Chase de Vere Financial Solutions plc is authorised and regulated by the Financial Services Authority and is an independent financial adviser *************************************************************************** _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> > <html> > <head> > <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> > <title></title> > </head> > <body bgcolor="#ffffff" text="#000000"> > <p><font size="2">Hi</font> > </p> > <p><font size="2">I''ve just installed xen on FC4 T1. When I run</font> > </p> > <p><font size="2">xm create -c rawhide</font> > </p> > <p><font size="2">I get the following:</font> > </p> > <p><font size="2">Using config file "/etc/xen/rawhide".</font> > <br> > <font size="2">Error: Error creating domain: (12, ''Cannot allocate > memory'')</font> > </p> > <p><font size="2">Can anybody please help.</font> > </p> > <p><font size="2">Here''s my config files:</font> > </p> > <p><font size="2">/etc/xen/rawhide:</font> > <br> > <font size="2">kernel ="/boot/vmlinuz-2.6.11-1.1225_FC4xenU"</font> > <br> > <font size="2">memory = 9</font> > <br> > <font size="2">name = "rawhide"</font> > <br> > <font size="2">nics = 1</font> > <br> > <font size="2">disk = [''<a > href="file:/root/fedora.img,/dev/mapper/VolGroup00-LogVol00,w%27">file:/root/fedora.img,/dev/mapper/VolGroup00-LogVol00,w''</a>]</font> > <br> > <font size="2">root = "/dev/mapper/VolGroup00-LogVol00 ro"</font> > </p> > <p><font size="2">/mnt/xen/etc/fstab:</font> > <br> > <font > size="2">/dev/mapper/VolGroup00-LogVol00 > / > </font> > <br> > <font size="2">ext3 defaults 1 1</font> > <br> > <font > size="2">none > /dev/pts > devpts > gid=5,mode=620 0 0</font> > <br> > <font > size="2">none > /dev/shm > tmpfs > defaults 0 0</font> > <br> > <font > size="2">none > /proc > proc > defaults 0 0</font> > <br> > <font > size="2">none > /sys > sysfs > defaults 0 0</font> > </p> > <p><font size="2">/etc/fstab of host server:</font> > <br> > <font size="2">/dev/VolGroup00/LogVol00 > / > ext3 > defaults </font> > <br> > <font size="2">1 1</font> > <br> > <font size="2">LABEL=/boot > /boot > ext3 > defaults 1 2</font> > <br> > <font size="2">/dev/devpts > /dev/pts > devpts > gid=5,mode=620 0 0</font> > <br> > <font > size="2">/dev/shm > /dev/shm > tmpfs > defaults 0 0</font> > <br> > <font > size="2">/dev/proc > /proc > proc > defaults 0 0</font> > <br> > <font > size="2">/dev/sys > /sys > sysfs > defaults 0 0</font> > <br> > <font size="2">/dev/VolGroup00/LogVol01 > swap > swap > defaults </font> > <br> > <font size="2">0 0</font> > <br> > <font > size="2">/dev/hdc > /media/cdrom > auto </font> > <br> > <font size="2">pamconsole,exec,noauto,fscontext=system_u:object_r:removable_t,managed > 0 0</font> > </p> > <p><font size="2">I''m running the following kernel:</font> > <br> > <font size="2">2.6.11-1.1225_FC4xen0 SMP<br> > </font></p> > > total used > free shared buffers > cached<br> > Mem: > 482 288 > 193 > 0 > 7 > 214<br> > -/+ buffers/cache: > 66 416<br> > Swap: > 1023 0 > 1023<br> > <br> > xm list<br> > Name Id > Mem(MB) CPU State Time(s) Console<br> > Domain-0 > 0 486 0 r---- 63030.3<br> > <p><font size="2">Many Thanks</font> > <br> > <font size="2">Shaz</font> > </p> > <BR><PRE> > > > > Chase de Vere Financial Solutions plc operates under the trading names of Chase de Vere Private > Clients, Chase de Vere Employee Benefits and Moneyextra. > Chase de Vere Financial Solutions plc is an independent financial adviser and is authorised and > regulated by the Financial Services Authority. > > Registered Office: 1 King Street, Manchester M2 6AW. Registered in England No: 1723284 VAT No: > 503 374571 > A wholly owned subsidiary of AWD Group plc. AWD Group plc is a member of AWD Holding AG, Europe''s > premier independent financial services group. > > > *************************************************************************** > This message is intended for the named recipient only and is confidential > and no other person can place any reliance upon it. > > The recipient acknowledges that transmissions made via the Internet can be > corrupted and therefore Chase de Vere Financial Solutions plc does not give > any warranty as to the quality or accuracy of any information contained in > this message or assumes any liability for it or for its transmission, > reception or storage. > > This footnote also confirms that this e-mail message has been swept for the > presence of computer viruses. > > Chase de Vere Financial Solutions plc is authorised and regulated by the > Financial Services Authority and is an independent financial adviser > *************************************************************************** > </pre><BR></body> > </html> > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-usersShaz, Please, do not use html formatting for your messages to the list, it is very dificult to sort out the tags and understand what you mean. I, for sure, will not answer your email if you continue to send it in html format. 1) I believe it is not a good idea to have the same root for both domain 0 and the other domains. I would recommend to have one pair of partitions (root+swap) for each domain but 0. I am doing such configuration, and it helps me get more secure that way. Also, you are mounting your root partition as RW both for domain 0 and rawhide.. you will get problems when both domains start writing to the same partition/file. 2) For you to configure memory there is a formula: mem(xen)+mem(dom0)+mem(dom1)+...+mem(domN)=total amount of ram as for mem(xen) you need 64k, as for mem(dom0) you may be using 256M, as for mem(domN) depends on what you are using, at least 64M. For example, if you have 512MB ram, start the dom0 with 262144 (256MB) and start every other domain with "memory = 64". 3) I also realize you did not create a swap space for your domain rawhide. Do you believe you will never swap? -- Bye, Fernando Maciel Souto Maior fernando@araujo.com.br http://www.araujo.com.br +55+31 3270-5886 LPIC/1 # 31908 AVISO------------------------------------------------------------- Esta mensagem pode conter informacao confidencial ou privilegiada. Se voce nao for o destinatario ou a pessoa autorizada a receber esta mensagem, nao pode usar, copiar ou divulgar as informacoes nela contidas ou tomar qualquer acao baseada nessas informacoes. Se voce recebeu esta mensagem por engano, favor avisar o remetente imediatamente, respondendo o e-mail e em seguida apagando-o. Obrigado pela cooperacao. DISCLAIMER-------------------------------------------------------- This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on any information herein. If you have received this message in error, please advise the sender immediately by replying to this e-mail and delete this message. Thank you for your cooperation. ------------------------------------------------------------------ This email was sent using SquirrelMail - http://squirrelmail.org _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> Hi Fernando > > In answer to your statements: > > 1) I just ran with the default partitioning. When you say two root > partitions how is that possible? Do you mean install a root parition in > a separate partition, instead of using the fedora.img?Let me explain. You have the dom0 Linux installed, and it runs using your default root partition. I did partition my hd into the following partitions (I am using SuSE, so I am using /dev, not /udev or else): /dev/sda1 (that is /boot for dom0), /dev/sda2 (that is / for dom0), /dev/sda3 (that is the lvm for the remain of the hd). Inside the lvm partition (/dev/sda3), created as the v0 volume group, I did the following volumes: /dev/v0/vm0swap (that is swap for dom0), /dev/v0/vm1root (that is / for dom1), /dev/v0/vm1swap (that is swap for dom1), /dev/v0/vm2root (that is / for dom2), /dev/v0/vm2swap (that is swap for dom2), and so on. Remember, you have virtual hosts inside you hostess host. For each virtual host, they think they are alone in the machine. So they do need to have their root and swap as separate partitions/files.> 2) where do you configure the different memories? The only one I knew > was the rawhide domain I was creating.Memories are configured in start time, at the /etc/xen directory, using config files. Try looking into that directory and you will see some samples. Also, try RTFM :)> 3) I thought it would use the swap space allready created in: > > /dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw) > /dev/proc on /proc type proc (rw) > /dev/sys on /sys type sysfs (rw) > /dev/devpts on /dev/pts type devpts (rw,gid=5,mode=620) > /dev/hda1 on /boot type ext3 (rw) > /dev/shm on /dev/shm type tmpfs (rw) > none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) > sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)That is for dom0 only. Think each domain as a separate machine, and install the dom0 with minimum assets. Then, install the other domains using the root/swap partitions in lvm.> Update: I''ve managed to get over the problem with the memore issue. I > put a memory limit on the kernel line in the grub.conf file. I think > this is how you limit the Domain0 memory size, am I right?Yes. Please, read the manual on line - it has explanations on how to do it correct. You should PLAN your setup, each virtual machine needs to be planned in both memory and root/swap usage, THEN you start partitioning with LVM and configuring memory for dom0 and other domains.> But I now have a kernel panic. It says: > > VFS: Cannot open root device "mapper/VolGroup00-LogVol00" or > unknown-block(0,0) > Please append a correct "root=" boot option > Kernel panic - not syncing: VFS: Unable to mount root fs on > unknown-block(0,0)Well, probably you should be using /dev/VolGroup00/LogVol00 instead of mapper/VolGroup00-LogVol00... Try that. -- Bye, Fernando Maciel Souto Maior fernando@araujo.com.br http://www.araujo.com.br +55+31 3270-5886 LPIC/1 # 31908 AVISO------------------------------------------------------------- Esta mensagem pode conter informacao confidencial ou privilegiada. Se voce nao for o destinatario ou a pessoa autorizada a receber esta mensagem, nao pode usar, copiar ou divulgar as informacoes nela contidas ou tomar qualquer acao baseada nessas informacoes. Se voce recebeu esta mensagem por engano, favor avisar o remetente imediatamente, respondendo o e-mail e em seguida apagando-o. Obrigado pela cooperacao. DISCLAIMER-------------------------------------------------------- This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on any information herein. If you have received this message in error, please advise the sender immediately by replying to this e-mail and delete this message. Thank you for your cooperation. ------------------------------------------------------------------ This email was sent using SquirrelMail - http://squirrelmail.org _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users