how to mount the domU images on dom0 to chroot them mount it on the dom0 and chroot to it. I am getting an error xen console mydomU _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I am installing domU image after executing the following command xen-create-image --hostname=mydomU --ip 192.168.1.22 --gateway 192.168.1.250 --netmask 255.255.255.0 --broadcast 192.168.1.255 --dist=jaunty --mirror=http://archive.ubuntu.com/ubuntu --size=4Gb --memory=64Mb --swap=128MB --arch=i386 --partitions=with-data --boot --passwd --role udev I get following message at the last Creating ext3 filesystem on /workarea/xen/domains/mydomU/data.img Done Installation method: debootstrap Done Running hooks Done Role: udev File: /etc/xen-tools/role.d/udev Role script completed. Creating Xen configuration file Done Setting up root password Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully All done root@abhitech-desktop:~# Started new Xen guest: mydomU [/etc/xen/mydomU.cfg] Logfile produced at: /var/log/xen-tools/mydomU.log Now here is the problem since the terminal on which it happened cursor is blinking it is not even giving me the shell to log in or execute any command so someone on IRC suggested me to mount the images Before I do that xm list shows me the following output root@abhitech-desktop:~# xm list Name ID Mem VCPUs State Time(s) Domain-0 0 364 1 r----- 2547.1 mydomU 2 64 1 -b---- 9.5 root@abhitech-desktop:~# and if I execute xm console mydomU then it gave me erro mydomU is not installed where as in the domains directory I have root@abhitech-desktop:/workarea/xen/domains/mydomU# ls data.img root.img swap.img all the above files whose sizes are root@abhitech-desktop:/workarea/xen/domains/mydomU# du -ch ./* 194M ./data.img 719M ./root.img 4.0K ./swap.img 913M total Now how should I proceed console is not letting me log in inspite of my repeated attempts On Mon, Nov 16, 2009 at 9:24 PM, Arpan Jindal <jindalarpan@gmail.com> wrote:> can you explain it in details what are you doing and where you are facing > this issue? > > On Mon, Nov 16, 2009 at 9:22 PM, Tapas Mishra <tapas@abhitech.com> wrote: >> >> how to mount the domU images on dom0 to chroot them >> mount it on the dom0 and chroot to it. I am getting an error xen >> console mydomU >> >> _______________________________________________ >> 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
On Mon, 16 Nov 2009 21:42:50 +0530, Tapas Mishra <tapas@abhitech.com> wrote:> I am installing domU image > > after executing the following command > > xen-create-image --hostname=mydomU --ip 192.168.1.22 --gateway > 192.168.1.250 --netmask 255.255.255.0 --broadcast 192.168.1.255 > --dist=jaunty --mirror=http://archive.ubuntu.com/ubuntu --size=4Gb > --memory=64Mb --swap=128MB --arch=i386 --partitions=with-data --boot > --passwd --role udev > > > I get following message at the last > > > > Creating ext3 filesystem on /workarea/xen/domains/mydomU/data.img > Done > Installation method: debootstrap > Done > > Running hooks > Done > > Role: udev > File: /etc/xen-tools/role.d/udev > Role script completed. > > Creating Xen configuration file > Done > Setting up root password > Enter new UNIX password: > Retype new UNIX password: > passwd: password updated successfully > All done > root@abhitech-desktop:~# Started new Xen guest: mydomU > [/etc/xen/mydomU.cfg] > > > Logfile produced at: > /var/log/xen-tools/mydomU.log > > Now here is the problem since the terminal on which it happened cursor > is blinking it is not even giving me the shell to log in or execute > any command so someone on IRC suggested me to mount the images >I too started out using Xen with Ubuntu for both Dom0 and DomU machines. At the time, I was using the Ubuntu 8.04 LTS version and used the distro specific install through apt-get. Anyhow, I encountered a lot of problems with console logins. After searching the Internet, I found I wasn''t alone. I discovered a lot of patches required to fix login issues as well as problems with the shutdown of Ubuntu domains. You have mentioned both of these problems in your recent posts. I have sinced moved to Debian Lenny for Dom0 and all DomU machines. That change has made a huge difference in the stability I have experienced with Xen. However, I still had to add configuration variables to my config files to ensure the console matches between Xen and my Debian virtual machine. The instructions I used were on the Xen wiki website and was listed as a known issue with Debian. Despite those configuration changes, I sometimes still see the blank console as you described when using the xm console command. Whenever this occurs, I simply hit the enter key on the keyboard and the login prompt shows up on my console. It is by no means scientific and I don''t have a technical explanation for why this occurs. But it works and that is good enough for me in most situations.> > Before I do that xm list shows me the following output > > root@abhitech-desktop:~# xm list > Name ID Mem VCPUs State > Time(s) > Domain-0 0 364 1 r----- > 2547.1 > mydomU 2 64 1 -b----> 9.5 > root@abhitech-desktop:~# > > > and if I execute xm console mydomU then it gave me erro mydomU is not > installed where as > in the domains directory I have > root@abhitech-desktop:/workarea/xen/domains/mydomU# ls > data.img root.img swap.img > all the above files whose sizes are > > root@abhitech-desktop:/workarea/xen/domains/mydomU# du -ch ./* > 194M ./data.img > 719M ./root.img > 4.0K ./swap.img > 913M total >I also started out using disk image files. I have sinced moved to using logical partitions through LVM for my DomU disks. It is very easy to mount these logical volumes in Dom0 with the mount command. Mounting should be done when the DomU is not running. One mounted, you can edit files for the DomU from the Dom0 console.> > Now how should I proceed > console is not letting me log in inspite of my repeated attempts > > > > > > > On Mon, Nov 16, 2009 at 9:24 PM, Arpan Jindal <jindalarpan@gmail.com> > wrote: >> can you explain it in details what are you doing and where you arefacing>> this issue? >> >> On Mon, Nov 16, 2009 at 9:22 PM, Tapas Mishra <tapas@abhitech.com>wrote:>>> >>> how to mount the domU images on dom0 to chroot them >>> mount it on the dom0 and chroot to it. I am getting an error xen >>> console mydomU >>> >>> _______________________________________________ >>> 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_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thanks a lot for the reply by the time you replied luckily without any logical reason the xm console mydomU had booted then I executed apt-get install ubuntu-desktop linux-image-virtual lvm2 user-setup it took an hour to do a lot of downloads and since then it has been setting up a lot of things which I feel are the desktop environments of \ Ubuntu since you mentioned Debian so I am curious to know in terms of stability since today only I was able to finish downloading all my DVDs of Debian so in terms of stability did you felt it better than Ubuntu or any other distribution if I talk about Xen On Mon, Nov 16, 2009 at 11:13 PM, Thomas Jensen <tom.jensen@digitaltoolbox-inc.com> wrote:> On Mon, 16 Nov 2009 21:42:50 +0530, Tapas Mishra <tapas@abhitech.com> > wrote: >> I am installing domU image >> >> after executing the following command >> >> xen-create-image --hostname=mydomU --ip 192.168.1.22 --gateway >> 192.168.1.250 --netmask 255.255.255.0 --broadcast 192.168.1.255 >> --dist=jaunty --mirror=http://archive.ubuntu.com/ubuntu --size=4Gb >> --memory=64Mb --swap=128MB --arch=i386 --partitions=with-data --boot >> --passwd --role udev >> >> >> I get following message at the last >> >> >> >> Creating ext3 filesystem on /workarea/xen/domains/mydomU/data.img >> Done >> Installation method: debootstrap >> Done >> >> Running hooks >> Done >> >> Role: udev >> File: /etc/xen-tools/role.d/udev >> Role script completed. >> >> Creating Xen configuration file >> Done >> Setting up root password >> Enter new UNIX password: >> Retype new UNIX password: >> passwd: password updated successfully >> All done >> root@abhitech-desktop:~# Started new Xen guest: mydomU >> [/etc/xen/mydomU.cfg] >> >> >> Logfile produced at: >> /var/log/xen-tools/mydomU.log >> >> Now here is the problem since the terminal on which it happened cursor >> is blinking it is not even giving me the shell to log in or execute >> any command so someone on IRC suggested me to mount the images >> > I too started out using Xen with Ubuntu for both Dom0 and DomU machines. > At the time, I was using the Ubuntu 8.04 LTS version and used the distro > specific install through apt-get. Anyhow, I encountered a lot of problems > with console logins. After searching the Internet, I found I wasn''t alone. > I discovered a lot of patches required to fix login issues as well as > problems with the shutdown of Ubuntu domains. You have mentioned both of > these problems in your recent posts. > > I have sinced moved to Debian Lenny for Dom0 and all DomU machines. That > change has made a huge difference in the stability I have experienced with > Xen. > > However, I still had to add configuration variables to my config files to > ensure the console matches between Xen and my Debian virtual machine. The > instructions I used were on the Xen wiki website and was listed as a known > issue with Debian. > > Despite those configuration changes, I sometimes still see the blank > console as you described when using the xm console command. Whenever this > occurs, I simply hit the enter key on the keyboard and the login prompt > shows up on my console. > > It is by no means scientific and I don''t have a technical explanation for > why this occurs. But it works and that is good enough for me in most > situations. >> >> Before I do that xm list shows me the following output >> >> root@abhitech-desktop:~# xm list >> Name ID Mem VCPUs State >> Time(s) >> Domain-0 0 364 1 r----- >> 2547.1 >> mydomU 2 64 1 -b---- > >> 9.5 >> root@abhitech-desktop:~# >> >> >> and if I execute xm console mydomU then it gave me erro mydomU is not >> installed where as >> in the domains directory I have >> root@abhitech-desktop:/workarea/xen/domains/mydomU# ls >> data.img root.img swap.img >> all the above files whose sizes are >> >> root@abhitech-desktop:/workarea/xen/domains/mydomU# du -ch ./* >> 194M ./data.img >> 719M ./root.img >> 4.0K ./swap.img >> 913M total >> > I also started out using disk image files. I have sinced moved to using > logical partitions through LVM for my DomU disks. It is very easy to mount > these logical volumes in Dom0 with the mount command. Mounting should be > done when the DomU is not running. One mounted, you can edit files for the > DomU from the Dom0 console. >> >> Now how should I proceed >> console is not letting me log in inspite of my repeated attempts >> >> >> >> >> >> >> On Mon, Nov 16, 2009 at 9:24 PM, Arpan Jindal <jindalarpan@gmail.com> >> wrote: >>> can you explain it in details what are you doing and where you are > facing >>> this issue? >>> >>> On Mon, Nov 16, 2009 at 9:22 PM, Tapas Mishra <tapas@abhitech.com> > wrote: >>>> >>>> how to mount the domU images on dom0 to chroot them >>>> mount it on the dom0 and chroot to it. I am getting an error xen >>>> console mydomU >>>> >>>> _______________________________________________ >>>> 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 >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, 16 Nov 2009 23:31:02 +0530, Tapas Mishra <tapas@abhitech.com> wrote:> Thanks a lot for the reply by the time you replied luckily without any > logical reason the xm console mydomU had booted > then I executed > apt-get install ubuntu-desktop linux-image-virtual lvm2 user-setup > it took an hour to do a lot of downloads and since then it has been > setting up a lot of things which I feel are the desktop environments > of \ > Ubuntu since you mentioned Debian so I am curious to know in terms of > stability since today only I was able to finish downloading all my > DVDs of Debian so in terms of stability did you felt it better than > Ubuntu or any other distribution if I talk about Xen >When the Ubuntu 8.04 LTS version came out, I did a fresh install rather than an upgrade and moved to Xen as a virtualization platform. It was at this time that I encountered a lot of issues that required patching to make Ubuntu behave in the virtualized environment. Because of the patching I had done, each time an apt-get upgrade updated my Xen installation, I had to reapply the patches for Ubuntu. The stability issues I had weren''t specific to Xen. Nearly each time I upgraded Ubuntu, one of my underlying services (DNS, Email, Web Server, etc.) would go offline for what appeared to be mysterious reasons. Although I really like Ubuntu in a desktop environment, I began to feel that for my production servers, Ubuntu was a little too bleading edge. As a result, I moved to Debian Lenny and have not experienced nearly as many issues with package upgrades. It just works. I use the site How to Forge as a reference when beginning new projects. There are several tutorials for various distributions. There is a tutorial for installing Xen onto Debian Lenny at the following link. There are similar tutorials for Ubuntu as well if you decide to stick with that distribution. http://www.howtoforge.com/virtualization-with-xen-on-debian-lenny-amd64 If you feel like trying Debian, you may want to try the minimal Debian package (http://www.debian.org/CD/netinst/). It is a much smaller download but requires an Internet connection during installation. If you have questions that aren''t Xen specific, you can feel free to contact me off list. Within reason, I can try to point you to resources that I have found useful.> On Mon, Nov 16, 2009 at 11:13 PM, Thomas Jensen > <tom.jensen@digitaltoolbox-inc.com> wrote: >> On Mon, 16 Nov 2009 21:42:50 +0530, Tapas Mishra <tapas@abhitech.com> >> wrote: >>> I am installing domU image >>> >>> after executing the following command >>> >>> xen-create-image --hostname=mydomU --ip 192.168.1.22 --gateway >>> 192.168.1.250 --netmask 255.255.255.0 --broadcast 192.168.1.255 >>> --dist=jaunty --mirror=http://archive.ubuntu.com/ubuntu --size=4Gb >>> --memory=64Mb --swap=128MB --arch=i386 --partitions=with-data --boot >>> --passwd --role udev >>> >>> >>> I get following message at the last >>> >>> >>> >>> Creating ext3 filesystem on /workarea/xen/domains/mydomU/data.img >>> Done >>> Installation method: debootstrap >>> Done >>> >>> Running hooks >>> Done >>> >>> Role: udev >>> File: /etc/xen-tools/role.d/udev >>> Role script completed. >>> >>> Creating Xen configuration file >>> Done >>> Setting up root password >>> Enter new UNIX password: >>> Retype new UNIX password: >>> passwd: password updated successfully >>> All done >>> root@abhitech-desktop:~# Started new Xen guest: mydomU >>> [/etc/xen/mydomU.cfg] >>> >>> >>> Logfile produced at: >>> /var/log/xen-tools/mydomU.log >>> >>> Now here is the problem since the terminal on which it happened cursor >>> is blinking it is not even giving me the shell to log in or execute >>> any command so someone on IRC suggested me to mount the images >>> >> I too started out using Xen with Ubuntu for both Dom0 and DomUmachines.>> At the time, I was using the Ubuntu 8.04 LTS version and used thedistro>> specific install through apt-get. Anyhow, I encountered a lot of >> problems >> with console logins. After searching the Internet, I found I wasn''t >> alone. >> I discovered a lot of patches required to fix login issues as well as >> problems with the shutdown of Ubuntu domains. You have mentioned both >> of >> these problems in your recent posts. >> >> I have sinced moved to Debian Lenny for Dom0 and all DomU machines. >> That >> change has made a huge difference in the stability I have experienced >> with >> Xen. >> >> However, I still had to add configuration variables to my config filesto>> ensure the console matches between Xen and my Debian virtual machine. >> The >> instructions I used were on the Xen wiki website and was listed as a >> known >> issue with Debian. >> >> Despite those configuration changes, I sometimes still see the blank >> console as you described when using the xm console command. Whenever >> this >> occurs, I simply hit the enter key on the keyboard and the login prompt >> shows up on my console. >> >> It is by no means scientific and I don''t have a technical explanationfor>> why this occurs. But it works and that is good enough for me in most >> situations. >>> >>> Before I do that xm list shows me the following output >>> >>> root@abhitech-desktop:~# xm list >>> Name ID Mem VCPUs State >>> Time(s) >>> Domain-0 0 364 1 r----- >>> 2547.1 >>> mydomU 2 64 1 -b---- >> >>> 9.5 >>> root@abhitech-desktop:~# >>> >>> >>> and if I execute xm console mydomU then it gave me erro mydomU is not >>> installed where as >>> in the domains directory I have >>> root@abhitech-desktop:/workarea/xen/domains/mydomU# ls >>> data.img root.img swap.img >>> all the above files whose sizes are >>> >>> root@abhitech-desktop:/workarea/xen/domains/mydomU# du -ch ./* >>> 194M ./data.img >>> 719M ./root.img >>> 4.0K ./swap.img >>> 913M total >>> >> I also started out using disk image files. I have sinced moved tousing>> logical partitions through LVM for my DomU disks. It is very easy to >> mount >> these logical volumes in Dom0 with the mount command. Mounting should >> be >> done when the DomU is not running. One mounted, you can edit files for >> the >> DomU from the Dom0 console. >>> >>> Now how should I proceed >>> console is not letting me log in inspite of my repeated attempts >>> >>> >>> >>> >>> >>> >>> On Mon, Nov 16, 2009 at 9:24 PM, Arpan Jindal <jindalarpan@gmail.com> >>> wrote: >>>> can you explain it in details what are you doing and where you are >> facing >>>> this issue? >>>> >>>> On Mon, Nov 16, 2009 at 9:22 PM, Tapas Mishra <tapas@abhitech.com> >> wrote: >>>>> >>>>> how to mount the domU images on dom0 to chroot them >>>>> mount it on the dom0 and chroot to it. I am getting an error xen >>>>> console mydomU >>>>> >>>>> _______________________________________________ >>>>> 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 >>_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> I use the site How to Forge as a reference when beginning new projects. > There are several tutorials for various distributions. There is a tutorial > for installing Xen onto Debian Lenny at the following link. There are > similar tutorials for Ubuntu as well if you decide to stick with that > distribution. > > http://www.howtoforge.com/virtualization-with-xen-on-debian-lenny-amd64 > > If you feel like trying Debian, you may want to try the minimal Debian > package (http://www.debian.org/CD/netinst/). It is a much smaller download > but requires an Internet connection during installation. > > If you have questions that aren''t Xen specific, you can feel free to > contact me off list. Within reason, I can try to point you to resources > that I have found useful. >Ok thanks a lot I surely will mail you if I get any doubt other than Xen for the resources you found useful _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Seemingly Similar Threads
- how to get xen with a kernel 2.6.27 or above?
- Host not found while trying to get xen-3.4.2
- Installing CentOS as DomU on Debian Lenny (dom0) Xen
- virt-manager 0.8.2 local ISO and PXE boot install option greyed out on 2.6.32.27 pv-ops Dom0 kernel
- how does hypervisor isolates DomU from Dom0