Hi everybody, Are there a way to have console for full virtualized vm ? I know we can vnc on vm, but in the case we want to install a vm and we don''t have access to any graphical interface ... Thanks in advance ! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Fr, Nov 30, 2007 at 08:04:01 -0500, Michael Lessard wrote:> Hi everybody, > > Are there a way to have console for full virtualized vm ? I know we can > vnc on vm, but in the case we want to install a vm and we don''t have access > to any graphical interface ...I think, you can try this solution: 1. Redirect console inside HVM domain to the serial port 2. In the config file of your domain specify serial=''pty'' and after that try to connect using minicom or xm console.> > Thanks in advance !> _______________________________________________ > 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
Igor, I already have serial=''pty'' in my VM config ... But how i can redirect console inside HVM ? thanks ! On Dec 1, 2007 3:13 AM, Igor Chubin <igor@chub.in> wrote:> On Fr, Nov 30, 2007 at 08:04:01 -0500, Michael Lessard wrote: > > Hi everybody, > > > > Are there a way to have console for full virtualized vm ? I know we > can > > vnc on vm, but in the case we want to install a vm and we don''t have > access > > to any graphical interface ... > > I think, you can try this solution: > > 1. Redirect console inside HVM domain to the serial port > 2. In the config file of your domain specify > > serial=''pty'' > > and after that try to connect using minicom or xm console. > > > > > > Thanks in advance ! > > > _______________________________________________ > > 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
Michael Lessard wrote:> Igor, > > I already have serial=''pty'' in my VM config ... But how i can > redirect console inside HVM ?Append the "console=ttyS0" to the kernel line in grub.conf for the guest. Add "co:2345:respawn:/sbin/agetty ttyS0 9600 vt100-nav" in your /etc/inittab before starting the ttyx defenitions. --Sadique> > thanks ! > > On Dec 1, 2007 3:13 AM, Igor Chubin < igor@chub.in > <mailto:igor@chub.in>> wrote: > > On Fr, Nov 30, 2007 at 08:04:01 -0500, Michael Lessard wrote: > > Hi everybody, > > > > Are there a way to have console for full virtualized vm ? I > know we can > > vnc on vm, but in the case we want to install a vm and we don''t > have access > > to any graphical interface ... > > I think, you can try this solution: > > 1. Redirect console inside HVM domain to the serial port > 2. In the config file of your domain specify > > serial=''pty'' > > and after that try to connect using minicom or xm console. > > > > > > Thanks in advance ! > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > <mailto: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_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hello, On Mon, 2007-12-03 at 19:23 +0530, Sadique Puthen wrote:> > I already have serial=''pty'' in my VM config ... But how i can > > redirect console inside HVM ? > > Append the "console=ttyS0" to the kernel line in grub.conf for the guest. > > Add "co:2345:respawn:/sbin/agetty ttyS0 9600 vt100-nav" in your > /etc/inittab before starting the ttyx defenitions.Only to complete this "FAQ", you will need to setup your securetty too: http://lists.xensource.com/archives/html/xen-users/2007-11/msg00811.html And maybe you will need to create this device, if not exist: # mknod /dev/xvc0 c 250 187 Works for me SuSE 9.3 and Red Hat AS 4, but not works on Red Hat 7.2 (very old) Regards>-- Tiago Cruz http://everlinux.com Linux User #282636 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> Only to complete this "FAQ", you will need to setup your securetty too: > http://lists.xensource.com/archives/html/xen-users/2007-11/msg00811.html > > > And maybe you will need to create this device, if not exist: > > # mknod /dev/xvc0 c 250 187You shouldn''t need to create this in an HVM domU. The console you''re interested in for HVM should just appear as a standard serial port. Cheers, Mark> Works for me SuSE 9.3 and Red Hat AS 4, but not works on Red Hat 7.2 > (very old) > > Regards-- Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I confirm that you don''t need to create this device ! It''s works great with the two line who Sadique gave me .. But now, i could use this trick only when vm is installed ... if i need to install a full vm and i don''t have access to X server, how can i handle that ? thanks ! On Dec 3, 2007 11:46 AM, Mark Williamson <mark.williamson@cl.cam.ac.uk> wrote:> > Only to complete this "FAQ", you will need to setup your securetty too: > > http://lists.xensource.com/archives/html/xen-users/2007-11/msg00811.html > > > > > > And maybe you will need to create this device, if not exist: > > > > # mknod /dev/xvc0 c 250 187 > > You shouldn''t need to create this in an HVM domU. The console you''re > interested in for HVM should just appear as a standard serial port. > > Cheers, > Mark > > > Works for me SuSE 9.3 and Red Hat AS 4, but not works on Red Hat 7.2 > > (very old) > > > > Regards > > > > -- > Dave: Just a question. What use is a unicyle with no seat? And no pedals! > Mark: To answer a question with a question: What use is a skateboard? > Dave: Skateboards have wheels. > Mark: My wheel has a wheel! >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> I confirm that you don''t need to create this device ! It''s works great > with the two line who Sadique gave me .. > > But now, i could use this trick only when vm is installed ... if i need to > install a full vm and i don''t have access to X server, how can i handle > that ?For an HVM guest, to install without access to the guest framebuffer you''d need an installer that can handle installation via serial line - just like doing a headless install on a normal machine. Or, perhaps you could arrange to export the guest''s display over VNC an access it via a remote X server on a desktop somewhere? Cheers, Mark> On Dec 3, 2007 11:46 AM, Mark Williamson <mark.williamson@cl.cam.ac.uk> > > wrote: > > > Only to complete this "FAQ", you will need to setup your securetty too: > > > http://lists.xensource.com/archives/html/xen-users/2007-11/msg00811.htm > > >l > > > > > > > > > And maybe you will need to create this device, if not exist: > > > > > > # mknod /dev/xvc0 c 250 187 > > > > You shouldn''t need to create this in an HVM domU. The console you''re > > interested in for HVM should just appear as a standard serial port. > > > > Cheers, > > Mark > > > > > Works for me SuSE 9.3 and Red Hat AS 4, but not works on Red Hat 7.2 > > > (very old) > > > > > > Regards > > > > -- > > Dave: Just a question. What use is a unicyle with no seat? And no > > pedals! Mark: To answer a question with a question: What use is a > > skateboard? Dave: Skateboards have wheels. > > Mark: My wheel has a wheel!-- Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel! _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Michael Lessard wrote:> I confirm that you don''t need to create this device ! It''s works > great with the two line who Sadique gave me .. > > But now, i could use this trick only when vm is installed ... if i > need to install a full vm and i don''t have access to X server, how can > i handle that ? > > thanks ! > > > On Dec 3, 2007 11:46 AM, Mark Williamson <mark.williamson@cl.cam.ac.uk > <mailto:mark.williamson@cl.cam.ac.uk>> wrote: > > > Only to complete this "FAQ", you will need to setup your > securetty too: > > > http://lists.xensource.com/archives/html/xen-users/2007-11/msg00811.html > <http://lists.xensource.com/archives/html/xen-users/2007-11/msg00811.html> > > > > > > And maybe you will need to create this device, if not exist: > > > > # mknod /dev/xvc0 c 250 187 > > You shouldn''t need to create this in an HVM domU. The console you''re > interested in for HVM should just appear as a standard serial port. >If I were you and I need this badly, I should hack the isolinux.cfg in boot.iso for that distro to throw boot messages by default to serial console and boot the OS from the modified boot.iso. --Sadique> > Cheers, > Mark > > > Works for me SuSE 9.3 and Red Hat AS 4, but not works on Red Hat 7.2 > > (very old) > > > > Regards > > > > -- > Dave: Just a question. What use is a unicyle with no seat? And no > pedals! > Mark: To answer a question with a question: What use is a skateboard? > Dave: Skateboards have wheels. > Mark: My wheel has a wheel! > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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
Michael Lessard wrote:> I confirm that you don''t need to create this device ! It''s works > great with the two line who Sadique gave me .. > > But now, i could use this trick only when vm is installed ... if i > need to install a full vm and i don''t have access to X server, how can > i handle that ? >X forwarding over ssh or a remote X display would be the obvious choice. Another option would be to set domU''s console to vnc, bind to all ip address instead of localhost, and connect using vnc client. Something like sdl=0 vnc=1 vnclisten="0.0.0.0" Certain installers (e.g. linux, solaris) may have an option to force the installer to use serial console. In this case, the HVM console should work as-is, without any additional setup. Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users