Hello, I''m using Red Hat AS 5 with Xen 3.0, and sometimes ''xm console'' does not work, the most of times when I''m trying to connect one full-virt machine with different arch from server, for example: [root@xen-5 ~]# xm list Name ID Mem(MiB) VCPUs State Time(s) Domain-0 0 1933 8 r----- 24551.4 xen05_vm01 35 1031 1 -b---- 7126.9 xen05_vm02 34 1031 1 -b---- 8461.8 [root@xen-5 ~]# xm console xen05_vm01 The ''xen05_vm01'' it''s one Red Hat 7.2 32 Bits... if I connect on X of the server and the the "Open" of virt-manager works as well, but I''m usually using ssh... What can I do for resolve this? Thanks! -- Tiago Cruz http://everlinux.com Linux User #282636 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fr, Nov 30, 2007 at 10:53:35 -0200, Tiago Cruz wrote:> Hello, > > I''m using Red Hat AS 5 with Xen 3.0, and sometimes ''xm console'' does not > work, the most of times when I''m trying to connect one full-virt machine > with different arch from server, for example: > > [root@xen-5 ~]# xm list > Name ID Mem(MiB) VCPUs State Time(s) > Domain-0 0 1933 8 r----- 24551.4 > xen05_vm01 35 1031 1 -b---- 7126.9 > xen05_vm02 34 1031 1 -b---- 8461.8 > [root@xen-5 ~]# xm console xen05_vm01 > > The ''xen05_vm01'' it''s one Red Hat 7.2 32 Bits... if I connect on X of > the server and the the "Open" of virt-manager works as well, but I''m > usually using ssh...Because domain 0 know nothing about console of HVM-domains. You can attach to the consoles of paravirtual domains, but not to HVM.> > What can I do for resolve this?I think, you can try this solution: 1. Redirect console inside HVM domain to serial console 2. In the config file of your domain specify serial=''pty'' and after that try to connect using minicom or xm console.> > Thanks! > > > -- > Tiago Cruz > http://everlinux.com > Linux User #282636 > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- WBR, i.m.chubin _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, 2007-11-30 at 15:18 +0200, Igor Chubin wrote:> Because domain 0 know nothing about console of HVM-domains. > You can attach to the consoles of paravirtual domains, > but not to HVM.Thank you, Igor! Really... you are correctly. But... I''ve installed one new ParaVirtual domain, only to test, and I can''t console it. I''ve a lot of changes, like: Host: (DomO) title Red Hat Enterprise Linux Server (2.6.18-53.1.4.el5xen) root (hd0,0) kernel /xen.gz-2.6.18-53.1.4.el5 com2=115200, 8n1 module /vmlinuz-2.6.18-53.1.4.el5xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet console=tty console=ttyS1115200 module /initrd-2.6.18-53.1.4.el5xen.img Guest: (DomU) title Red Hat Enterprise Linux Server (2.6.18-53.1.4.el5xen) root (hd0,0) kernel /boot/vmlinuz-2.6.18-53.1.4.el5xen ro root=LABEL=/ rhgb quiet console=ttyS0 console=tty0 initrd /boot/initrd-2.6.18-53.1.4.el5xen.img [root@xenserver04 ~]# cat /etc/issue Red Hat Enterprise Linux Server release 5 (Tikanga) Kernel \r on an \m [root@xenserver04 ~]# rpm -qa | grep xen xen-3.0.3-41.el5 xen-libs-3.0.3-41.el5 kernel-xen-2.6.18-53.1.4.el5 When I create the machine, I can see the grub, but after this I lost my connection, only can get using ''ssh'' after boot. Any ideas?> > What can I do for resolve this? > > > I think, you can try this solution: > > 1. Redirect console inside HVM domain to serial console > 2. In the config file of your domain specify > > serial=''pty'' > > and after that try to connect using minicom or xm console.Ok... I''ll try to get console on ParaVirt first :) [root@xenserver04 ~]# cat /etc/xen/xen04_rh5_01 # Automatically generated xen config file name = "xen04_rh5_01" memory = "1000" disk = [ ''phy:/dev/VolGroup00/xen04_vm02,xvda,w'', ] vif = [ ''mac=00:16:3e:2a:b6:5f, bridge=xenbr0'', ] vfb = ["type=vnc,vncunused=1"] uuid = "f6e74bad-7cbb-2af2-8e63-8f3e6b1628fb" bootloader="/usr/bin/pygrub" vcpus=1 on_reboot = ''restart'' on_crash = ''restart'' serial = "pty" # enable serial console extra = ''xencons=tty'' Thanks>-- Tiago Cruz http://everlinux.com Linux User #282636 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Sadique Puthen
2007-Nov-30 18:20 UTC
Re: [Xen-users] Why ''xm console'' not works sometimes?
Tiago Cruz wrote:> On Fri, 2007-11-30 at 15:18 +0200, Igor Chubin wrote: > > >> Because domain 0 know nothing about console of HVM-domains. >> You can attach to the consoles of paravirtual domains, >> but not to HVM. >> > > Thank you, Igor! > Really... you are correctly. > > But... I''ve installed one new ParaVirtual domain, only to test, and I > can''t console it. > > I''ve a lot of changes, like: > > Host: (DomO) > title Red Hat Enterprise Linux Server (2.6.18-53.1.4.el5xen) > root (hd0,0) > kernel /xen.gz-2.6.18-53.1.4.el5 com2=115200, 8n1 > module /vmlinuz-2.6.18-53.1.4.el5xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet console=tty console=ttyS1115200 > module /initrd-2.6.18-53.1.4.el5xen.img > > > Guest: (DomU) > title Red Hat Enterprise Linux Server (2.6.18-53.1.4.el5xen) > root (hd0,0) > kernel /boot/vmlinuz-2.6.18-53.1.4.el5xen ro root=LABEL=/ rhgb quiet console=ttyS0 console=tty0 > initrd /boot/initrd-2.6.18-53.1.4.el5xen.img > > [root@xenserver04 ~]# cat /etc/issue > Red Hat Enterprise Linux Server release 5 (Tikanga) > Kernel \r on an \m > > [root@xenserver04 ~]# rpm -qa | grep xen > xen-3.0.3-41.el5 > xen-libs-3.0.3-41.el5 > kernel-xen-2.6.18-53.1.4.el5 > > When I create the machine, I can see the grub, but after this I lost my > connection, only can get using ''ssh'' after boot. > > Any ideas? > > > >>> What can I do for resolve this? >>> >> I think, you can try this solution: >> >> 1. Redirect console inside HVM domain to serial console >> 2. In the config file of your domain specify >> >> serial=''pty'' >> >> and after that try to connect using minicom or xm console. >> > > Ok... I''ll try to get console on ParaVirt first :) >To get the boot messages on the console please append the below parameters to the kernel line in the grub.conf of the guest. console=tty0 console=xvc0 kernel line in my grub.conf is as below. kernel /vmlinuz-2.6.18-53.el5xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet console=tty0 console=xvc0 To get a log in prompt on the console, please add the below line to your /etc/inittab, before ttyx defenitions. Once you do "xm console <guest>", you may have to press "return" to get the console. co:2345:respawn:/sbin/agetty xvc0 9600 vt100-nav --Sadique> [root@xenserver04 ~]# cat /etc/xen/xen04_rh5_01 > # Automatically generated xen config file > name = "xen04_rh5_01" > memory = "1000" > disk = [ ''phy:/dev/VolGroup00/xen04_vm02,xvda,w'', ] > vif = [ ''mac=00:16:3e:2a:b6:5f, bridge=xenbr0'', ] > vfb = ["type=vnc,vncunused=1"] > uuid = "f6e74bad-7cbb-2af2-8e63-8f3e6b1628fb" > bootloader="/usr/bin/pygrub" > vcpus=1 > on_reboot = ''restart'' > on_crash = ''restart'' > serial = "pty" # enable serial console > extra = ''xencons=tty'' > > > Thanks >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fri, 2007-11-30 at 23:50 +0530, Sadique Puthen wrote:> To get a log in prompt on the console, please add the below line to your > /etc/inittab, before ttyx defenitions. Once you do "xm console <guest>", > you may have to press "return" to get the console. > > co:2345:respawn:/sbin/agetty xvc0 9600 vt100-navThanks Sadique. You are the guy! 8-) And finally do this on your guest: # echo "xvc0" >> /etc/securetty Many thanks! -- Tiago Cruz http://everlinux.com Linux User #282636 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Nico Kadel-Garcia
2007-Dec-03 08:22 UTC
Re: [Xen-users] Why ''xm console'' not works sometimes?
Tiago Cruz wrote:> Hello, > > I''m using Red Hat AS 5 with Xen 3.0, and sometimes ''xm console'' does not > work, the most of times when I''m trying to connect one full-virt machine > with different arch from server, for example: > > [root@xen-5 ~]# xm list > Name ID Mem(MiB) VCPUs State Time(s) > Domain-0 0 1933 8 r----- 24551.4 > xen05_vm01 35 1031 1 -b---- 7126.9 > xen05_vm02 34 1031 1 -b---- 8461.8 > [root@xen-5 ~]# xm console xen05_vm01 > > The ''xen05_vm01'' it''s one Red Hat 7.2 32 Bits... if I connect on X of > the server and the the "Open" of virt-manager works as well, but I''m > usually using ssh... > > What can I do for resolve this? > > Thanks! > > >*WHY* in the name of all that is holy are you using RedHat 7.2? If you have to suffer the pain of using a completely deprecated and obsolete operating system, can you at least update it to RedHat 7.3? And how does the SSH access to X fail? Can you run X applicatons in the virt-manager console (which is actually a wrapper for VNC)? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hello Nico, On Mon, 2007-12-03 at 08:22 +0000, Nico Kadel-Garcia wrote:> *WHY* in the name of all that is holy are you using RedHat 7.2?I understood perfectly what you are thinking, because I was feeling like you when I got this job, but please, see this little movie and you I''ll can understood my situation: "Moving Critical Apps to New Systems" http://www.redhat.com/videos/real_tech/lesson13.html> And how does the SSH access to X fail? Can you run X applicatons in the > virt-manager console (which is actually a wrapper for VNC)?I can use the SSH on _guest_ OS perfectly, and I can get the graphical console if I log on _host_ (using some kind of VNC -- I''m using NXclient) and use the virt-manager. But what I wold like to do it''s use the ''xm console'' using SSH, without depend of ''virt-manager''... Thanks! -- Tiago Cruz http://everlinux.com Linux User #282636 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users