Hi Guys, I''m working with xen 4.1, dom0 ubuntu kernel 3.2 and domU-PV ubuntu-precise. Well... xm console command doesn''t work. I read < http://wiki.xen.org/wiki/Xen_Common_Problems> and I can''t resolve. How can I fix this problem? Thanks MY guest.cfg in /etc/xen/ubuntu.cfg name = "ubuntu-pv" memory = 256 disk = [''phy:/dev/labprog/ubuntu-pv,xvda,w''] vif = ['' ''] bootloader = "pygrub" #kernel = "/var/lib/xen/images/ubuntu-netboot/vmlinuz" #ramdisk = "/var/lib/xen/images/ubuntu-netboot/initrd.gz" #extra = "debian-installer/exit/always_halt=true -- console=hvc0" MY dom0 /etc/init/hvc0.conf # hvc0 - getty # # This service maintains a getty on hvc0 from the point the system is # started until it is shut down again. start on stopped rc RUNLEVEL=[2345] and ( not-container or container CONTAINER=lxc or container CONTAINER=lxc-libvirt) stop on runlevel [!2345] respawn exec /sbin/getty -L hvc0 9600 linux _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Hi, Why don''t you xl console instead? Xm is being phased out. Thanks Ian From: xen-users-bounces@lists.xen.org [mailto:xen-users-bounces@lists.xen.org] On Behalf Of José Eduardo França Sent: 01 August 2012 18:41 To: xen-users@lists.xen.org Subject: [Xen-users] xm console command doesn''t work Hi Guys, I''m working with xen 4.1, dom0 ubuntu kernel 3.2 and domU-PV ubuntu-precise. Well... xm console command doesn''t work. I read <http://wiki.xen.org/wiki/Xen_Common_Problems> and I can''t resolve. How can I fix this problem? Thanks MY guest.cfg in /etc/xen/ubuntu.cfg name = "ubuntu-pv" memory = 256 disk = [''phy:/dev/labprog/ubuntu-pv,xvda,w''] vif = ['' ''] bootloader = "pygrub" #kernel = "/var/lib/xen/images/ubuntu-netboot/vmlinuz" #ramdisk = "/var/lib/xen/images/ubuntu-netboot/initrd.gz" #extra = "debian-installer/exit/always_halt=true -- console=hvc0" MY dom0 /etc/init/hvc0.conf # hvc0 - getty # # This service maintains a getty on hvc0 from the point the system is # started until it is shut down again. start on stopped rc RUNLEVEL=[2345] and ( not-container or container CONTAINER=lxc or container CONTAINER=lxc-libvirt) stop on runlevel [!2345] respawn exec /sbin/getty -L hvc0 9600 linux _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On Wed, 2012-08-01 at 20:59 +0100, Lukas Laukamp wrote:> > he could also use the xl toolstack but the simple misstake is that the > hvc0.conf isn''t needed in Dom0. The hvc0.conf is needed inside of the > DomU and in the config file must be set extra = ''console=hvc0'' so that > the console kernel option for hvc0 is set. So the DomU can boot into a > hvc0 console and than xm and xl can use the console.pygrub should be getting the console=hvc0 from the grub cfg and hvc0.conf ought to already exist. If Ubuntu isn''t setting these up by default during install when running under Xen then this should be reported as a bug to Ubuntu. I''m not familiar with current Ubuntu so I don''t know if these are expected to be there i.e. I don''t know if this is a wishlist/new-feature bug or just a bug in functionality which is expected to Just Work already. Ian.
Am Donnerstag, den 02.08.2012, 08:16 +0100 schrieb Ian Campbell:> On Wed, 2012-08-01 at 20:59 +0100, Lukas Laukamp wrote: > > > > he could also use the xl toolstack but the simple misstake is that the > > hvc0.conf isn''t needed in Dom0. The hvc0.conf is needed inside of the > > DomU and in the config file must be set extra = ''console=hvc0'' so that > > the console kernel option for hvc0 is set. So the DomU can boot into a > > hvc0 console and than xm and xl can use the console. > > pygrub should be getting the console=hvc0 from the grub cfg and > hvc0.conf ought to already exist. > > If Ubuntu isn''t setting these up by default during install when running > under Xen then this should be reported as a bug to Ubuntu. > > I''m not familiar with current Ubuntu so I don''t know if these are > expected to be there i.e. I don''t know if this is a wishlist/new-feature > bug or just a bug in functionality which is expected to Just Work > already. > > Ian. >Current (12.04 LTS) Ubuntu, respectively the 3.2.0 linux-virtual Kernel as well as the grub-legacy-ec2 are aware of hvc0. I think the source of these console problems are the configurable different presets. One could use tty0 as well as tty1, maybe hvc0 or xvc0 or both of them. The domU I''m currently peeking into spawns tty0 and hvc0 with tty0 connected to the "serial" xl console and hvc0 connected to vfb/vnc setting. But that can''t be predicted, it''s easy to configure it the opposite way. From my point of view, the definition of virtualization namespaces (hvcN, xvcN, xvdMN) jumped in far to late. There have been huge clusters build before one was even thinking about hvc0. Just my 2 cents, and I''m sorry that this won''t help the OP to solve his issue easily. Cheers, Stephan _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Hi all, I can''t still resolve. How Ian Campbell said the xl console command didn''t work. Well... I tried the script /etc/init/hvc0.conf that Lukas suggested and my guest.cfg was changed to: name = "ubuntu-pv" memory = 256 disk = [''phy:/dev/labprog/ubuntu-pv,xvda,w''] vif = ['' ''] bootloader = "pygrub" *extra = "console=hvc0"* But, I can''t run xm console command. Is there other idea? Thanks 2012/8/2 Stephan Seitz <s.seitz@netzhaut.de>> ** > > > Am Donnerstag, den 02.08.2012, 08:16 +0100 schrieb Ian Campbell: > > On Wed, 2012-08-01 at 20:59 +0100, Lukas Laukamp wrote: > > > > he could also use the xl toolstack but the simple misstake is that the > > hvc0.conf isn''t needed in Dom0. The hvc0.conf is needed inside of the > > DomU and in the config file must be set extra = ''console=hvc0'' so that > > the console kernel option for hvc0 is set. So the DomU can boot into a > > hvc0 console and than xm and xl can use the console. > > pygrub should be getting the console=hvc0 from the grub cfg and > hvc0.conf ought to already exist. > > If Ubuntu isn''t setting these up by default during install when running > under Xen then this should be reported as a bug to Ubuntu. > > I''m not familiar with current Ubuntu so I don''t know if these are > expected to be there i.e. I don''t know if this is a wishlist/new-feature > bug or just a bug in functionality which is expected to Just Work > already. > > Ian. > > > Current (12.04 LTS) Ubuntu, respectively the 3.2.0 linux-virtual Kernel > as well as the grub-legacy-ec2 are > aware of hvc0. > > I think the source of these console problems are the configurable > different presets. One could use tty0 > as well as tty1, maybe hvc0 or xvc0 or both of them. The domU I''m > currently peeking into spawns tty0 > and hvc0 with tty0 connected to the "serial" xl console and hvc0 connected > to vfb/vnc setting. But that > can''t be predicted, it''s easy to configure it the opposite way. > > From my point of view, the definition of virtualization namespaces (hvcN, > xvcN, xvdMN) jumped in far to late. > There have been huge clusters build before one was even thinking about > hvc0. > > Just my 2 cents, and I''m sorry that this won''t help the OP to solve his > issue easily. > > Cheers, > > Stephan > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Hello, When you say it doesn''t work, what isn''t working, errors? Ian From: José Eduardo França [mailto:jefranca@gmail.com] Sent: 03 August 2012 21:41 To: Stephan Seitz Cc: Ian Campbell; Lukas Laukamp; xen-users@lists.xen.org; Ian Tobin Subject: Re: [Xen-users] xm console command doesn''t work Hi all, I can''t still resolve. How Ian Campbell said the xl console command didn''t work. Well... I tried the script /etc/init/hvc0.conf that Lukas suggested and my guest.cfg was changed to: name = "ubuntu-pv" memory = 256 disk = [''phy:/dev/labprog/ubuntu-pv,xvda,w''] vif = ['' ''] bootloader = "pygrub" extra = "console=hvc0" But, I can''t run xm console command. Is there other idea? Thanks 2012/8/2 Stephan Seitz <s.seitz@netzhaut.de> Am Donnerstag, den 02.08.2012, 08:16 +0100 schrieb Ian Campbell: On Wed, 2012-08-01 at 20:59 +0100, Lukas Laukamp wrote: > > he could also use the xl toolstack but the simple misstake is that the > hvc0.conf isn''t needed in Dom0. The hvc0.conf is needed inside of the > DomU and in the config file must be set extra = ''console=hvc0'' so that > the console kernel option for hvc0 is set. So the DomU can boot into a > hvc0 console and than xm and xl can use the console. pygrub should be getting the console=hvc0 from the grub cfg and hvc0.conf ought to already exist. If Ubuntu isn''t setting these up by default during install when running under Xen then this should be reported as a bug to Ubuntu. I''m not familiar with current Ubuntu so I don''t know if these are expected to be there i.e. I don''t know if this is a wishlist/new-feature bug or just a bug in functionality which is expected to Just Work already. Ian. Current (12.04 LTS) Ubuntu, respectively the 3.2.0 linux-virtual Kernel as well as the grub-legacy-ec2 are aware of hvc0. I think the source of these console problems are the configurable different presets. One could use tty0 as well as tty1, maybe hvc0 or xvc0 or both of them. The domU I''m currently peeking into spawns tty0 and hvc0 with tty0 connected to the "serial" xl console and hvc0 connected to vfb/vnc setting. But that can''t be predicted, it''s easy to configure it the opposite way. From my point of view, the definition of virtualization namespaces (hvcN, xvcN, xvdMN) jumped in far to late. There have been huge clusters build before one was even thinking about hvc0. Just my 2 cents, and I''m sorry that this won''t help the OP to solve his issue easily. Cheers, Stephan _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Ok first: when I do command "xm create guest.cfg -c" I can run console enviroment. Then when I do command "xm console guest" the terminal doesn''t shown nothing. No Errors and I can''t run others commands. 2012/8/3 Ian Tobin <itobin@tidyhosts.com>> Hello,**** > > ** ** > > When you say it doesn’t work, what isn’t working, errors?**** > > ** ** > > Ian**** > > ** ** > > *From:* José Eduardo França [mailto:jefranca@gmail.com] > *Sent:* 03 August 2012 21:41 > *To:* Stephan Seitz > *Cc:* Ian Campbell; Lukas Laukamp; xen-users@lists.xen.org; Ian Tobin > *Subject:* Re: [Xen-users] xm console command doesn''t work**** > > ** ** > > Hi all, > > I can''t still resolve. > How Ian Campbell said the xl console command didn''t work. > > Well... I tried the script /etc/init/hvc0.conf that Lukas suggested and my > guest.cfg was changed to: > name = "ubuntu-pv" > > memory = 256 > disk = [''phy:/dev/labprog/ubuntu-pv,xvda,w'']**** > > vif = ['' ''] > > bootloader = "pygrub" > *extra = "console=hvc0"***** > > > But, I can''t run xm console command. Is there other idea? > Thanks**** > > 2012/8/2 Stephan Seitz <s.seitz@netzhaut.de>**** > > Am Donnerstag, den 02.08.2012, 08:16 +0100 schrieb Ian Campbell: **** > > On Wed, 2012-08-01 at 20:59 +0100, Lukas Laukamp wrote:**** > > > **** > > > he could also use the xl toolstack but the simple misstake is that the**** > > > hvc0.conf isn''t needed in Dom0. The hvc0.conf is needed inside of the**** > > > DomU and in the config file must be set extra = ''console=hvc0'' so that**** > > > the console kernel option for hvc0 is set. So the DomU can boot into a**** > > > hvc0 console and than xm and xl can use the console.**** > > ** ** > > pygrub should be getting the console=hvc0 from the grub cfg and**** > > hvc0.conf ought to already exist.**** > > ** ** > > If Ubuntu isn''t setting these up by default during install when running**** > > under Xen then this should be reported as a bug to Ubuntu.**** > > ** ** > > I''m not familiar with current Ubuntu so I don''t know if these are**** > > expected to be there i.e. I don''t know if this is a wishlist/new-feature**** > > bug or just a bug in functionality which is expected to Just Work**** > > already.**** > > ** ** > > Ian.**** > > ** ** > > Current (12.04 LTS) Ubuntu, respectively the 3.2.0 linux-virtual Kernel as > well as the grub-legacy-ec2 are > aware of hvc0. > > I think the source of these console problems are the configurable > different presets. One could use tty0 > as well as tty1, maybe hvc0 or xvc0 or both of them. The domU I''m > currently peeking into spawns tty0 > and hvc0 with tty0 connected to the "serial" xl console and hvc0 connected > to vfb/vnc setting. But that > can''t be predicted, it''s easy to configure it the opposite way. > > From my point of view, the definition of virtualization namespaces (hvcN, > xvcN, xvdMN) jumped in far to late. > There have been huge clusters build before one was even thinking about > hvc0. > > Just my 2 cents, and I''m sorry that this won''t help the OP to solve his > issue easily. > > Cheers, > > Stephan > > **** > > ** ** >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Hi, if "running console environment" means, you can see the kernel booting and/or services starting, your domU just doesn''t spawn a tty on hvc0. ssh into your domU (or mount the domU root filesystem), navigate to your domU /etc/init/ and cat tty1.conf | sed ''s,tty1,hvc0,g'' > hvc0.conf reboot your domU and you''ll see a login prompt. Am Sonntag, den 05.08.2012, 12:15 -0300 schrieb José Eduardo França:> Ok > > first: when I do command "xm create guest.cfg -c" I can run console > enviroment. Then when I do command "xm console guest" the terminal > doesn''t shown nothing. No Errors and I can''t run others commands. > > > > 2012/8/3 Ian Tobin <itobin@tidyhosts.com> > > Hello, >> > > > When you say it doesn’t work, what isn’t working, errors? > > > > Ian > > > > From: José Eduardo França [mailto:jefranca@gmail.com] > Sent: 03 August 2012 21:41 > To: Stephan Seitz > Cc: Ian Campbell; Lukas Laukamp; xen-users@lists.xen.org; Ian > Tobin > Subject: Re: [Xen-users] xm console command doesn''t work > > > > > Hi all, > > I can''t still resolve. > How Ian Campbell said the xl console command didn''t work. > > Well... I tried the script /etc/init/hvc0.conf that Lukas > suggested and my guest.cfg was changed to: > name = "ubuntu-pv" > > memory = 256 > disk = [''phy:/dev/labprog/ubuntu-pv,xvda,w''] > > > vif = ['' ''] > > bootloader = "pygrub" > extra = "console=hvc0" > > > > > But, I can''t run xm console command. Is there other idea? > Thanks > > > 2012/8/2 Stephan Seitz <s.seitz@netzhaut.de> > > > > > Am Donnerstag, den 02.08.2012, 08:16 +0100 schrieb Ian > Campbell: > > > On Wed, 2012-08-01 at 20:59 +0100, Lukas Laukamp wrote: > > > > he could also use the xl toolstack but the simple misstake is that the > > hvc0.conf isn''t needed in Dom0. The hvc0.conf is needed inside of the > > DomU and in the config file must be set extra = ''console=hvc0'' so that > > the console kernel option for hvc0 is set. So the DomU can boot into a > > hvc0 console and than xm and xl can use the console. > > pygrub should be getting the console=hvc0 from the grub cfg and > hvc0.conf ought to already exist. > > If Ubuntu isn''t setting these up by default during install when running > under Xen then this should be reported as a bug to Ubuntu. > > I''m not familiar with current Ubuntu so I don''t know if these are > expected to be there i.e. I don''t know if this is a wishlist/new-feature > bug or just a bug in functionality which is expected to Just Work > already. > > Ian. > > > Current (12.04 LTS) Ubuntu, respectively the 3.2.0 > linux-virtual Kernel as well as the grub-legacy-ec2 are > aware of hvc0. > > I think the source of these console problems are the > configurable different presets. One could use tty0 > as well as tty1, maybe hvc0 or xvc0 or both of them. The domU > I''m currently peeking into spawns tty0 > and hvc0 with tty0 connected to the "serial" xl console and > hvc0 connected to vfb/vnc setting. But that > can''t be predicted, it''s easy to configure it the opposite > way. > > From my point of view, the definition of virtualization > namespaces (hvcN, xvcN, xvdMN) jumped in far to late. > There have been huge clusters build before one was even > thinking about hvc0. > > Just my 2 cents, and I''m sorry that this won''t help the OP to > solve his issue easily. > > Cheers, > > Stephan > > > > > > > > > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
[RESOLVED] Hi guys, Lukas is right. I thought there was a error. But I type root and showed "Password" Thanks all 2012/8/5 Stephan Seitz <s.seitz@netzhaut.de>> ** > Hi, > > if "running console environment" means, you can see the kernel booting > and/or services starting, your domU just doesn''t spawn a tty on hvc0. > > ssh into your domU (or mount the domU root filesystem), navigate to your > domU /etc/init/ > and > cat tty1.conf | sed ''s,tty1,hvc0,g'' > hvc0.conf > reboot your domU and you''ll see a login prompt. > > > Am Sonntag, den 05.08.2012, 12:15 -0300 schrieb José Eduardo França: > > Ok > > first: when I do command "xm create guest.cfg -c" I can run console > enviroment. Then when I do command "xm console guest" the terminal doesn''t > shown nothing. No Errors and I can''t run others commands. > > > 2012/8/3 Ian Tobin <itobin@tidyhosts.com> > > Hello, > > > > > > When you say it doesn’t work, what isn’t working, errors? > > > > Ian > > > > *From:* José Eduardo França [mailto:jefranca@gmail.com] > *Sent:* 03 August 2012 21:41 > *To:* Stephan Seitz > *Cc:* Ian Campbell; Lukas Laukamp; xen-users@lists.xen.org; Ian Tobin > *Subject:* Re: [Xen-users] xm console command doesn''t work > > > > Hi all, > > I can''t still resolve. > How Ian Campbell said the xl console command didn''t work. > > Well... I tried the script /etc/init/hvc0.conf that Lukas suggested and my > guest.cfg was changed to: > name = "ubuntu-pv" > > memory = 256 > disk = [''phy:/dev/labprog/ubuntu-pv,xvda,w''] > > vif = ['' ''] > > bootloader = "pygrub" > *extra = "console=hvc0"* > > > > But, I can''t run xm console command. Is there other idea? > Thanks > > 2012/8/2 Stephan Seitz <s.seitz@netzhaut.de> > > > > Am Donnerstag, den 02.08.2012, 08:16 +0100 schrieb Ian Campbell: > > On Wed, 2012-08-01 at 20:59 +0100, Lukas Laukamp wrote: > > > > he could also use the xl toolstack but the simple misstake is that the > > hvc0.conf isn''t needed in Dom0. The hvc0.conf is needed inside of the > > DomU and in the config file must be set extra = ''console=hvc0'' so that > > the console kernel option for hvc0 is set. So the DomU can boot into a > > hvc0 console and than xm and xl can use the console. > > pygrub should be getting the console=hvc0 from the grub cfg and > hvc0.conf ought to already exist. > > If Ubuntu isn''t setting these up by default during install when running > under Xen then this should be reported as a bug to Ubuntu. > > I''m not familiar with current Ubuntu so I don''t know if these are > expected to be there i.e. I don''t know if this is a wishlist/new-feature > bug or just a bug in functionality which is expected to Just Work > already. > > Ian. > > > Current (12.04 LTS) Ubuntu, respectively the 3.2.0 linux-virtual > Kernel as well as the grub-legacy-ec2 are > aware of hvc0. > > I think the source of these console problems are the configurable > different presets. One could use tty0 > as well as tty1, maybe hvc0 or xvc0 or both of them. The domU I''m > currently peeking into spawns tty0 > and hvc0 with tty0 connected to the "serial" xl console and hvc0 connected > to vfb/vnc setting. But that > can''t be predicted, it''s easy to configure it the opposite way. > > From my point of view, the definition of virtualization namespaces (hvcN, > xvcN, xvdMN) jumped in far to late. > There have been huge clusters build before one was even thinking about > hvc0. > > Just my 2 cents, and I''m sorry that this won''t help the OP to solve his > issue easily. > > Cheers, > > Stephan > > > > > > > > > _______________________________________________ > Xen-users mailing listXen-users@lists.xen.orghttp://lists.xen.org/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users