Artur Linhart - Linux communication
2009-Mar-22 23:35 UTC
[Xen-users] RE: xen + lvm dropping to a shell
Hello, Fahad, We did not solve this problem with Ubuntu server. Finally we used Debian Etch instead of Ubuntu and used also a compilation from the source code, what includes also the creation of the current kernel with all backported patches - and the problems did not occur again (we used the version 3.2.1 of Xen). Maybe one more remark - in the old e-mail I posted two years before there was also the Dom0 installed on the logical volume. Please, do not use this type of configuration - if Your server crashes, then it is very possible the LVM gets incosistent and You will not be able boot a base system - and You have to manually repair the LVM tables etc... So, we also do not use this type of configuration and have a special allocated partition for the base system which is independent on LVM, so I strongly recommend to You to make it in teh same or similar way. With regards, Artur _____ From: Fahad Ahmad [mailto:ahmad.fahad@yahoo.com] Sent: Friday, March 13, 2009 9:12 PM To: AL.LINUX@bcpraha.com Subject: xen + lvm dropping to a shell Hello Artur, Im having the exact same issue you were having with xen+lvm , I was wondering did you ever manage to find a solution? http://lists.xensource.com/archives/html/xen-users/2007-05/msg00902.html Regards, Fahad __________ Informace od NOD32 3937 (20090314) __________ Tato zprava byla proverena antivirovym systemem NOD32. http://www.nod32.cz _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Everybody, I have no problems in creating VMs on image file with virt-install, but despite my efforts to install a domU on a logical volume, I haven''t succeeded so far. Virt-install seems to be able to crate VMs only on image files. I have tried to create the domU on a logical volume by cloning the host (I''m using a red-hat), and failed (more than once. Could you please give me a hint? Thanks in advance. Cheers, paola _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Paola Salviato wrote:> I have no problems in creating VMs on image file with virt-install, > but despite my efforts to install a domU on a logical volume, I > haven''t succeeded so far. Virt-install seems to be able to crate VMs > only on image files. I have tried to create the domU on a logical > volume by cloning the host (I''m using a red-hat), and failed (more > than once. >Why doesn''t "virt-install -file /dev/volgroup/logvol" work for you? jch _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
John Haxby wrote:> Paola Salviato wrote: >> I have no problems in creating VMs on image file with virt-install, >> but despite my efforts to install a domU on a logical volume, I >> haven''t succeeded so far. Virt-install seems to be able to crate VMs >> only on image files. I have tried to create the domU on a logical >> volume by cloning the host (I''m using a red-hat), and failed (more >> than once. >> > Why doesn''t "virt-install -file /dev/volgroup/logvol" work for you? > > jchWhat exactly is "-file" supposed to be? (probably it''s a stupid question, but... ) paola _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
It doesn''t work... libvir: Remote error : No such file or directory libvir: warning : Failed to find the network: Is the daemon running? This is what I get :( John Haxby wrote:> Paola Salviato wrote: >> I have no problems in creating VMs on image file with virt-install, >> but despite my efforts to install a domU on a logical volume, I >> haven''t succeeded so far. Virt-install seems to be able to crate VMs >> only on image files. I have tried to create the domU on a logical >> volume by cloning the host (I''m using a red-hat), and failed (more >> than once. >> > Why doesn''t "virt-install -file /dev/volgroup/logvol" work for you? > > jch >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Paola Salviato wrote:> > > John Haxby wrote: >> Paola Salviato wrote: >>> I have no problems in creating VMs on image file with virt-install, >>> but despite my efforts to install a domU on a logical volume, I >>> haven''t succeeded so far. Virt-install seems to be able to crate VMs >>> only on image files. I have tried to create the domU on a logical >>> volume by cloning the host (I''m using a red-hat), and failed (more >>> than once. >>> >> Why doesn''t "virt-install -file /dev/volgroup/logvol" work for you? >> >> jch > What exactly is "-file" supposed to be? > (probably it''s a stupid question, but... )You''re probably expecting some magic that''s not there and not needed. The "-file" option to virt-install simply names the file that''s going to be used for the guest''s disk image. Don''t forget that a logical volume _is_ a file, you can cat it, cp it, run wc on it. You can even edit it with emacs. There are a few things that are different to files in a file system: for instance if you copy /etc/passwd to it then it doesn''t get truncated and, of course, you can run the various lv* commands on a logical volume and you can''t on /etc/passwd. Were you perhaps expecting virt-install to create the logical volume for you? It doesn''t: you need to create it yourself first with lvcreate. But, really, the only magic is when virt-install comes to creating the guest''s config. If the file looks enough like a logical volume or a partition then it goes in the config as phy:... rather than file:... (I don''t remember exactly, but it''s quite possible that the name just needs to begin "/dev/" for it to go have a phy: back end.) So I''ll come back to my original question: why doesn''t "virt-install -file /dev/volgroup/logvol" work for you? jch _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Paola Salviato wrote:> It doesn''t work... libvir: Remote error : No such file or directory > libvir: warning : Failed to find the network: Is the daemon running?Ahh! virt-install doesn''t create the logical volume for you. You need to create it yourself. If this is a "standard" Red Hat install and you didn''t fiddle with the volume group name when you did the install then do something like this: lvcreate -L 16G -n guest VolGroup00 virt-install -file /dev/VolGroup00/guest .... Where "guest" is the name you want to give to the logical volume, "16G" is its size and "VolGroup00" is the name of the volume group you in which you want to create the logical volume. jch _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
No, I have created the volume group and the logical volume. Why does it have to be 16G (I gave it a lot of space)? John Haxby wrote:> Paola Salviato wrote: >> It doesn''t work... libvir: Remote error : No such file or directory >> libvir: warning : Failed to find the network: Is the daemon running? > > Ahh! virt-install doesn''t create the logical volume for you. You > need to create it yourself. If this is a "standard" Red Hat install > and you didn''t fiddle with the volume group name when you did the > install then do something like this: > > lvcreate -L 16G -n guest VolGroup00 > virt-install -file /dev/VolGroup00/guest .... > > Where "guest" is the name you want to give to the logical volume, > "16G" is its size and "VolGroup00" is the name of the volume group you > in which you want to create the logical volume. > > jch >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Paola Salviato wrote:> No, I have created the volume group and the logical volume. Why does > it have to be 16G (I gave it a lot of space)?No, it doesn''t have to be 16G, that was just an example. Can you post the _exact_ virt-install command you''re using and the errors it produces. I think your problem lies elsewhere. jch _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
The command I give is: #virt-install -f /dev/VolG00/LogVol -l nfs:plcds1:/... The error I get is: libvir: Remote error : No such file or directory libvir: warning : Failed to find the network: Is the daemon running? That''s it. John Haxby wrote:> Paola Salviato wrote: >> No, I have created the volume group and the logical volume. Why does >> it have to be 16G (I gave it a lot of space)? > No, it doesn''t have to be 16G, that was just an example. Can you > post the _exact_ virt-install command you''re using and the errors it > produces. I think your problem lies elsewhere. > > jch > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Despite the error messages I have created the virtual machine. Now I have just to see if it works properly. Thank you very much for your support. paola John Haxby wrote:> Paola Salviato wrote: >> No, I have created the volume group and the logical volume. Why does >> it have to be 16G (I gave it a lot of space)? > No, it doesn''t have to be 16G, that was just an example. Can you > post the _exact_ virt-install command you''re using and the errors it > produces. I think your problem lies elsewhere. > > jch > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users