Bruno Steven
2010-Jan-13 19:25 UTC
[Xen-users] Problem with Debian for create machine virtual from Centos
Hi... My name is Bruno I want congratulation all of group. My first question about XEN . I have Centos with XEN installed. I am trying make an virtual machine Debian using virt-install, my options are: [*root@xen opt]# virt-install * *What is the name of your virtual machine? Debian* * How much RAM should be allocated (in megabytes)? 256* * What would you like to use as the disk (file path)? /xen-lvm/debian-vm02/Debian-disk.img * * How large would you like the disk (/xen-lvm/debian-vm02/Debian-disk.img) to be (in gigabytes)? 10* * Would you like to enable graphics support? (yes or no) no* * What is the install location? /media/cdrom * * * So show start the message erro Starting install... Could not find an installable distribution at ''/media/cdrom'' Domain installation may not have been successful. If it was, you can restart your domain by running ''virsh start Debian''; otherwise, please restart your installation. *Wed, 13 Jan 2010 17:22:27 ERROR Could not find an installable distribution at ''/media/cdrom''* Traceback (most recent call last): File "/usr/sbin/virt-install", line 502, in ? main() File "/usr/sbin/virt-install", line 462, in main dom = guest.start_install(conscb,progresscb) File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 811, in start_install self._prepare_install(meter) File "/usr/lib/python2.4/site-packages/virtinst/ParaVirtGuest.py", line 56, in _prepare_install self._installer.prepare(guest = self, meter = meter) File "/usr/lib/python2.4/site-packages/virtinst/DistroManager.py", line 239, in prepare self._prepare_kernel_and_initrd(guest, distro, meter) File "/usr/lib/python2.4/site-packages/virtinst/DistroManager.py", line 209, in _prepare_kernel_and_initrd distro = distro) File "/usr/lib/python2.4/site-packages/virtinst/DistroManager.py", line 122, in acquireKernel progresscb=progresscb, distro=distro, scratchdir=scratchdir) File "/usr/lib/python2.4/site-packages/virtinst/DistroManager.py", line 101, in _storeForDistro raise ValueError, _("Could not find an installable distribution at ''%s''" % baseuri) ValueError: Could not find an installable distribution at ''/media/cdrom'' Why XEN don''t continues installation ? There is incompatibilities between Centos 5.4 and guest Debian 5.0 ? Ok. Thanks -- Bruno Steven - Administrador de sistemas. LPIC-1 - LPI ID: lpi000119659 / Code: p2e4wz47e4 https://www.lpi.org/caf/Xamman/certification MCP-Windows 2003 - TranscriptID: 793804 / Access Code: 080089100 https://mcp.microsoft.com/authenticate/validatemcp.aspx P Antes de imprimir pense em sua responsabilidade e comprometimento com o Meio Ambiente. Before printing this message, think about your ecologic responsability and environment commitment. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thomas Halinka
2010-Jan-13 20:03 UTC
Re: [Xen-users] Problem with Debian for create machine virtual from Centos
Hi, Am Mittwoch, den 13.01.2010, 17:25 -0200 schrieb Bruno Steven:> Hi... > > > My name is Bruno I want congratulation all of group. > > > My first question about XEN . I have Centos with XEN installed. I am > trying make an virtual machine Debian using virt-install, my options > are:......> What is the install location? /media/cdrom > > So show start the message erro > > > Starting install... > Could not find an installable distribution at ''/media/cdrom''......> ValueError: Could not find an installable distribution at > ''/media/cdrom''Is there any CD inserted for installation?> > > > > Why XEN don''t continues installation ?It cant find any install-Media...> There is incompatibilities between Centos 5.4 and guest Debian > 5.0 ?Nope, but im using Steve''s "xen-tools", which does a great Job.> > > Ok. > > > Thankshth, Thomas> -- > Bruno Steven - Administrador de sistemas. > LPIC-1 - LPI ID: lpi000119659 / Code: p2e4wz47e4 > https://www.lpi.org/caf/Xamman/certification > > MCP-Windows 2003 - TranscriptID: 793804 / Access Code: 080089100 > https://mcp.microsoft.com/authenticate/validatemcp.aspx > > > P Antes de imprimir pense em sua responsabilidade e comprometimento > com o Meio Ambiente. Before printing this message, think about your > ecologic responsability and environment commitment. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Bruno Steven
2010-Jan-13 20:21 UTC
Re: [Xen-users] Problem with Debian for create machine virtual from Centos
I make change in mode for installation virtual machine (debian) now I am using file with image of Debian 5.0 ( http://stacklet.com/downloads/images/debian/5.0) . I create file Debian-VM01 , the content file is kernel = "/boot/vmlinuz-2.6.18-92.el5xen" ramdisk = "/boot/initrd-2.6.18-92.el5xen.img" memory = 256 name = "debian-vm02" vif = [''bridge=xenbr1''] disk = [''file:/xen-lvm/debian-vm02/debian.5-0.x86.img,xvda,w''] ip = "192.168.4.10" gateway = "192.168.4.254" netmask = "255.255.255.0" root = "/dev/sda3 ro" extra = ''4'' When I started the machine show this message error Mounting root filesystem. mount: could not find filesystem ''/dev/root'' Setting up other filesystems. Setting up new root fs setuproot: moving /dev failed: No such file or directory no fstab.sys, mounting internal defaults setuproot: error mounting /proc: No such file or directory setuproot: error mounting /sys: No such file or directory Switching to new root and running init. unmounting old /dev unmounting old /proc unmounting old /sys Why I can do Debian recognize the virtual storage system of XEN ? On Wed, Jan 13, 2010 at 6:03 PM, Thomas Halinka <lists@thohal.de> wrote:> Hi, > > Am Mittwoch, den 13.01.2010, 17:25 -0200 schrieb Bruno Steven: > > Hi... > > > > > > My name is Bruno I want congratulation all of group. > > > > > > My first question about XEN . I have Centos with XEN installed. I am > > trying make an virtual machine Debian using virt-install, my options > > are: > ...... > > What is the install location? /media/cdrom > > > > So show start the message erro > > > > > > Starting install... > > Could not find an installable distribution at ''/media/cdrom'' > ...... > > ValueError: Could not find an installable distribution at > > ''/media/cdrom'' > > > Is there any CD inserted for installation? > > > > > > > > > > Why XEN don''t continues installation ? > > It cant find any install-Media... > > > There is incompatibilities between Centos 5.4 and guest Debian > > 5.0 ? > > Nope, but im using Steve''s "xen-tools", which does a great Job. > > > > > > > Ok. > > > > > > Thanks > > > hth, > > Thomas > > > > -- > > Bruno Steven - Administrador de sistemas. > > LPIC-1 - LPI ID: lpi000119659 / Code: p2e4wz47e4 > > https://www.lpi.org/caf/Xamman/certification > > > > MCP-Windows 2003 - TranscriptID: 793804 / Access Code: 080089100 > > https://mcp.microsoft.com/authenticate/validatemcp.aspx > > > > > > P Antes de imprimir pense em sua responsabilidade e comprometimento > > com o Meio Ambiente. Before printing this message, think about your > > ecologic responsability and environment commitment. > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > >-- Bruno Steven - Administrador de sistemas. LPIC-1 - LPI ID: lpi000119659 / Code: p2e4wz47e4 https://www.lpi.org/caf/Xamman/certification MCP-Windows 2003 - TranscriptID: 793804 / Access Code: 080089100 https://mcp.microsoft.com/authenticate/validatemcp.aspx P Antes de imprimir pense em sua responsabilidade e comprometimento com o Meio Ambiente. Before printing this message, think about your ecologic responsability and environment commitment. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pasi Kärkkäinen
2010-Jan-13 20:41 UTC
Re: [Xen-users] Problem with Debian for create machine virtual from Centos
On Wed, Jan 13, 2010 at 05:25:34PM -0200, Bruno Steven wrote:> Hi... > My name is Bruno I want congratulation all of group. > My first question about XEN . I have Centos with XEN installed. I am > trying make an virtual machine Debian using virt-install, my options are: > [root@xen opt]# virt-install > What is the name of your virtual machine? Debian > How much RAM should be allocated (in megabytes)? 256 > What would you like to use as the disk (file path)? > /xen-lvm/debian-vm02/Debian-disk.img > How large would you like the disk (/xen-lvm/debian-vm02/Debian-disk.img) > to be (in gigabytes)? 10 > Would you like to enable graphics support? (yes or no) no > What is the install location? /media/cdrom >virt-manager or virt-install don''t support installing Xen PV guests from a CD/DVD/.iso, they can only be installed from network.> So show start the message erro > Starting install... > Could not find an installable distribution at ''/media/cdrom'' > Domain installation may not have been > successful. If it was, you can restart your domain > by running ''virsh start Debian''; otherwise, please > restart your installation. > Wed, 13 Jan 2010 17:22:27 ERROR Could not find an installable > distribution at ''/media/cdrom'' > Traceback (most recent call last): > File "/usr/sbin/virt-install", line 502, in ? > main() > File "/usr/sbin/virt-install", line 462, in main > dom = guest.start_install(conscb,progresscb) > File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 811, in > start_install > self._prepare_install(meter) > File "/usr/lib/python2.4/site-packages/virtinst/ParaVirtGuest.py", line > 56, in _prepare_install > self._installer.prepare(guest = self, meter = meter) > File "/usr/lib/python2.4/site-packages/virtinst/DistroManager.py", line > 239, in prepare > self._prepare_kernel_and_initrd(guest, distro, meter) > File "/usr/lib/python2.4/site-packages/virtinst/DistroManager.py", line > 209, in _prepare_kernel_and_initrd > distro = distro) > File "/usr/lib/python2.4/site-packages/virtinst/DistroManager.py", line > 122, in acquireKernel > progresscb=progresscb, distro=distro, scratchdir=scratchdir) > File "/usr/lib/python2.4/site-packages/virtinst/DistroManager.py", line > 101, in _storeForDistro > raise ValueError, _("Could not find an installable distribution at > ''%s''" % baseuri) > ValueError: Could not find an installable distribution at ''/media/cdrom'' > > Why XEN don''t continues installation ? There is incompatibilities between > Centos 5.4 and guest Debian 5.0 ? > Ok. >So you need to specify --hvm if you want to install Xen HVM (fully virtualized/emulated) guest from a CD/DVD/.iso. -- Pasi _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ramon F McDougall
2010-Jan-13 21:05 UTC
Re: [Xen-users] Problem with Debian for create machine virtual from Centos
I had a similar experience when I tried to install on a system in which CPU did not have support for virtualization. On Wed, 2010-01-13 at 18:21 -0200, Bruno Steven wrote:> I make change in mode for installation virtual machine (debian) now I > am using file with image of Debian 5.0 > (http://stacklet.com/downloads/images/debian/5.0) . > > > I create file Debian-VM01 , the content file is > > > kernel = "/boot/vmlinuz-2.6.18-92.el5xen" > ramdisk = "/boot/initrd-2.6.18-92.el5xen.img" > memory = 256 > name = "debian-vm02" > vif = [''bridge=xenbr1''] > disk = [''file:/xen-lvm/debian-vm02/debian.5-0.x86.img,xvda,w''] > ip = "192.168.4.10" > gateway = "192.168.4.254" > netmask = "255.255.255.0" > root = "/dev/sda3 ro" > extra = ''4'' > > > When I started the machine show this message error > > > Mounting root filesystem. > mount: could not find filesystem ''/dev/root'' > Setting up other filesystems. > Setting up new root fs > setuproot: moving /dev failed: No such file or directory > no fstab.sys, mounting internal defaults > setuproot: error mounting /proc: No such file or directory > setuproot: error mounting /sys: No such file or directory > Switching to new root and running init. > unmounting old /dev > unmounting old /proc > unmounting old /sys > > > Why I can do Debian recognize the virtual storage system of XEN ? > > On Wed, Jan 13, 2010 at 6:03 PM, Thomas Halinka <lists@thohal.de> > wrote: > Hi, > > Am Mittwoch, den 13.01.2010, 17:25 -0200 schrieb Bruno Steven: > > Hi... > > > > > > My name is Bruno I want congratulation all of group. > > > > > > My first question about XEN . I have Centos with XEN > installed. I am > > trying make an virtual machine Debian using virt-install, my > options > > are: > > ...... > > What is the install location? /media/cdrom > > > > So show start the message erro > > > > > > Starting install... > > Could not find an installable distribution at ''/media/cdrom'' > > ...... > > ValueError: Could not find an installable distribution at > > ''/media/cdrom'' > > > > Is there any CD inserted for installation? > > > > > > > > > > Why XEN don''t continues installation ? > > > It cant find any install-Media... > > > There is incompatibilities between Centos 5.4 and guest > Debian > > 5.0 ? > > > Nope, but im using Steve''s "xen-tools", which does a great > Job. > > > > > > > Ok. > > > > > > Thanks > > > hth, > > Thomas > > > > -- > > Bruno Steven - Administrador de sistemas. > > LPIC-1 - LPI ID: lpi000119659 / Code: p2e4wz47e4 > > https://www.lpi.org/caf/Xamman/certification > > > > MCP-Windows 2003 - TranscriptID: 793804 / Access Code: > 080089100 > > https://mcp.microsoft.com/authenticate/validatemcp.aspx > > > > > > P Antes de imprimir pense em sua responsabilidade e > comprometimento > > com o Meio Ambiente. Before printing this message, think > about your > > ecologic responsability and environment commitment. > > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > > > > -- > Bruno Steven - Administrador de sistemas. > LPIC-1 - LPI ID: lpi000119659 / Code: p2e4wz47e4 > https://www.lpi.org/caf/Xamman/certification > > MCP-Windows 2003 - TranscriptID: 793804 / Access Code: 080089100 > https://mcp.microsoft.com/authenticate/validatemcp.aspx > > > P Antes de imprimir pense em sua responsabilidade e comprometimento > com o Meio Ambiente. Before printing this message, think about your > ecologic responsability and environment commitment. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- Regards, Ramon F. McDougall Hytek Solutions, Inc. 305-541-7208 rfm@hyteksolutions.com www.hyteksolutions.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2010-Jan-14 03:11 UTC
Re: [Xen-users] Problem with Debian for create machine virtual from Centos
On Thu, Jan 14, 2010 at 3:21 AM, Bruno Steven <aspenbr@gmail.com> wrote:> kernel = "/boot/vmlinuz-2.6.18-92.el5xen" > ramdisk = "/boot/initrd-2.6.18-92.el5xen.img"> Why I can do Debian recognize the virtual storage system of XEN ?Short story: you''re using Centos kernel and initrd for Debian. That won''t work. Modern distro usually needs their own initrd. How proficient are you with Xen/Linux? If you prefer mostly to use GUI, then the easiest way is to use virt-install, create fully-virtualized (HVM) Debian guest with install media from cdrom, and convert it to PV (manually) later. To succesfully install HVM guest you need CPU with hardware virtualization support (intel-vt/amd-v) If you''re familiar with chroot, apt-get, update-grub, and other command line tools, it should be possible to create a suitable initrd for your stacklet image. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2010-Jan-14 13:57 UTC
Re: [Xen-users] Problem with Debian for create machine virtual from Centos
On Thu, Jan 14, 2010 at 8:25 PM, Bruno Steven <aspenbr@gmail.com> wrote:> Hello Fajar > My processor don''t have flag VMX (intel-vt) . I am using tools virt-install > and virsh . > Do you know some "howto" for build virtual machine like debian on Centos ?This would probably be the best link http://people.debian.org/~joeyh/d-i/images/daily/netboot/xen/xm-debian.cfg> How I create initrd of Debian inside Centos ? There is site with this file > for download ?it generally involves: - chroot - install new xen-compatible kernel image with apt-get - run update-grub (or whatever command necessary to create a good /boot/grub/menu.lst) - change your domU config to use pygrub bootloader instead of specifing kernel and ramdisk. Or you could copy domU''s kernel and ramdisk to dom0, your choice. If the above seems to complicated, I suggest you try xm-debian.cfg first. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users